Skip to Content
0
Former Member
Dec 07, 2006 at 07:18 AM

Userexit field modification in va02

180 Views

loop at xvbap.

if xvbap-mvgr4 eq ''.

xvbap-mvgr4 = vbak-j_3akvgr7.

modify xvbap.

endif.

endloop.

Hi.. I need To pick the header --> additional grouping --> customer grp 7, and copy that value for each line item.

That is in goto >item >more functions > additional data a >material grp 4 field

But if the user changes the value in va02, line item material grp 4 it should remain same without getting overridden by the value in da header.

The above code works fine in va01. But in va02, say u hv 2 lines in a sales order and the header field in maintained.

Thrfore at this instance the line field is copied the value which is in da header.

But if i change the header field now, the line item fields doesn't get copied..That is because i'm copying it whn the lineitem field is blank only.

But if there is a chnage to the header value also it has to be changed. How do i check this condition?

Can anyone suggest anything? If this cannnnnot be done even can anyone pls let me knw..

Thanks..

Message was edited by:

Keshini Weerasuriya