cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript collate

Former Member
0 Kudos

Hi folks,

in office words i can print documents with collate option, that is, if i want print 2 copies of same document, print output order will be:

first page & second page of first copy then first page & second page of second copy

Unflagging collate option the result will bi:

first page of first & second copy,second page of first & second copy.

In sap/r3 system by default collate option has flagged.

I haven't found the way to unflagging it.

HELP ME!!!!!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Michele,

I have a similar requirement. Can you please give me any kind of information on the same.

Thanks in Advance.

Former Member
0 Kudos

Hi,

DeSelect group check box on the print dialog before giving print out. This print dialog will come when you pass

Exporting parameter dialog = 'X' for Open_form Function module

Regards

Krishna

FredericGirod
Active Contributor
0 Kudos

Hi,

which document print with this option ?

If it's an SD document, did you have check the config options in the NACE transaction ?

Rgd

Frédéric

Former Member
0 Kudos

Thank for reply, but it's a pgr custom that call a form custom and anyway after checkig i dont found anything

In SP01 i have only the chance to set number of pages.

I feel lost...

former_member514503
Discoverer
0 Kudos

The only way to do it is development (it's a sort of manual solution).

Print the first page and only the first page using TDPAGESLCT (with 1) and force TDIMMED to blank.

At the first print you could now the total number of page : launching an ABAP form from sapscript.

Back into your program you have to add the condition if I print the last page of the document (current page to print = total number of page) and total of copies i equal to number of copies request by the user then TDIMMED is equal to TDIMMED request by the user. If user don't want to print immediately TDIMMED = to blank put TDFINAL to "X" to be sure that the spool request will be closed (no add possible).

In the program you should have

l_current_page = 1

w_total_page = 1

while l_current_page <= w_total_page

l_n_copy = 1

while l_n_copy <= NAST-ANZAL

if l_n_copy = NAST-ANZAL and l_current_page = w_total_page

  • Last copy requested and last page

TDIMMED = NAST-TDIMMED

if TDIMMED = ''

  • No add possible to spool

TDFINAL = 'X'

endif

else

TDIMMED = ''

endif

TDPAGESLCT = l_n_current_page

open_form

write_form

  • Launch from SAPSCRIPT of ABAP form to populate w_total_page

close_form

l_n_copy = l_n_copy + 1

endwhile

l_n_current_page = l_n_current_page + 1

endwhile

Normally, this code create a spool and add each page to the same spool and print it at the last page last copy.

Benjamin