FKK_SAMPLE_1783 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name FKK_SAMPLE_1783 into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
FKREPT
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'FKK_SAMPLE_1783' "
* EXPORTING
* i_laufd = " fkkcocc-laufd Date ID
* i_laufi = " fkkcocc-laufi Additional Identification Characteristic
* i_wmode = " fkkoogen-wmode Edit Mode
* i_copyd = " fkkcocc-copyd Date ID
* i_copyi = " fkkcocc-copyi Additional Identification Characteristic
* i_aktyp = " aktyp_kk Mass Activity Type
* i_source_laufd = " laufd_kk Date ID
* i_source_laufi = " laufi_kk Additional Identification Characteristic
* i_target_laufd = " laufd_kk Date ID
* i_target_laufi = " laufi_kk Additional Identification Characteristic
* i_number_of_days = " align_number_kk Number of Days by Which a Parameter Record is Aligned
EXCEPTIONS
SOURCE_NOT_FOUND = 1 " Source Not Found
TARGET_STORE_PROBLEM = 2 " Problems with Storing
. " FKK_SAMPLE_1783
The ABAP code below is a full code listing to execute function module FKK_SAMPLE_1783 including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
DATA(ld_i_laufd) = 20210129
DATA(ld_i_laufi) = some text here
DATA(ld_i_wmode) = some text here
DATA(ld_i_copyd) = 20210129
DATA(ld_i_copyi) = some text here
DATA(ld_i_aktyp) = 'Check type of data required'.
DATA(ld_i_source_laufd) = 'Check type of data required'.
DATA(ld_i_source_laufi) = 'Check type of data required'.
DATA(ld_i_target_laufd) = 'Check type of data required'.
DATA(ld_i_target_laufi) = 'Check type of data required'.
DATA(ld_i_number_of_days) = 'Check type of data required'. . CALL FUNCTION 'FKK_SAMPLE_1783' * EXPORTING * i_laufd = ld_i_laufd * i_laufi = ld_i_laufi * i_wmode = ld_i_wmode * i_copyd = ld_i_copyd * i_copyi = ld_i_copyi * i_aktyp = ld_i_aktyp * i_source_laufd = ld_i_source_laufd * i_source_laufi = ld_i_source_laufi * i_target_laufd = ld_i_target_laufd * i_target_laufi = ld_i_target_laufi * i_number_of_days = ld_i_number_of_days EXCEPTIONS SOURCE_NOT_FOUND = 1 TARGET_STORE_PROBLEM = 2 . " FKK_SAMPLE_1783
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_i_laufd | TYPE FKKCOCC-LAUFD , |
| ld_i_laufi | TYPE FKKCOCC-LAUFI , |
| ld_i_wmode | TYPE FKKOOGEN-WMODE , |
| ld_i_copyd | TYPE FKKCOCC-COPYD , |
| ld_i_copyi | TYPE FKKCOCC-COPYI , |
| ld_i_aktyp | TYPE AKTYP_KK , |
| ld_i_source_laufd | TYPE LAUFD_KK , |
| ld_i_source_laufi | TYPE LAUFI_KK , |
| ld_i_target_laufd | TYPE LAUFD_KK , |
| ld_i_target_laufi | TYPE LAUFI_KK , |
| ld_i_number_of_days | TYPE ALIGN_NUMBER_KK . |
The function module processed in event 1783 is used by the main
activities program to move the run parameters for mass receipt printing.
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FKK_SAMPLE_1783 or its description.