cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between BAPI_MOSRVAPS_DELEMULTI and /SAPAPO/OM_ORDER_DELETE

Former Member
0 Kudos

Hi all,

i am not able to understand the main difference between the 2 FMs. both can be used to Delete Planned Orders.

when i use BAPI_MOSRVAPS_DELEMULTI in my optimizer badi, the deleted orders do not show up in planning book.

wherease if i use /SAPAPO/OM_ORDER_DELETE, the orders are deleted from Live cache but still they show up in Planning book.

Please advise.

Thanks

Gaurav

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello Gaurav.

The difference is the BAPI is a high level function. All errors, situations are encapsulated.

The import and export parameters too.

The /SAPAPO/OM_ORDER_DELETE goes directly to the DB, maybe you will need more treatment of the information.

If you entered in the BAPI code, maybe you can see the /SAPAPO/OM_ORDER_DELETE.


Best Regards

Marcelo

Former Member
0 Kudos

thanks Marcelo,

but does Functionality at DB level remain the same?

0 Kudos

Gaurav.

If both use same function... the answer is yes.

you need to debug the bapi to check, but i recommend you to use the BAPI if solve your problems.


Best Regards