SAP HR_CREATE_DDS_DATASET_A Function Module for









HR_CREATE_DDS_DATASET_A is a standard hr create dds dataset a 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 create dds dataset a FM, simply by entering the name HR_CREATE_DDS_DATASET_A into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_CREATE_DDS_DATASET_A 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_CREATE_DDS_DATASET_A'"
EXPORTING
* DATUM = SY-DATUM "
* USER = SY-UNAME "
* UZEIT = SY-UZEIT "
* TEST = 'X' "
* PROT = ' ' "
* ESIMU = ' ' "

IMPORTING
CREATED = "
OVERFLOW = "
REF_I5A1O = "

TABLES
* DDS_BG = "
* DDS_BN = "
* DDS_EF = "
* DDS_VM = "
* DDS_SM = "

EXCEPTIONS
LFD_NR_OVERFLOW = 1 T5A1K_ERROR = 2 T5A1M_ERROR = 3 T5A1O_ENQUE_FAILED = 4 IF_VIOLATED_CONDITION = 5
.



IMPORTING Parameters details for HR_CREATE_DDS_DATASET_A

DATUM -

Data type: T5A1K-BEGDA
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

USER -

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

UZEIT -

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

TEST -

Data type: T5A1O-TESTK
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROT -

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

ESIMU -

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

EXPORTING Parameters details for HR_CREATE_DDS_DATASET_A

CREATED -

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

OVERFLOW -

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

REF_I5A1O -

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

TABLES Parameters details for HR_CREATE_DDS_DATASET_A

DDS_BG -

Data type:
Optional: Yes
Call by Reference: Yes

DDS_BN -

Data type:
Optional: Yes
Call by Reference: Yes

DDS_EF -

Data type:
Optional: Yes
Call by Reference: Yes

DDS_VM -

Data type:
Optional: Yes
Call by Reference: Yes

DDS_SM -

Data type:
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

LFD_NR_OVERFLOW -

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

T5A1K_ERROR -

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

T5A1M_ERROR -

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

T5A1O_ENQUE_FAILED -

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

IF_VIOLATED_CONDITION -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_CREATE_DDS_DATASET_A 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:
lv_datum  TYPE T5A1K-BEGDA, "   SY-DATUM
lt_dds_bg  TYPE STANDARD TABLE OF T5A1K, "   
lv_created  TYPE I, "   
lv_lfd_nr_overflow  TYPE I, "   
lv_user  TYPE T5A1O-UNAME, "   SY-UNAME
lt_dds_bn  TYPE STANDARD TABLE OF T5A1O, "   
lv_overflow  TYPE I, "   
lv_t5a1k_error  TYPE I, "   
lv_uzeit  TYPE T5A1O-UZEIT, "   SY-UZEIT
lt_dds_ef  TYPE STANDARD TABLE OF T5A1O, "   
lv_ref_i5a1o  TYPE DATA, "   
lv_t5a1m_error  TYPE DATA, "   
lv_test  TYPE T5A1O-TESTK, "   'X'
lt_dds_vm  TYPE STANDARD TABLE OF T5A1O, "   
lv_t5a1o_enque_failed  TYPE T5A1O, "   
lv_prot  TYPE T5A1O, "   ' '
lt_dds_sm  TYPE STANDARD TABLE OF T5A1O, "   
lv_if_violated_condition  TYPE T5A1O, "   
lv_esimu  TYPE XFELD. "   ' '

  CALL FUNCTION 'HR_CREATE_DDS_DATASET_A'  "
    EXPORTING
         DATUM = lv_datum
         USER = lv_user
         UZEIT = lv_uzeit
         TEST = lv_test
         PROT = lv_prot
         ESIMU = lv_esimu
    IMPORTING
         CREATED = lv_created
         OVERFLOW = lv_overflow
         REF_I5A1O = lv_ref_i5a1o
    TABLES
         DDS_BG = lt_dds_bg
         DDS_BN = lt_dds_bn
         DDS_EF = lt_dds_ef
         DDS_VM = lt_dds_vm
         DDS_SM = lt_dds_sm
    EXCEPTIONS
        LFD_NR_OVERFLOW = 1
        T5A1K_ERROR = 2
        T5A1M_ERROR = 3
        T5A1O_ENQUE_FAILED = 4
        IF_VIOLATED_CONDITION = 5
. " HR_CREATE_DDS_DATASET_A




ABAP code using 7.40 inline data declarations to call FM HR_CREATE_DDS_DATASET_A

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.

"SELECT single BEGDA FROM T5A1K INTO @DATA(ld_datum).
DATA(ld_datum) = SY-DATUM.
 
 
 
 
"SELECT single UNAME FROM T5A1O INTO @DATA(ld_user).
DATA(ld_user) = SY-UNAME.
 
 
 
 
"SELECT single UZEIT FROM T5A1O INTO @DATA(ld_uzeit).
DATA(ld_uzeit) = SY-UZEIT.
 
 
 
 
"SELECT single TESTK FROM T5A1O INTO @DATA(ld_test).
DATA(ld_test) = 'X'.
 
 
 
DATA(ld_prot) = ' '.
 
 
 
DATA(ld_esimu) = ' '.
 


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!