Thursday, August 28, 2008

Note 566025 - Consumed and not consumed forecast together from DP to SNP

Note 566025 - Consumed and not consumed forecast together from DP to SNP

Summary

Symptom

It is needed to release Consumed and not consumed forecast together from DP to SNP.

Other terms

/sapapo/mc90 release-functionality-DP->SNP

Reason and Prerequisites

It is needed to release Consumed and not consumed forecast together from DP to SNP.

Solution

There are two possible solution.

    1. Solution #1.

Please set your SNP data view in a way to have:

  • a standard forecast key figure with category type FA,
  • a standard forecast key figure with category type FC.

Using transaction SE18 and selecting the definition name '/SAPAPO/SDP_RELSTRAT', please push the display button and add in your own implementation for the method 'SET_STRATEGY' the following code:
if IV_CATEGORY = 'FC'.
CV_NO_STRAT = 'X'.
endif.

Using transaction SMOD and selecting the Enhancement APODM017 and the Components radio button, please double-click on the Function module 'EXIT_/SAPAPO/SAPLAPO_EXIT_001'.
Then in your own include add the following code:
FIELD-SYMBOLS: like line of SCHEDULE_LINE_TAB.
LOOP AT SCHEDULE_LINE_TAB assigning
where CATEGORY = 'FC'.
-IGNORE_PEGGING = 'X'.
ENDLOOP.

The forecast ATPcat FC must not be used for other purposes already.
Activate all objects where these changes are done.
The consumed forecast should be displayed by the key figure with category FA, the not consumed forecast should be displayed by the key figure with category FC and no problem or side effects should occur in the consumption and PP/DS processes.

    2. Solution #2.

If the forecast ATPcat FC is used for other purposes already then this second solution can be implemented.

      a) The following way is valid for APO3.0 and APO3.1.

Please set your SNP data view in a way to have:

  • a standard forecast key figure with category type FA,
  • a standard forecast key figure with category type FA and semantic value = 011.

With this setting, releasing by /sapapo/mc90 to category FA once you will have then values in both key figures and no badi and no user exit are necessary any more.
Consumed forecast will be available in the first standard forecast key figure, not consumed forecast will be available in the standard forecast key figure with semantic value = 011.

      a) The following way is valid for SCM4.0 and newer releases.

Please set your SNP data view in a way to have:

  • a standard forecast key figure with category group DF1, category FA and quantity type initial, ( standard forecast key figure setting),
  • a standard forecast key figure with your own category group, category FA and quantity type = 01, Key Figure Semantics = 000 and Key Figure Funcs initial.

With this setting, releasing by /sapapo/mc90 to category FA once you will have then values in both key figures and no badi and no user exit are necessary any more.
Consumed forecast will be available in the first standard forecast key figure, not consumed forecast will be available in the standard forecastkey figure with quantity type = 01.

No comments: