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: 

BADI - ME_PROCESS_REQ_CUST - PROCESS_ACCOUNT

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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.

0 Kudos

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.


0 Kudos

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.

0 Kudos

Yes!!!

That´s exactly what I did and It´s working.

Thankx.