SAP ERP_LORD_LOAD Function Module for NOTRANSL: Funktionsbaustein LORD-RFC LOAD









ERP_LORD_LOAD is a standard erp lord load SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Funktionsbaustein LORD-RFC LOAD processing and below is the pattern details for this FM, 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 erp lord load FM, simply by entering the name ERP_LORD_LOAD into the relevant SAP transaction such as SE37 or SE38.

Function Group: ERP_LORD
Program Name: SAPLERP_LORD
Main Program: SAPLERP_LORD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ERP_LORD_LOAD 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 'ERP_LORD_LOAD'"NOTRANSL: Funktionsbaustein LORD-RFC LOAD
EXPORTING
IV_TRTYP = "Transaction Type
* IV_VKBUR = "Sales Office
* IV_VKGRP = "Sales Group
* IV_KUNAG = "Sold-To Party
* IV_CALLER_ID = "Lean Order: ID of Caller
* IV_SCENARIO_ID = "Lean Order: Scenario ID
* IS_LOGIC_SWITCH = "LORD: Control Parameters for Lean Order
* IS_HEAD_COMV = "Lean Order - RFC - Header Data (Values)
* IS_HEAD_COMX = "Lean Order - RFC - Header Data (CHAR)
* IF_INIT_MSGLOG = "General Indicator
* IV_QMNUM_REF = "Declaration Number
* IV_VBELN = "Sales Document
* IT_SCENARIO_ID = "Lean Order: List of Scenario IDs
* IV_VBELN_REF = "Sales Document
* IV_VBTYP_REF = "Sales Document Category
* IT_ITEM_REF = "Table Type for Structure TDS_ITEM_REF
* IV_AUART = "Sales Document Type
* IV_VKORG = "Sales Organization
* IV_VTWEG = "Distribution Channel
* IV_SPART = "Division

IMPORTING
ES_HEAD_COMV = "Lean Order - RFC - Header Data (Values)
ES_HEAD_COMI = "Lean Order - RFC - Header Data (CHAR)
ES_HEAD_COMR = "Lean Order - RFC - Header Data (Values, Read-Only)
EF_LOADED = "General Indicator
ES_ERROR = "Lean Order: Error Information
ET_MESSAGES = "Table Type for Structure BAL_S_SHOW
EF_NO_INIT = "

EXCEPTIONS
RFC_NO_AUTHORITY = 1
.



IMPORTING Parameters details for ERP_LORD_LOAD

IV_TRTYP - Transaction Type

Data type: TRTYP
Optional: No
Call by Reference: No ( called with pass by value option)

IV_VKBUR - Sales Office

Data type: VKBUR
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VKGRP - Sales Group

Data type: VKGRP
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_KUNAG - Sold-To Party

Data type: KUNAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CALLER_ID - Lean Order: ID of Caller

Data type: TDD_CALLER_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SCENARIO_ID - Lean Order: Scenario ID

Data type: TDD_SCENARIO_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_LOGIC_SWITCH - LORD: Control Parameters for Lean Order

Data type: TDS_LOGIC_SWITCH
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_HEAD_COMV - Lean Order - RFC - Header Data (Values)

Data type: TDS_RFC_HEAD_COMV
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_HEAD_COMX - Lean Order - RFC - Header Data (CHAR)

Data type: TDS_RFC_HEAD_COMC
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_INIT_MSGLOG - General Indicator

Data type: FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_QMNUM_REF - Declaration Number

Data type: QMNUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VBELN - Sales Document

Data type: VBELN_VA
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_SCENARIO_ID - Lean Order: List of Scenario IDs

Data type: TDT_SCENARIO_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VBELN_REF - Sales Document

Data type: VBELN_VA
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VBTYP_REF - Sales Document Category

Data type: VBTYP
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_ITEM_REF - Table Type for Structure TDS_ITEM_REF

Data type: TDT_RFC_ITEM_COPY
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_AUART - Sales Document Type

Data type: AUART
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VKORG - Sales Organization

Data type: VKORG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VTWEG - Distribution Channel

Data type: VTWEG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SPART - Division

Data type: SPART
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ERP_LORD_LOAD

ES_HEAD_COMV - Lean Order - RFC - Header Data (Values)

Data type: TDS_RFC_HEAD_COMV
Optional: No
Call by Reference: No ( called with pass by value option)

ES_HEAD_COMI - Lean Order - RFC - Header Data (CHAR)

Data type: TDS_RFC_HEAD_COMC
Optional: No
Call by Reference: No ( called with pass by value option)

