cancel
Showing results for 
Search instead for 
Did you mean: 

SAPScript form output

Former Member
0 Kudos

In SAPScript I have to print one customer name on one page. I have got more than 50 customer names.

Now my problem is when I am running my driver program it prints all the data on one page only.

For FIRST page next page is assigned NEXT & for NEXT page next page is assigned NEXT.

Can anyone help me to overcome this problem.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In yur Driver Program.....

Call function 'OPEN_FORM'.

Loop at itab. " Customer Details.

CALL FUNCTION 'START_FORM'

EXPORTING

language = sy-langu

startpage = 'PAGE1'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'MAIN'

function = 'SET'

window = 'INVOICE'

EXCEPTIONS

element = 1

function = 2

type = 3

unopened = 4

unstarted = 5

window = 6

bad_pageformat_for_print = 7

spool_error = 8

OTHERS = 9.

IF sy-subrc <> 0.

ENDIF.

CALL FUNCTION 'END_FORM'.

Endloop.

CALL FUNCTION 'CLOSE_FORM'.

U do like that.... Ur probelm will solve.....

Reward if useful.......

Thanks,

Durai.V

Former Member
0 Kudos

HI Durai,

great...

problem is resoved....thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

u can give condition in the driver program....

if page is 1.

read 1 customer name...........and

goes on.............

else

u can create sepreate small window with text element...

and go ahead

Reward IF.............

Regards

Anbu

Edited by: Anbu B on Jul 2, 2008 6:41 AM