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

enhancment

Former Member
0 Likes
596

Hi all ,

plz anyone can u tel me , where sud write the custom code and how to implement for   disable screen field values in va01 tcode within order tab and inside the ship to party .

thanks

1 ACCEPTED SOLUTION
Read only

Abhijit74
Active Contributor
0 Likes
561

Hello,

Check Userexit_field_modification in include MV45AFZZ. Just use the loop at screen and set the screen attributes input = 0 and that should do it.

Do it like below.

in MV45AFZZ OF SUBROUTINE userexit_field_modification.

WHEN 'VBAP-POSNR'.

if sy-dynnr eq '4902'.

      IF sy-tcode = 'VA01' OR sy-tcode = 'VA02' AND

               (vbak-posnr = ' '.

        screen-input = 0.

      ENDIF.

ENDIF.

Thanks,

Abhijit

Hi all ,

plz anyone can u tel me , where sud write the custom code and how to implement for   disable screen field values in va01 tcode within order tab and inside the ship to party .

thanks

2 REPLIES 2
Read only

Abhijit74
Active Contributor
0 Likes
562

Hello,

Check Userexit_field_modification in include MV45AFZZ. Just use the loop at screen and set the screen attributes input = 0 and that should do it.

Do it like below.

in MV45AFZZ OF SUBROUTINE userexit_field_modification.

WHEN 'VBAP-POSNR'.

if sy-dynnr eq '4902'.

      IF sy-tcode = 'VA01' OR sy-tcode = 'VA02' AND

               (vbak-posnr = ' '.

        screen-input = 0.

      ENDIF.

ENDIF.

Thanks,

Abhijit

Read only

RaymondGiuseppi
Active Contributor
0 Likes
561

Check USEREXIT_FIELD_MODIFICATION in MV45AFZZ. (ref: User Exits In Sales Document Processing, this is a must be read before asking for exits in SO processing)

Regards,

Raymond