SAP LXVAS_PACK_TRANS_CALL Function Module for Calling packing transactions
LXVAS_PACK_TRANS_CALL is a standard lxvas pack trans call SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Calling packing transactions 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 lxvas pack trans call FM, simply by entering the name LXVAS_PACK_TRANS_CALL into the relevant SAP transaction such as SE37 or SE38.
Function Group: LXVAS_WCNTR
Program Name: SAPLLXVAS_WCNTR
Main Program: SAPLLXVAS_WCNTR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LXVAS_PACK_TRANS_CALL 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 'LXVAS_PACK_TRANS_CALL'"Calling packing transactions.
EXPORTING
IV_WAREHOUSE = "Warehouse Number
IV_VAS_ORDER_ID = "VAS Order
* IV_DISPLAY_ONLY = "General Flag
IMPORTING
EV_DATA_CHANGED = "Checkbox
EV_PACK_TYPE = "Single-character flag
EXCEPTIONS
NO_REQUEST_ORDER_FOUND = 1 NO_REFRENCE_DOCUMENT_FOUND = 2 ERROR_OTHERS = 3
IMPORTING Parameters details for LXVAS_PACK_TRANS_CALL
IV_WAREHOUSE - Warehouse Number
Data type: LEINT_LGNUMOptional: No
Call by Reference: No ( called with pass by value option)
IV_VAS_ORDER_ID - VAS Order
Data type: LXVAS_VORIDOptional: No
Call by Reference: No ( called with pass by value option)
IV_DISPLAY_ONLY - General Flag
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LXVAS_PACK_TRANS_CALL
EV_DATA_CHANGED - Checkbox
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
EV_PACK_TYPE - Single-character flag
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_REQUEST_ORDER_FOUND - No request order found for VAS Order
Data type:Optional: No
Call by Reference: Yes
NO_REFRENCE_DOCUMENT_FOUND - No refrence document found for VAS Order
Data type:Optional: No
Call by Reference: Yes
ERROR_OTHERS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for LXVAS_PACK_TRANS_CALL 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_warehouse | TYPE LEINT_LGNUM, " | |||
| lv_ev_data_changed | TYPE XFELD, " | |||
| lv_no_request_order_found | TYPE XFELD, " | |||
| lv_ev_pack_type | TYPE CHAR1, " | |||
| lv_iv_vas_order_id | TYPE LXVAS_VORID, " | |||
| lv_no_refrence_document_found | TYPE LXVAS_VORID, " | |||
| lv_error_others | TYPE LXVAS_VORID, " | |||
| lv_iv_display_only | TYPE FLAG. " |
|   CALL FUNCTION 'LXVAS_PACK_TRANS_CALL' "Calling packing transactions |
| EXPORTING | ||
| IV_WAREHOUSE | = lv_iv_warehouse | |
| IV_VAS_ORDER_ID | = lv_iv_vas_order_id | |
| IV_DISPLAY_ONLY | = lv_iv_display_only | |
| IMPORTING | ||
| EV_DATA_CHANGED | = lv_ev_data_changed | |
| EV_PACK_TYPE | = lv_ev_pack_type | |
| EXCEPTIONS | ||
| NO_REQUEST_ORDER_FOUND = 1 | ||
| NO_REFRENCE_DOCUMENT_FOUND = 2 | ||
| ERROR_OTHERS = 3 | ||
| . " LXVAS_PACK_TRANS_CALL | ||
ABAP code using 7.40 inline data declarations to call FM LXVAS_PACK_TRANS_CALL
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.Search for further information about these or an SAP related objects