05-19-2017 11:58 AM
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.
05-19-2017 12:52 PM
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.