Regarding Number of MAIN Windows in SAP Script.
Hi,
SAP Script allows to place a maximum of 99 MAIN Windows. Is it possible to have different content in different MAIN Windows i.e., if i have 2 MAIN Windows in SAP Script with numbers 00 and 01 can i have different contents in these two windows. If possible please give us an example for the same.
Thanks in advance for your esteemed help.
Regards,
Raghavendra Goutham.
HI All,
Thanks for your esteemed replies.
But i want to frame my question exactly.
In my script there are two main windows with number
MAIN 00 and MAIN 01.
MAIN 00
Content:
/E data
abc,,def
In MAIN 01 i want to have only XYZ, some thing like this
MAIN 01
/E total
XYZ
My problem is: whenever i am changing the content in MAIN 01, the content in MAIN 00 is also getting changed.
I do not want this to change, i want different content in both of them. Is this possibel if so how.
Thanks and Regards,
Raghavendra Goutham.
MAIN 01
Similar Messages
-
How to print a window (ex:total)only after end of main window in SAP Script
How to print a window(ex: total) only after end of main window in SAP Script
Thank you.Create a total window and place it after your main window, get the number of lines in your main window and place counter
Ex,&SAPSCRIPT-COUNTER_1(+)&,
IF SAPSCRIPT-COUNTER_1& EQ <number of lines in main window>
**print total
ENDIF.
Regards,
Sairam -
Hi Guys,
I wanted to know as to why is it possible to create multiple main window in SAP Script.
In most theory it is written a SAP Script can only use 1 main window, If thats the case why is it still possible to create more than 1 of them.
Can you explain its use and functionality.
Helpful answers will be duly rewarded.Hi,
U can have multiple main windows in Sapscripts(Upto 99)
Main Windows (MAIN)
Each form must have one window of type MAIN. Such a window is called the main window of the form. For SAPscript forms, the main window has a central meaning:-
? It controls the page break.
? It contains the text body that may cover several pages.
? It allows to fix text elements at the upper and lower margins of the allocated page window (for example, for column headings).
As soon as a window of type MAIN is full, SAPscript automatically triggers a page break and continues to output the remaining text in the main window of the subsequent page. Page windows of type MAIN have the same width throughout the form. The SAPscript composer thus avoids reformatting of the text after each page break.
If a page does not have a main window, the system implicitly processes all other windows of the page and continues with the subsequent page. This page must not call itself as subsequent page (recursive call), since this would produce an endless loop. In such a case, SAPscript terminates the output after three subsequent pages.
For printing header lines or totals, the different output areas of the main window are of special importance.
The diffetent Output areas of main window are
TOP
BODY
BOTTOM
its use and functionality.*
Suppose you have requirement that you r displaying data from two line item tables which can flow multiple pages.
In this case u have to use multiple mail windows.
Regards
Sandipan -
Printing of boxes in Main window of SAP Script at 2 different locations
Hi Experts,
I have an requriement in SAP script, I want to draw two boxes. The first box will be at the beginging of main window with 0.5 cm, which is comming perfectly. After the first box I have to display the entries related to a particular table, after the completion of that table I need to draw another box of lenght 0.5cm and the entries related to another table, needs to be displayed.
I am able to get the first box with intensity, but for the second box I am not getting exact position where i need to draw a dynamic box by filling intensity.
For that reason i have drawn two ulines and wrote the text, is there any way to fill internsity in between those lines.
Thanks
Ravi.Hi Sujeet,
I already tried with that command, the problem is in between two boxes I dont know how many lines of data will come.
There is a need of drawing a box dynamically.
Thanks
Ravi -
Can't see the Vertical line command in the main window of SAP Script.
Hi,
I have a peculiar situation where, I am not able to see the command through which vertical line separators are coded in the script within the main window. Can any one help me find this...?
Regards,
Owais...Hi Ravi Kant,
What does this mean?
/E ITEM_YWERT
WH &rwerter-wert(10)&,,&vline&
/E ITEM_TAB
/: CASE &VARPOSR-YZEILE&
/: WHEN '0001'
/: DEFINE &TAB& = ',,'
/: WHEN '0002'
/: DEFINE &TAB& = ',,,,'
/: WHEN '0003'
/: DEFINE &TAB& = ',,,,,,'
/: WHEN '0004'
/: DEFINE &TAB& = ',,,,,,,,'
/: WHEN '0005'
/: DEFINE &TAB& = ',,,,,,,,,,'
/: WHEN '0006'
/: DEFINE &TAB& = ',,,,,,,,,,,,'
/: WHEN '0007'
/: DEFINE &TAB& = ',,,,,,,,,,,,,,'
/: WHEN OTHERS.
* Tab. not defined
/: ENDCASE -
How to print line item 2times in two different main window in Sap Script
Hi,
I am designing check printing form using Sap script. I need to print line items 2times in different 2main window.can yu pls explain how print like this.
JKi cud not get ur query..pls elaborate
-
Getting Dynamic XPOS and YPOS for drawing the line in MAIN window in SAP Script using BOX command
Hi Experts,
I am trying to draw a line using the BOX command in the main window.
/: BOX HEIGHT 0 TW FRAME 10 TW INTENSITY 100
I want to draw a line in XPOS and YPOS dynamically..
Is there any way to find such I can draw a line dynamically after triggering a Text element. or determine the XPOS and YPOS dynamically such that I can draw a line in an intended position dynamically.
Thanks in Advance
Regards
Rajesh Chowdary VelagaAny update on this ??
-
Printing logo at a specified position in main window in sap script
Hi,
I need to print a logo just after the signature which is coming in the main window, So basically i need to call a var(secondary) window inside the main window just after the signature and the position of logo should be towards the right.
I tried it by insert->graphics but now what I am getting is the image on the left side.How can i define the position(upper margin & left margin) of logo while using the insert->graphics??? Is there any other way to do the same?????
EktaHi Ekta,
For example consider the dimensions
MAIN 2,00 CM 12,00 CM 17,00 CM 9,00 CM
Logo 16,00 CM 21,00 CM 3,00 CM 3,00 CM
This logo(secondary window) Print after the main window ...
Regards,
Sravanthi -
Change in output of quotation form in main window ( in SAP SCRIPT)
HI expects,
i want to change to the output values of quotation form and that should come in single line. at present it is coming in double line.as per my requirement is to be display the data in one line.
item material description
Qty price price unit value
0010 fff.044 motor
10ea 26.541.00 1ea 265.41
my requirement is
item material qty description price price unit value
0010 fff-044 10ea motor 26.541.00 1ea 265.41
how can i solve this problem in SAP SCRIPT (standard form : rvorder01)Hi,
As stated above , you cannot make changes in standard SAP script, create a Z one and then use it.
Manish -
Displaying Page number in all pages of sap script output
Hi All,
I have a issues in displaying page number in all pages of sap script output.
I have created a seperate window just above main window to display page number.
I have given &PAGE& in the layout editor.
Now in the sap script output i am getting page number as 1 in all the pages page number is not changing for pages-2,3, etc..
Can anybody tell me the reason for the same!
In some other objects same syntax is working fine. For this object it is not working!
Is there any setting changes!
Thanks i
Thanks,
Deep.Hi,
Just check the Page Counter of the Next or Second Page which you defined.
First page
Mode START
Numbering Type ARABIC
Second Page
Mode INC
Numbering Type ARABIC
Regards
Bala Krishna
Edited by: Bala Krishna on Oct 17, 2008 11:23 AM -
How to add field on into standard address window in SAP script
Hello Exports,
I want to add Vendor number field in between the Vendor name and vendor address in the address window in sap script.
Address is written in standard Address and Entendres. I need to add the vendor number in thsi Address and Endaddress.
Please guide in this.goto the Vendor Name field .
Hit enter.
A new line is created.
Give your Vendor Num field there.
Bhupal -
Create new window in SAP Script
Dear All
how to create new window in sap script
Regards
Suresh
Edited by: Alvaro Tejada Galindo on Apr 9, 2008 11:58 AMHi,
To create a new window in scripts.
1. After opening the form in SE71 Click on Windows push button.
it will gives a screen list of windows in a page
2. Click on Edit option in menu bar in Edit-->Create Element click it will gives a popup window in the window give Name of the window and short description press enter like that you can create windows in a page
3. Click on Page windows it will gives a screen where that window you want to place in that page. Click on Edit option on menu bar Edit-->Create Element
it will gives a list of windows which your created in a page here you have to select which window you want to place. Double click on that window it will adds on the page and give the bottom of the screen you can find standard attributes block
there you have to give the position of the window in a page.
or
Click on setting option on menu bar settings-->form painter
it will gives a GUI editor here you can drag the window position it is easy to use.
then you can see the layout.
Thanks
Ganesh -
How to Edit the Graphical Window in SAP Script
I want to change a logo in Window in SAP Script, but the window type is Graphical, hence it is not editable.
Please let me know the solution@bhushankotwal
I think you mean GRAPH window type in SAPscript form.
You may change GRAPH window type to VAR, then you will able to edit it. After you modified it you can change it back to GRAPH window. -
How to display the number of line items in sap-script report?
Hi friends,
I need a help regarding the SAP Script. In my script (report) I create two pages and created three windows (MAIN, HEADER, FOOTER) for each pages. Now the problem is while displaying the fewer line item which can come under the main window of the 1st page these line items are comming perfectly but for the remaining line items that comes on the second page the table headings and the boexs are not comming.
Also it is displaying the total and the amount in text in every pages that should be display in last page.
Here if I eleminate or comments the total and the amount in text for the first page the same is reflected in second page. Also I need to display the page-nor for each pages to displayed.
I am requesting all the people out there kindly help me to solve this issues.
Thanks and RegardsThere is no pre built solution for this. But we can show total pages in the report body.
one way is Create a other column in the report with code sum(count(1))/25. that gives you total number of pages. 25 here is no of rows in each page. The code you can write in narrative "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
If you are using pivot tables, you can try this.
http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
- Madan -
This is regarding totals and sub totals in sap-scripts
Hi to all...............
1...How to print totals and subtotals in sap-scripts? where we have to code the logic.what sort of logic is needed to print the same?
regards,
swaminath.Hi
HI,
To calculate totals and sub totals in sap scripts you have to use subroutines.
Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
/: DEFINE &TOT_PRICE&
/: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name> /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
Then write the variable where ever you want it to be printed (mostly it will be in footer window)
Then create subroutine pool program and you have to write the code.
FORM F_GET_PRICE tables int_cond structure itcsy
outt_cond structure itcsy. data : value type kbert.
statics value1 type kbert.
Read int_cond table index 1.
value = int_cond-value.
value1 = value1 + value.
Read outt_cond table index 1.
outt_cond-value = value1.
Modify outt_cond index 1.
ENDFORM.
To know more, have a look at this thread ..
Re: SAP Script: Display Total calculated on page 2 in page 1
<b>Reward if usefull</b>
Maybe you are looking for
-
Problem exporting as an animated gif
I create animated gifs in Fireworks. I work on them, save them as a png file and then export as an animated gif. For some reason, I have followed the same procedure but the file is not exporting correctly export at all or only saves 1 frame. Also, if
-
I use iTunes for songs and to buy more levels on candy crush. My bill is to MasterCard, but each month my iTunes is for more than what I think I purchased. I recently had to change my mc number. It was a new number so I changed it on my account. When
-
Apple Tv mirroring very unresponsive and erratic.
All the Apps I run on my iPad are getting very delayed to mirror on the tv and not responsive at all. There is always a delay and at times freezes for a few seconds on all the games or movies I play. It syncs smoothly only when I'm on the photos or o
-
hi gurus can anybody tell what the settings requires when we sned the data from R/3 to APO or R/3 to BI. so How the data can passess form R/3 to APO. what are the different types tools we are using here to trasfer the data from source to target.??? i
-
Очень долго загружается система 10-20 минут в чом может быть проблема? Атакже проблема с веб камерой... мак бук a1286 Лог загрузки AirPort: RSN handshake complete on en1 touchup IPv4 Multicast with DSCP <0x08> en1: BSSID changed to f0:7d:68:81:b2:b6