cancel
Showing results for 
Search instead for 
Did you mean: 

How to commit changes after /SAPAPO/HEUR_DO_HEURISTICS ??

Former Member
0 Kudos

Hi gurus,

I have a custom program which calls an heuristic with the FM /SAPAPO/HEUR_DO_HEURISTICS. The heuristic I'm calling executes the algorithm /SAPAPO/HEU_PLAN_STANDARDLOTS and as result, new planned orders are created if needed.


My question is the following:


When I run the heuristic from the RRP3 transaction, I can see the new planned orders after the execution, and the orders are finally created in the system when I push in the 'Save' button.


But when I'm running the heuristic from my custom program, the new orders are not saved in the system. I think after tha calling to the FM for launch the heuristic, It's required some kind of commit work...


Does anybody know how to do this? My skills in APO are still so basic.


Best regards!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Finally got the solution. FM '/SAPAPO/RRP_COMMIT

Answers (2)

Answers (2)

Former Member
0 Kudos

Hope the Simesession and simversion parameter values are populated correctly in the custom program..

thanga_prakash
Active Contributor
0 Kudos

Hi,

Did you try by using the COMMIT WORK after the Function module call.

Regards,

TP

Former Member
0 Kudos

Hi Thanga,

Yes, I've tried but there was no luck. It did not work.

Keep searching. Thanks!