Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MODIFY SCREEN not triggered automatically

Hi All,

I have the following code:

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF r_sonum = 'X'.

IF screen-group1 = 'SC1'.

screen-invisible = '0'.

ELSEIF screen-group1 = 'SC2'.

screen-active = '0'.

screen-invisible = '1'.

ENDIF.

MODIFY SCREEN.

CONTINUE.

ELSEIF r_contra = 'X'.

IF screen-group1 = 'SC2'.

screen-invisible = '0'.

ELSEIF screen-group1 = 'SC1'.

screen-active = '0'.

screen-invisible = '1'.

ENDIF.

MODIFY SCREEN.

CONTINUE.

ENDIF.

ENDLOOP.

I want certain fields to be hidden depending on the radio button they choose. However, If I try to press another radio button, I have to hit enter before the other fields are hidden. How do I make this automatic than when user click a certain radio button, fields are hidden?

Thanks

Tags:
Former Member
Former Member replied

Hi,

u can do it with user command..check the beloe sample code for it..

PARAMETERS : p_lpn TYPE filename-pathintern

DEFAULT c_lpn OBLIGATORY , "Logical Path Name

p_aserv RADIOBUTTON GROUP grp

USER-COMMAND app, "Application server

p_afile1 TYPE filename-fileextern , "Application File

"Name for contracts

p_afile2 TYPE filename-fileextern , "Application

"FileName for

"Long text

p_aerfl1 TYPE filename-fileextern , "Error File

"forcontracts

p_aerfl2 TYPE filename-fileextern , "Error File

"for Longtext

p_pserv RADIOBUTTON GROUP grp, "Presentation Server

p_pfile1 TYPE rlgrap-filename , "Presentation File

"Name forcontracts

p_pfile2 TYPE rlgrap-filename , "Presentation File

"Name for long

"texts

p_errfl1 TYPE rlgrap-filename ,

"Error File for

"contracts

p_errfl2 TYPE rlgrap-filename . "Err File Long text

Rewrad if helpful.

Regards,

nagaraj

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question