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: 

Gray out

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

Srikanth,

you can check this user exit

PBAS0001

Thanks

Bala Duvvuri

0 Kudos

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

0 Kudos

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.

0 Kudos

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.

0 Kudos

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

0 Kudos

I think your problem is solved .Thanks!

Former Member
0 Kudos

Check screen exits,user exits ,dynamic actions related to Infotype 0002.