SAP Function Modules

HRPY_AU_BDC_0626_PRE_40B_00 SAP Function module - Build input data to create infotype 0626 in batch mode







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

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


Pattern for FM HRPY_AU_BDC_0626_PRE_40B_00 - HRPY AU BDC 0626 PRE 40B 00





CALL FUNCTION 'HRPY_AU_BDC_0626_PRE_40B_00' "Build input data to create infotype 0626 in batch mode
  EXPORTING
    l_pernr =                   "
    okcode =                    "
    l_p0626 =                   " p0626         HR Master Record for Infotype 0626
    records_to_skip =           "
  TABLES
    bdc_tab =                   " bdcdata       Batch input: New table field structure
    p0626a =                    " p0626         HR Master Record for Infotype 0626
    allowance_tab =             " p13_psallow   Payment summary allowances
    .  "  HRPY_AU_BDC_0626_PRE_40B_00

ABAP code example for Function Module HRPY_AU_BDC_0626_PRE_40B_00





The ABAP code below is a full code listing to execute function module HRPY_AU_BDC_0626_PRE_40B_00 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_bdc_tab  TYPE STANDARD TABLE OF BDCDATA,"TABLES PARAM
wa_bdc_tab  LIKE LINE OF it_bdc_tab ,
it_p0626a  TYPE STANDARD TABLE OF P0626,"TABLES PARAM
wa_p0626a  LIKE LINE OF it_p0626a ,
it_allowance_tab  TYPE STANDARD TABLE OF P13_PSALLOW,"TABLES PARAM
wa_allowance_tab  LIKE LINE OF it_allowance_tab .

DATA(ld_l_pernr) = 'some text here'.
DATA(ld_okcode) = 'some text here'.
DATA(ld_l_p0626) = 'Check type of data required'.
DATA(ld_records_to_skip) = 'some text here'.

"populate fields of struture and append to itab
append wa_bdc_tab to it_bdc_tab.

"populate fields of struture and append to itab
append wa_p0626a to it_p0626a.

"populate fields of struture and append to itab
append wa_allowance_tab to it_allowance_tab. . CALL FUNCTION 'HRPY_AU_BDC_0626_PRE_40B_00' EXPORTING l_pernr = ld_l_pernr okcode = ld_okcode l_p0626 = ld_l_p0626 records_to_skip = ld_records_to_skip TABLES bdc_tab = it_bdc_tab p0626a = it_p0626a allowance_tab = it_allowance_tab . " HRPY_AU_BDC_0626_PRE_40B_00
IF SY-SUBRC EQ 0. "All OK 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_l_pernr  TYPE STRING ,
it_bdc_tab  TYPE STANDARD TABLE OF BDCDATA ,
wa_bdc_tab  LIKE LINE OF it_bdc_tab,
ld_okcode  TYPE STRING ,
it_p0626a  TYPE STANDARD TABLE OF P0626 ,
wa_p0626a  LIKE LINE OF it_p0626a,
ld_l_p0626  TYPE P0626 ,
it_allowance_tab  TYPE STANDARD TABLE OF P13_PSALLOW ,
wa_allowance_tab  LIKE LINE OF it_allowance_tab,
ld_records_to_skip  TYPE STRING .

ld_l_pernr = 'some text here'.

"populate fields of struture and append to itab
append wa_bdc_tab to it_bdc_tab.
ld_okcode = 'some text here'.

"populate fields of struture and append to itab
append wa_p0626a to it_p0626a.
ld_l_p0626 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_allowance_tab to it_allowance_tab.
ld_records_to_skip = 'some text here'.

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