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

Internal Table to boxes

Former Member
0 Likes
630

hi friends,

i am taking some data from my ztable through select quarry and i want to show these data in the boxes as i designed in the

screen,but the problem is it is not displaying data in the respective boxes.But in the debugging mod all the data displaying in the

internal table ,can you help how can i solve this problem.

thanks,

bikash

3 REPLIES 3
Read only

sridhar_meesala
Active Contributor
0 Likes
591

Hi,

If you want to display the data as soon as the screen is displayed then first loop at the internal table and get the data into the work aarea and in PBo of the screen write

empno = wa_empno.                       " empno is the name of the field in the screen.
empname = wa_empname.

If you want it to display after some button click then write the code under the function code of that button in PAI.

Thanks,

Sri.

Read only

Sm1tje
Active Contributor
0 Likes
591

Boxes? What are boxes..... in UI programming that is? Table control, ALV grid? You have provided way too less info for us to answer this question.

You have an internal table which has to be displayed on screen. So far so good. Now where and how exactly do you want this data to be displayed? Is there a UI element you have in mind? Or don't you want to whole table to be displayed, but merely a few of them fields?

Read only

Former Member
0 Likes
591

Hi Bikash,

In ABAP Dynpro , you have two kinds of screen elements which might meet your requirements based on your final selection. As you mentioned an Internal Table, you can use a Table Control which will be populated by data from the internal table. You can also populate the data in the Input output box but you need a lot of them which will make the screen very clumsy. So, you can best decide on the approach which will suit you the best. My recommendation is to use a Table Control as it will provide you will a wide array of other capabilities.

Have a look at the following demo code for Table Control:

DEMO_DYNPRO_TABCONT_LOOP

DEMO_DYNPRO_TABCONT_LOOP_AT

DEMO_DYNPRO_TABLE_CONTROL_1

DEMO_DYNPRO_TABLE_CONTROL_2

Have a look at the following demo code for Input Output:

DEMO_DYNPRO_INPUT_OUTPUT

Hope this will help.

Thanks,

Samantak.