Skip to Content
0
Former Member
Jul 15, 2008 at 08:38 AM

va01 user exit

21 Views

Hi friends,

Iam facing the following problem in the below user exit.

in the include MV45AFZZ

FORM USEREXIT_SAVE_DOCUMENT

In that iam writing a code.

actually my requirment is

loop at xvbap where KWMENG is initial.

xVBAP-ABGRU = 10.

modify xvbap index sy-tabix transporting abgru.

endloop.

actually my requirment is

ie: for any values i enter it should perform a check that if the order quantity is 0 and when i save the order then if the order quantity is initial then the REASON FROM REJECTION should be asigned to it.

ie : vbap-abgru can be any one of the value.

can any one tell me how can i do it.

when i check the value in the va02 , FOR the initial order quanity the REASON FOR REJECTION should be assigned.

Iam getting every thing correct in the debugging and the document number is being saved but the reason for rejection value is not getting assigned when i see the order in va02.

can any one tell me were iam getting wrong......

points will be regared,

Regards

Kumar.