Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Internal table records - print horizontally

Hi Experts,

I have an internal table containing handling units(container numbers). I want to print these in a row(s). For example if my internal table has data as


I want the output as

container1 / container2 / container3

Can anyone suggest me a solution




what technique are you using? Smartforms or sapscript? or even adobe PDF forms?

Anyway there are sooooo much ways to achieve this.

Easiest would be probably to handle that in the driver program.

loop at itab into wa.
  concatenate lv_line wa-value into lv_line seperated by ' / '.

in form print lv_line then.

if it can happen that your itab holds so much records that your values wont fit into one line, you need to think about printing more lines adn creating more lines in your loop.

you need some criteria then when to start a new line, e.G. every 5 values or so.

you could as well append your line to a text every 5 values and then save the text using FM SAVE_TEXT.

Now on form you can print you text.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question