cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple page printing using SAPScript

Former Member
0 Kudos

Hi All,

I want to print one record per page, from the Internal Table having multiple records, using SAPScript.

Can anyone help me out in this topic?

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

If you want to dispaly single record on page, you can do this in two ways..

1) if you have driver program in control, loop all your windows.

2) if you don't have driver program in control, then in main window once first record is printed use :NEW-PAGE.

Regards,

Sairam

Former Member
0 Kudos

Hi Atul,

In the script editor, in the MAINWINDOW, specify <b>NEW-PAGE</b> after printing the values from internal table.

<b>In the script editor:</b>

/E ITEM_PRINT

/: ITAB-F1,,ITAB-F2,,ITAB-F3

<b>/: NEW-PAGE</b>

<b>In the driver program:</b>

LOOP AT ITAB.

CALL FUNCTION 'WRITE_FORM'

EXPORTING element = 'ITEM_PRINT'

EXCEPTIONS OTHERS = 1.

ENDLOOP.

Thanks,

Vinay