Application Development 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: 

Can we display the selected fields in two screen?

Former Member
0 Kudos
68

HI friends i have got a problem where i am have two screen 1000 and 102.

In 1000 screen i have got 2 push buttons display and cancel

if i click display by giving emp_id then module and email has to be display for which i have given code as...

MODULE STATUS_1000 INPUT.

WHEN 'DISPLAY'.

SELECT SINGLE NAME EMP_MODULE EMAIL

FROM ZRIF_TABLE

INTO (ZRIF_TABLE-NAME, ZRIF_TABLE-EMP_MODULE, ZRIF_TABLE-EMAIL)

WHERE EMP_ID = ZRIF_TABLE-EMP_ID.

this code is working according to the requirement

But the same requirement is there in another screen(102) where if i click emp_id then name emp_module and email has to be displayed but it is not working with the above code.

Caution is i will be having the same emp_id name and module in the same screen before wht it has displayed.

To be clear request sent by details like emp_id name module

request sent to emp_id name and module.

code in 102 screen..

CASE SY-UCOMM.

WHEN 'EXIT'.

CALL SCREEN 100.

WHEN 'DISPLAY'.

SELECT SINGLE NAME EMP_MODULE EMAIL

FROM ZRIF_TABLE

INTO (ZRIF_TABLE-NAME, ZRIF_TABLE-EMP_MODULE, ZRIF_TABLE-EMAIL)

WHERE EMP_ID = ZRIF_TABLE-EMP_ID.

endcase.

endmodule.

1 REPLY 1

franois_henrotte
Active Contributor
0 Kudos
52

you should store data into a global structure (at program level) and display fields from this unique structure on various dynpros

also this will be better than using the table name as structure name and will avoid to select from a field of the same structure...