cancel
Showing results for 
Search instead for 
Did you mean: 

BADI /SAPAPO/SNP_GET_DATE during Heuristics

Former Member
0 Kudos

Hi Experts,

We have a requirement to change the planned order date during heuristic run so that this can be planned based on calendar maintained.

I was trying to trigger BADI /SAPAPO/SNP_GET_DATE during location heuristics.

Unfortunately I could trigger that only when we do not have any PPM. But if there is a PPM existing for the same location product the BADI does not trigger.

We want to change the receipt date by using this BADI.

Kindly let me know your views.

Thanks,

RP.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi RP,

Maybe the issue is resource calendar. Please check this link & note: 1796539 - Resource calendar not passed to BAdI/SAPAPO/SNP_GET_DATE.

Hope that can help you!

Thanks.

Regards, Marius

https://www.consolut.com/en/s/sap-ides-access/d/s/doc/YY-SIMG$SAPAPO$SNP_GET_DATE

Former Member
0 Kudos

Hi Marius,

I have checked the note and the function module /SAPAPO/MSDP_MD_CAL_PROD_GET specified inside the note is triggering.

A strange thing noticed here is the BADI is triggering only for some periods. But not for all.

I could see it triggering only just for a week.

Can you pls let me know if there are any comparisons or basic things missing, that we should carryout in the calendars which is causing to trigger only at certain periods.

Thanks,

RP.

Former Member
0 Kudos

Hi RP,

I think that you should implement the note and then check if the resource calendar is triggered for all periods. You can check the resource calendar, breaks and capacity to be sure that everything is OK.

Thanks.

Regards, Marius 

Former Member
0 Kudos

Hello Marius,

I tried to implement the note and even then there was no result.

The BADI is still not triggering.

Can you let me know if there are any prerequisites if you have come across.

Former Member
0 Kudos

Hello RP,

I don't know what is your APO release but maybe with this note you can fix the issue:

841657  - SNP heuristic: /SAPAPO/SNP_GET_DATE BAdI

Please check this thread too: http://scn.sap.com/thread/3401512

Thanks.

Regards, Marius

Former Member
0 Kudos

Hi Marius,

There was a configuration issue in the time stream calendar which was not maintained properly.

It now triggers the BADI with PPM.

But the BADI /sapapo/snp_get_date is used to change the availability date due to which order end is getting date changed. Instead I would like to change the start date of the order.

Please let me know your views.

Thanks,

RP.

Former Member
0 Kudos

Hello RP,

After extraction  (BAPI_MOSRVAPS_GETLIST2) you have to create a program to change the dates. Then load the changes with BAPI_MOSRVAPS_SAVEMULTI3.

Check this link too: http://scn.sap.com/thread/1856829

Hope that can help you!

Thanks.

Regards, Marius