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: 

Sap Script - Print Multi line

Former Member
0 Kudos

Dear All

I want to print two internal table data in Parallel lines in SAP Script. How to print?

Table 1 Data:

ORDER#

KIMBAL

COL/SI

QTY.

NT.WT.

GR.WT.

CTN.NO

1-100

Tabel 2 Data:

100% COTTON KNITTED LADIES CARDIGAN

100% COTTON KNITTED LADIES CARDIGAN

I want to print like this

ORDER# 100% COTTON KNITTED LADIES CARDIGAN

KIMBAL 100% COTTON KNITTED LADIES CARDIGAN

COL/SI

QTY.

NT.WT.

GR.WT.

CTN.NO

1-100

( If possible, i want to print "100% COTTON KNITTED LADIES CARDIGAN" in 2 or more lines.)

Regards,

Suresh

1 REPLY 1

Former Member
0 Kudos

move data to one more internal table...

loop at itab1.

l_tabix = sy-tabix.

read table itab2 index l_tabix.

if sy-subrc = 0.

concatenate itab1-field itab2-fields into it_final-field separated by space.

else.

move itab1-field to it_final-field.

endif.

append it_final.

endloop.

Use it_final data....