09-22-2010 7:37 AM
Hi Gurus,
How to Gray out field in infotype for example.infotype 002, if the marital status is "single", the Field name " Since" should be grayed out...
Could you kindly support me to resolve this issue, which is highly required
Advance thanks to gurus...
Thanks & Regards,
Srikanth K
09-22-2010 8:06 AM
09-22-2010 12:44 PM
Thanks for u r answer, but I already know that USER EXIT I went there and i selected 'ZXPADU002' In this Include what kind of code should i keep. Please reply.
Thanks & Regards
Srikanth
09-22-2010 12:54 PM
Write the code where Infotype '0002' is called IN USER EXIT.
loop at screen.
if screen-name = 'P0002-FAMST'. " for marital status
if p0002-famst = '0' . "For single.
screen-input = '0'. "gRAY OUT
modify screen.
EXIT.
endif.
endif.
Endloop.
09-22-2010 1:00 PM
Modified code as we need to Gray out SINCE.
loop at screen.
if screen-name = 'P0002-FAMST'. " for marital status
if p0002-famst = '0' . "For single.
G_FLAG = 'X'. " Check flag ' to know that it has Single .
if screen-name = 'P0002-FAMDT' and G_FLAG = 'X'.
screen-input = ' 0'. "Gray out - Since
MODIFY SCREEN.
EXIT.
ENDIF.
endif.
endif.
Endloop.
09-25-2010 6:27 AM
Hi Boby
Thank you very much for ur response,
We were tried with ur Code but it's not working, Do you have any alternative code to resolve this problem Please reply ASAP.
Thanks,
Srikanth
09-27-2010 9:10 AM
09-22-2010 8:10 AM
Check screen exits,user exits ,dynamic actions related to Infotype 0002.