cancel
Showing results for 
Search instead for 
Did you mean: 

Print contents of the internal table

Former Member
0 Kudos

How can i print the contents of an internal table...?

Well I need a printOUT . When I click the print button on my SCREEN, the PAI module should actually PRINT the contents. The data shown on the SCREEN is in an INTERNAL TABLE.

Message was edited by:

Manu Kapur

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

This is not what im asking for

Former Member
0 Kudos

Hello,

Here is how,


LOOP AT itab into wa.
    WRITE: / wa-col1,
                  wa-col2.

ENDLOOP.

where itab, is an internal table and wa, its workarea.

Regards,

Shehryar Dahar

Former Member
0 Kudos

Well I need a printOUT . When I click the print button on my SCREEN, the PAI module should actually PRINT the contents. The data shown on the SCREEN is in an INTERNAL TABLE.

Former Member
0 Kudos

Hi

Click on the following link for clear info for internal table processing.

http://help.sap.com/saphelp_nw04/helpdata/en/bf/cf52e4003011d2952b0000e8353423/frameset.htm

Regards

Surya.

Former Member
0 Kudos

Hi,

If u have header line then ,

loop at itab.

write:/itab-field1,itab-field2,itab-field3.

endloop.

if u don't have header line,

loop at itab inti is_tab.

write:/is_tab-field1,is_tab-field2,is_tab-field3.

endloop.

Regds,

Vinsa.R

Former Member
0 Kudos

Hi,

I hope the following code will helps to you.

LOOP AT it_mara INTO wa_mara.
 WRITE: / wa_mara-MATNR,
               wa_mara-ERSDA
               wa_mara-ERNAM
               wa_mara-LAEDA.

Regards

Bhupal Reddy

Former Member
0 Kudos

loop at itab.

write:/ itab-f1, itab-f2.

endloop.