SAP EHSWA_141_MOVEMENT_TYPE_TXT Function Module for
EHSWA_141_MOVEMENT_TYPE_TXT is a standard ehswa 141 movement type txt 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 141 movement type txt FM, simply by entering the name EHSWA_141_MOVEMENT_TYPE_TXT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHSWA_141
Program Name: SAPLEHSWA_141
Main Program: SAPLEHSWA_141
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHSWA_141_MOVEMENT_TYPE_TXT 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_141_MOVEMENT_TYPE_TXT'".
EXPORTING
I_BWART = "
* I_SOBKZ = "
* I_KZBEW = "
* I_KZZUG = "
* I_KZVBR = "
IMPORTING
E_BTEXT = "Text for Movement Type
EXCEPTIONS
NO_ENTRY = 1
IMPORTING Parameters details for EHSWA_141_MOVEMENT_TYPE_TXT
I_BWART -
Data type: T156T-BWARTOptional: No
Call by Reference: No ( called with pass by value option)
I_SOBKZ -
Data type: T156T-SOBKZOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KZBEW -
Data type: T156T-KZBEWOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KZZUG -
Data type: T156T-KZZUGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KZVBR -
Data type: T156T-KZVBROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EHSWA_141_MOVEMENT_TYPE_TXT
E_BTEXT - Text for Movement Type
Data type: T156T-BTEXTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ENTRY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHSWA_141_MOVEMENT_TYPE_TXT 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_e_btext | TYPE T156T-BTEXT, " | |||
| lv_i_bwart | TYPE T156T-BWART, " | |||
| lv_no_entry | TYPE T156T, " | |||
| lv_i_sobkz | TYPE T156T-SOBKZ, " | |||
| lv_i_kzbew | TYPE T156T-KZBEW, " | |||
| lv_i_kzzug | TYPE T156T-KZZUG, " | |||
| lv_i_kzvbr | TYPE T156T-KZVBR. " |
|   CALL FUNCTION 'EHSWA_141_MOVEMENT_TYPE_TXT' " |
| EXPORTING | ||
| I_BWART | = lv_i_bwart | |
| I_SOBKZ | = lv_i_sobkz | |
| I_KZBEW | = lv_i_kzbew | |
| I_KZZUG | = lv_i_kzzug | |
| I_KZVBR | = lv_i_kzvbr | |
| IMPORTING | ||
| E_BTEXT | = lv_e_btext | |
| EXCEPTIONS | ||
| NO_ENTRY = 1 | ||
| . " EHSWA_141_MOVEMENT_TYPE_TXT | ||
ABAP code using 7.40 inline data declarations to call FM EHSWA_141_MOVEMENT_TYPE_TXT
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 BTEXT FROM T156T INTO @DATA(ld_e_btext). | ||||
| "SELECT single BWART FROM T156T INTO @DATA(ld_i_bwart). | ||||
| "SELECT single SOBKZ FROM T156T INTO @DATA(ld_i_sobkz). | ||||
| "SELECT single KZBEW FROM T156T INTO @DATA(ld_i_kzbew). | ||||
| "SELECT single KZZUG FROM T156T INTO @DATA(ld_i_kzzug). | ||||
| "SELECT single KZVBR FROM T156T INTO @DATA(ld_i_kzvbr). | ||||
Search for further information about these or an SAP related objects