SAP HR_CREATE_DDS_FH_A Function Module for









HR_CREATE_DDS_FH_A is a standard hr create dds fh 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 fh a FM, simply by entering the name HR_CREATE_DDS_FH_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_FH_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_FH_A'"
EXPORTING
* DATUM = SY-DATUM "
* USER = SY-UNAME "
* UZEIT = SY-UZEIT "
* TEST = 'X' "
* PROT = ' ' "
* MESSAGE_HANDLER = "

IMPORTING
CREATED = "
OVERFLOW = "

TABLES
DDS_FH = "

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



IMPORTING Parameters details for HR_CREATE_DDS_FH_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)

MESSAGE_HANDLER -

Data type: IF_HRPA_MESSAGE_HANDLER
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for HR_CREATE_DDS_FH_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)

TABLES Parameters details for HR_CREATE_DDS_FH_A

DDS_FH -

Data type:
Optional: No
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

MESSAGE_HANDLER_CONTAINS_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_CREATE_DDS_FH_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_fh  TYPE STANDARD TABLE OF T5A1K, "   
lv_created  TYPE I, "   
lv_lfd_nr_overflow  TYPE I, "   
lv_user  TYPE T5A1O-UNAME, "   SY-UNAME
lv_overflow  TYPE I, "   
lv_t5a1k_error  TYPE I, "   
lv_uzeit  TYPE T5A1O-UZEIT, "   SY-UZEIT
lv_t5a1m_error  TYPE T5A1O, "   
lv_test  TYPE T5A1O-TESTK, "   'X'
lv_t5a1o_enque_failed  TYPE T5A1O, "   
lv_prot  TYPE T5A1O, "   ' '
lv_if_violated_condition  TYPE T5A1O, "   
lv_message_handler  TYPE IF_HRPA_MESSAGE_HANDLER, "   
lv_message_handler_contains_error  TYPE IF_HRPA_MESSAGE_HANDLER. "   

  CALL FUNCTION 'HR_CREATE_DDS_FH_A'  "
    EXPORTING
         DATUM = lv_datum
         USER = lv_user
         UZEIT = lv_uzeit
         TEST = lv_test
         PROT = lv_prot
         MESSAGE_HANDLER = lv_message_handler
    IMPORTING
         CREATED = lv_created
         OVERFLOW = lv_overflow
    TABLES
         DDS_FH = lt_dds_fh
    EXCEPTIONS
        LFD_NR_OVERFLOW = 1
        T5A1K_ERROR = 2
        T5A1M_ERROR = 3
        T5A1O_ENQUE_FAILED = 4
        IF_VIOLATED_CONDITION = 5
        MESSAGE_HANDLER_CONTAINS_ERROR = 6
. " HR_CREATE_DDS_FH_A




ABAP code using 7.40 inline data declarations to call FM HR_CREATE_DDS_FH_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) = ' '.
 
 
 
 


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!