Ansicht
Dokumentation

BADI_SEL_ART_BY_SEAS - BAdI: Alternative Consideration of Season for Article Selection

BADI_SEL_ART_BY_SEAS - BAdI: Alternative Consideration of Season for Article Selection

BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Purchasing (LO-RFM-PUR) component. You can use this BAdI to implement customer-specific logic for selection of articles based on season attributes (season year, season, collection, and theme).

It can be used to change the selection logic for the determination of a worklist in Client-Wide Material Discontinuation (transaction WRF_DIS_SEL).

In the standard logic for selection of articles, the season attributes work as a filter, in addition to the other selection criteria. If season-related attributes are used for selection, all articles without any season assignment, or with a season assignment that does not match the season-related selection options, are filtered out. An article is not filtered out if at least one of its assigned seasons matches the selection criteria.

Thereby, all season attributes are considered by the selection according to the selection option logic. For example, if multiple season assignments exist for an article, it cannot be excluded based on only one of its season assignments. It is also not possible to include only articles for which the season assignment(s) exactly match the selection options (for example, you cannot simply exclude articles with additional assignments that do not match the selection options). In addition, it is not possible to select all articles without any season assignment. As soon as the selection options for season attributes are used, only articles with season assignment are selected.

With this BAdI, specific selection logic based on the selection option fields for season-related attributes can be implemented.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

Filter:

The filter APPLICATION is defined for this BAdI. By using this filter in your implementation, you can control for which application/transaction the implementation is used:

  • For Client-Wide Material Discontinuation APPLICATION = WRF_DIS_SEL

Interface:

You can use the following method to implement alternative filter logic for articles, using the season-related selection options:

Filter Articles by Season Selection Options

If you want to carry out discontinuation only for articles that have an assignment to season year 2014 but no season assignment for subsequent years, this is not possible with the standard selection options.

If one season with season year 2014 is assigned for an article, and another season with season year 2015, the article is also selected if the selection options for season year are restricted to all season years < 2015.

By implementing the BAdI, you can enhance the filter logic for season-related attributes in such a way that multiple season assignments can be considered, using logic that is different from that used by the standard selection options.






PERFORM Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3443 Date: 20240607 Time: 120221     sap01-206 ( 81 ms )