SAP Function Modules

EXIT_RPCGUDI0_036 SAP Function module







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

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


Pattern for FM EXIT_RPCGUDI0_036 - EXIT RPCGUDI0 036





CALL FUNCTION 'EXIT_RPCGUDI0_036' "
  EXPORTING
    p_pernr =                   " pernr-pernr
    p_waers =                   " waers
    p_begda =                   " sy-datum
    p_endda =                   " sy-datum
    p_altri =                   " t5itw5-cdqua
    p_primoacc =                " t5itw5-code
    p_secondoacc =              " t5itw5-code
    p_accsospesi =              " t5itw5-code
    p_credirpef =               " t5itw5-code
    p_credadreg =               " t5itw5-code
    p_credadcom =               " t5itw5-code
  TABLES
    p_rt_tab =                  "
    p_crt_tab =                 "
    p_re5itw5 =                 " t5itw5
    p_cudtabtax =               "
    p_p0483 =                   " p0483
    p_comp_result =             "
  EXCEPTIONS
    USED_USER_EXIT = 1          "
    .  "  EXIT_RPCGUDI0_036

ABAP code example for Function Module EXIT_RPCGUDI0_036





The ABAP code below is a full code listing to execute function module EXIT_RPCGUDI0_036 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_p_rt_tab  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_p_rt_tab  LIKE LINE OF it_p_rt_tab ,
it_p_crt_tab  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_p_crt_tab  LIKE LINE OF it_p_crt_tab ,
it_p_re5itw5  TYPE STANDARD TABLE OF T5ITW5,"TABLES PARAM
wa_p_re5itw5  LIKE LINE OF it_p_re5itw5 ,
it_p_cudtabtax  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_p_cudtabtax  LIKE LINE OF it_p_cudtabtax ,
it_p_p0483  TYPE STANDARD TABLE OF P0483,"TABLES PARAM
wa_p_p0483  LIKE LINE OF it_p_p0483 ,
it_p_comp_result  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_p_comp_result  LIKE LINE OF it_p_comp_result .


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

SELECT single CDQUA
FROM T5ITW5
INTO @DATA(ld_p_altri).


SELECT single CODE
FROM T5ITW5
INTO @DATA(ld_p_primoacc).


SELECT single CODE
FROM T5ITW5
INTO @DATA(ld_p_secondoacc).


SELECT single CODE
FROM T5ITW5
INTO @DATA(ld_p_accsospesi).


SELECT single CODE
FROM T5ITW5
INTO @DATA(ld_p_credirpef).


SELECT single CODE
FROM T5ITW5
INTO @DATA(ld_p_credadreg).


SELECT single CODE
FROM T5ITW5
INTO @DATA(ld_p_credadcom).


"populate fields of struture and append to itab
append wa_p_rt_tab to it_p_rt_tab.

"populate fields of struture and append to itab
append wa_p_crt_tab to it_p_crt_tab.

"populate fields of struture and append to itab
append wa_p_re5itw5 to it_p_re5itw5.

"populate fields of struture and append to itab
append wa_p_cudtabtax to it_p_cudtabtax.

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

"populate fields of struture and append to itab
append wa_p_comp_result to it_p_comp_result. . CALL FUNCTION 'EXIT_RPCGUDI0_036' EXPORTING p_pernr = ld_p_pernr p_waers = ld_p_waers p_begda = ld_p_begda p_endda = ld_p_endda p_altri = ld_p_altri p_primoacc = ld_p_primoacc p_secondoacc = ld_p_secondoacc p_accsospesi = ld_p_accsospesi p_credirpef = ld_p_credirpef p_credadreg = ld_p_credadreg p_credadcom = ld_p_credadcom TABLES p_rt_tab = it_p_rt_tab p_crt_tab = it_p_crt_tab p_re5itw5 = it_p_re5itw5 p_cudtabtax = it_p_cudtabtax p_p0483 = it_p_p0483 p_comp_result = it_p_comp_result EXCEPTIONS USED_USER_EXIT = 1 . " EXIT_RPCGUDI0_036
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_p_rt_tab  TYPE STANDARD TABLE OF STRING ,
wa_p_rt_tab  LIKE LINE OF it_p_rt_tab,
ld_p_waers  TYPE WAERS ,
it_p_crt_tab  TYPE STANDARD TABLE OF STRING ,
wa_p_crt_tab  LIKE LINE OF it_p_crt_tab,
ld_p_begda  TYPE SY-DATUM ,
it_p_re5itw5  TYPE STANDARD TABLE OF T5ITW5 ,
wa_p_re5itw5  LIKE LINE OF it_p_re5itw5,
ld_p_endda  TYPE SY-DATUM ,
it_p_cudtabtax  TYPE STANDARD TABLE OF STRING ,
wa_p_cudtabtax  LIKE LINE OF it_p_cudtabtax,
ld_p_altri  TYPE T5ITW5-CDQUA ,
it_p_p0483  TYPE STANDARD TABLE OF P0483 ,
wa_p_p0483  LIKE LINE OF it_p_p0483,
ld_p_primoacc  TYPE T5ITW5-CODE ,
it_p_comp_result  TYPE STANDARD TABLE OF STRING ,
wa_p_comp_result  LIKE LINE OF it_p_comp_result,
ld_p_secondoacc  TYPE T5ITW5-CODE ,
ld_p_accsospesi  TYPE T5ITW5-CODE ,
ld_p_credirpef  TYPE T5ITW5-CODE ,
ld_p_credadreg  TYPE T5ITW5-CODE ,
ld_p_credadcom  TYPE T5ITW5-CODE .


ld_p_pernr = Check type of data required

"populate fields of struture and append to itab
append wa_p_rt_tab to it_p_rt_tab.
ld_p_waers = '20210129'.

"populate fields of struture and append to itab
append wa_p_crt_tab to it_p_crt_tab.
ld_p_begda = '20210129'.

"populate fields of struture and append to itab
append wa_p_re5itw5 to it_p_re5itw5.
ld_p_endda = '20210129'.

"populate fields of struture and append to itab
append wa_p_cudtabtax to it_p_cudtabtax.

SELECT single CDQUA
FROM T5ITW5
INTO ld_p_altri.


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

SELECT single CODE
FROM T5ITW5
INTO ld_p_primoacc.


"populate fields of struture and append to itab
append wa_p_comp_result to it_p_comp_result.

SELECT single CODE
FROM T5ITW5
INTO ld_p_secondoacc.


SELECT single CODE
FROM T5ITW5
INTO ld_p_accsospesi.


SELECT single CODE
FROM T5ITW5
INTO ld_p_credirpef.


SELECT single CODE
FROM T5ITW5
INTO ld_p_credadreg.


SELECT single CODE
FROM T5ITW5
INTO ld_p_credadcom.

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