cancel
Showing results for 
Search instead for 
Did you mean: 

Default GL account assignment in ME51N based on condition

Former Member
0 Kudos

Hi

I have the below requirement in ME51N transaction for creating a purchasing requisition.

when the account assignment catagory is '3' ,Document type is 'ZMPC' and the valuation price is greater than $500.00 ,assign the default Gl account value '37000'.

Can any anyone suggest me the proper exit and BADI name with method and also need some sample code.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member262988
Active Contributor
0 Kudos

Hi,

You can use the badi MD_PURREQ_CHANGE ....method CHANGE_BEFORE_SAVE_MRP in this you can change CH_EBKN ....

Thanks,

Shailaja Ainala.

Former Member
0 Kudos

Hi

Can you give the sample code implement the code in the BADI implementation for population for EBKN-SAKTO

Former Member
0 Kudos

Dear Shailaja,

When i was looking for BADI for MRP datas, i saw so many replies from your side. I hope you can help me.

My requirement is

When Planned order converted to PR, i need to check

1) Material Group Description in Material Master - Some Material group as DO NOT USE, so PR not allow to create for this case

2) Same for Purchasing Group (Do NOT use) - which also come from MAterial mAster, Pr not allow to create

3) Purchasing organisation has to be defaulted to "SA00" - how to make it default in converstion screen of Planned order to PR.

Please advice, you reply is most appreciable

Thanks

RS