01-10-2011 1:22 PM
Hi All,
We are trying to implement BADI ME_PROCESS_REQ_CUST(method - Process_account) to restrict change in G/L account value in transaction ME51n and ME52n.If just Account assignmnet category is given and Item category is selected as standard (blank) while creating PR the method PROCESS_ACCOUNT is called from BADI ME_PROCESS_REQ_CUST. But if we put Item Category value as D(service) the method PROCESS_ACCOUNT is not called. Can any please help.
Thanks in Advance
Nisha
01-11-2011 10:06 AM
Hi Nisha,
Yeah, it is true that PROCESS_ACCOUNT will not trigger once you give Item Category as D. But you can use method CHECK to control the G/L account ,there you will get Account Assignment data and Item data together and this method will get triggered just before saving the PR.
Thanks & Regards,
Faheem.
07-29-2014 2:41 PM
Hi!!!
I also need accounting data but I don´t know how to access to accounting data within check method. Coudl you give me an example please?
Thank you very much in deed.
07-30-2014 2:02 PM
Hi Jaione,
You can try this way. You try do your validation at same method process_account.Here is there is any error export a variable to method check and there you import . Next pass this value to ch_failed and it will throw an error in logs and wont allow to save pr. Other option is there is badi you can try it.
Regards,
Madhu.
07-30-2014 2:09 PM