06-11-2012 8:00 AM
Hi Gurus,
I am in a situation where in i need to display data in table control, by specifying the input values in another screen .
let me explain it.
in Screen 1--i have one input field.
by giving proper inputs i'll display table control by calling another screen i.e., Screen 2.
What i did is ,
in calling screen(screen 1) used CHAIN Statement.
selected the fields from the table to display,
read statement, calls screen( screen2) with table control.
But this seems not working for me.Please suggest me proper way.
Thanks & Regards.
<< Moderator message - basic screen processing - unmarked as a question >>
Message was edited by: Rob Burbank
06-11-2012 8:59 AM
hi Rohan,
please follow below logic it works
PROCESS BEFORE OUTPUT.
LT_ZSRA is your internal table
LOOP AT LT_ZSRA(internal table)
WITH CONTROL ZEDIT (your table control)
CURSOR (your table control)ZEDIT-CURRENT_LINE.
field LT_ZSRA-ZCASE_NUMBER module POPULAT_DATE.
ENDLOOP.
MODULE populat_date OUTPUT.
zedit is your table control
MOVE-CORRESPONDING lt_zsra TO zedit.
ENDMODULE.
thank you,
jacob.kata.
06-11-2012 9:08 AM
Hi Jacob,
Whether i have to write this code iin my calling screen or to be called screen.
like if i use it in calling screen, its a modle dialog box.
Where should i do it.
Thank You.
06-11-2012 9:33 AM
Hi Rohan
You can place the suggested code in the PBO of your screen 2.
Make sure that your internal table is globally declared.
Regards
Vic
06-11-2012 9:48 AM
Hi Vic,
but i'm calling from another screen , how should i trigger that from my calling screen ,SCREEN1.
regards.
06-11-2012 9:56 AM
Hi Rohan
Screen 1:
PAI "User clicks on Button or presses enter.
Module User_command.
case ok_code when 'Button1'.
Get data and fill itab.
if sy-subrc = 0.
Call screen 2.
endif.
Screen2 PBO.
Place Selected Data into table control table. (Suggested code above)
Regards
Vic
06-11-2012 10:27 AM
Hi Vic,
case ok_code when 'Button1'.
Get data and fill itab.
if sy-subrc = 0.
Call screen 2.
endif.
Here Get Data and Fill Itab.
we should write a select query right.
regards.
06-11-2012 10:34 AM
Hi Rohan
Correct. After the User decides what Data they would like to see, in other words they have typed values into your screen 1, then you can go and get the data they require.
After you have the data they want to see then you can display it in your Table Control.
Regards
Vic
06-11-2012 12:06 PM
in the second screen but the declarations needs be declared in TOP INCLUDE.
06-11-2012 12:23 PM
06-12-2012 12:15 PM
Hi Guys,
i never got the satisfied answer for this thread so, please help me to solve this particular problem of mine.
i tried all possible way to display data in table control by giving input in another screen but i couldn't get the solution please HELP.
thakns & Regards.