09-08-2008 1:27 PM
we have a requirement in va01.
based on some logic we need to activate the delivery block
in the user exit.
so please tell me how to do in the user exit mv45afzz.
we need to update the structure xvbak-LIFSK field or some thing else.
when we tried updating this structure it is not updating.
09-08-2008 1:31 PM
When you check the User Exit provided they would have written comments as to what a particular part of the user exit will do. So you check the same and if some block matches your requirement you can write your code there.
Else you can go to debugging mode and check which block of the user exit is called once you process and then write your code there.
Regards,
Pramod
09-08-2008 1:58 PM
Madan,
Exit:mv45afzz
FORM userexit_field_modification.
This code should be used in FORM userexit_field_modification :
IF sy-tcode = 'VA01'.
IF vbak-auart = 'GCR'." OR vbak-auart = 'GRE'.">>>here you must add your codition accordingly
CASE screen-name.
WHEN 'VBAK-FAKSK'."billing block
screen-input = 0.
MODIFY SCREEN.
ENDCASE.
ENDIF.
ENDIF.
Amit.
09-09-2008 4:49 AM
Amit could you please explain me this code.
CASE screen-name.
WHEN 'VBAK-FAKSK'."billing block
screen-input = 0.
MODIFY SCREEN.
ENDCASE.
09-09-2008 5:07 AM
>
> Amit could you please explain me this code.
>
> CASE screen-name.
> WHEN 'VBAK-FAKSK'."billing block
> screen-input = 0.
> MODIFY SCREEN.
> ENDCASE.
Thats very much simple.
Once your VA01/Va02 is called and curser is comes to
screen-name('VBAK-FAKSK'.) than screen input will be zro based on your codition.which exactly you want.
09-09-2008 5:56 AM
Hi Amit thanks for the reply.
we need to activate the approval required option in that.
But according to the code you have given it simply makes the deliv block
editable or not.
so please tell me how to activate this option.
cant we update the xvbak structure , is any reson for that.
09-08-2008 2:29 PM
Hi,
Please use this function module. this may help you.
UPDATE_DELIVERY_TABLE
Thanks,
Ravi Kanth.