cancel
Showing results for 
Search instead for 
Did you mean: 

Print original, duplicate, triplicate & quadruplicate in Sales Orders

Former Member
0 Kudos

Hi everyone,

I want to print 4 copies with the text original, duplicate, triplicate & quadruplicate on header like in Invoice documents, i tried to use the same routine used in invoices but the printing process is a little different, the FORM (smartform) is processed only 1 time and the other copies is the exact copy of the first one without running the FORM 4 times. So the routine is only processed 1 time, giving me 4 copies with the "Original" text on the header... Anyone knows how i can control the copies to identify and write the right text(original, duplicate, triplicate & quadruplicate) on the header?

Thank you

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi SAP Gurus,

Can you please tell how this can be done in smartforms.

Regards,

Pavan.

Former Member
0 Kudos

hi

in our smartform we have condition

if Repeat <> X

output type = ZABC

REPEAT = X

Line_Nast > 0001 then we are printing vibrage as REPRINT

you can aks your ABAP guys to check if possible

Former Member
0 Kudos

Thank you for the reply,

I solved the situation changing the print program to repeat the call function (smartform) in accordance with the field value NAST-ANZAL. Thats the way that Invoice documents printout.

Former Member
0 Kudos

thats nice to know

former_member418015
Participant
0 Kudos

Hi

Can you show how is it done in abap?

I set the output record Number of message to 4. I got 4 sets but all 4 sets show me the same QUADRUPLICATE FOR ASSESSEE

IF &NAST-ANZAL& = '1'.

ORIGINAL FOR BUYER

ELSEIF &NAST-ANZAL& = '2'.

DUPLICATE FOR TRANSPORTER

ELSEIF &NAST-ANZAL& = '3'.

TRIPLICATE FOR ENTRAL EXCISE

ELSEIF &NAST-ANZAL& = '4'.

QUADRUPLICATE FOR ASSESSEE

ENDIF.

Former Member
0 Kudos

Hi,

I made the changes in program RVADOR01 (I made a copy to ZRVADOR01) in the form "processing"

DATA: nast_anzal LIKE nast-anzal. "Number of outputs (Orig. + Cop.)

DATA: nast_tdarmod LIKE nast-tdarmod. "Archiving only one time

IF retcode = 0.

PERFORM check_repeat.

IF ls_composer_param-tdcopies EQ 0.

nast_anzal = 1.

ELSE.

nast_anzal = ls_composer_param-tdcopies.

ENDIF.

ls_composer_param-tdcopies = 1.

DO nast_anzal TIMES.

  • In case of repetition only one time archiving

IF sy-index > 1 AND nast-tdarmod = 3.

nast_tdarmod = nast-tdarmod.

nast-tdarmod = 1.

ls_composer_param-tdarmod = 1.

ENDIF.

IF sy-index NE 1 AND repeat IS INITIAL.

repeat = 'X'.

ENDIF.

CALL FUNCTION lf_fm_name .....