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

Call a Table Control screen with specific input values from another screen.

Former Member
0 Likes
2,390

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

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,940

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.


Read only

0 Likes
1,940

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.

Read only

0 Likes
1,940

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

Read only

0 Likes
1,940

Hi Vic,

but i'm calling from another screen , how should i trigger that from my calling screen ,SCREEN1.

regards.

Read only

0 Likes
1,940

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

Read only

0 Likes
1,940

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.

Read only

0 Likes
1,940

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

Read only

0 Likes
1,940

in the second screen but the declarations needs be declared in TOP INCLUDE.

Read only

0 Likes
1,940

,

Hi Jacob,

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.

here field lt_zsra-zcase_number is it my input field.

if so what if i have more than one input field.

regards.

Read only

Former Member
0 Likes
1,940

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.