cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms - Controlling copies

Former Member
0 Kudos

Hi,

i'm using the system field SFSY-COPYCOUNT to control the original and duplicate document, but it isn´t work...

In debug i confirm that this field, always have the value 1, for original and duplicate.

Is necessary make some changes in the print program?

For now i use the standard RLB_INVOiCE.

Many thanks in advance.

AOL

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Actually VSTAT element contains whether its original or duplicate. I am using this code in my prg

u can change where condition according to ur program. when ever rep_flag = X then it is duplicate.

u can see the following code.

Data : lv_vstat type NA_VSTAT.

SELECT vstat INTO lv_vstat FROM nast WHERE kappl = nast-kappl

AND objky = nast-objky

AND kschl = nast-kschl

AND spras = nast-spras

AND parnr = nast-parnr

AND parvw = nast-parvw

AND nacha BETWEEN '1' AND '4'.

CHECK lv_vstat = '1'.

rep_flag = 'X'.

EXIT.

endselect

Former Member
0 Kudos

thanks for your answer, but i want to use the standard solution .

In another document it woks fine. I prefer to use it, but i not understand what is happening with this particular document.

AOL

Former Member
0 Kudos

Hi AOL,

U can reward points for the answer

Madhavi

Former Member
0 Kudos

Hi,

the problem is solved... the standard print program, must be modified to pass the control of copies to the smartform.

best regards,

AOL

Former Member
0 Kudos

HI AOL,

i am getting same problem can u please do guide me .

thanks.

Former Member
0 Kudos

Hi Priya,

The sfsy-copycount variable will only work in a Copy Window.

In other windows it will alwaus have a value of 1.

Regards,

Nehal.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi AOL,

U will have to specify the number of copies in output options of smartforms. u will have to specify

SSFCOMPOP-TDCOPIES count to ur smartform's output options.

Reward if useful.

Cheers,

Deepthee Kasal