SAP ASSORTMENT_VENDOR_ART_STORE Function Module for NOTRANSL: Funktionsbaustein zum Anzeigen aller Artikel eines Lieferanten z
ASSORTMENT_VENDOR_ART_STORE is a standard assortment vendor art store 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: Funktionsbaustein zum Anzeigen aller Artikel eines Lieferanten z 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 assortment vendor art store FM, simply by entering the name ASSORTMENT_VENDOR_ART_STORE into the relevant SAP transaction such as SE37 or SE38.
Function Group: WSO3
Program Name: SAPLWSO3
Main Program: SAPLWSO3
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ASSORTMENT_VENDOR_ART_STORE 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 'ASSORTMENT_VENDOR_ART_STORE'"NOTRANSL: Funktionsbaustein zum Anzeigen aller Artikel eines Lieferanten z.
EXPORTING
PI_LIFNR = "Vendor Number
* PI_ZUDIS = "
* PI_CALL_FROM = ' ' "
* PI_NEW_ROUTINES = 'X' "
* PI_COMPONENT_CHECK = ' ' "
* PI_COMPONENT = ' ' "
* PI_ESOKZ = ' ' "Purchasing Info Record Category
* PI_WERKS = ' ' "Plant Number
* PI_LOCNR = ' ' "Store Number
* PI_EKORG = ' ' "Purchasing Organization
PI_DATAB = "Valid-From Date
PI_DATBI = "Valid-To Date
PI_LIFKZ = "
* PI_DISPO = ' ' "MRP Controller
* PI_T001W = ' ' "
TABLES
* PI_MATNR = "
* PI_LTSNR = "Vendor Subrange
* PI_ATTYP = "
PE_LIF_ART = "
EXCEPTIONS
NO_ART_VENDOR_STORE = 1 NO_VENDOR_ID = 2 WRONG_MATNR = 3
IMPORTING Parameters details for ASSORTMENT_VENDOR_ART_STORE
PI_LIFNR - Vendor Number
Data type: EINA-LIFNROptional: No
Call by Reference: No ( called with pass by value option)
PI_ZUDIS -
Data type: WSOR_ZUDISOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_CALL_FROM -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
PI_NEW_ROUTINES -
Data type: WTDY-TYP01Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_COMPONENT_CHECK -
Data type: WTDY-TYP01Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_COMPONENT -
Data type: WTDY-TYP01Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_ESOKZ - Purchasing Info Record Category
Data type: MEICO-ESOKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_WERKS - Plant Number
Data type: MARC-WERKSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_LOCNR - Store Number
Data type: WRF1-LOCNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_EKORG - Purchasing Organization
Data type: EINE-EKORGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_DATAB - Valid-From Date
Data type: WLK1-DATABOptional: No
Call by Reference: No ( called with pass by value option)
PI_DATBI - Valid-To Date
Data type: WLK1-DATBIOptional: No
Call by Reference: No ( called with pass by value option)
PI_LIFKZ -
Data type: T001W-VLFKZOptional: No
Call by Reference: No ( called with pass by value option)
PI_DISPO - MRP Controller
Data type: MARC-DISPODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_T001W -
Data type: T001WDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ASSORTMENT_VENDOR_ART_STORE
PI_MATNR -
Data type: WSOR_MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
PI_LTSNR - Vendor Subrange
Data type: WSOR_LTSNROptional: Yes
Call by Reference: No ( called with pass by value option)
PI_ATTYP -
Data type: WSOR_ATTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
PE_LIF_ART -
Data type: WSOR_ARTLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ART_VENDOR_STORE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VENDOR_ID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_MATNR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ASSORTMENT_VENDOR_ART_STORE 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_pi_lifnr | TYPE EINA-LIFNR, " | |||
lt_pi_matnr | TYPE STANDARD TABLE OF WSOR_MATNR, " | |||
lv_no_art_vendor_store | TYPE WSOR_MATNR, " | |||
lv_pi_zudis | TYPE WSOR_ZUDIS, " | |||
lv_pi_call_from | TYPE C, " SPACE | |||
lv_pi_new_routines | TYPE WTDY-TYP01, " 'X' | |||
lv_pi_component_check | TYPE WTDY-TYP01, " SPACE | |||
lv_pi_component | TYPE WTDY-TYP01, " SPACE | |||
lv_pi_esokz | TYPE MEICO-ESOKZ, " SPACE | |||
lt_pi_ltsnr | TYPE STANDARD TABLE OF WSOR_LTSNR, " | |||
lv_pi_werks | TYPE MARC-WERKS, " SPACE | |||
lv_no_vendor_id | TYPE MARC, " | |||
lt_pi_attyp | TYPE STANDARD TABLE OF WSOR_ATTYP, " | |||
lv_pi_locnr | TYPE WRF1-LOCNR, " SPACE | |||
lv_wrong_matnr | TYPE WRF1, " | |||
lv_pi_ekorg | TYPE EINE-EKORG, " SPACE | |||
lt_pe_lif_art | TYPE STANDARD TABLE OF WSOR_ARTL, " | |||
lv_pi_datab | TYPE WLK1-DATAB, " | |||
lv_pi_datbi | TYPE WLK1-DATBI, " | |||
lv_pi_lifkz | TYPE T001W-VLFKZ, " | |||
lv_pi_dispo | TYPE MARC-DISPO, " SPACE | |||
lv_pi_t001w | TYPE T001W. " SPACE |
  CALL FUNCTION 'ASSORTMENT_VENDOR_ART_STORE' "NOTRANSL: Funktionsbaustein zum Anzeigen aller Artikel eines Lieferanten z |
