‎2007 Oct 10 4:29 PM
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
‎2007 Oct 10 4:31 PM
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
‎2007 Oct 10 4:32 PM
You can debugg the screen after you have entered the values. Place a brakepoint in AT SELECLTION-SCREEN EVENT.
Cheers
VJ
‎2007 Oct 10 4:44 PM
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
‎2007 Oct 10 5:16 PM
‎2007 Oct 10 4:51 PM
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.
‎2007 Oct 11 6:33 AM
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.
‎2007 Oct 11 6:37 AM
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.
‎2007 Oct 11 6:47 AM
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>
‎2007 Oct 11 4:58 PM
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.
‎2007 Oct 11 5:01 PM