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

Regarding Selection Screen.

Former Member
0 Likes
510

hello Sir,

I have a selection screen which is auto generated by select option, i want to pass the values

from this selection screen to other screen.Means the values which i enter on this selection screen should

get displayed on next screen.

plz. send me the right procedure and code.

5 REPLIES 5
Read only

Former Member
0 Likes
490

Hi Vishal,

Use SET/GET Parameters on that field.

Regards,

Satish

Read only

Former Member
0 Likes
490

Hi Vishal,

Use IMPORT TO MEMORY & EXPORT FROM MEMORY

or SET & GET on that field

Read only

Former Member
0 Likes
490

hi,

let the select option of the first screeen say so_01

you want to pass the value of so_01 to second screen

in the next screen, in the event at PBO

just use variable so_01-low for the value from the first box of select option

or use so_01-high for the value from the second box of select option

you can get the desired value

please reward if useful

Read only

former_member402443
Contributor
0 Likes
490

Hi Vishal,

Check this code.

DATA: text(10) TYPE c,

rspar_tab TYPE TABLE OF rsparams,

rspar_line LIKE LINE OF rspar_tab,

range_tab LIKE RANGE OF text,

range_line LIKE LINE OF range_tab.

rspar_line-selname = 'SELCRIT1'.

rspar_line-kind = 'S'.

rspar_line-sign = 'I'.

rspar_line-option = 'EQ'.

rspar_line-low = 'ABAP'.

APPEND rspar_line TO rspar_tab.

range_line-sign = 'E'.

range_line-option = 'EQ'.

range_line-low = 'H'.

APPEND range_line TO range_tab.

range_line-sign = 'E'.

range_line-option = 'EQ'.

range_line-low = 'K'.

APPEND range_line TO range_tab.

SUBMIT ZMAN_REPORT1 USING SELECTION-SCREEN '1100'

WITH SELECTION-TABLE rspar_tab

WITH selcrit2 BETWEEN 'H' AND 'K'

WITH selcrit2 IN range_tab

AND RETURN.

REPORT ZMAN_REPORT1.

DATA text(10) TYPE c.

SELECTION-SCREEN BEGIN OF SCREEN 1100.

SELECT-OPTIONS: selcrit1 FOR text,

selcrit2 FOR text.

SELECTION-SCREEN END OF SCREEN 1100.

start-of-selection.

call selection-screen 1100.

Reward points, if useful.

Regards,

Manoj Kumar

Read only

Former Member
0 Likes
490

Hi,

First take the parameter ids for all the fields that you have in selection scrren.

For example for Bukrs (company code ) is BUK.

Set parameter id

To fill the input fields of a called transaction with data from the report, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-related SAP memory. You use the SAP memory to transfer values between programs. A user can access the values stored in the SAP memory during one terminal session for all modes used in parallel.

Usually, the input fields on the initial screen of a transaction are connected to SPA/GPA parameters. If you fill these parameters from within your program before calling the transaction, the system fills the input fields with the corresponding values.

This statement saves the contents of field under the ID in the SAP memory. The code can be up to 20 characters long. If there was already a value stored under , this statement overwrites it. If the ID does not exist, double-click in the ABAP Editor to create a new parameter object.

so please goahead with set parameter ..

Regds

Sivaparvathi

reward paints if ehelpful...