‎2014 Jun 02 3:41 PM
Hi all,
my requirement is to display the tax code from xkomv on VA01, va02 and Va03 transactions.
So i added a zfield in VBAP and VBAK table. then i added it to screen painter.
i coded in USEREXIT_MOVE_FIELD_TP_VBAP AS
FORM USEREXIT_MOVE_FIELD_TO_VBAP.
vbap-zz_mwsk1 = xkomv-mwsk1.
ENDFORM.
and in USEREXIT_MOVE_FIELD_TP_VBAK as
FORM USEREXIT_MOVE_FIELD_TO_VBAk.
vbak-zz_mwsk1 = xkomv-mwsk1.
ENDFORM.
Now when i enter the materials for the first material it is not showing tax code of VBAP(VBAP-zz_mwsk1), but for 2nd material it is showing tax code?
Can anybody please explain why?
Message was edited by: Matthew Billingham
‎2014 Jun 02 4:17 PM
‎2014 Jun 02 4:19 PM
‎2014 Jun 04 10:29 AM
Dear Lakshmipathi,
Can you please alert moderator to delete this post.
I need to delete this post or atleast the screen shots.
Thanks & Regards,
NarsiReddy.
‎2014 Jun 04 11:15 AM
I've done better than that. I've edited your pictures and removed the confidential information.
‎2014 Jun 02 5:17 PM
I'm confused - is this field item-level or header-level? Also have you tried just debugging it to understand why it might not be working? Please clarify what analysis have been done before posting on SCN.
‎2014 Jun 03 8:35 AM
hi jelena perfiljeva,
I have debugged, it is showing value in XKOMV-mwsk1 but is not assigning to VBAP-zz_mwsk1. The problem is Userexit_MOve_field_to_vbap is not working(not executing) for the first item.
My requirement is i need to add field mwsk1 for item level. But i just also tried adding it in header level.
Thanks & regards,
Narsireddy.
‎2014 Jun 04 4:21 PM
It's just a guess but I seriously doubt that user exit USEREXIT_MOVE_FIELD_TO_VBAP is not executed at all for the first material. The problem most likely is that pricing is triggered after that user exit, therefore XKOMV is blank in the first pass. In the second pass it probably has data in it that actually belongs to the first item.
‎2014 Jun 05 8:31 AM
hi jelena perfiljeva,
So, do you have any idea to overcome this?
I even tried using
USEREXIT_SAVE_DOCUMENT.
USEREXIT_SAVE_DOCUMENT_PREPARE
But it is not working.
Thanks & regards,
NarsiReddy.