Skip to Content
author's profile photo Former Member
Former Member

Internal Table to boxes

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 25, 2010 at 06:02 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 25, 2010 at 06:26 AM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2010 at 03:35 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.