2008 Jul 14 2:51 PM
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.
2008 Jul 14 3:00 PM
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.
2008 Jul 14 3:00 PM
2008 Jul 14 3:01 PM
IF ( vbak-vkorg = '' and vbak-auart = '' and RV45A-KWMENG
= '0' ).
CASE SY-UCOMM.
when 'SICH'.
VBAP-ABGRU = '10'.
ENDCASE.
ENDIF.
2008 Jul 14 3:06 PM
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.
2008 Jul 14 3:43 PM
hey amit do i need to copy vbap to another name kya.... ur are using xvbap here .
do i need to copy it kya.....
2008 Jul 15 11:30 AM
Satish,
hey amit do i need to copy vbap to another name kyadont 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.