cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform: Copies Logic in Main Window

Former Member
0 Kudos

Hi All,

I need to have dynamic content for the different copies of the smartform I print.

I know it is possible to have this if the window is defined as a Copies window.

Is this possible in the MAIN window. While the logic works fine in a Copies Window the same logic in the MAIN window does not work.

I need to have it in MAIN because the data might have to overflow to the next page

Is there anything additional I need to do?.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

cannot understand

Former Member
0 Kudos

Hi Chang,

Thanks

Suppose I have to print 3 copies of the same smartform

Each copy must have a different paragarph. Based on which copy number it is.

So it means that

if sfsy-copycount = 2. print para 2.

if sfsy-copycount = 3. print para 3.

Can i put this logic in Main

Or does it have to be in a Window of type "copies window"

I tried putting it in Main, but i found that Main executes only once for all copies

Former Member
0 Kudos

These system fields will only work on copy windows, not main windows.

<a href="http://help.sap.com/saphelp_47x200/helpdata/en/1c/f40c67ddf311d3b574006094192fe3/frameset.htm">http://help.sap.com/saphelp_47x200/helpdata/en/1c/f40c67ddf311d3b574006094192fe3/frameset.htm</a>

For any other window type (including MAIN) this system field will be initial.

Regards,

Nick

Answers (1)

Answers (1)

Former Member
0 Kudos

My idea is that you can create several node in main window

-


in main window create 3 same nodes

create table1 and set paragraph1 to table1

table 2 and set paragraph2 to table2

table 3 and set paragraph3 to table3

then use the Alternative to control it

-


MAIN WINDOWS

---Alternative1 condition if xxxxpagecount = 1

-


YES

-


display table1

-


NO

-


Alternative2 condition if xxxxpagecount = 2

-


YES

-


display table2

-


NO

-


display table3