SAP Function Modules

EXIT_RPCKUDI0_051 SAP Function module







EXIT_RPCKUDI0_051 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 EXIT_RPCKUDI0_051 into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: XKI0
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM EXIT_RPCKUDI0_051 - EXIT RPCKUDI0 051





CALL FUNCTION 'EXIT_RPCKUDI0_051' "
  EXPORTING
*   p_pernr =                   " pernr-pernr
    p_begda =                   " sy-datum
    p_endda =                   " sy-datum
  TABLES
    cc_data =                   "
    p_p0000 =                   " p0000
    p_p0001 =                   " p0001
    p_p0002 =                   " p0002
    p_p0003 =                   " p0003
    p_p0006 =                   " p0006
    p_p0016 =                   " p0016
    p_p0031 =                   " p0031
    p_p0021 =                   " p0021
    p_p0154 =                   " p0154
    p_p0155 =                   " p0155
    p_p0156 =                   " p0156
    p_p0159 =                   " p0159
    p_p0160 =                   " p0160
    p_p0305 =                   " p0305
    p_p0306 =                   " p0306
    p_p0421 =                   " p0421
    p_p0483 =                   " p0483
  EXCEPTIONS
    USED_USER_EXIT = 1          "
    .  "  EXIT_RPCKUDI0_051

ABAP code example for Function Module EXIT_RPCKUDI0_051





The ABAP code below is a full code listing to execute function module EXIT_RPCKUDI0_051 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:
it_cc_data  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_cc_data  LIKE LINE OF it_cc_data ,
it_p_p0000  TYPE STANDARD TABLE OF P0000,"TABLES PARAM
wa_p_p0000  LIKE LINE OF it_p_p0000 ,
it_p_p0001  TYPE STANDARD TABLE OF P0001,"TABLES PARAM
wa_p_p0001  LIKE LINE OF it_p_p0001 ,
it_p_p0002  TYPE STANDARD TABLE OF P0002,"TABLES PARAM
wa_p_p0002  LIKE LINE OF it_p_p0002 ,
it_p_p0003  TYPE STANDARD TABLE OF P0003,"TABLES PARAM
wa_p_p0003  LIKE LINE OF it_p_p0003 ,
it_p_p0006  TYPE STANDARD TABLE OF P0006,"TABLES PARAM
wa_p_p0006  LIKE LINE OF it_p_p0006 ,
it_p_p0016  TYPE STANDARD TABLE OF P0016,"TABLES PARAM
wa_p_p0016  LIKE LINE OF it_p_p0016 ,
it_p_p0031  TYPE STANDARD TABLE OF P0031,"TABLES PARAM
wa_p_p0031  LIKE LINE OF it_p_p0031 ,
it_p_p0021  TYPE STANDARD TABLE OF P0021,"TABLES PARAM
wa_p_p0021  LIKE LINE OF it_p_p0021 ,
it_p_p0154  TYPE STANDARD TABLE OF P0154,"TABLES PARAM
wa_p_p0154  LIKE LINE OF it_p_p0154 ,
it_p_p0155  TYPE STANDARD TABLE OF P0155,"TABLES PARAM
wa_p_p0155  LIKE LINE OF it_p_p0155 ,
it_p_p0156  TYPE STANDARD TABLE OF P0156,"TABLES PARAM
wa_p_p0156  LIKE LINE OF it_p_p0156 ,
it_p_p0159  TYPE STANDARD TABLE OF P0159,"TABLES PARAM
wa_p_p0159  LIKE LINE OF it_p_p0159 ,
it_p_p0160  TYPE STANDARD TABLE OF P0160,"TABLES PARAM
wa_p_p0160  LIKE LINE OF it_p_p0160 ,
it_p_p0305  TYPE STANDARD TABLE OF P0305,"TABLES PARAM
wa_p_p0305  LIKE LINE OF it_p_p0305 ,
it_p_p0306  TYPE STANDARD TABLE OF P0306,"TABLES PARAM
wa_p_p0306  LIKE LINE OF it_p_p0306 ,
it_p_p0421  TYPE STANDARD TABLE OF P0421,"TABLES PARAM
wa_p_p0421  LIKE LINE OF it_p_p0421 ,
it_p_p0483  TYPE STANDARD TABLE OF P0483,"TABLES PARAM
wa_p_p0483  LIKE LINE OF it_p_p0483 .


DATA(ld_p_pernr) = Check type of data required
DATA(ld_p_begda) = '20210129'.
DATA(ld_p_endda) = '20210129'.

"populate fields of struture and append to itab
append wa_cc_data to it_cc_data.

"populate fields of struture and append to itab
append wa_p_p0000 to it_p_p0000.

"populate fields of struture and append to itab
append wa_p_p0001 to it_p_p0001.

"populate fields of struture and append to itab
append wa_p_p0002 to it_p_p0002.

"populate fields of struture and append to itab
append wa_p_p0003 to it_p_p0003.

"populate fields of struture and append to itab
append wa_p_p0006 to it_p_p0006.

"populate fields of struture and append to itab
append wa_p_p0016 to it_p_p0016.

"populate fields of struture and append to itab
append wa_p_p0031 to it_p_p0031.

"populate fields of struture and append to itab
append wa_p_p0021 to it_p_p0021.

"populate fields of struture and append to itab
append wa_p_p0154 to it_p_p0154.

"populate fields of struture and append to itab
append wa_p_p0155 to it_p_p0155.

"populate fields of struture and append to itab
append wa_p_p0156 to it_p_p0156.

"populate fields of struture and append to itab
append wa_p_p0159 to it_p_p0159.

"populate fields of struture and append to itab
append wa_p_p0160 to it_p_p0160.

