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: 

To add New Custom fields in VA01

Former Member
0 Kudos

Hi All,

I have added a new custom field on the Va01. I want to make this field as display when we go with Tcode VA03 and as a enable mode when we go with Tcode Va01 and Va02.

Please help me out.

Regards

Kumar

4 REPLIES 4

Former Member
0 Kudos

hi,

try with FORM userexit_field_modification routine in the MV45AFZZ user exit

IF SY-TCODE = 'VA01' or SY-TCODE = 'VA02'.

IF SCREEN-NAME = <ieldname>

SCREEN-INPUT = 1.

endif.

else

screen-input = 0.

endif.

cheers,

sasi

0 Kudos

just a slight modification in the code given by sasi...

IF SY-TCODE = 'VA01' or SY-TCODE = 'VA02'.

loop at screen.

IF SCREEN-NAME = <fieldname>

SCREEN-INPUT = 1.

endif.

modify screen.

endloop.

else

loop at screen.

if screen-name = <fieldname>

screen-input = 0.

endif.

modify screen.

endloop.

endif.

rgds,

PJ

Former Member
0 Kudos

You should you the screen 8309 of program SAPMV45A to add custom fields for header data, and screen 8459 of program SAPMV45A for item data.

These screen are the subscreen of the additional data tabs.

In the PBO of these screen you can manage input/output attribute by LOOP AT SCREEN/ENDLOOP, for example:

IF SY-TCODE+3(1) = '3'.

LOOP AT SCREEN.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

Max

Message was edited by: max bianchi

Former Member
0 Kudos

I would like to add following additions in the logic suggested by Max bianchi .

loop at screen.

if screen-name = 'VBAK-NEW_FIELD1'

screen-input = 1.

modify screen.

endif.

endloop.

Here NEW_FIELD1 is the new custom field on Va01

regards

Sujith