cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript main window issue

Former Member
0 Kudos

Hi, all.

I meet a problem in displaying the sapscript main window.

My situation is like below:

Situation 1 : Print out 1 page only.

Design : Page 1 got 1 main window and 1 sub window.

Situation 2 : Print out 2 and above pages.

Design : Page 1 got main window but no need the sub window, so it had to stretch down to bottom page in each page. Until last page, sub window finally print out with the main window just like situation 1.

Anyone got any idea to do this.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

As per my understanding of the question,

As u need two different pages, i.e. one with a single window n other with 2 windows:

In script create 2 pages:

1.Page1 have main window and sub window

2.Page2 have only main window.

Now in driver program,

call function open-form.

when scenario 1

call function start-form for page1

call function write-form etc.....

call function end-form

when scenario 2

call function start-form for page2

call function write-form etc.....

call function end-form

call function close-form.

Hope its clear.

Plz revert back if u get any doubts.

Answers (4)

Answers (4)

Former Member
0 Kudos

In driver program, it was like:

call function open-form.

if scenario 1

call function start-form for page1

call function write-form etc.....

call function end-form

elseif scenario 2

call function start-form for page2

call function write-form etc.....

call function end-form

endif

call function close-form.

Former Member
0 Kudos

Beside modifying the driver program, what else of solution can i do in order to combine the both situation in one which i stated earlier ?

tq.

Former Member
0 Kudos

try through subroutines

Former Member
0 Kudos

oh no! Is it really can not do like that?

Or have any solution to do in order to fulfill the situations above that i mentioned.

Thanks in advance.

Former Member
0 Kudos

nobody know?

Former Member
0 Kudos

Hi,

It is not possible in script. tr out for smartforms.

Thanks

Former Member
0 Kudos

hai,

it is not possible to strech down the mainwindow,

but we can make the sub window to come only in last page.

shan.

Former Member
0 Kudos

I don't think it is possible in script.

Edited by: Anil Mane on Sep 29, 2008 10:23 AM