cancel
Showing results for 
Search instead for 
Did you mean: 

BADI for SNP production horizon

Former Member
0 Kudos

Is it possible to implement a BADI for SNP production horizon to look for factory calendar instead of standard setting (days, weeks) in product location master data?

The issue is because in case of factory shut down, it will be easy if the SNP stock transfer horizon look for factory calendar instead of days or weeks.

Thanks in advance!

-Kumar

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member187488
Active Contributor
0 Kudos

Hi,

There's no standard solution for this since it is designed that production calendar is not considered for production horizon (refer to F1 help of this field).

The logic is applied in FM /SAPAPO/MSDP_SNPHEU_PRODH_CALC. In this FM, parameter ic_ppcal is never filled. You can try to read the /sapapo/loc-ppcal from database and assign the calendar to ic_ppcal.

This is a modification which is not supported by SAP.

Best Regards,
Ada

Former Member
0 Kudos

As I did not get any response, here I explore the possible solutions for this. Please comment on my approach:

BAdI for manipulating the SNP production horizon in product location master.

Use the T-code : SE18 - BAdI Builder

Select the relevant enhancement Spot or Badi name  ex: /SAPAPO/MASTER_DATA

Double Click on Interface on Enhancement spot element definition:

Go to properties tab and select package:

Select the package interface corresponding to the package selected in the previous step.

Select the relevant function module:

Go through the code and double click to dig into more: