Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Question regarding service entry sheet creation and MIRO posting automation?

Former Member
0 Kudos

Hi all experts,

I have a requirement like while user doing creation of service entry sheet by using ML81N

at that same time i also want to create miro parking document also through BAPI when user click save button in ml81n transaction. For that i need to do enhancement. So i used that badi MB_DOCUMENT_BADI (IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE) inside that badi i wrote my code to run BAPI. Problem is, everything is looks good but i am getting this error service entry sheet no does not belongs to this purchase order. That at that same time in mseg the respective no has not been updated. For that where i need to write my code with out using access key.

Please help me out. Please suggest me what i need to do follow to achieve this requirement.

Thanks in advance.

Regards,

Kaushik Pattanayak.

1 REPLY 1

anand_sagarsethi
Contributor
0 Kudos

https://archive.sap.com/discussions/thread/3355900

This piece can help you..

Also to create a Invoice parking against the service entry sheet; you are supposed to finish the save of service entry sheet & then proceed to create an invoice parking. So Before Save cannot work.

You can also try using: MB_DOCUMENT_UPDATE method.