"populate fields of struture and append to itab
append wa_p_p0305 to it_p_p0305.

"populate fields of struture and append to itab
append wa_p_p0306 to it_p_p0306.

"populate fields of struture and append to itab
append wa_p_p0421 to it_p_p0421.

"populate fields of struture and append to itab
append wa_p_p0483 to it_p_p0483. . CALL FUNCTION 'EXIT_RPCKUDI0_051' EXPORTING * p_pernr = ld_p_pernr p_begda = ld_p_begda p_endda = ld_p_endda TABLES cc_data = it_cc_data p_p0000 = it_p_p0000 p_p0001 = it_p_p0001 p_p0002 = it_p_p0002 p_p0003 = it_p_p0003 p_p0006 = it_p_p0006 p_p0016 = it_p_p0016 p_p0031 = it_p_p0031 p_p0021 = it_p_p0021 p_p0154 = it_p_p0154 p_p0155 = it_p_p0155 p_p0156 = it_p_p0156 p_p0159 = it_p_p0159 p_p0160 = it_p_p0160 p_p0305 = it_p_p0305 p_p0306 = it_p_p0306 p_p0421 = it_p_p0421 p_p0483 = it_p_p0483 EXCEPTIONS USED_USER_EXIT = 1 . " EXIT_RPCKUDI0_051
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_p_pernr  TYPE PERNR-PERNR ,
it_cc_data  TYPE STANDARD TABLE OF STRING ,
wa_cc_data  LIKE LINE OF it_cc_data,
ld_p_begda  TYPE SY-DATUM ,
it_p_p0000  TYPE STANDARD TABLE OF P0000 ,
wa_p_p0000  LIKE LINE OF it_p_p0000,
ld_p_endda  TYPE SY-DATUM ,
it_p_p0001  TYPE STANDARD TABLE OF P0001 ,
wa_p_p0001  LIKE LINE OF it_p_p0001,
it_p_p0002  TYPE STANDARD TABLE OF P0002 ,
wa_p_p0002  LIKE LINE OF it_p_p0002,
it_p_p0003  TYPE STANDARD TABLE OF P0003 ,
wa_p_p0003  LIKE LINE OF it_p_p0003,
it_p_p0006  TYPE STANDARD TABLE OF P0006 ,
wa_p_p0006  LIKE LINE OF it_p_p0006,
it_p_p0016  TYPE STANDARD TABLE OF P0016 ,
wa_p_p0016  LIKE LINE OF it_p_p0016,
it_p_p0031  TYPE STANDARD TABLE OF P0031 ,
wa_p_p0031  LIKE LINE OF it_p_p0031,
it_p_p0021  TYPE STANDARD TABLE OF P0021 ,
wa_p_p0021  LIKE LINE OF it_p_p0021,
it_p_p0154  TYPE STANDARD TABLE OF P0154 ,
wa_p_p0154  LIKE LINE OF it_p_p0154,
it_p_p0155  TYPE STANDARD TABLE OF P0155 ,
wa_p_p0155  LIKE LINE OF it_p_p0155,
it_p_p0156  TYPE STANDARD TABLE OF P0156 ,
wa_p_p0156  LIKE LINE OF it_p_p0156,
it_p_p0159  TYPE STANDARD TABLE OF P0159 ,
wa_p_p0159  LIKE LINE OF it_p_p0159,
it_p_p0160  TYPE STANDARD TABLE OF P0160 ,
wa_p_p0160  LIKE LINE OF it_p_p0160,
it_p_p0305  TYPE STANDARD TABLE OF P0305 ,
wa_p_p0305  LIKE LINE OF it_p_p0305,
it_p_p0306  TYPE STANDARD TABLE OF P0306 ,
wa_p_p0306  LIKE LINE OF it_p_p0306,
it_p_p0421  TYPE STANDARD TABLE OF P0421 ,
wa_p_p0421  LIKE LINE OF it_p_p0421,
it_p_p0483  TYPE STANDARD TABLE OF P0483 ,
wa_p_p0483  LIKE LINE OF it_p_p0483.


ld_p_pernr = Check type of data required

"populate fields of struture and append to itab
append wa_cc_data to it_cc_data.
ld_p_begda = '20210129'.

"populate fields of struture and append to itab
append wa_p_p0000 to it_p_p0000.
ld_p_endda = '20210129'.

"populate fields of struture and append to itab
append wa_p_p0001 to it_p_p0001.

"populate fields of struture and append to itab
append wa_p_p0002 to it_p_p0002.

"populate fields of struture and append to itab
append wa_p_p0003 to it_p_p0003.

"populate fields of struture and append to itab
append wa_p_p0006 to it_p_p0006.

"populate fields of struture and append to itab
append wa_p_p0016 to it_p_p0016.

"populate fields of struture and append to itab
append wa_p_p0031 to it_p_p0031.

"populate fields of struture and append to itab
append wa_p_p0021 to it_p_p0021.

"populate fields of struture and append to itab
append wa_p_p0154 to it_p_p0154.

"populate fields of struture and append to itab
append wa_p_p0155 to it_p_p0155.

"populate fields of struture and append to itab
append wa_p_p0156 to it_p_p0156.

"populate fields of struture and append to itab
append wa_p_p0159 to it_p_p0159.

"populate fields of struture and append to itab
append wa_p_p0160 to it_p_p0160.

"populate fields of struture and append to itab
append wa_p_p0305 to it_p_p0305.

"populate fields of struture and append to itab
append wa_p_p0306 to it_p_p0306.

"populate fields of struture and append to itab
append wa_p_p0421 to it_p_p0421.

"populate fields of struture and append to itab
append wa_p_p0483 to it_p_p0483.

Contribute (Add Comments)

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 EXIT_RPCKUDI0_051 or its description.