Ansicht
Dokumentation

WSD_SELECT_VARIANTS - Select variants of a generic article

WSD_SELECT_VARIANTS - Select variants of a generic article

BAL_S_LOG - Application Log: Log header data   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is used to fetch all the variants of a generic article (PRICAT) from the tablePRICAT_K003.

This function module needs following information to fetch the variants:

1. PRICAT: Unique internal catalog number (PRINBR)

2. Price Catalog Inbound Start of Validity Period (VALIDITY_BASE)

3. PRICAT: EAN/UPC Code of Base Unit of Measure (EAN_UPC_BASE)or

4. Price Catalog: Grouping Field: Generic Article Assignment (VENDOR_SATNR)

Note: Either EAN_UPC_BASE or VENDOR_SATNR should be passed.

If VENDOR_SATNR is provided, then the variants are fetched from PRICAT_K003 table using this VENDOR_SATNR information. (All variants of a same Generic Article will have same VENDOR_SATNR value).

If only EAN_UPC_BASE is provided and VENDOR_SATNR is not provided, then VENDOR_SATNR is fetched using the EAN_UPC_BASE and then again all the Variants will be fetched using this VENDOR_SATNR information.

Note: If for any variant WORKITEM exists (' *** WORKITEM *** '), then WORKITEM will be given more priority over the ORIGITEM (' *** ORIGITEM *** ') and therefore variant line item with PRODUCTGROUP = ' *** ORIGITEM *** ' will be deleted.

Whereas if for any Variant only ORIGITEM exisits and there is no WORKITEM, then the ORIGITEM will be considered.

Example

This funtion module is used in class CL_WSD_CREATE_FROM_CAT to create a new material using the Catalog (PRICAT).

Notes

Further information





Parameters

ET_VARIANT_LIST
IV_EAN_UPC_BASE
IV_PRINBR
IV_VALIDITY_BASE
IV_VENDOR_SATNR

Exceptions

NOT_FOUND
REQUIRED_INFO_MISSING

Function Group

WSD_SELECT_VARIANTS

RFUMSV00 - Advance Return for Tax on Sales/Purchases   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2209 Date: 20240523 Time: 130851     sap01-206 ( 41 ms )