SAP Function Modules

HR_IT_CUD_SAPSCRIPT SAP Function module







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

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


Pattern for FM HR_IT_CUD_SAPSCRIPT - HR IT CUD SAPSCRIPT





CALL FUNCTION 'HR_IT_CUD_SAPSCRIPT' "
  EXPORTING
    pt_pernr =                  " pitud_pernr_table
    p_typro =                   " p_99s_typro
    p_stats =                   " p_99s_stats
*   pt_stat_lines =             " table
*   p_n_pernr_per_spool = 0     " i
    pr_error_log =              " if_hrpayit_logger
    p_batch =                   " sy-batch
    pt_t5itub =                 " pitud_tab_t5itub
    p_form =                    " p15_form
  IMPORTING
    p_error =                   " pitud_error
    .  "  HR_IT_CUD_SAPSCRIPT

ABAP code example for Function Module HR_IT_CUD_SAPSCRIPT





The ABAP code below is a full code listing to execute function module HR_IT_CUD_SAPSCRIPT 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_p_error  TYPE PITUD_ERROR .

DATA(ld_pt_pernr) = 'Check type of data required'.
DATA(ld_p_typro) = 'Check type of data required'.
DATA(ld_p_stats) = 'Check type of data required'.
DATA(ld_pt_stat_lines) = 'Check type of data required'.
DATA(ld_p_n_pernr_per_spool) = 'Check type of data required'.
DATA(ld_pr_error_log) = 'Check type of data required'.
DATA(ld_p_batch) = 'some text here'.
DATA(ld_pt_t5itub) = 'some text here'.
DATA(ld_p_form) = 'some text here'. . CALL FUNCTION 'HR_IT_CUD_SAPSCRIPT' EXPORTING pt_pernr = ld_pt_pernr p_typro = ld_p_typro p_stats = ld_p_stats * pt_stat_lines = ld_pt_stat_lines * p_n_pernr_per_spool = ld_p_n_pernr_per_spool pr_error_log = ld_pr_error_log p_batch = ld_p_batch pt_t5itub = ld_pt_t5itub p_form = ld_p_form IMPORTING p_error = ld_p_error . " HR_IT_CUD_SAPSCRIPT
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_p_error  TYPE PITUD_ERROR ,
ld_pt_pernr  TYPE PITUD_PERNR_TABLE ,
ld_p_typro  TYPE P_99S_TYPRO ,
ld_p_stats  TYPE P_99S_STATS ,
ld_pt_stat_lines  TYPE TABLE ,
ld_p_n_pernr_per_spool  TYPE I ,
ld_pr_error_log  TYPE IF_HRPAYIT_LOGGER ,
ld_p_batch  TYPE SY-BATCH ,
ld_pt_t5itub  TYPE PITUD_TAB_T5ITUB ,
ld_p_form  TYPE P15_FORM .

ld_pt_pernr = 'some text here'.
ld_p_typro = 'some text here'.
ld_p_stats = 'some text here'.
ld_pt_stat_lines = 'some text here'.
ld_p_n_pernr_per_spool = 'some text here'.
ld_pr_error_log = 'some text here'.
ld_p_batch = 'some text here'.
ld_pt_t5itub = 'some text here'.
ld_p_form = '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 HR_IT_CUD_SAPSCRIPT or its description.