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: 

screen exit for va01 & va21

Former Member
0 Kudos

Hi all,

I have a requirement. I need to add three fields in VA01 in additional data b. I have added the fields using program sapmv45a screen number 8309. But it is getting reflected in VA21 also. But i don't need this in VA21 i need 2 other different fields to be added there. I tried using if sy-tcode = ' va01 ' and loop at screen, both are not working, since the screen number 8309 is not getting captured in sy-dynnr for additional datab screen. Any useful suggestions would be rewarded.

Thanks and Regards,

subbu.

4 REPLIES 4

Former Member
0 Kudos

Have you checked include MV45AOZZ.

Sample code.

MODULE zzpbo_customflds OUTPUT.

IF t180-trtyp = 'V' and sy-tcode = 'VA02'.

LOOP AT SCREEN.

IF screen-name = 'VBAK-ZZFIELD1'.

screen-input = 0.

screen-invisible = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDMODULE.

Former Member
0 Kudos

Hi

Will you be able to use field VBAK-VBTYP.

In case of quotation it will be 'B' and In case of normal sales order it will be 'C'. This VBTYP will be different in case of credit & Debit memo request, Return order like it goes.If you want only for orders than you can consider 'C' only.

Regards

Mani.

Former Member
0 Kudos

self answered

Former Member
0 Kudos

hi,

Can u please tell me the procedure to add fields in VA01 transaction under additional data tab.

do i need access key for this?

thank you.

regards,

prajwala