09-21-2013 2:59 AM
Hello experts,
I'v a typical problem. I have a internal table which will be passing to Adobe form interface. The internal table has only one field.
Begin of itab,
Line type string or char255,
End of itab.
I've to populate a hierarchical structure inside the table like below. There are four different fields and that needs to be concatenate into one single field i.e. Line field of ITAB table.
*Equino1 Equipment No0 Serail No 0
->Mat1 Material 1 Serail No 1 Batch No 1
->Mat2 Material 2 Serail No 2 Batch No 2
*Sub equip1 SubEquipment1 Serail No
-->Mat1 Material 1 Serail No 1 Batch No 1
*Sub sub equi Sub sub equip Subserial 1
--> Mat3 Material 3 Srlno3 Batc3
So, I populate the above structure in Itab interal table and it's looking like hierarchical display in alv. I have managed all the spaces during concatenations by using respecting blanks.
But when I'm printing it through Adobe form the position of the field is differing. During population of the table in print program I have managed the spaces for Equipment no, Material No, Serial No and Batch No.
For example Equipment description is of 40 characters, but for some of the field the value of equipment description is 20 or 25 or 15 or 30 characters. So, I always maintain it to 40 by managing spaces. So, that next field should come after 40 char.
Same way I have managed all the fields and concatenate into the string.
But during pdf output it's not coming as the internal table of program.
Thanks in advance for your help and suggestions. Any good solution will be really appreciated.
Thanks & Regards,
Abhijit Mandal
09-21-2013 3:13 AM
Use fixed-width font to get spacing right.
Here I am pasting your internal table content, but in Courier New font.
See the alignment.
*Equino1 Equipment No0 Serail No 0
->Mat1 Material 1 Serail No 1 Batch No 1
->Mat2 Material 2 Serail No 2 Batch No 2
*Sub equip1 SubEquipment1 Serail No
-->Mat1 Material 1 Serail No 1 Batch No 1
*Sub sub equi Sub sub equip Subserial 1
--> Mat3 Material 3 Srlno3 Batc3
09-21-2013 3:13 AM
Use fixed-width font to get spacing right.
Here I am pasting your internal table content, but in Courier New font.
See the alignment.
*Equino1 Equipment No0 Serail No 0
->Mat1 Material 1 Serail No 1 Batch No 1
->Mat2 Material 2 Serail No 2 Batch No 2
*Sub equip1 SubEquipment1 Serail No
-->Mat1 Material 1 Serail No 1 Batch No 1
*Sub sub equi Sub sub equip Subserial 1
--> Mat3 Material 3 Srlno3 Batc3
09-23-2013 12:57 AM