Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Script for check form is not printing third window in same page

styrolution_accenture
Participant
0 Kudos

Hello,

We have a requirement in our check form development where we have first window where the vendor invoice details are printed and in the second window we have a check being printed and in third page we nee the same first page to be repeted.

Business Need. As per business they need the first copy to send to vendor second to bank and third to keep with them for record and for this business scenario the first and the third window should be same.

When we try to copy the first window and make it as thrd window it does not work. We have tried multiple permutation and combination to achieve this but some how it did not work.

Did any one of you got this kind of requirement and have resolution for the same. Please help.

Let me know if you need any further detail on the requirement.

BR,

Rajesh.

7 REPLIES 7

Former Member
0 Kudos

Hi Rajesh,

Have you first created different pages for the above requirement ? Or is it you are just creating windows.

You can have the same window in multiple pages by going Edit -> Create Element and add the existing window to a different page. This is seen in Page windows.

Hope this helps. Let me know if additional info is required.

Thanks,

Tooshar Bendale

0 Kudos

As per my requirement this has to be created in the same page. So as per the requirement the first page should contain 3 windows mainly..

1. Invoice line item details (will have multiple line items) - This is Main Window.

2. Check format

3. Invoice line item details (will have multiple line items)

we are able to get the first 2 but when we are printing the third window it is not printing all the line item but just printing the last line of the data like if we have 10 records to be printed it will print the 10th record only but not all 10 records. This third window is not a main window and the first window is main window and that is only the difference as i am just copying the first window and crating 3rd window..

Let me know if you need further more details on this issue .. this is still open issue.

BR,

Rajesh Kumar.

0 Kudos

Hi Rajesh,

As the third window is not a main window if there is overflow of records then however these records are not going to flow from page to page.

It is printing only the last record in the third window as the work area is not cleared off.

Also can you upload your Sap script to the thread, so it will help in understanding your issue.

Thanks,

Tooshar Bendale

0 Kudos

Hi,

You will need to modify driver program i suppose its rffous_c to a z one ..

In this program there is a loop running in perform scheck.

I think (not sure) you will have to call all the form elements in this program inside this loop with your window name except those elements which belong to check.

0 Kudos

Thanks for reply Tooshar,

I wanted to fix the number records per page so that will resolve the issue of record flowing to next page. The workarea is getting cleared and also the 3rd window is called in a loop to write the content. It calls the third window and then get to the element in the script but it come out from the very first statement written there.

I will see the possibility to upload the form.

BR.

Rajesh.

0 Kudos

I have akready modified the driver program and added the element in the loop but it does not work not sure why?

please help if you have any other way.

0 Kudos

I had modified this program recently...

My req was that user wanted 10 lines in the main window otherwise text ' List attached for details' ..they had another program to attach list.

I commented all the carryfwd thing since not required .

What I did was created a new table after GET REGUP which had all the data

AT NEW REGUH-VBLNR as in the loop my check details were printing

and in

AT END OF REGUH-VBLNR ,I checked that if for that vblnr rows are greater than 10 call message element else print 10 or less items