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

Select-Options

Former Member
0 Likes
692

hi ,

how to maintain select-options side by side.following code is not working properly.

selection-screen begin of line.

selection-screen comment 2(10) text-00.

select-options : s_ven for lfa1-lifnr.

selection-screen comment 40(10) text-001.

select-options : s_cty for lfa1-lifnr.

selection-screen end of line.

i tried with selection-screen position statement also .but i can't get the output.without selection-screen comment text statement in the above code , i get the output like this .

low limit high limit low limit high limit multiple selctionbutton

now how to get the comment .i want the output like this

name low high multiple selection city low high multipleselection

pls send the corresponding code.

5 REPLIES 5
Read only

Former Member
0 Likes
509

Hi,

u can use line option for this :

Example

A pushbutton, an input field, and an output field in a line in the standard selection screen for an executable program.

SELECTION-SCREEN: BEGIN OF LINE, 
                  PUSHBUTTON 2(10) push USER-COMMAND fcode, 
                  POSITION 16. 
PARAMETERS para TYPE c LENGTH 20. 
SELECTION-SCREEN: COMMENT 40(40) text, 
                  END OF LINE. 

INITIALIZATION. 
  push = 'Push'. 
  text = '<--- Fill field, then push button!'.

Jogdand M B

Read only

varma_narayana
Active Contributor
0 Likes
509

Hi..

We cannot place 2 select-options in the Same line.

<b>selection-screen : begin of line.

selection-screen : END of line.</b>

this is only for Parameters.

Reward if helpful.

Read only

Former Member
0 Likes
509

I dont know how to meet you requirement in the proper way.

But I will tell you how to get such a selection screen in a crooked way...

As you said code like this

selection-screen begin of line.

selection-screen comment 2(10) text-00.

select-options : s_ven for lfa1-lifnr.

selection-screen comment 40(10) text-001.

select-options : s_cty for lfa1-lifnr.

selection-screen end of line.

Now in the report just add

call screen 1000.

double click that .Goto layout do the modifications save it and activate the screen.

Now come back to the screen and delete 'call screen 1000.'

This will help you get the req modifications.

Reward if useful

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
509

Hi,

Remove the comments and try giving SELECTION TEXTS.

USe the menu option Goto->Text Elements->Selection Texts.

Maintain selection texts for your select options and see.

Regards,

Sesh

Read only

RaymondGiuseppi
Active Contributor
0 Likes
509

I don't think it's possible with selection-screen, cause the minimal column position of the icon for extended selection is less than the maximal value of the first (low) field.

Look at this sample

  SELECTION-SCREEN BEGIN OF LINE.
  SELECTION-SCREEN COMMENT 1(1) text-001.
  SELECT-OPTIONS : s_ven FOR lfa1-name1.
  SELECTION-SCREEN END OF LINE.
  SELECTION-SCREEN BEGIN OF LINE.
  SELECTION-SCREEN COMMENT 47(1) text-002.
  SELECT-OPTIONS : s_cty FOR lfa1-ort01.
  SELECTION-SCREEN END OF LINE.

First character of s_cty-low is as the same column that the arrow icon. If I try to put 48 in place of 47, i got an error when generating dynpro 100 at activation.

You could create a dynpro and simulate the selection screen,but that many work for a porr result?

Regards