cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Multiple copies of SAP Script...

Former Member
0 Kudos

Hi all,

Am doing Sap script in MM module.. User wants to print the Multiple copies based on conditions...i will add all the quantities in line item and then divided by another qty in header...

for example if i Hav total quantity in Line item is 1000..

header qty is 100

result is 1000 / 100 = 10.....10 copies have to generate....

and my doubt is for line item, i will get the quanties from main program....

for header quantity, i wrote some logic in subroutine program...

pls can any one help me regarding this??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

well you need to get your numbers before the "DO nast-anzal times" statement which is around your "CALL FUNCTION'OPEN_FORM'.

then write your calculated number in NAST-ANZAL

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi:

SAPscript texts for printing, the parameter RESULT contains information and settings which can be of interest for the calling program. This information can be passed using the function modules PRINT_TEXT or CLOSE_FORM. The parameter reference structure is ITCPP.

TDPAGES: SAPscript: number of printed pages

This field specifies the number of physical pages created for screen display or print output. This number includes all copies, even though they are created only by the spool system and cannot be seen in the print view. A cover page is not included into the number stored in TDPAGES.

Regards

Shashi

Former Member
0 Kudos

Hi,

Write the logic to get quantity in the main program also so that you can pass the number of copies there itself.