10-17-2005 9:55 AM
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
10-17-2005 9:58 AM
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
10-17-2005 10:09 AM
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
10-17-2005 10:06 AM
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
10-17-2005 10:23 AM
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