Разработка интерфейса и формуляра осуществляется на транзакции SFP. Далее необходимо получить функцию, для вызова формуляра и передачи ему параметров.
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 32 33 34 35 36 37 38 39 40 41 42 43 |
REPORT ztest_all. DATA sfpoutputparams TYPE sfpoutputparams. sfpoutputparams-nodialog = ''. sfpoutputparams-preview = 'X'. sfpoutputparams-nopreview = ''. sfpoutputparams-reqimm = 'X'. CALL FUNCTION 'FP_JOB_OPEN' CHANGING ie_outputparams = sfpoutputparams EXCEPTIONS cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 OTHERS = 5. DATA p_funcname TYPE funcname. CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING i_name = 'ZWMS_PRINT_83' IMPORTING e_funcname = p_funcname. DATA print_head TYPE zswms_print_83_head. DATA t_print_item TYPE zswms_print_item_83_tt WITH HEADER LINE. print_head-lgort_out = '001'. CALL FUNCTION p_funcname EXPORTING head = print_head items_83 = t_print_item[]. CALL FUNCTION 'FP_JOB_CLOSE' EXCEPTIONS usage_error = 1 system_error = 2 internal_error = 3 OTHERS = 4. |