SAP EHSWA_140_CHECK_SPLIT_QUANT Function Module for
EHSWA_140_CHECK_SPLIT_QUANT is a standard ehswa 140 check split quant 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 ehswa 140 check split quant FM, simply by entering the name EHSWA_140_CHECK_SPLIT_QUANT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHSWA_140
Program Name: SAPLEHSWA_140
Main Program: SAPLEHSWA_140
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHSWA_140_CHECK_SPLIT_QUANT 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 'EHSWA_140_CHECK_SPLIT_QUANT'".
EXPORTING
* I_VKZ = ESP1_FALSE "
I_EAINTAM = "
I_EAINTAMU = "
I_ENTAMNO = "
* I_EAITNAMU_BASE = "Base Unit of Measure
IMPORTING
E_SPLAM = "Split quantity
E_EAINTAMU2 = "
TABLES
E_SPLAM_TAB = "
EXCEPTIONS
PARAMETER_ERROR = 1
IMPORTING Parameters details for EHSWA_140_CHECK_SPLIT_QUANT
I_VKZ -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_EAINTAM -
Data type: EHSWAS_ENTAMIOT-EAINTAMOptional: No
Call by Reference: No ( called with pass by value option)
I_EAINTAMU -
Data type: EHSWAS_ENTAMIOT-EAINTAMUOptional: No
Call by Reference: No ( called with pass by value option)
I_ENTAMNO -
Data type: EHSWAS_ENTAMIOT-ENTAMNOOptional: No
Call by Reference: No ( called with pass by value option)
I_EAITNAMU_BASE - Base Unit of Measure
Data type: EHSWAS_ENTAMIOT-EAINTAMUOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EHSWA_140_CHECK_SPLIT_QUANT
E_SPLAM - Split quantity
Data type: EHSWAS_LVSEA-SPLAMOptional: No
Call by Reference: No ( called with pass by value option)
E_EAINTAMU2 -
Data type: EHSWAS_LVSEA-EAINTAMUOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EHSWA_140_CHECK_SPLIT_QUANT
E_SPLAM_TAB -
Data type: EHSWA_SPLAM_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHSWA_140_CHECK_SPLIT_QUANT 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_i_vkz | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lv_e_splam | TYPE EHSWAS_LVSEA-SPLAM, " | |||
| lt_e_splam_tab | TYPE STANDARD TABLE OF EHSWA_SPLAM_TAB_TYPE, " | |||
| lv_parameter_error | TYPE EHSWA_SPLAM_TAB_TYPE, " | |||
| lv_i_eaintam | TYPE EHSWAS_ENTAMIOT-EAINTAM, " | |||
| lv_e_eaintamu2 | TYPE EHSWAS_LVSEA-EAINTAMU, " | |||
| lv_i_eaintamu | TYPE EHSWAS_ENTAMIOT-EAINTAMU, " | |||
| lv_i_entamno | TYPE EHSWAS_ENTAMIOT-ENTAMNO, " | |||
| lv_i_eaitnamu_base | TYPE EHSWAS_ENTAMIOT-EAINTAMU. " |
|   CALL FUNCTION 'EHSWA_140_CHECK_SPLIT_QUANT' " |
| EXPORTING | ||
| I_VKZ | = lv_i_vkz | |
| I_EAINTAM | = lv_i_eaintam | |
| I_EAINTAMU | = lv_i_eaintamu | |
| I_ENTAMNO | = lv_i_entamno | |
| I_EAITNAMU_BASE | = lv_i_eaitnamu_base | |
| IMPORTING | ||
| E_SPLAM | = lv_e_splam | |
| E_EAINTAMU2 | = lv_e_eaintamu2 | |
| TABLES | ||
| E_SPLAM_TAB | = lt_e_splam_tab | |
| EXCEPTIONS | ||
| PARAMETER_ERROR = 1 | ||
| . " EHSWA_140_CHECK_SPLIT_QUANT | ||
ABAP code using 7.40 inline data declarations to call FM EHSWA_140_CHECK_SPLIT_QUANT
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_i_vkz) | = ESP1_FALSE. | |||
| "SELECT single SPLAM FROM EHSWAS_LVSEA INTO @DATA(ld_e_splam). | ||||
| "SELECT single EAINTAM FROM EHSWAS_ENTAMIOT INTO @DATA(ld_i_eaintam). | ||||
| "SELECT single EAINTAMU FROM EHSWAS_LVSEA INTO @DATA(ld_e_eaintamu2). | ||||
| "SELECT single EAINTAMU FROM EHSWAS_ENTAMIOT INTO @DATA(ld_i_eaintamu). | ||||
| "SELECT single ENTAMNO FROM EHSWAS_ENTAMIOT INTO @DATA(ld_i_entamno). | ||||
| "SELECT single EAINTAMU FROM EHSWAS_ENTAMIOT INTO @DATA(ld_i_eaitnamu_base). | ||||
Search for further information about these or an SAP related objects