cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT - number of copies prining only one

former_member1109645
Participant
0 Kudos

Dear all,

Developed a script.

OPEN_FORM

WRITE_FORM

CLOSE_FORM

I am not passing ITCPO structure in OPEN_FORM.

On execution In print parameter screen i am giving number of copies as 5. but its printing only one.

what might be the issue.

Regards,

Kannan N

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kannan,

Hi use NAST table .......In that ANZAL is the fielsd for no.of copies....If it is standard program might be easy tsolve..Jus u pass how many copies to tat filed,...Or u can do calculaton u want

Thanks .

Sai

david_liu1
Advisor
Advisor
0 Kudos

Hi Kannan,

During the call of function module OPEN_FORM you may transfer the

structure ITCPO to the parameter OPTIONS and set ITCPO-TDGETOTF = 'X'.

The result is that no spool request is created, but you get the

OTF data during the call of the function module CLOSE_FORM

via the parameter OTFDATA (see the documentation of CLOSE_FORM

for more information). In addition CLOSE_FORM gives you the

structure ITCPP in the parameter RESULT. ITCPP-TDCOPIES is the

number of copies. After this you can print the OTF data via

the function module PRINT_OTF. You can call PRINT_OTF

e.g. seven times to get a spool request with seven copies.

Regards,

David