SAP Function Modules

DPCOMMON_LORD_LOAD SAP Function module - LORD load







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

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


Pattern for FM DPCOMMON_LORD_LOAD - DPCOMMON LORD LOAD





CALL FUNCTION 'DPCOMMON_LORD_LOAD' "LORD load
  EXPORTING
*   iv_trvog =                  " trvog_va      Transaction group
    iv_trtyp =                  " trtyp         Transaction type
*   iv_vbeln =                  " vbeln_va      Sales Document
*   iv_vbeln_ref =              " vbeln_va      Sales Document
*   it_posnr_ref =              " tdt_posnr     List of Item Numbers
*   iv_auart =                  " auart         Sales Document Type
*   iv_vkorg =                  " vkorg         Sales Organization
*   iv_vtweg =                  " vtweg         Distribution Channel
*   iv_spart =                  " spart         Division
*   iv_kunag =                  " kunag         Sold-to party
*   is_head_comv =              " tds_head_comv  Lean Order - Header Data (Values)
*   is_head_comx =              " tds_head_comc  Lean Order - Header Data (CHAR)
*   it_item_comv =              " tdt_item_comv  Table Type for Structure TDS_ITEM_COMV
*   it_item_comx =              " tdt_item_comc  Table Type for Structure TDS_ITEM_COMC
  IMPORTING
    ef_loaded =                 " flag          General Flag
    et_messages =               " tdt_messages  Table Type for Structure BAL_S_SHOW
    es_error =                  " tds_error     Lean Order: Error Information
    .  "  DPCOMMON_LORD_LOAD

ABAP code example for Function Module DPCOMMON_LORD_LOAD





The ABAP code below is a full code listing to execute function module DPCOMMON_LORD_LOAD 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_ef_loaded  TYPE FLAG ,
ld_et_messages  TYPE TDT_MESSAGES ,
ld_es_error  TYPE TDS_ERROR .

DATA(ld_iv_trvog) = 'Check type of data required'.
DATA(ld_iv_trtyp) = 'Check type of data required'.
DATA(ld_iv_vbeln) = 'Check type of data required'.
DATA(ld_iv_vbeln_ref) = 'Check type of data required'.
DATA(ld_it_posnr_ref) = 'Check type of data required'.
DATA(ld_iv_auart) = 'Check type of data required'.
DATA(ld_iv_vkorg) = 'Check type of data required'.
DATA(ld_iv_vtweg) = 'Check type of data required'.
DATA(ld_iv_spart) = 'Check type of data required'.
DATA(ld_iv_kunag) = 'Check type of data required'.
DATA(ld_is_head_comv) = 'Check type of data required'.
DATA(ld_is_head_comx) = 'Check type of data required'.
DATA(ld_it_item_comv) = 'Check type of data required'.
DATA(ld_it_item_comx) = 'Check type of data required'. . CALL FUNCTION 'DPCOMMON_LORD_LOAD' EXPORTING * iv_trvog = ld_iv_trvog iv_trtyp = ld_iv_trtyp * iv_vbeln = ld_iv_vbeln * iv_vbeln_ref = ld_iv_vbeln_ref * it_posnr_ref = ld_it_posnr_ref * iv_auart = ld_iv_auart * iv_vkorg = ld_iv_vkorg * iv_vtweg = ld_iv_vtweg * iv_spart = ld_iv_spart * iv_kunag = ld_iv_kunag * is_head_comv = ld_is_head_comv * is_head_comx = ld_is_head_comx * it_item_comv = ld_it_item_comv * it_item_comx = ld_it_item_comx IMPORTING ef_loaded = ld_ef_loaded et_messages = ld_et_messages es_error = ld_es_error . " DPCOMMON_LORD_LOAD
IF SY-SUBRC EQ 0. "All OK 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_ef_loaded  TYPE FLAG ,
ld_iv_trvog  TYPE TRVOG_VA ,
ld_et_messages  TYPE TDT_MESSAGES ,
ld_iv_trtyp  TYPE TRTYP ,
ld_es_error  TYPE TDS_ERROR ,
ld_iv_vbeln  TYPE VBELN_VA ,
ld_iv_vbeln_ref  TYPE VBELN_VA ,
ld_it_posnr_ref  TYPE TDT_POSNR ,
ld_iv_auart  TYPE AUART ,
ld_iv_vkorg  TYPE VKORG ,
ld_iv_vtweg  TYPE VTWEG ,
ld_iv_spart  TYPE SPART ,
ld_iv_kunag  TYPE KUNAG ,
ld_is_head_comv  TYPE TDS_HEAD_COMV ,
ld_is_head_comx  TYPE TDS_HEAD_COMC ,
ld_it_item_comv  TYPE TDT_ITEM_COMV ,
ld_it_item_comx  TYPE TDT_ITEM_COMC .

ld_iv_trvog = 'Check type of data required'.
ld_iv_trtyp = 'Check type of data required'.
ld_iv_vbeln = 'Check type of data required'.
ld_iv_vbeln_ref = 'Check type of data required'.
ld_it_posnr_ref = 'Check type of data required'.
ld_iv_auart = 'Check type of data required'.
ld_iv_vkorg = 'Check type of data required'.
ld_iv_vtweg = 'Check type of data required'.
ld_iv_spart = 'Check type of data required'.
ld_iv_kunag = 'Check type of data required'.
ld_is_head_comv = 'Check type of data required'.
ld_is_head_comx = 'Check type of data required'.
ld_it_item_comv = 'Check type of data required'.
ld_it_item_comx = '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 DPCOMMON_LORD_LOAD or its description.