Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2013 at 02: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

    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.