SAP Function Modules

HR_CREATE_DDS_VORLAUF_A SAP Function module







HR_CREATE_DDS_VORLAUF_A 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_VORLAUF_A 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_VORLAUF_A - HR CREATE DDS VORLAUF A





CALL FUNCTION 'HR_CREATE_DDS_VORLAUF_A' "
  EXPORTING
*   act_user = SY-UNAME         " t5a1o-uname
    dtr_lfdnr =                 " t5a1o-lfdnr
    dtr_nr =                    " t5a1p-dtrnr
    dtr_asvgr =                 " t5a1o-asvgr
    dtr_ausva =                 " t5a1o-ausva
    zu_asvgr =                  " asvgr
    s0_best =                   " t5a1k-mdart
    s0_dtnr =                   " t5a1o-dtrnr
    s0_edat =                   " sy-datum
    s0_ezei =                   " sy-uzeit
    s0_hkfz =                   "
    s0_hort =                   "
    s0_hplz =                   "
    s0_hrst =                   "
    s0_hstr =                   "
    s0_htel =                   "
    s0_soid =                   " any
*   s0_test = 'X'               " t5a1o-testk
    s0_vers =                   "
  IMPORTING
    vorlaufsatz =               " t5a1o-dsatz
  CHANGING
    p_proj =                    " char2
  EXCEPTIONS
    LFD_NR_OVERFLOW = 1         "
    T5A1K_ERROR = 2             "
    T5A1M_ERROR = 3             "
    T5A1O_ENQUE_FAILED = 4      "
    PROJ_CHANGED = 5            "
    .  "  HR_CREATE_DDS_VORLAUF_A

ABAP code example for Function Module HR_CREATE_DDS_VORLAUF_A





The ABAP code below is a full code listing to execute function module HR_CREATE_DDS_VORLAUF_A 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_vorlaufsatz  TYPE T5A1O-DSATZ .

DATA(ld_p_proj) = 'Check type of data required'.

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


SELECT single LFDNR
FROM T5A1O
INTO @DATA(ld_dtr_lfdnr).


SELECT single DTRNR
FROM T5A1P
INTO @DATA(ld_dtr_nr).


SELECT single ASVGR
FROM T5A1O
INTO @DATA(ld_dtr_asvgr).


SELECT single AUSVA
FROM T5A1O
INTO @DATA(ld_dtr_ausva).

DATA(ld_zu_asvgr) = 'Check type of data required'.

SELECT single MDART
FROM T5A1K
INTO @DATA(ld_s0_best).


SELECT single DTRNR
FROM T5A1O
INTO @DATA(ld_s0_dtnr).

DATA(ld_s0_edat) = '20210129'.
DATA(ld_s0_ezei) = 'Check type of data required'.
DATA(ld_s0_hkfz) = 'some text here'.
DATA(ld_s0_hort) = 'some text here'.
DATA(ld_s0_hplz) = 'some text here'.
DATA(ld_s0_hrst) = 'some text here'.
DATA(ld_s0_hstr) = 'some text here'.
DATA(ld_s0_htel) = 'some text here'.
DATA(ld_s0_soid) = 'Check type of data required'.

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

DATA(ld_s0_vers) = 'some text here'. . CALL FUNCTION 'HR_CREATE_DDS_VORLAUF_A' EXPORTING * act_user = ld_act_user dtr_lfdnr = ld_dtr_lfdnr dtr_nr = ld_dtr_nr dtr_asvgr = ld_dtr_asvgr dtr_ausva = ld_dtr_ausva zu_asvgr = ld_zu_asvgr s0_best = ld_s0_best s0_dtnr = ld_s0_dtnr s0_edat = ld_s0_edat s0_ezei = ld_s0_ezei s0_hkfz = ld_s0_hkfz s0_hort = ld_s0_hort s0_hplz = ld_s0_hplz s0_hrst = ld_s0_hrst s0_hstr = ld_s0_hstr s0_htel = ld_s0_htel s0_soid = ld_s0_soid * s0_test = ld_s0_test s0_vers = ld_s0_vers IMPORTING vorlaufsatz = ld_vorlaufsatz CHANGING p_proj = ld_p_proj EXCEPTIONS LFD_NR_OVERFLOW = 1 T5A1K_ERROR = 2 T5A1M_ERROR = 3 T5A1O_ENQUE_FAILED = 4 PROJ_CHANGED = 5 . " HR_CREATE_DDS_VORLAUF_A
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_p_proj  TYPE CHAR2 ,
ld_vorlaufsatz  TYPE T5A1O-DSATZ ,
ld_act_user  TYPE T5A1O-UNAME ,
ld_dtr_lfdnr  TYPE T5A1O-LFDNR ,
ld_dtr_nr  TYPE T5A1P-DTRNR ,
ld_dtr_asvgr  TYPE T5A1O-ASVGR ,
ld_dtr_ausva  TYPE T5A1O-AUSVA ,
ld_zu_asvgr  TYPE ASVGR ,
ld_s0_best  TYPE T5A1K-MDART ,
ld_s0_dtnr  TYPE T5A1O-DTRNR ,
ld_s0_edat  TYPE SY-DATUM ,
ld_s0_ezei  TYPE SY-UZEIT ,
ld_s0_hkfz  TYPE STRING ,
ld_s0_hort  TYPE STRING ,
ld_s0_hplz  TYPE STRING ,
ld_s0_hrst  TYPE STRING ,
ld_s0_hstr  TYPE STRING ,
ld_s0_htel  TYPE STRING ,
ld_s0_soid  TYPE ANY ,
ld_s0_test  TYPE T5A1O-TESTK ,
ld_s0_vers  TYPE STRING .

ld_p_proj = 'Check type of data required'.

SELECT single UNAME
FROM T5A1O
INTO ld_act_user.


SELECT single LFDNR
FROM T5A1O
INTO ld_dtr_lfdnr.


SELECT single DTRNR
FROM T5A1P
INTO ld_dtr_nr.


SELECT single ASVGR
FROM T5A1O
INTO ld_dtr_asvgr.


SELECT single AUSVA
FROM T5A1O
INTO ld_dtr_ausva.

ld_zu_asvgr = 'Check type of data required'.

SELECT single MDART
FROM T5A1K
INTO ld_s0_best.


SELECT single DTRNR
FROM T5A1O
INTO ld_s0_dtnr.

ld_s0_edat = '20210129'.
ld_s0_ezei = 'Check type of data required'.
ld_s0_hkfz = 'some text here'.
ld_s0_hort = 'some text here'.
ld_s0_hplz = 'some text here'.
ld_s0_hrst = 'some text here'.
ld_s0_hstr = 'some text here'.
ld_s0_htel = 'some text here'.
ld_s0_soid = 'Check type of data required'.

SELECT single TESTK
FROM T5A1O
INTO ld_s0_test.

ld_s0_vers = '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_CREATE_DDS_VORLAUF_A or its description.