cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Selection texts in a generated program

Former Member
0 Kudos

Hi there,

Can anybody give me any hint of how can we create selection texts for any selection screen element where the selection screen itself will be generated via some other program?

Thanks in advance.

Best Regards,

Deb.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi debkumar,

1. The Important thing is

NAME of the screen element.

eg. name is XYZ.

then we can access it in program like this :

%_XYZ_%_app_%-text = 'Hello Sir'.

(Please note the FORMAT - Its important)

3. try this code (just copy paste in new program)

IT WILL CHANGE TEXT OF RADIO BUTTONS

WHEN PUSHBUTTON IS CLICKED.

REPORT abc.

*----


PARAMETERS : abc RADIOBUTTON GROUP g1,

xyz RADIOBUTTON GROUP g1.

SELECTION-SCREEN : PUSHBUTTON /15(25) pb USER-COMMAND pp .

*----


ABC, XYZ

AT SELECTION-SCREEN .

IF sy-ucomm = 'PP'.

%_abc_%_app_%-text = 'Hello Sir'.

%_xyz_%_app_%-text = 'How are u ?'.

ENDIF.

regards,

amit m.