EXPORTING | ||
PI_LIFNR | = lv_pi_lifnr | |
PI_ZUDIS | = lv_pi_zudis | |
PI_CALL_FROM | = lv_pi_call_from | |
PI_NEW_ROUTINES | = lv_pi_new_routines | |
PI_COMPONENT_CHECK | = lv_pi_component_check | |
PI_COMPONENT | = lv_pi_component | |
PI_ESOKZ | = lv_pi_esokz | |
PI_WERKS | = lv_pi_werks | |
PI_LOCNR | = lv_pi_locnr | |
PI_EKORG | = lv_pi_ekorg | |
PI_DATAB | = lv_pi_datab | |
PI_DATBI | = lv_pi_datbi | |
PI_LIFKZ | = lv_pi_lifkz | |
PI_DISPO | = lv_pi_dispo | |
PI_T001W | = lv_pi_t001w | |
TABLES | ||
PI_MATNR | = lt_pi_matnr | |
PI_LTSNR | = lt_pi_ltsnr | |
PI_ATTYP | = lt_pi_attyp | |
PE_LIF_ART | = lt_pe_lif_art | |
EXCEPTIONS | ||
NO_ART_VENDOR_STORE = 1 | ||
NO_VENDOR_ID = 2 | ||
WRONG_MATNR = 3 | ||
. " ASSORTMENT_VENDOR_ART_STORE |
ABAP code using 7.40 inline data declarations to call FM ASSORTMENT_VENDOR_ART_STORE
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 LIFNR FROM EINA INTO @DATA(ld_pi_lifnr). | ||||
DATA(ld_pi_call_from) | = ' '. | |||
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_pi_new_routines). | ||||
DATA(ld_pi_new_routines) | = 'X'. | |||
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_pi_component_check). | ||||
DATA(ld_pi_component_check) | = ' '. | |||
"SELECT single TYP01 FROM WTDY INTO @DATA(ld_pi_component). | ||||
DATA(ld_pi_component) | = ' '. | |||
"SELECT single ESOKZ FROM MEICO INTO @DATA(ld_pi_esokz). | ||||
DATA(ld_pi_esokz) | = ' '. | |||
"SELECT single WERKS FROM MARC INTO @DATA(ld_pi_werks). | ||||
DATA(ld_pi_werks) | = ' '. | |||
"SELECT single LOCNR FROM WRF1 INTO @DATA(ld_pi_locnr). | ||||
DATA(ld_pi_locnr) | = ' '. | |||
"SELECT single EKORG FROM EINE INTO @DATA(ld_pi_ekorg). | ||||
DATA(ld_pi_ekorg) | = ' '. | |||
"SELECT single DATAB FROM WLK1 INTO @DATA(ld_pi_datab). | ||||
"SELECT single DATBI FROM WLK1 INTO @DATA(ld_pi_datbi). | ||||
"SELECT single VLFKZ FROM T001W INTO @DATA(ld_pi_lifkz). | ||||
"SELECT single DISPO FROM MARC INTO @DATA(ld_pi_dispo). | ||||
DATA(ld_pi_dispo) | = ' '. | |||
DATA(ld_pi_t001w) | = ' '. | |||
Search for further information about these or an SAP related objects