Application Development and Automation 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: 
Read only

user command for the parameters

Former Member
0 Likes
4,215

hi all, i have one doubt help me how to give user command (click) for parameters.

regards,

kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,038

Hi nareshreddy ,

The user Command is assigned to Radio Button or Check boxes..

the user command should kept to first field in the parameters List.

the user-command allows for one character fields..

with the Help of user command the action will trigger when ever you enter or choose another fields

in the parameter list..

you will not able to put user-command for table fields...

Regards,

Prabhudas

5 REPLIES 5
Read only

Former Member
0 Likes
2,038

Hi,

Check below:

SELECTION-SCREEN:

BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,

BEGIN OF LINE,

PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,

PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,

END OF LINE,

BEGIN OF LINE,

PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,

PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,

END OF LINE,

END OF SCREEN 500.

START-OF-SELECTION.

TIT = 'Four Buttons'.

BUT1 = 'Button 1'.

BUT3 = 'Button 3'.

CALL SELECTION-SCREEN 500 STARTING AT 10 10.

CASE FLAG.

WHEN '1'.

WRITE / 'Button 1 was clicked'.

WHEN '2'.

WRITE / 'Button 2 was clicked'.

WHEN '3'.

WRITE / 'Button 3 was clicked'.

WHEN '4'.

WRITE / 'Button 4 was clicked'.

WHEN OTHERS.

WRITE / 'No Button was clicked'.

ENDCASE.

Hope this helps you

Regards

Shiva

Read only

Former Member
0 Likes
2,038

Hi Nareshreddy,

We can give the usercommand for the Radio buttions,

for ex: if you have two radio button in that first have 2 parameters and 2nd having 3 paratmeters.

then you have to give user command to both the the radio buttons and based on selcted radio buttion.

you can display the paramters.

syntax for the usercommand for the radio button.

PARAMETER : r_presnt RADIOBUTTON GROUP r USER-COMMAND btn DEFAULT 'X',
            r_appli RADIOBUTTON GROUP r.

PARAMETERS :
  p_pmc_hd   TYPE rlgrap-filename LOWER CASE  MODIF ID a,
  p_pmc_im   TYPE rlgrap-filename MODIF ID a,

  p_amc_hd   TYPE rlgrap-filename LOWER CASE MODIF ID b.
SELECT-OPTIONS:
  so_rnghd FOR g_cnt_transactions_read NO-EXTENSION MODIF ID b.
PARAMETERS:
  p_amc_im   TYPE rlgrap-filename  MODIF ID b.

for more info you can check in the SCN..

Thanks!!

Read only

Former Member
0 Likes
2,038

Hi ,

Within one radio button group one radiobutton should have user-command.

The user-command may be xyz , abc anything.

If you use user-command ONLY then selecting a radiobutton will work

like the F8 means execution.

Check the bellow code - -

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(10)  FOR FIELD r_cars.
PARAMETERS : r_cars RADIOBUTTON GROUP rgb USER-COMMAND usd . " user command is USD
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 20(10)  FOR FIELD r_toyota .
PARAMETERS : r_toyota RADIOBUTTON GROUP rgb1 DEFAULT 'X'.
SELECTION-SCREEN END OF LINE.

 .
 .
 .
 

Regards

Pinaki

Read only

Former Member
0 Likes
2,039

Hi nareshreddy ,

The user Command is assigned to Radio Button or Check boxes..

the user command should kept to first field in the parameters List.

the user-command allows for one character fields..

with the Help of user command the action will trigger when ever you enter or choose another fields

in the parameter list..

you will not able to put user-command for table fields...

Regards,

Prabhudas

Read only

Former Member
0 Likes
2,038

thanks