Ручной запуск СП
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
PARAMETERS: p_carrid TYPE s_carrid. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_carrid. DATA: ls_shlp_descr TYPE shlp_descr, lv_rc LIKE sy-subrc, lt_values TYPE STANDARD TABLE OF ddshretval. CALL FUNCTION 'F4IF_GET_SHLP_DESCR' EXPORTING shlpname = 'S_CARRIER_ID' shlptype = 'SH' IMPORTING shlp = ls_shlp_descr. ls_shlp_descr-interface[ shlpfield = 'CARRID': ]-valfield = abap_true, ]-value = 'AA'. CALL FUNCTION 'F4IF_START_VALUE_REQUEST' EXPORTING shlp = ls_shlp_descr disponly = abap_false maxrecords = 0 multisel = space IMPORTING rc = lv_rc TABLES return_values = lt_values. p_carrid = VALUE #( lt_values[ fieldname = 'CARRID' ]-fieldval OPTIONAL ). |