SAP HR_IT_SAVE_CUD2002_DATA Function Module for









HR_IT_SAVE_CUD2002_DATA is a standard hr it save cud2002 data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for hr it save cud2002 data FM, simply by entering the name HR_IT_SAVE_CUD2002_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: 0PI6
Program Name: SAPL0PI6
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_IT_SAVE_CUD2002_DATA pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'HR_IT_SAVE_CUD2002_DATA'"
EXPORTING
* TABLE1_NAME = 'VARTAB' "
* X_EXPORT_NAME_2MEM = ' ' "
* P_TMS_TYPE = 'CUDA02' "
* TABLE2_NAME = 'TABENTE' "
* TABLE3_NAME = 'BREAK' "
* TABLE4_NAME = 'BREAKAI' "
* TABLE5_NAME = "
* TABLE6_NAME = "
* TABLE7_NAME = "
* X_SEND_NAME_BY_MAIL = ' ' "
* USER = ' ' "

TABLES
TABLE1 = "
* TABLE2 = "
* TABLE3 = "
* TABLE4 = "
* TABLE5 = "
* TABLE6 = "
* TABLE7 = "

EXCEPTIONS
PROGRAM_ERROR = 1 TEMSEFILE_CREATION_ERROR = 2 TEMSEFILE_WRITE_ERROR = 3 EXPORT_NAME_ERROR = 4 SEND_NAME_ERROR = 5 TEMSEFILE_CLOSE_ERROR = 6
.



IMPORTING Parameters details for HR_IT_SAVE_CUD2002_DATA

TABLE1_NAME -

Data type: TABNAME16
Default: 'VARTAB'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_EXPORT_NAME_2MEM -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_TMS_TYPE -

Data type: RPTSTYPE-OBJKN
Default: 'CUDA02'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE2_NAME -

Data type: TABNAME16
Default: 'TABENTE'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE3_NAME -

Data type: TABNAME16
Default: 'BREAK'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE4_NAME -

Data type: TABNAME16
Default: 'BREAKAI'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE5_NAME -

Data type: TABNAME16
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE6_NAME -

Data type: TABNAME16
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE7_NAME -

Data type: TABNAME16
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_SEND_NAME_BY_MAIL -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

USER -

Data type: SY-UNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for HR_IT_SAVE_CUD2002_DATA

TABLE1 -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TABLE2 -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE3 -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE4 -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE5 -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE6 -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE7 -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

PROGRAM_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TEMSEFILE_CREATION_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TEMSEFILE_WRITE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORT_NAME_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SEND_NAME_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TEMSEFILE_CLOSE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HR_IT_SAVE_CUD2002_DATA Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_table1  TYPE STANDARD TABLE OF STRING, "   
lv_table1_name  TYPE TABNAME16, "   'VARTAB'
lv_program_error  TYPE TABNAME16, "   
lv_x_export_name_2mem  TYPE C, "   SPACE
lv_p_tms_type  TYPE RPTSTYPE-OBJKN, "   'CUDA02'
lt_table2  TYPE STANDARD TABLE OF RPTSTYPE, "   
lv_table2_name  TYPE TABNAME16, "   'TABENTE'
lv_temsefile_creation_error  TYPE TABNAME16, "   
lt_table3  TYPE STANDARD TABLE OF TABNAME16, "   
lv_table3_name  TYPE TABNAME16, "   'BREAK'
lv_temsefile_write_error  TYPE TABNAME16, "   
lt_table4  TYPE STANDARD TABLE OF TABNAME16, "   
lv_table4_name  TYPE TABNAME16, "   'BREAKAI'
lv_export_name_error  TYPE TABNAME16, "   
lt_table5  TYPE STANDARD TABLE OF TABNAME16, "   
lv_table5_name  TYPE TABNAME16, "   
lv_send_name_error  TYPE TABNAME16, "   
lt_table6  TYPE STANDARD TABLE OF TABNAME16, "   
lv_table6_name  TYPE TABNAME16, "   
lv_temsefile_close_error  TYPE TABNAME16, "   
lt_table7  TYPE STANDARD TABLE OF TABNAME16, "   
lv_table7_name  TYPE TABNAME16, "   
lv_x_send_name_by_mail  TYPE C, "   SPACE
lv_user  TYPE SY-UNAME. "   SPACE

  CALL FUNCTION 'HR_IT_SAVE_CUD2002_DATA'  "
    EXPORTING
         TABLE1_NAME = lv_table1_name
         X_EXPORT_NAME_2MEM = lv_x_export_name_2mem
         P_TMS_TYPE = lv_p_tms_type
         TABLE2_NAME = lv_table2_name
         TABLE3_NAME = lv_table3_name
         TABLE4_NAME = lv_table4_name
         TABLE5_NAME = lv_table5_name
         TABLE6_NAME = lv_table6_name
         TABLE7_NAME = lv_table7_name
         X_SEND_NAME_BY_MAIL = lv_x_send_name_by_mail
         USER = lv_user
    TABLES
         TABLE1 = lt_table1
         TABLE2 = lt_table2
         TABLE3 = lt_table3
         TABLE4 = lt_table4
         TABLE5 = lt_table5
         TABLE6 = lt_table6
         TABLE7 = lt_table7
    EXCEPTIONS
        PROGRAM_ERROR = 1
        TEMSEFILE_CREATION_ERROR = 2
        TEMSEFILE_WRITE_ERROR = 3
        EXPORT_NAME_ERROR = 4
        SEND_NAME_ERROR = 5
        TEMSEFILE_CLOSE_ERROR = 6
. " HR_IT_SAVE_CUD2002_DATA




ABAP code using 7.40 inline data declarations to call FM HR_IT_SAVE_CUD2002_DATA

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
DATA(ld_table1_name) = 'VARTAB'.
 
 
DATA(ld_x_export_name_2mem) = ' '.
 
"SELECT single OBJKN FROM RPTSTYPE INTO @DATA(ld_p_tms_type).
DATA(ld_p_tms_type) = 'CUDA02'.
 
 
DATA(ld_table2_name) = 'TABENTE'.
 
 
 
DATA(ld_table3_name) = 'BREAK'.
 
 
 
DATA(ld_table4_name) = 'BREAKAI'.
 
 
 
 
 
 
 
 
 
 
DATA(ld_x_send_name_by_mail) = ' '.
 
"SELECT single UNAME FROM SY INTO @DATA(ld_user).
DATA(ld_user) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!