SAP Function Modules

EHS003_UC_DELIVERY SAP Function module







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

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


Pattern for FM EHS003_UC_DELIVERY - EHS003 UC DELIVERY





CALL FUNCTION 'EHS003_UC_DELIVERY' "
  EXPORTING
    i_lipstab =                 " vlggt_lipsvb_t
    i_tvsttab =                 " vlggt_tvst_s
    i_vbpatab =                 " vlggt_vbpavb_t
    i_trtyp =                   " t180-trtyp
    cs_likp =                   " vlggt_likpvb_s
    i_vbtyp =                   " vbtyp
  IMPORTING
    e_voggt =                   " likpvb-voggt
  TABLES
    xvbuv =                     " vbuvvb
*   e_usx_logtab =              " balmi
  CHANGING
    cf_dataloss =               " r185d-dataloss
  EXCEPTIONS
    DG_ERROR = 1                "
    OTHERS_ = 2                 "
    .  "  EHS003_UC_DELIVERY

ABAP code example for Function Module EHS003_UC_DELIVERY





The ABAP code below is a full code listing to execute function module EHS003_UC_DELIVERY 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_e_voggt  TYPE LIKPVB-VOGGT ,
it_xvbuv  TYPE STANDARD TABLE OF VBUVVB,"TABLES PARAM
wa_xvbuv  LIKE LINE OF it_xvbuv ,
it_e_usx_logtab  TYPE STANDARD TABLE OF BALMI,"TABLES PARAM
wa_e_usx_logtab  LIKE LINE OF it_e_usx_logtab .


DATA(ld_cf_dataloss) = some text here
DATA(ld_i_lipstab) = 'Check type of data required'.
DATA(ld_i_tvsttab) = 'Check type of data required'.
DATA(ld_i_vbpatab) = 'Check type of data required'.

SELECT single TRTYP
FROM T180
INTO @DATA(ld_i_trtyp).

DATA(ld_cs_likp) = 'Check type of data required'.
DATA(ld_i_vbtyp) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xvbuv to it_xvbuv.

"populate fields of struture and append to itab
append wa_e_usx_logtab to it_e_usx_logtab. . CALL FUNCTION 'EHS003_UC_DELIVERY' EXPORTING i_lipstab = ld_i_lipstab i_tvsttab = ld_i_tvsttab i_vbpatab = ld_i_vbpatab i_trtyp = ld_i_trtyp cs_likp = ld_cs_likp i_vbtyp = ld_i_vbtyp IMPORTING e_voggt = ld_e_voggt TABLES xvbuv = it_xvbuv * e_usx_logtab = it_e_usx_logtab CHANGING cf_dataloss = ld_cf_dataloss EXCEPTIONS DG_ERROR = 1 OTHERS_ = 2 . " EHS003_UC_DELIVERY
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 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_cf_dataloss  TYPE R185D-DATALOSS ,
ld_e_voggt  TYPE LIKPVB-VOGGT ,
ld_i_lipstab  TYPE VLGGT_LIPSVB_T ,
it_xvbuv  TYPE STANDARD TABLE OF VBUVVB ,
wa_xvbuv  LIKE LINE OF it_xvbuv,
ld_i_tvsttab  TYPE VLGGT_TVST_S ,
it_e_usx_logtab  TYPE STANDARD TABLE OF BALMI ,
wa_e_usx_logtab  LIKE LINE OF it_e_usx_logtab,
ld_i_vbpatab  TYPE VLGGT_VBPAVB_T ,
ld_i_trtyp  TYPE T180-TRTYP ,
ld_cs_likp  TYPE VLGGT_LIKPVB_S ,
ld_i_vbtyp  TYPE VBTYP .


ld_cf_dataloss = some text here
ld_i_lipstab = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xvbuv to it_xvbuv.
ld_i_tvsttab = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_usx_logtab to it_e_usx_logtab.
ld_i_vbpatab = 'Check type of data required'.

SELECT single TRTYP
FROM T180
INTO ld_i_trtyp.

ld_cs_likp = 'Check type of data required'.
ld_i_vbtyp = 'Check type of data required'.

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