SAPscript layout -Repeating Main window in same page
Hi,
I have a requirement in sapscript layout to duplicate content within a page in two sections, of which the content can span across multiple pages.
Can anyone give an idea how this can be achieved.
This particular layout has 3 sections:
1st window (Top window): invoice Details (multiple items)
2nd window (Middle window): Check Details single item
3rd window (Bottom window): invoice Details (multiple items) {same content of the 1st window}
The invoice details can span across multiple pages.
Main window alone works perfect with the requirement.
I have attempted with a copy of a Main window for the 3rd window, and as it's specified it can only continue from the 1st main Window and i couldn't find a way to control it's value passing from the calling program.
I have also tried using a dynamic window for the 3rd window, but haven't worked to get the desired values shown across multiple pages. When it cross to a new page it repeats its last value across all pages.
Please help me with this. Thanks in Advance.
Regards,
Viraj.
The Standard layout only prints the invoice details once.
If your existing layout prints invoice repeated, which means that already a customization is in place which repeats the invoice breakdown.
If the items are being repeated in the main window, it could be that the repetition customization is done on the calling program, then a solution could be to remove/comment that call in the calling program by searching text element name.
If the items are being repeated from a non-main window, then a solution could be to remove/comment the entire element in the non-main window.
hope this helps
Best Regards,
Viraj.
Similar Messages
-
How can I create more than one main window in a page of SAP SCRIPT?
How can I create more than one main window in a page of SAP SCRIPT? If anybody helps me I will be obliged.
Regards,
SubhasishHi Ganguly,
It is possible to have more than one main window in a same page.
You create a main window and simply you copy and past it in the same page.. it will create first main window name as MAIN and other main windows as MAIN01,MAIN02.... up to MAIN99.
Contets flow from MAIN , MAIN01, MAIN02.......................MAIN99. contents after filling the current window it flows to next window(by default, you skip as well with some keyword not sure could be NEW-WINDOW)
you want print the main window data twice? or you want to create two main window in the same page ?
1. give two copies in the no of copies in the output type screen ( Which pop up is coming after excute the program ).
2. create two page with the same script form.
3. you can write the coding inside the program to print twice the same page.
Hope this information use full to you.. -
Smartforms: Creating main windows in different pages
Hi all!
I am using smart forms, I tried to create 2 main windows in 2 different pages. I keep getting the following error: "Two main windows are not allowed." However, I have already seen an example where there are 2 main windows created in 2 different pages. Does anyone know of you how to solve this?
Thanks for your help.
Message was edited by: Hajar BelahsenHi Hajar,
You cannot have two main windows. But the main window can be associated to as many different pages that you want.
Check the program where you saw that the code inside the MAIN window is same. They have actually associated the window with the page. This is what termed as page-window.
Give feedback.
Regards,
Deva. -
The main window of third page will not display the text element
Hey, smartform guru,
I am working on the smartform to print PO data.
The smartform has first page and next page as usual.
I created a third page P_TERMS to print the terms and conditions for PO printout.
I used commend node to assign the page P_TERMS as the "Go to new page" and it did go to the P_TERMS page but the text element will not print in the main window in P_TERMS page.
The text element will print in the secondary window.Since the terams and conditions are 4 pages long, I expected it to print in the main window, so I do not have to define several extra pages to print them.
Any idea?
Thanks in advance!
Fisher LiHi Fisher,
Unfortunately, In a smartform, only single main window is continued to all pages even though you can declare windows under each page as main window, but it actually acts as the same window for all pages. It just means that if text from 1st page is overflowed, it will continue to the next page with main window.
Command line to go to next page will create an extra page but since text is not flowed in main window, it won't print the text element you have included in main window on third page.
The solution to your problem as I see is that either you include your terms and conditions in the main window of your first page and just before your text element for T&Cs, use Command to go to third page.
Hope it helps.
Ravi -
Hi gurus in scripts i want to display more then one main window on the page
hi gurus in scripts i want to display more then one main window on the page how it is to follow any body explain to me plz.
Hi all,
I am printing check printing from F110 with Z-form and it has been assigne to FBZP also..
My client need to print the check information twise that means main window data two times.
like this:
First main window. : invice# amt amt
9002 4000 4000
9005 5000 4000
Al so they want like to print same in down part of the main window.
First main window. : invice# amt amt
9002 4000 4000
9005 5000 4000
For this i have created instance main window of main window like MAIN 01, but it is not displaying the data in instnce window data
in the instance main window.
Question: Could you please let me know abt the same or good solution. How to cal main window instance , i tried with
/: NEW-WINDOW in instance main window part but it also appering in main windoe also.
could you please let me know how to call instance main window or any other solution to get teh data like my example above.
thx -
How to display standard text element of main window in next page
hi all
In scripts we have standard script medruck for purchase order.
i want to pull text elements ( terms and payment terms ) in to main window of next page.
i have included main window in page windows of next page ,but im unable to print text elements of terms and payment terms in next page...
any one give your valuable inputs.
Thanks
deepika.Hi deepika,
First copy standard MEDRUCK to ZMEDRUCK and do the necessary changes.
Then check in driver program when exactly Terma and condition text element is called. Generaly its after printing all items but just check once to confirm.
If TERMS and condition element is called ate end just put a NEW-PAGE command at end of the text element which is called before terms.
Hope this will help You.
Thanks
Dhiraj. -
i have apps loaded on my iPad. they show in the main screen are not available to load documents to in the window list which should appear below the main window. the same apps do appear in the sub window on my other iPad. any ideas?
From what I can see, unless you're doing things with old versions of Xcode on a Mac (in which case, the solution seems to be to upgrade to the latest version), this seems to e an iTunes issue.
Accepting that it works fine with another iPad, I suggest trying the following:
1. Restart the non-working iPad
2. If that doesn't work, reinstall iTunes. If you're on a Windows PC, I suggest using Control Panel to uninstall all the Apple apps, restarting the PC, and doing a fresh install. If you're using a Mac, a repair permissions might help too.
iTunes 10.3 is now available, and that may make a difference. -
Hi all,
I have a form with one Window -> Main Window, in this Window it will be written many different information... there is also a table, when the table cause a new-page, the header (discription of the table) should be written (repeated) also on the new page.
Im trying to find out, how i can get the page number in the print-programm... but I dont found any variable (print_co-actpage doesnt work)
Thanks a lot for your help.Hi David,
I'm sure you've got around your requirement by now, but for future reference you can get the page number into your print program by calling the function module 'GET_TEXTSYMBOL'.
data: lv_page(255) type c.
lv_page = '&PAGE&'.
call function 'GET_TEXTSYMBOL'
exporting line = lv_page
start_offset = 0
importing value = lv_page.
Cheers,
Darren -
SAPSCript how to print a comment at the end of main window on first page?
In SAP Scripts, How do I print a comment at the end of the first page (I have several pages of data) in the main window?
- Venhi
good
yes we can put condition.....to display the footer window get printed after all data in main window gets over.........................assingn u r footer window to next page [ i.e u r second page] ...and write the condition
In such senario no need to use a window for footer.
In the Script form:
-> In the Main Window itself after all the main data create an Element.
-> Use BOTTOM and END-BOTTOM; write your footer information between them.
In your Driver Program:
-> After printing all the data (means after passing to form and before closing the form) call one WRITE-FORM with the footer element.
I'm sure it will work.
f u r not interested to change the print program. Then simply insert simple code in the footer wondow.
now insert this code in ur footer window
IF &TTXSY-PAGE& = &SAPSCRIPT-FORMPAGES&.
*all code in footer goes here.
ENDIF.
&TTXSY-PAGE& holds the page number of current page.
&SAPSCRIPT-FORMPAGES& holds total form pages.
This will work.
write this code then the footer will be printed in last page itself
/: IF &NEXTPAGE& EQ 0
whatever footer you want.
/: ENDIF
You need to create an element in the MAIN window. You can do it in two ways:
1. In SE71, you can create:
/:E FOOTER
/:BOTTOM
Text
/:ENDBOTTOM
In the print program, just call this element.
2. In you print program, populate parameter type = BOTTOM in FM, WRITE_FORM.
Ex.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'FOOTER'
type = 'MAIN'
window = 'BOTTOM'
EXCEPTIONS....
However, if you issue new page having new header data. Thus, new item data. And if it will exceed more than 1 page, the footer will still appear. To solve this, you need to create a new element in MAIN. Ex. INIT_FOOTER. It just contains the following:
/:E INIT_FOOTER
/:BOTTOM
/:ENDBOTTOM
Call this after passing all item data.
reward point if helpful.
thanks
mrutyun^ -
How to use Different Main Windows in Multiple pages to print internal table
Hi experts,
I have a problem regarding how to have multiple different main windows in smartforms..the problem is that i want to print an internal table in the third page of the smartform and that table can have dynamic values ..sometime it may have more than 400 values also which can not be printed in one or two pages ...
so to accomplish the same what i did was..
i tried creating a new main window in the third page but it is throwing an error saying two main windows not allowed and i also tried by copying the first page's main window but it is just repeating the same content what was there in second page..
i also tried by creating a secondary window in the third page and in that window i tried giving my internal table and tried by giving the next page to itself but that also is not allowed and it throws an error saying a page without a main window cannot point to itself as a next page....
i also tried using a secondary window and in that window i was trying to display the internal table but it is only showing third page content and fourth page itself was not created....although in my next page field value of the third page , i have given the third page itself as a next page ....but this also is not working ,.....
please suggest how to have different main windows(not copy of first main window) in smartforms in order to display the dynamic contents of an internal tableHI ,
Just check with your smart styles with assigned paragraph allignment .
Try to create character style with your required font ,size and Allignment .
Hope u this will solve your issue .
Let me know if any concerns......
Regards,
Lokesh -
Main window of triggered page ( thr' COMMAND ) is not getting triggered.
Hi,
My requirement is as below -
I have 3 pages in smartform
FIRST page - next page of it is SECOND page
SECOND page - next page of it is SECOND page
and I have last page ( LAST_PAGE ), which is getting triggered for 1 of the condition.
Here, my main window in LAST_PAGE is not getting triggered; Can anyonw please advice on it.Hi,
If u have used Main Windows only then u can place the Command Node in First Page Itself after the command node 1to First ---> Second Page Trigger your Text nodes etc and again The Command Node 2 Second to Third based on condition else the same second page. Mainwindows will be accessed as specified in first page only .
IF secondary or other windows have been specified
Place the Command Node in the Second page and also add the Condition to the Command node the condition to get to last page.
Regards,
Vijaya Lakshmi.T -
Main window of different pages in script
how to put different data in main window of two different pages?
please reply quickly,its urgent.
thanks in advance.Hi,
you can try using 'IF' conditions by checking the &PAGE& variable or check if next page is getting triggered using sap counters available in teh table called SAPSCRIPT or call any particular text element from teh print program if there is a page break etc
Regards,
Simmi -
Need to print horizontal line at the end of main window in each page.
Hi,
I am printing a smartform with main window having 10 lines in footer. The problem I am facing is when the content extends upto two or more pages, I am not getting the horizontal line at the base of main window. For last page it is fine as it contains footer.
Please suggest how to proceed.
Thanks,
RKUHi,
If you don't have any frame set on your main window:
Go to output options and mark frames, and then go to details and uncheck checkboxes for above, laft and right, leving only below marked.
This will give you a line in the bottom of you main window.
If you dont' want to do this on the main window, can you create a new window placed at the bottom of the page and use this framing technic on that window. But in that case don't forget to mark the "always draw box and shading" checkbox. as this window contains no values, the will not get printed unless you mark this checkbox.
Regards
Åsa Thenstedt -
How to skip secondary window below main window to next page.
hi friends,
this is tax retail invoice in which main window contain a table where the items are listed
as the items increses. the remaining items get listed on 2nd page thats ok..but the calculation part as total get
calculated on both page in secondary window
below main window
tried with command with go to next page
plse suggest.soon...urgent.
thnx in advance.Put a condition on this secondary window for totals. Flag the checkbox 'Only after end of main window'.
Cheers,
Edwin. -
2 different tables in the main window with same internal table data
Hi All,
can we have 2 diffterent tables with same internal table data into its work area in the main window.Is it possible or we will get any run time error.?
is it like having 2 nested loop with same internal table ?
ex : loop at itab1 into wa_itab.
loop at itab1 into wa_itab.
endloop.
endloop.
can we use like this?Hi,
there will not be any error ...but what is the use of it...
do you need to have a controlled way of display ...of the data...
If so then you create another workarea in the global definitions of the same type and then use it...
Regards,
Ram
Maybe you are looking for
-
Numbers file not opening in iCloud on MacBook Pro
I have added Numbers to my iPad and have upgraded Numbers on my MACBOOK in order to open/view spreadsheets in iCloud. I am having trouble getting files open on the MacBook from iCloud. Says "file did not revert"?
-
How to install "Rescue and recovery" on a new harddisk (T60)
My T60 has a 60gb harddisk and I want to upgrade to a 160gb. I need to know how to install this rescue and recovery on the new disk. Can some one help me out here I can imagine for example to create this (hidden) partition with Partition Magic, but
-
MIRO, multi-account assignment, error message M8063,
When I do MIRO referring to a PO with multi-account assignment and Indicator GR-Based Invoice Verification is untick, I receive the following error message u201CDocument does not contain any items Message no. M8063 Diagnosis The document contains no
-
Problem in designing an SQL or PL/SQL
Hi all, This is my problem statement.... I have a query that gives me output like this..i cannot change this query...the result is coming from 2 independent tables..... accountid effective date term date 1 01/01/07 01/16/07 1 01/01/07 01/20/07 1 01/1
-
Bonour je viens de prendre un iMac (plastique blanc pas encore en alu) et quand je veux le démarrer il reste sur la pomme, mais quand je met le cd d'installation (de mon autre iMac cette fois ci en alu) il le lit, le relit, le relit et au bout de 10