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: 

User Exit/BADI to modify MCHA-HSDAT while saving a process order

Former Member
0 Kudos

Dear all,

I would like to know if there are any user-exits or BADI's to modify MCHA-HSDAT field, while saving process order.

Scenario: There are two material types ZBUL and ZFDF. After releasing the process order and when I save, an entry in MCHA table for material with material type ZFDF is created.I should make a check if MCHA-HSDAT of this ZFDF material is equal to MCHA-HSDAT of ZBUL.

If not, I should replace MCHA-HSDAT of ZFDF material with the HSDAT of ZBUL material.

I have checked user exits 'PPCO0007' and PPCO0014 and PPCO0020 but I could not find MCHA structure to update.

Do, I need to create an implicit enhancement for this?

Thanks in advance!

Aravind

1 ACCEPTED SOLUTION

0 Kudos

Aravind,

Do the following steps in order to find the best exit for you.

for e.g. using enhancemnt PPCO0020 FM EXIT_SAPLCOKO_005. Use the "Where used list" to get the point where this FM has been called. So in this case you can use "(SAPLCOKO)MCHA" as field symbol.

Any question, let me know.

Alex

4 REPLIES 4

0 Kudos

Aravind,

Do the following steps in order to find the best exit for you.

for e.g. using enhancemnt PPCO0020 FM EXIT_SAPLCOKO_005. Use the "Where used list" to get the point where this FM has been called. So in this case you can use "(SAPLCOKO)MCHA" as field symbol.

Any question, let me know.

Alex

0 Kudos

Hello

How did you resolve this issue please reply

0 Kudos

Hi Tisha,

Alex's reply helped me in solving the issue.

0 Kudos

Could you please send me code how did you implement this ?