on 01-10-2012 5:42 PM
Hello all,
I am able to display data in the header section but there is no data in the main window.
In the main window, the logic is as follow
- LOOP at header
- Loop at item
- Table
- Main Area
- Line
- cell
I am not getting data from the item table. The table is getting populated correctly as i saw in debugger.
Thanks,
Salil
Hey Salil,
Make sure of the following things :-
1. Create a code line before table node is getting processed and put a break-point statement inside it just to make sure that internal table is not initial.
2. If internal table is not initial , make sure in DATA tab of table node you are passing the right internal table ( of e.g. ITAB) and looping that internal table into workarea (for eg WA).
3. In the main area of the table you are using the placing the right placeholders for respective fields. For eg if you have first field in the table is material number i.e. MATNR you are passing reference as &WA-MATNR& for that column.
Please confirm if the above points are taken care of and let us know if you are still facing same issue.
Cheers
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is loop at header for?
Nabheet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The header loop gives the total number of records to be displayed and the item loop takes each record from header loop and populates another internal table with details.
I have made slight change to the code but even then data from item loop is not showing up.
- LOOP at header ( gt_list into gs_list)
- Table ( gt_output into gs_output)
- Main Area
- Line
- cell (details from gs_output)
Edited by: salil vaidya on Jan 10, 2012 1:04 PM
Hi friend,
Try increasing the size of columns in the line type i think this might solve your issue.
Also using loop inside loop is a performance issue. So you can achieve this by using read to the header table using index.
Just increment the index by 1 and read the record from header and then using that vales loop the item values.
See whether the data binding is also done properly and check whether the fields are also assigned properly.
I think this will solve your issue.
Please revert back to me if you have any issues. I will help you.
Thanks,
Sri Hari
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.