SAP Function Modules

HR_CREATE_DDS_DATASET_A_PBS SAP Function module







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

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


Pattern for FM HR_CREATE_DDS_DATASET_A_PBS - HR CREATE DDS DATASET A PBS





CALL FUNCTION 'HR_CREATE_DDS_DATASET_A_PBS' "
* EXPORTING
*   datum = SY-DATUM            " t5a1k-begda
*   user = SY-UNAME             " t5a1o-uname
*   uzeit = SY-UZEIT            " t5a1o-uzeit
*   test = 'X'                  " t5a1o-testk
*   prot = ' '                  "
*   esimu = ' '                 " xfeld
  IMPORTING
    created =                   " i
    overflow =                  " i
    ref_i5a1o =                 " data
* TABLES
*   dds_p1 =                    "
*   dds_p2 =                    "
*   dds_p3 =                    "
*   dds_p4 =                    " patra_ty_p4_tab
*   dds_p5 =                    "
*   dds_p6 =                    "
*   dds_p7 =                    "
*   dds_p8 =                    "
  EXCEPTIONS
    LFD_NR_OVERFLOW = 1         "
    T5A1K_ERROR = 2             "
    T5A1M_ERROR = 3             "
    T5A1O_ENQUE_FAILED = 4      "
    IF_VIOLATED_CONDITION = 5   "
    .  "  HR_CREATE_DDS_DATASET_A_PBS

ABAP code example for Function Module HR_CREATE_DDS_DATASET_A_PBS





The ABAP code below is a full code listing to execute function module HR_CREATE_DDS_DATASET_A_PBS 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_created  TYPE I ,
ld_overflow  TYPE I ,
ld_ref_i5a1o  TYPE DATA ,
it_dds_p1  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_dds_p1  LIKE LINE OF it_dds_p1 ,
it_dds_p2  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_dds_p2  LIKE LINE OF it_dds_p2 ,
it_dds_p3  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_dds_p3  LIKE LINE OF it_dds_p3 ,
it_dds_p4  TYPE STANDARD TABLE OF PATRA_TY_P4_TAB,"TABLES PARAM
wa_dds_p4  LIKE LINE OF it_dds_p4 ,
it_dds_p5  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_dds_p5  LIKE LINE OF it_dds_p5 ,
it_dds_p6  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_dds_p6  LIKE LINE OF it_dds_p6 ,
it_dds_p7  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_dds_p7  LIKE LINE OF it_dds_p7 ,
it_dds_p8  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_dds_p8  LIKE LINE OF it_dds_p8 .


SELECT single BEGDA
FROM T5A1K
INTO @DATA(ld_datum).


SELECT single UNAME
FROM T5A1O
INTO @DATA(ld_user).


SELECT single UZEIT
FROM T5A1O
INTO @DATA(ld_uzeit).


SELECT single TESTK
FROM T5A1O
INTO @DATA(ld_test).

DATA(ld_prot) = 'some text here'.
DATA(ld_esimu) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dds_p1 to it_dds_p1.

"populate fields of struture and append to itab
append wa_dds_p2 to it_dds_p2.

"populate fields of struture and append to itab
append wa_dds_p3 to it_dds_p3.

"populate fields of struture and append to itab
append wa_dds_p4 to it_dds_p4.

"populate fields of struture and append to itab
append wa_dds_p5 to it_dds_p5.

"populate fields of struture and append to itab
append wa_dds_p6 to it_dds_p6.

"populate fields of struture and append to itab
append wa_dds_p7 to it_dds_p7.

"populate fields of struture and append to itab
append wa_dds_p8 to it_dds_p8. . CALL FUNCTION 'HR_CREATE_DDS_DATASET_A_PBS' * EXPORTING * datum = ld_datum * user = ld_user * uzeit = ld_uzeit * test = ld_test * prot = ld_prot * esimu = ld_esimu IMPORTING created = ld_created overflow = ld_overflow ref_i5a1o = ld_ref_i5a1o * TABLES * dds_p1 = it_dds_p1 * dds_p2 = it_dds_p2 * dds_p3 = it_dds_p3 * dds_p4 = it_dds_p4 * dds_p5 = it_dds_p5 * dds_p6 = it_dds_p6 * dds_p7 = it_dds_p7 * dds_p8 = it_dds_p8 EXCEPTIONS LFD_NR_OVERFLOW = 1 T5A1K_ERROR = 2 T5A1M_ERROR = 3 T5A1O_ENQUE_FAILED = 4 IF_VIOLATED_CONDITION = 5 . " HR_CREATE_DDS_DATASET_A_PBS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here 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_created  TYPE I ,
ld_datum  TYPE T5A1K-BEGDA ,
it_dds_p1  TYPE STANDARD TABLE OF STRING ,
wa_dds_p1  LIKE LINE OF it_dds_p1,
it_dds_p2  TYPE STANDARD TABLE OF STRING ,
wa_dds_p2  LIKE LINE OF it_dds_p2,
ld_user  TYPE T5A1O-UNAME ,
ld_overflow  TYPE I ,
ld_uzeit  TYPE T5A1O-UZEIT ,
it_dds_p3  TYPE STANDARD TABLE OF STRING ,
wa_dds_p3  LIKE LINE OF it_dds_p3,
ld_ref_i5a1o  TYPE DATA ,
ld_test  TYPE T5A1O-TESTK ,
it_dds_p4  TYPE STANDARD TABLE OF PATRA_TY_P4_TAB ,
wa_dds_p4  LIKE LINE OF it_dds_p4,
ld_prot  TYPE STRING ,
it_dds_p5  TYPE STANDARD TABLE OF STRING ,
wa_dds_p5  LIKE LINE OF it_dds_p5,
ld_esimu  TYPE XFELD ,
it_dds_p6  TYPE STANDARD TABLE OF STRING ,
wa_dds_p6  LIKE LINE OF it_dds_p6,
it_dds_p7  TYPE STANDARD TABLE OF STRING ,
wa_dds_p7  LIKE LINE OF it_dds_p7,
it_dds_p8  TYPE STANDARD TABLE OF STRING ,
wa_dds_p8  LIKE LINE OF it_dds_p8.


SELECT single BEGDA
FROM T5A1K
INTO ld_datum.


"populate fields of struture and append to itab
append wa_dds_p1 to it_dds_p1.

"populate fields of struture and append to itab
append wa_dds_p2 to it_dds_p2.

SELECT single UNAME
FROM T5A1O
INTO ld_user.


SELECT single UZEIT
FROM T5A1O
INTO ld_uzeit.


"populate fields of struture and append to itab
append wa_dds_p3 to it_dds_p3.

SELECT single TESTK
FROM T5A1O
INTO ld_test.


"populate fields of struture and append to itab
append wa_dds_p4 to it_dds_p4.
ld_prot = 'some text here'.

"populate fields of struture and append to itab
append wa_dds_p5 to it_dds_p5.
ld_esimu = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dds_p6 to it_dds_p6.

"populate fields of struture and append to itab
append wa_dds_p7 to it_dds_p7.

"populate fields of struture and append to itab
append wa_dds_p8 to it_dds_p8.

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