‎2014 Dec 10 11:34 AM
Dear all,
I'm printing all items details in a window with size fixed. The maximum number of items will be six. My requirement is to print a table with this format:
I don't want to use a template, and i don't know how to achieve this with a table because lines types will be drawn horizontally as always:
-Header (line type header)
-Main area (item line type)
-Footer (doesn't matter in this case)
My items come into an internal table like this:
Line item1 --> Initial date, final date, number, quantity...
Line item2 --> Initial date, final date...
Should i reorder my items into another internal table with the format of the table above? Any solution?
Please reply.
Regards JM.
‎2014 Dec 10 12:17 PM
Hi,
if you dont want to use template then use main window with table.
create table with 7 line types with same origins and use 1 st line type for empty cell, item 1, ....item6 in table header.
use remaining 6 line types for table main area.
2nd line type-> display initial date and remaing field values...
3nd line type -> display final date and remaing field values...
7th line type-> display price and remaing field values...
thanks,
sree
‎2014 Dec 10 11:43 AM
Hi,
1. item1, item2,...item6 are fixed right so consider these are the item's header
2. value of item1, value of item2....vvalue of item6 are considerd as item data.
create one template for initial date, final date...price and maintain 1 column and 6 rows and use text elements to display the data.
create main window for item's header and item data and maintain 2 line types, one is for item's header and 2nd is for item data.
main window-> header-> lin type1 -> maintain item's header
-> main area-> line type 2 -> maintain item data
Thanks,
Sree
‎2014 Dec 10 12:02 PM
Hi,
Template is OK,
"create main window for item's header and item data and maintain 2 line types, one is for item's header and 2nd is for item data."
First line type is OK, but not rhe 2nd because i will iterate through internal table:
LOOP it_items INTO is_item (for example)
I can't display all data in the 2nd line type, in fact, only the 'Initial date' will be displayed because in each iteration i only have the 'initial date' available for one item.
Maybe i didn't understand you... thanks.
‎2014 Dec 10 12:10 PM
Hi,
In main window, use table. in header, display item's header
in main area-> use 2nd line type and put loop in data tab and create text elements to display the item data.
Thanks,
Sree
‎2014 Dec 10 12:21 PM
Hi again,
My internal table comes like this:
28/06/2014, 22/12/2015, 10, 125.66, KG, 1000.56
27/10/2015, 15/07/2017, 20, 188.99, T, 25643
......
If i use "Line type 2" in the main area.... For each iteration, I only can display the 'initial date' (28/06/2014), because 'Final date' belongs to the second iterarion, 'Number' to the third...
Did you refer to this? Thanks..
‎2014 Dec 10 12:17 PM
Hi,
if you dont want to use template then use main window with table.
create table with 7 line types with same origins and use 1 st line type for empty cell, item 1, ....item6 in table header.
use remaining 6 line types for table main area.
2nd line type-> display initial date and remaing field values...
3nd line type -> display final date and remaing field values...
7th line type-> display price and remaing field values...
thanks,
sree
‎2014 Dec 10 12:23 PM
Oh, just this... Six line types... wanted to avoid this.
Hope any other solution exists
Thanks.
‎2014 Dec 10 12:26 PM
Hi Jose,
I think it will be more easy to reorder items into another internal table with the format you have provided in the screenshot. Then put it into main window as table.