SAP LESI_T347A_READ Function Module for Read table T347A: TRM Transfer Order distribution
LESI_T347A_READ is a standard lesi t347a read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read table T347A: TRM Transfer Order distribution 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 lesi t347a read FM, simply by entering the name LESI_T347A_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: LESIA
Program Name: SAPLLESIA
Main Program: SAPLLESIA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LESI_T347A_READ 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 'LESI_T347A_READ'"Read table T347A: TRM Transfer Order distribution.
EXPORTING
IV_LGNUM = "Warehouse Number / Warehouse Complex
IV_VLTYP = "Source storage type
IV_NLTYP = "Destination storage type
IV_BWLVS = "Movement type for Warehouse Management
IMPORTING
EV_ACTIV = "Indicator: deactivate activity for link
IMPORTING Parameters details for LESI_T347A_READ
IV_LGNUM - Warehouse Number / Warehouse Complex
Data type: T347A-LGNUMOptional: No
Call by Reference: Yes
IV_VLTYP - Source storage type
Data type: T347A-VLTYPOptional: No
Call by Reference: Yes
IV_NLTYP - Destination storage type
Data type: T347A-NLTYPOptional: No
Call by Reference: Yes
IV_BWLVS - Movement type for Warehouse Management
Data type: T347A-BWLVSOptional: No
Call by Reference: Yes
EXPORTING Parameters details for LESI_T347A_READ
EV_ACTIV - Indicator: deactivate activity for link
Data type: T347A-KZINAOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for LESI_T347A_READ 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_ev_activ | TYPE T347A-KZINA, " | |||
| lv_iv_lgnum | TYPE T347A-LGNUM, " | |||
| lv_iv_vltyp | TYPE T347A-VLTYP, " | |||
| lv_iv_nltyp | TYPE T347A-NLTYP, " | |||
| lv_iv_bwlvs | TYPE T347A-BWLVS. " |
|   CALL FUNCTION 'LESI_T347A_READ' "Read table T347A: TRM Transfer Order distribution |
| EXPORTING | ||
| IV_LGNUM | = lv_iv_lgnum | |
| IV_VLTYP | = lv_iv_vltyp | |
| IV_NLTYP | = lv_iv_nltyp | |
| IV_BWLVS | = lv_iv_bwlvs | |
| IMPORTING | ||
| EV_ACTIV | = lv_ev_activ | |
| . " LESI_T347A_READ | ||
ABAP code using 7.40 inline data declarations to call FM LESI_T347A_READ
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 KZINA FROM T347A INTO @DATA(ld_ev_activ). | ||||
| "SELECT single LGNUM FROM T347A INTO @DATA(ld_iv_lgnum). | ||||
| "SELECT single VLTYP FROM T347A INTO @DATA(ld_iv_vltyp). | ||||
| "SELECT single NLTYP FROM T347A INTO @DATA(ld_iv_nltyp). | ||||
| "SELECT single BWLVS FROM T347A INTO @DATA(ld_iv_bwlvs). | ||||
Search for further information about these or an SAP related objects