SAP L_IDOC_INPUT_WMTOCO Function Module for
L_IDOC_INPUT_WMTOCO is a standard l idoc input wmtoco SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 l idoc input wmtoco FM, simply by entering the name L_IDOC_INPUT_WMTOCO into the relevant SAP transaction such as SE37 or SE38.
Function Group: LIDI
Program Name: SAPLLIDI
Main Program: SAPLLIDI
Appliation area: L
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function L_IDOC_INPUT_WMTOCO 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 'L_IDOC_INPUT_WMTOCO'".
EXPORTING
INPUT_METHOD = "Method: bckgrnd/frgrnd processing
MASS_PROCESSING = "Flag: multiple receipt (otherwise single receipt)
IMPORTING
WORKFLOW_RESULT = "Result of method for workflow (return code)
APPLICATION_VARIABLE = "Application variable
IN_UPDATE_TASK = "Flag: processing of IDOC via update task
CALL_TRANSACTION_DONE = "Flag: processing via Call transaction
TABLES
IDOC_CONTRL = "IDOC management records
IDOC_DATA = "IDOC data records
IDOC_STATUS = "IDOC status records
RETURN_VARIABLES = "Result variables with values for workflow
SERIALIZATION_INFO = "
EXCEPTIONS
WRONG_FUNCTION_CALLED = 1 OTHERS = 2
IDoc processing FM
This FM is the Processing Function module for IDoc: /CWM/WMTCID03/CWM/WMTCID03 - CWM: Confirm Transfer Order
WMTCID01 - Confirm transfer order
WMTCID02 - Confirm transfer order
WMTCID03 - Confirm TO
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLLIDI_001 Customer Exit for Error Handling of Inbound IDOCs on Receipt
EXIT_SAPLLIDI_002 Customer Exit for Inbound IDOC WMTID01 (Confirm TO) on Receipt
EXIT_SAPLLIDI_003 Customer Exit for IDOC WMCAI01 (Cancel TO) on Receipt
EXIT_SAPLLIDI_004 Customer Exit for IDOC WMBBID01 (Block Storage Bins) on Receipt
EXIT_SAPLLIDI_005 Customer Exit for IDOC WMTRID01 (Create/Cancel TR) on Receipt
EXIT_SAPLLIDI_006 Customer Exit for IDOC WMSUID01 (Movement Storage Unit) on Receipt
EXIT_SAPLLIDI_007 Customer Exit for IDoc WMPHID01 (Pick HU) on Receipt
IMPORTING Parameters details for L_IDOC_INPUT_WMTOCO
INPUT_METHOD - Method: bckgrnd/frgrnd processing
Data type: BDWFAP_PAR-INPUTMETHDOptional: No
Call by Reference: No ( called with pass by value option)
MASS_PROCESSING - Flag: multiple receipt (otherwise single receipt)
Data type: BDWFAP_PAR-MASS_PROCOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for L_IDOC_INPUT_WMTOCO
WORKFLOW_RESULT - Result of method for workflow (return code)
Data type: BDWFAP_PAR-RESULTOptional: No
Call by Reference: No ( called with pass by value option)
APPLICATION_VARIABLE - Application variable
Data type: BDWFAP_PAR-APPL_VAROptional: No
Call by Reference: No ( called with pass by value option)
IN_UPDATE_TASK - Flag: processing of IDOC via update task
Data type: BDWFAP_PAR-UPDATETASKOptional: No
Call by Reference: No ( called with pass by value option)
CALL_TRANSACTION_DONE - Flag: processing via Call transaction
Data type: BDWFAP_PAR-CALLTRANSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for L_IDOC_INPUT_WMTOCO
IDOC_CONTRL - IDOC management records
Data type: EDIDCOptional: No
Call by Reference: No ( called with pass by value option)
IDOC_DATA - IDOC data records
Data type: EDIDDOptional: No
Call by Reference: No ( called with pass by value option)
IDOC_STATUS - IDOC status records
Data type: BDIDOCSTATOptional: No
Call by Reference: No ( called with pass by value option)
RETURN_VARIABLES - Result variables with values for workflow
Data type: BDWFRETVAROptional: No
Call by Reference: No ( called with pass by value option)
SERIALIZATION_INFO -
Data type: BDI_SEROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_FUNCTION_CALLED - IDOCs cannot be processed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTHERS - Other error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for L_IDOC_INPUT_WMTOCO 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: | ||||
lt_idoc_contrl | TYPE STANDARD TABLE OF EDIDC, " | |||
lv_input_method | TYPE BDWFAP_PAR-INPUTMETHD, " | |||
lv_workflow_result | TYPE BDWFAP_PAR-RESULT, " | |||
lv_wrong_function_called | TYPE BDWFAP_PAR, " | |||
lv_others | TYPE BDWFAP_PAR, " | |||
lt_idoc_data | TYPE STANDARD TABLE OF EDIDD, " | |||
lv_mass_processing | TYPE BDWFAP_PAR-MASS_PROC, " | |||
lv_application_variable | TYPE BDWFAP_PAR-APPL_VAR, " | |||
lt_idoc_status | TYPE STANDARD TABLE OF BDIDOCSTAT, " | |||
lv_in_update_task | TYPE BDWFAP_PAR-UPDATETASK, " | |||
lt_return_variables | TYPE STANDARD TABLE OF BDWFRETVAR, " | |||
lv_call_transaction_done | TYPE BDWFAP_PAR-CALLTRANS, " | |||
lt_serialization_info | TYPE STANDARD TABLE OF BDI_SER. " |
  CALL FUNCTION 'L_IDOC_INPUT_WMTOCO' " |
EXPORTING | ||
INPUT_METHOD | = lv_input_method | |
MASS_PROCESSING | = lv_mass_processing | |
IMPORTING | ||
WORKFLOW_RESULT | = lv_workflow_result | |
APPLICATION_VARIABLE | = lv_application_variable | |
IN_UPDATE_TASK | = lv_in_update_task | |
CALL_TRANSACTION_DONE | = lv_call_transaction_done | |
TABLES | ||
IDOC_CONTRL | = lt_idoc_contrl | |
IDOC_DATA | = lt_idoc_data | |
IDOC_STATUS | = lt_idoc_status | |
RETURN_VARIABLES | = lt_return_variables | |
SERIALIZATION_INFO | = lt_serialization_info | |
EXCEPTIONS | ||
WRONG_FUNCTION_CALLED = 1 | ||
OTHERS = 2 | ||
. " L_IDOC_INPUT_WMTOCO |
ABAP code using 7.40 inline data declarations to call FM L_IDOC_INPUT_WMTOCO
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."SELECT single INPUTMETHD FROM BDWFAP_PAR INTO @DATA(ld_input_method). | ||||
"SELECT single RESULT FROM BDWFAP_PAR INTO @DATA(ld_workflow_result). | ||||
"SELECT single MASS_PROC FROM BDWFAP_PAR INTO @DATA(ld_mass_processing). | ||||
"SELECT single APPL_VAR FROM BDWFAP_PAR INTO @DATA(ld_application_variable). | ||||
"SELECT single UPDATETASK FROM BDWFAP_PAR INTO @DATA(ld_in_update_task). | ||||
"SELECT single CALLTRANS FROM BDWFAP_PAR INTO @DATA(ld_call_transaction_done). | ||||
See full list of SAP IDocs
See full list of SAP Function Modules
Search for further information about these or an SAP related objects