cancel
Showing results for 
Search instead for 
Did you mean: 

printing sap script for multiple customers

Former Member
0 Kudos

Hi,

I have a requiremnt to print the form for multiple customers. How should i use the sap script function modules? i.e. in which sequence?

for example customer A has 5 pages. customer B has 4 pages.

after printing 5 pages of the customer A, it should print 4 pages of the customer B.

regards,

CK

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

To print accroding to your requirment you should modify your driver program like this...

Sort <Internal table by KUNNR.

LOOP AT <internal table>

AT NEW KUNNR. "Customer..

**Call Function module OPEN_FORM

END AT.

AT END OF KUNNR.

***Call function CLOSE_FORM

ENDAT.

***Call all your Write_FORM

ENDLOOP.

Regards,

SaiRam

Former Member
0 Kudos

Sai,

Thanks for your help. I have written custom driver program. How can I suppress PRINT pop up window. Do you know any function module which call the window?

CK

former_member196280
Active Contributor
0 Kudos

Try this

control-no_dialog = 'X'.

control-preview = 'X'.

control-no_open = 'X'.

control-no_close = 'X'.

call function 'SSF_OPEN'

exporting

control_parameters = control.

call function fm_name

exporting

control_parameters = control

customer = customer

bookings = bookings

connections = connections.

call function 'SSF_CLOSE'

Regards,

Sairam

Former Member
0 Kudos

Thank u very much.

points awarded.

CK

Answers (0)