Application Development 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: 

Display Adobe form (pdf) output exactly like internal table.

Abhijit74
Active Contributor
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

0 Kudos

Hello Manish,

Thanks .. It works...

Abhijit Mandal