2011 Jan 10 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
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.
2011 Jan 11 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.
2014 Jul 29 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.
2014 Jul 30 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.
2014 Jul 30 2:09 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |