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

Parameters on same line

Former Member
0 Likes
3,969

Hy!

I have 2 input fields and a checkbox in a selection screen and I want to put them <b>on the

same horizontal row</b>, not each on a different row.

Any suggestions?

Thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,187

Use SELECTION-SCREEN BEGIN OF LINE. And SELECTION-SCREEN END OF LINE.

7 REPLIES 7
Read only

Former Member
0 Likes
2,188

Use SELECTION-SCREEN BEGIN OF LINE. And SELECTION-SCREEN END OF LINE.

Read only

0 Likes
2,187

It works, but they I also should specify some visible length for each, because I see them

one near close eachother. Too near.

Suggestions?

Thank you.

Read only

0 Likes
2,187

You can use SELECTION-SCREEN POSITION

Read only

0 Likes
2,187

Just change what number you put after "POSITION". That will change where the second (or third, etc.) field starts.

- April

Read only

0 Likes
2,187

PARAMETERS: p_sdems TYPE /bic/azg1e_wks00-/bic/zg1esdems.

SELECTION-SCREEN POSITION 30.

PARAMETERS:p_emsnm TYPE /bic/azg1e_wks00-/bic/zg1eemsnm .

  • sb_wks as checkbox.

But now I can't see anymore the text element of the parameter .

Help.

Read only

0 Likes
2,187

When you put multiple parameters on the same line, you have to use a comment in place of the text element. Like this:

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER p1 RADIOBUTTON GROUP rad1 DEFAULT 'X'.

SELECTION-SCREEN POSITION 4.

SELECTION-SCREEN COMMENT (5) text-p01 FOR FIELD p1.

SELECTION-SCREEN POSITION 20.

SELECTION-SCREEN p2 RADIOBUTTON GROUP rad1.

SELECTION-SCREEN POSITION 24.

SELECTION-SCREEN COMMENT (5) text-p02 FOR FIELD p2.

SELECTION-SCREEN END OF LINE.

I hope this makes sense.

- April

Read only

Former Member
0 Likes
2,187

Use code like this:

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER p_ages RADIOBUTTON GROUP rad1 DEFAULT 'X'.

SELECTION-SCREEN POSITION 4.

SELECTION-SCREEN COMMENT (5) text-p03 FOR FIELD p_ages.

SELECTION-SCREEN END OF LINE.

You have to use POSITION to set the placement of any fields in a row after the first field.

- April King