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 for VA02

0 Kudos

Hi All,

I use the user exit EXIT_SAPMV45A_003 for modifying the product hierarchy data in VA02. But when my program pass the new value in product hierarchy , system still capture the old value of product hierarchy after save.

Please kindly help.

thank you

5 REPLIES 5

Former Member
0 Kudos

I think, this enhancement doesn't trigger during change in Item Data. Try with Userexit MV45AFZZ, form-routine "USEREXIT_MOVE_FIELD_TO_VBAP".

0 Kudos

HI,

thanks for quick response. I tried to use the USEREXIT_MOVE_FIELD_TO_VBAP and set the VBAP-PRODH = 'AAAAA' in the code, but system still not update my product hierarchy to the new value after i save the Sales order.

Please kindly help.

thank you

0 Kudos

I checked the scenario and working fine. Put a break-point on the user exit code and check whether the Exit is being called after you change the data at item level.

0 Kudos

Hi,

Let me explain more regarding my case. For eg, i change the SO item no 1 description without changing the product hierarchy through the VA02. When i save this SO, even though in the USEREXIT_MOVE_FIELD_TO_VBAP i had set as VBAP-PRODH = 'AAAAA', but system still not change the item product hierarchy.

please kindly help.

thank you

0 Kudos

hmmm. Looks quite strange. Try to shift your coding from this form-routine to USEREXIT_SAVE_DOCUMENT_PREPARE. Product hierarchy value should be updated in XVBAP internal table structure (update UPDKZ with 'U' along with field PRODH). But this will not work if you want to show the user the changed Product Hierarchy value as soon as the user change the Material Description.