cancel
Showing results for 
Search instead for 
Did you mean: 

Alternative to call window script to smartforms?

former_member321557
Participant
0 Kudos

Hi All,

I have one requirement for smartform development as below.

In a page I have two windows one is main window another could be secondory window. In the main window it prints all the Invoice numbers of particular customer line by line if the Invoice numbers doesn't fit in main window it goes the next page main window as usual, but before printing next page main window it has to print the same invoice numbers which are printed in first page main window into another window of the same page. In the SAP script we used to call the second window once the main window of page if finished. I couldn't able find the exact solution in smartforms. Could you please somebody help me in this regard?

My scenario would be as below.

Main window

Invoice numnbers with some details of Invoice line by line

Another window

Need to print same Invoice numbers which printed in main window.

In both the windows Invoice numbers needs to same on each page.

Thanks in advance.

Regards,

TNR

Edited by: Narsaiah T on Oct 19, 2009 2:45 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

keep the main window and secondary window size as same.

create a table in main window,count the number of records in internal table and restrict the number of records to be printed in the main window to some number.

Use the same table to print the data in secondary window also.

After printing the record delete it from the internal table and at the end of the table create a command line to call the same page so that further records will be printed.

Edited by: Chaithanya A on Oct 19, 2009 4:26 PM

former_member321557
Participant
0 Kudos

Thanks to everybody for reply. your logic worked.

Thanks

TNR

Answers (1)

Answers (1)

Former Member
0 Kudos

HI

In smartform also u can to that

1. U can do this using mutiple main window.

2.take to windows in page of same size.

first process the loop in main window and process the table in another window.

since window sizes are same so number of invocies will be sane in two windows.

regards,

Raghu.

former_member321557
Participant
0 Kudos

Hi Raghu,

I think in smartfrom won't allow multiple main windows sorry if I'm wrong.

but for eg if the table 100 invoices it needs to print in 5 pages so each window shld print 20 in each page.

I'm not sure how we are going to achieving this.

Regards,

Narsaiah T