Application Development and Automation 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: 
Read only

user exit for va01

Former Member
0 Likes
751

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

when IF ( vbak-vkorg = '' and vbak-auart = '' ).

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 any mesage from 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.

Points will be regarded

Regards,

KUMAR.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
724

what issue are you facing?

Can you show your code?

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

when IF ( vbak-vkorg = '' and vbak-auart = '' ).

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 any mesage from 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.

Points will be regarded

Regards,

KUMAR.

5 REPLIES 5
Read only

Former Member
0 Likes
725

what issue are you facing?

Can you show your code?

Read only

0 Likes
724

IF ( vbak-vkorg = '' and vbak-auart = '' and RV45A-KWMENG

= '0' ).

CASE SY-UCOMM.

when 'SICH'.

VBAP-ABGRU = '10'.

ENDCASE.

ENDIF.

Read only

Former Member
0 Likes
724

Satish,

just use like this i had use somthing similer for this:

i thin you need to put this into

FORM userexit_save_document_prepare instead

FORM USEREXIT_SAVE_DOCUMENT

IF xvbap-netwr = '0'.

MESSAGE e001(ztest)."here you need to apply your logic

ENDIF.

Read only

0 Likes
724

hey amit do i need to copy vbap to another name kya.... ur are using xvbap here .

do i need to copy it kya.....

Read only

0 Likes
724

Satish,

hey amit do i need to copy vbap to another name kya

dont use this type of language cause SDN is not for only indian guys.may be from this thread other people can also take help.

no need of copy to that itab.

Amit.