SAP STOCK_PACK_SEL Function Module for NOTRANSL: Selektion von Beständen für APO mit Hilfe vorselektierter Schlüs









STOCK_PACK_SEL is a standard stock pack sel SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Selektion von Beständen für APO mit Hilfe vorselektierter Schlüs 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 stock pack sel FM, simply by entering the name STOCK_PACK_SEL into the relevant SAP transaction such as SE37 or SE38.

Function Group: MBAP
Program Name: SAPLMBAP
Main Program: SAPLMBAP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function STOCK_PACK_SEL 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 'STOCK_PACK_SEL'"NOTRANSL: Selektion von Beständen für APO mit Hilfe vorselektierter Schlüs
EXPORTING
I_CHARG = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MARD = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MSKU = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MSLB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MSKA = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MSPR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MARC = "
* I_ALL_KEYS = "
* I_MAXROWS = "Predefined Type

CHANGING
CV_FINISHED = "Generic Type

TABLES
STOCK_KEYS = "List with Keys for APO Stock Selection
T_MARD = "Transfer Structure: Storage Location Stock
T_MCHB = "Transfer Structure: Batch Stocks
T_MKOL = "Transfer Structure: Consignment Stocks for Supplier
T_MSKU = "Transfer Structure: Customer Special Stock
T_MSLB = "Transfer Structure: Supplier Special Stock
T_MSPR = "Transfer Structure: Project Stocks
T_MSKA = "Transfer Structure: Sales Order Stock
T_MARC = "Transfer Structure for Stock in Transit/Transfer (Plant)
.



IMPORTING Parameters details for STOCK_PACK_SEL

I_CHARG - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

I_MARD - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MSKU - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MSLB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MSKA - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MSPR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MARC -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ALL_KEYS -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MAXROWS - Predefined Type

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for STOCK_PACK_SEL

CV_FINISHED - Generic Type

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for STOCK_PACK_SEL

STOCK_KEYS - List with Keys for APO Stock Selection

Data type: MBSTOCKKEY
Optional: No
Call by Reference: No ( called with pass by value option)

T_MARD - Transfer Structure: Storage Location Stock

Data type: MBCIFXMARD
Optional: No
Call by Reference: No ( called with pass by value option)

T_MCHB - Transfer Structure: Batch Stocks

Data type: MBCIFXMCHB
Optional: No
Call by Reference: No ( called with pass by value option)

T_MKOL - Transfer Structure: Consignment Stocks for Supplier

Data type: MBCIFXMKOL
Optional: No
Call by Reference: No ( called with pass by value option)

T_MSKU - Transfer Structure: Customer Special Stock

Data type: MBCIFXMSKU
Optional: No
Call by Reference: No ( called with pass by value option)

T_MSLB - Transfer Structure: Supplier Special Stock

Data type: MBCIFXMSLB
Optional: No
Call by Reference: No ( called with pass by value option)

T_MSPR - Transfer Structure: Project Stocks

Data type: MBCIFXMSPR
Optional: No
Call by Reference: No ( called with pass by value option)

T_MSKA - Transfer Structure: Sales Order Stock

Data type: MBCIFXMSKA
Optional: No
Call by Reference: No ( called with pass by value option)

T_MARC - Transfer Structure for Stock in Transit/Transfer (Plant)

Data type: MBCIFXMARC
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for STOCK_PACK_SEL 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_charg  TYPE STRING, "   
lt_stock_keys  TYPE STANDARD TABLE OF MBSTOCKKEY, "   
lv_cv_finished  TYPE C, "   
lv_i_mard  TYPE C, "   
lt_t_mard  TYPE STANDARD TABLE OF MBCIFXMARD, "   
lv_i_msku  TYPE MBCIFXMARD, "   
lt_t_mchb  TYPE STANDARD TABLE OF MBCIFXMCHB, "   
lv_i_mslb  TYPE MBCIFXMCHB, "   
lt_t_mkol  TYPE STANDARD TABLE OF MBCIFXMKOL, "   
lv_i_mska  TYPE MBCIFXMKOL, "   
lt_t_msku  TYPE STANDARD TABLE OF MBCIFXMSKU, "   
lv_i_mspr  TYPE MBCIFXMSKU, "   
lt_t_mslb  TYPE STANDARD TABLE OF MBCIFXMSLB, "   
lv_i_marc  TYPE MBCIFXMSLB, "   
lt_t_mspr  TYPE STANDARD TABLE OF MBCIFXMSPR, "   
lt_t_mska  TYPE STANDARD TABLE OF MBCIFXMSKA, "   
lv_i_all_keys  TYPE MBCIFXMSKA, "   
lt_t_marc  TYPE STANDARD TABLE OF MBCIFXMARC, "   
lv_i_maxrows  TYPE I. "   

  CALL FUNCTION 'STOCK_PACK_SEL'  "NOTRANSL: Selektion von Beständen für APO mit Hilfe vorselektierter Schlüs
    EXPORTING
         I_CHARG = lv_i_charg
         I_MARD = lv_i_mard
         I_MSKU = lv_i_msku
         I_MSLB = lv_i_mslb
         I_MSKA = lv_i_mska
         I_MSPR = lv_i_mspr
         I_MARC = lv_i_marc
         I_ALL_KEYS = lv_i_all_keys
         I_MAXROWS = lv_i_maxrows
    CHANGING
         CV_FINISHED = lv_cv_finished
    TABLES
         STOCK_KEYS = lt_stock_keys
         T_MARD = lt_t_mard
         T_MCHB = lt_t_mchb
         T_MKOL = lt_t_mkol
         T_MSKU = lt_t_msku
         T_MSLB = lt_t_mslb
         T_MSPR = lt_t_mspr
         T_MSKA = lt_t_mska
         T_MARC = lt_t_marc
. " STOCK_PACK_SEL




ABAP code using 7.40 inline data declarations to call FM STOCK_PACK_SEL

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!