Application Development 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: 

user exit help

Former Member
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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

former_member181995
Active Contributor
0 Kudos

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.

0 Kudos

Amit could you please explain me this code.

CASE screen-name.

WHEN 'VBAK-FAKSK'."billing block

screen-input = 0.

MODIFY SCREEN.

ENDCASE.

0 Kudos

>

> 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.

0 Kudos

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.

Former Member
0 Kudos

Hi,

Please use this function module. this may help you.

UPDATE_DELIVERY_TABLE

Thanks,

Ravi Kanth.