ES_HEAD_COMR - Lean Order - RFC - Header Data (Values, Read-Only)

Data type: TDS_RFC_HEAD_COMR
Optional: No
Call by Reference: No ( called with pass by value option)

EF_LOADED - General Indicator

Data type: FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

ES_ERROR - Lean Order: Error Information

Data type: TDS_ERROR
Optional: No
Call by Reference: No ( called with pass by value option)

ET_MESSAGES - Table Type for Structure BAL_S_SHOW

Data type: TDT_MESSAGES
Optional: No
Call by Reference: No ( called with pass by value option)

EF_NO_INIT -

Data type: FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

RFC_NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ERP_LORD_LOAD 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_iv_trtyp  TYPE TRTYP, "   
lv_es_head_comv  TYPE TDS_RFC_HEAD_COMV, "   
lv_rfc_no_authority  TYPE TDS_RFC_HEAD_COMV, "   
lv_iv_vkbur  TYPE VKBUR, "   
lv_iv_vkgrp  TYPE VKGRP, "   
lv_iv_kunag  TYPE KUNAG, "   
lv_iv_caller_id  TYPE TDD_CALLER_ID, "   
lv_iv_scenario_id  TYPE TDD_SCENARIO_ID, "   
lv_is_logic_switch  TYPE TDS_LOGIC_SWITCH, "   
lv_is_head_comv  TYPE TDS_RFC_HEAD_COMV, "   
lv_is_head_comx  TYPE TDS_RFC_HEAD_COMC, "   
lv_if_init_msglog  TYPE FLAG, "   
lv_iv_qmnum_ref  TYPE QMNUM, "   
lv_iv_vbeln  TYPE VBELN_VA, "   
lv_es_head_comi  TYPE TDS_RFC_HEAD_COMC, "   
lv_it_scenario_id  TYPE TDT_SCENARIO_ID, "   
lv_es_head_comr  TYPE TDS_RFC_HEAD_COMR, "   
lv_iv_vbeln_ref  TYPE VBELN_VA, "   
lv_ef_loaded  TYPE FLAG, "   
lv_iv_vbtyp_ref  TYPE VBTYP, "   
lv_es_error  TYPE TDS_ERROR, "   
lv_it_item_ref  TYPE TDT_RFC_ITEM_COPY, "   
lv_iv_auart  TYPE AUART, "   
lv_et_messages  TYPE TDT_MESSAGES, "   
lv_iv_vkorg  TYPE VKORG, "   
lv_ef_no_init  TYPE FLAG, "   
lv_iv_vtweg  TYPE VTWEG, "   
lv_iv_spart  TYPE SPART. "   

  CALL FUNCTION 'ERP_LORD_LOAD'  "NOTRANSL: Funktionsbaustein LORD-RFC LOAD
    EXPORTING
         IV_TRTYP = lv_iv_trtyp
         IV_VKBUR = lv_iv_vkbur
         IV_VKGRP = lv_iv_vkgrp
         IV_KUNAG = lv_iv_kunag
         IV_CALLER_ID = lv_iv_caller_id
         IV_SCENARIO_ID = lv_iv_scenario_id
         IS_LOGIC_SWITCH = lv_is_logic_switch
         IS_HEAD_COMV = lv_is_head_comv
         IS_HEAD_COMX = lv_is_head_comx
         IF_INIT_MSGLOG = lv_if_init_msglog
         IV_QMNUM_REF = lv_iv_qmnum_ref
         IV_VBELN = lv_iv_vbeln
         IT_SCENARIO_ID = lv_it_scenario_id
         IV_VBELN_REF = lv_iv_vbeln_ref
         IV_VBTYP_REF = lv_iv_vbtyp_ref
         IT_ITEM_REF = lv_it_item_ref
         IV_AUART = lv_iv_auart
         IV_VKORG = lv_iv_vkorg
         IV_VTWEG = lv_iv_vtweg
         IV_SPART = lv_iv_spart
    IMPORTING
         ES_HEAD_COMV = lv_es_head_comv
         ES_HEAD_COMI = lv_es_head_comi
         ES_HEAD_COMR = lv_es_head_comr
         EF_LOADED = lv_ef_loaded
         ES_ERROR = lv_es_error
         ET_MESSAGES = lv_et_messages
         EF_NO_INIT = lv_ef_no_init
    EXCEPTIONS
        RFC_NO_AUTHORITY = 1
. " ERP_LORD_LOAD




ABAP code using 7.40 inline data declarations to call FM ERP_LORD_LOAD

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!