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

Selection Screen

Former Member
0 Likes
857

Hello all,

Can anybody explain how can i save the values which i entered on the selection screen through SELECT-OPTIONS/PARAMETERS into an internal table.

regards

10 REPLIES 10
Read only

Former Member
0 Likes
817

Hi,

Take the variable and equate the variablwe to

sel-low and sel-high.

Sel is nothing but u r selection-screen parameter.

<b><REMOVED BY MODERATOR></b>

Message was edited by:

Alvaro Tejada Galindo

Read only

Former Member
0 Likes
817

You can debugg the screen after you have entered the values. Place a brakepoint in AT SELECLTION-SCREEN EVENT.

Cheers

VJ

Read only

0 Likes
817

Hi...

My reqirement is what ever the user enters the values on selection screen, they shoudl be saved in a table.

What i am doing is is i am trying to save the values of selction screen into an internal table and then moving them to the required table.

So i want to save the selection screen values to internal table.

regards

Read only

0 Likes
817

What will you do once you have this internal table filled?

Read only

Former Member
0 Likes
817

Hi,

You can use the below code :

tables : bsis.

data : count type i.

data : begin of itab occurs 0,
         buzei like bsis-buzei,
        end of itab.
 
 select-OPTIONS : num for bsis-buzei.
 
 
 start-of-SELECTION.
 count = 1.
 
 do num-high times.
 
 if count = 1.
   count = num-low.
   itab-buzei = count.
   count = count + 1.
   append itab.
   clear itab.
 else.

 itab-buzei = count.
   count = count + 1.
 append itab.
   clear itab.
 endif.
 
 if count GT num-high.
  exit.
 ENDIF.
 
 
 enddo.
 
 if num-high is initial.
   ITAB-BUZEI = NUM-LOW.
   APPEND ITAB.
   CLEAR ITAB.
 endif.
 
 loop at itab.
   write : / itab-buzei.
 ENDLOOP.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
817

hi,

if u want to save selection-screen values, using varient we save the salection screen. what ever input u are giving that can be stored in varient.

Read only

Former Member
0 Likes
817

Hi,

This works for select options with single values

loop at p_select.

itab-value = p_sel-low.

append itab.

clear itab.

endloop.

for parameter:

itab-value = paramtr.

append itab.

Read only

Former Member
0 Likes
817

Hi

see this example code

same rquirement

bukrs =001,system id = 0040 and original company code = 06547.

as u know the selection screen parameters, u prepare an internal table of that kind like..

data:

begin of itab occurs 0,

value(20)

parameter(20), " For identifying type of parameter

end of itab.

at selection-screen.

itab-value = S_bukrs.

itab-parameter = 'S_bukrs'.

append itab.

itab-value= p_system_id.

itab-parameter = 'p_system_id'.

append itab.

<b>Reward if usefull</b>

Read only

0 Likes
817

If the purpose is to eventually print them in a summary report at the end of the program execution, use RS_PRINT_SELECTIONS which will give you selection screen parameters and their values in an internal table.

Read only

0 Likes
817

Or RS_REFRESH_FROM_SELECTOPTIONS