SAP EAM_CL_API_READ_LOTS Function Module for Checklist: Read Checklists (Inspection Lot) for Order (Operation)
EAM_CL_API_READ_LOTS is a standard eam cl api read lots 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: Read Checklists (Inspection Lot) for Order (Operation) 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 read lots FM, simply by entering the name EAM_CL_API_READ_LOTS 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_READ_LOTS 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_READ_LOTS'"Checklist: Read Checklists (Inspection Lot) for Order (Operation).
EXPORTING
IV_ORDER_NUMBER = "
* IV_OPERATION_NUMBER = ' ' "
IMPORTING
ET_RETURN = "
ET_CHECKLISTS = "Checklists: Inspection Lot Number Table Type
IMPORTING Parameters details for EAM_CL_API_READ_LOTS
IV_ORDER_NUMBER -
Data type: CAUFVD-AUFNROptional: No
Call by Reference: No ( called with pass by value option)
IV_OPERATION_NUMBER -
Data type: AFVC-VORNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EAM_CL_API_READ_LOTS
ET_RETURN -
Data type: BAPIRETTABOptional: No
Call by Reference: No ( called with pass by value option)
ET_CHECKLISTS - Checklists: Inspection Lot Number Table Type
Data type: TT_EAM_S_CL_LOTS_APIOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EAM_CL_API_READ_LOTS 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_et_return | TYPE BAPIRETTAB, " | |||
| lv_iv_order_number | TYPE CAUFVD-AUFNR, " | |||
| lv_et_checklists | TYPE TT_EAM_S_CL_LOTS_API, " | |||
| lv_iv_operation_number | TYPE AFVC-VORNR. " SPACE |
|   CALL FUNCTION 'EAM_CL_API_READ_LOTS' "Checklist: Read Checklists (Inspection Lot) for Order (Operation) |
| EXPORTING | ||
| IV_ORDER_NUMBER | = lv_iv_order_number | |
| IV_OPERATION_NUMBER | = lv_iv_operation_number | |
| IMPORTING | ||
| ET_RETURN | = lv_et_return | |
| ET_CHECKLISTS | = lv_et_checklists | |
| . " EAM_CL_API_READ_LOTS | ||
ABAP code using 7.40 inline data declarations to call FM EAM_CL_API_READ_LOTS
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 AUFNR FROM CAUFVD INTO @DATA(ld_iv_order_number). | ||||
| "SELECT single VORNR FROM AFVC INTO @DATA(ld_iv_operation_number). | ||||
| DATA(ld_iv_operation_number) | = ' '. | |||
Search for further information about these or an SAP related objects