SAP EAM_CL_API_CREATE_LOT Function Module for Checklist: Create Checklist (Inspection Lot)
EAM_CL_API_CREATE_LOT is a standard eam cl api create lot SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Checklist: Create Checklist (Inspection Lot) 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 eam cl api create lot FM, simply by entering the name EAM_CL_API_CREATE_LOT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EAM_CL_API
Program Name: SAPLEAM_CL_API
Main Program: SAPLEAM_CL_API
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function EAM_CL_API_CREATE_LOT 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 'EAM_CL_API_CREATE_LOT'"Checklist: Create Checklist (Inspection Lot).
EXPORTING
* IV_FUNCLOC_LABEL = ' ' "
* IV_EQUIPMENT = ' ' "
IV_ORDNR = "
IV_OPERNR = "
* IV_TL_TYPE = 'Q' "
IV_TL_KEY = "
IV_TL_COUNTER = "
* IV_TEST = ' ' "
IMPORTING
EV_INSPECTIONLOT_NUMBER = "
EV_ERROR = "
ET_LOGH = "
ET_RETURN = "
IMPORTING Parameters details for EAM_CL_API_CREATE_LOT
IV_FUNCLOC_LABEL -
Data type: ILOM_STRNODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_EQUIPMENT -
Data type: EQUNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_ORDNR -
Data type: AUFNROptional: No
Call by Reference: No ( called with pass by value option)
IV_OPERNR -
Data type: AFVC-VORNROptional: No
Call by Reference: No ( called with pass by value option)
IV_TL_TYPE -
Data type: PLNTYDefault: 'Q'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_TL_KEY -
Data type: PLNNROptional: No
Call by Reference: No ( called with pass by value option)
IV_TL_COUNTER -
Data type: PLNALOptional: No
Call by Reference: No ( called with pass by value option)
IV_TEST -
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EAM_CL_API_CREATE_LOT
EV_INSPECTIONLOT_NUMBER -
Data type: QPLOSOptional: No
Call by Reference: No ( called with pass by value option)
EV_ERROR -
Data type: XFLAGOptional: No
Call by Reference: No ( called with pass by value option)
ET_LOGH -
Data type: BAL_T_LOGHOptional: No
Call by Reference: No ( called with pass by value option)
ET_RETURN -
Data type: BAPIRETTABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EAM_CL_API_CREATE_LOT 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_funcloc_label | TYPE ILOM_STRNO, " SPACE | |||
| lv_ev_inspectionlot_number | TYPE QPLOS, " | |||
| lv_ev_error | TYPE XFLAG, " | |||
| lv_iv_equipment | TYPE EQUNR, " SPACE | |||
| lv_et_logh | TYPE BAL_T_LOGH, " | |||
| lv_iv_ordnr | TYPE AUFNR, " | |||
| lv_et_return | TYPE BAPIRETTAB, " | |||
| lv_iv_opernr | TYPE AFVC-VORNR, " | |||
| lv_iv_tl_type | TYPE PLNTY, " 'Q' | |||
| lv_iv_tl_key | TYPE PLNNR, " | |||
| lv_iv_tl_counter | TYPE PLNAL, " | |||
| lv_iv_test | TYPE XFLAG. " SPACE |
|   CALL FUNCTION 'EAM_CL_API_CREATE_LOT' "Checklist: Create Checklist (Inspection Lot) |
| EXPORTING | ||
| IV_FUNCLOC_LABEL | = lv_iv_funcloc_label | |
| IV_EQUIPMENT | = lv_iv_equipment | |
| IV_ORDNR | = lv_iv_ordnr | |
| IV_OPERNR | = lv_iv_opernr | |
| IV_TL_TYPE | = lv_iv_tl_type | |
| IV_TL_KEY | = lv_iv_tl_key | |
| IV_TL_COUNTER | = lv_iv_tl_counter | |
| IV_TEST | = lv_iv_test | |
| IMPORTING | ||
| EV_INSPECTIONLOT_NUMBER | = lv_ev_inspectionlot_number | |
| EV_ERROR | = lv_ev_error | |
| ET_LOGH | = lv_et_logh | |
| ET_RETURN | = lv_et_return | |
| . " EAM_CL_API_CREATE_LOT | ||
ABAP code using 7.40 inline data declarations to call FM EAM_CL_API_CREATE_LOT
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.| DATA(ld_iv_funcloc_label) | = ' '. | |||
| DATA(ld_iv_equipment) | = ' '. | |||
| "SELECT single VORNR FROM AFVC INTO @DATA(ld_iv_opernr). | ||||
| DATA(ld_iv_tl_type) | = 'Q'. | |||
| DATA(ld_iv_test) | = ' '. | |||
Search for further information about these or an SAP related objects