Box in main window (sapscript) problem.
Hi, all.
I meet a weird problem....
I have 2 pages form which have 2 same MAIN window and of course their source code is same one. But when I run the output form, I found that one of the page which main window's box is disappear, while the other page no problem.
How come like this? Should be the box appear in both MAIN window, right? Hope someone can guide me.
Thanks in advance.
Boxes in the main window only get printed in the first page, unless you include them in an element and explicitly call the, But of course that's not the way to go.
Every other window in the same page which has content that's not inside one element gets printed every page. So to solve your problem, declare another window (perhaps called BOXES) with the appropiate dimmensions and define in it the boxes you need. Replicate this BOXES in the other pages (if you use different page formats inside the sapscript) or leave it in the First page (if it's the only one in the sapscript). The boxes will now print in every page.
Similar Messages
-
Box in main window extend to next page in sapscript
Hi all,
I am trying to put box in main window in sapscript.
contents of main window extends to more than 1 page.
Box is appearing on first page but is not extending to other pages.
Pl help,
Regards
SenthilHi,
Please refer this thread.
Link: [sapscript box nto printed on all pages;
Hope this will help you.
Regards,
Renuka S. -
Positioning box in Main Window
I have a main window (Sapscript) with multiple text elements as follows:
<Start Text Element1>
Include statement with varying text length
<End Text Element1>
<Start Text Element2>
Include statement with varying text length
<End Text Element2>
<Start Text Element3>
I need a box to appear here with item header. ****
<End Text Element3>
How can I position the box in the 3rd text element section ? The text appearing in Text Element1 & Text Element2 are not fixed in length. I will not know where text element 3 starts.Hi...
You can do like this.
BOX XPOS YPOS WIDTH 10 CM HEIGHT 10 CM
INCLUDE TEXT
INCLUDE TEXT
INCLUDE TEXT.
Here, you need to change your XPOS and YPOS accordingly
So that your Third text will be fit in the Box.
Regards
Sandeep Reddy.
Edited by: Sandeep Reddy on Dec 31, 2007 11:34 AM -
Box in main window of script is not printing
Helllo Friends
Box in main window of script is not printing but the same is available in print preview. I have use the following commands.
Please help me.
/: BOX WIDTH '23.40' CM FRAME 20 TW
/: BOX XPOS '0.00' CM YPOS '1.40' CM WIDTH '23.40' CM FRAME 25 TW
/: BOX XPOS '0.00' CM YPOS '8.10' CM WIDTH '23.40' CM FRAME 25 TW
/: BOX XPOS '0.00' CM YPOS '9.00' CM WIDTH '23.40' CM FRAME 25 TW
/: SIZE WIDTH '0.00' CM HEIGHT '8.10' CM
/: BOX XPOS '0.00' CM FRAME 25 TW
/: BOX XPOS '0.50' CM FRAME 10 TW
Thanks In Advance
Regards
SUNITHATry changing X postion to not equal to zero something else for example.
/: POSITION WINDOW
/: POSITION XORIGIN '-0.1' CH YORIGIN '+0.4' LN
/: SIZE WIDTH +0.7 CH HEIGHT +5.0 LN
/: BOX FRAME 7 TW
/: BOX HEIGHT '1.1' LN INTENSITY 15
Nabheet -
Printing dynamic box in main window in scripts
hi ,
I want to print the dynamic box in main window of my script.
Ex. Suppose the content of the main window is 5 lines so it should print box for 5 those lines only.Hi,
Create a Main window with only 2 lines, Give a BOX command it will give u Border for entire Main window.
/:BOX FRAME 10 TW
For giving vertical lines Syntax is
/:BOX XPOS 16 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW
It gives u a vertical line at 16 character. so for ur requirment add another command at another XPOS.
Try this below just below ur ITEM ELEMENT which has the display fields.
Main Window
/E ITEM_A
A,,,,&ITAB-ABC&,,&ITAB-XXX&,,&ITAB-CDE&,,&ITAB-GEF&
/:BOX FRAME 10 TW
/:BOX XPOS 16 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW
/:BOX XPOS 26 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW
/:BOX XPOS 36 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW
/:BOX XPOS 46 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW
Change XPOS according to ur requirement.
Now add another main window to the same page with changing UPPER margin, U can add upto 99 Main windows in one page.
So add upto ur Page is full.
For headings
Create a Variable window same as Main window, in place of fields, give descriptions.
Make sure that u give BOX command below the field declaration, if u give above, for last record it will not print box.
Regards
Bala Krishna -
HOW TO DRAW BOXES IN MAIN WINDOW WITH OUT USING BOX XPOS
u can draw dynamic boxes by using uline n vline options. But it takes a lot of time, and is suggestible only if it is very critical. Just try out.
By using uline and vline, you can draw lines dynamically. Also u can specify the width too ... eg ... uline(120). Dont forget to specify the font style ans size of the font. -
Box in MAIN window of sapscript keeps misaligning...
Hello Experts,
I am currently modifying a sapscript and inside the MAIN window, there is a box command that 'boxes' a
static text. But the problem is, the box misaligns since the number of line items is dynamic.
So, how can I make the box command to just 'box' the static text correctly even though the line item is
dynamic?HI,
Declare the Box and Static text in the main window with a new text element after the text element of the line items . so it will print it in the end when all of the Line items are printed..
(or)
Just create another script with the BOX and the text you want inside the BOX. i.e. this becomes another script which is separate from the line items you are printing there.
call this script in your driver program with start_form FM.
REPORT YTEST_SCRIPT.
DATA:
ITAB TYPE TABLE OF SFLIGHT,
FS TYPE SFLIGHT.
SELECT * FROM SFLIGHT INTO TABLE ITAB.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZSCRIPT_TEST'.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT ITAB INTO FS.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TEST'
WINDOW = 'MAIN'.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
CALL FUNCTION 'END_FORM'. "---------->Ends the previous form
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'START_FORM' "------------> Starts your new script with BOX and Static text
EXPORTING
FORM = 'ZSCRIPT_TEST1'.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TEST'
WINDOW = 'MAIN'.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CLOSE_FORM'.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
This will print the BOX and the Static text in a new page after the line items got printed..
This will solve your issue...
Thanks&Regards
Sarves -
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 -
Box inside Main window issue in Scripts
I have issue in placing a box inside the main window. I would like to display text with a box frame at end of the line items.
I tried creating seperate FOOTER window in the Last page, but it dint work as expected, since if the line items ended in the first page then the LAST page did not trigger and one more complication was if there were 4 pages, then there was blank window (FOOTER) in 2 pages and it looks ugly.
I tried putting the box frame by using text element, calling after the end of the line items. The text displayed as needed, but the frame was misaligned.
Kindly help me. Thanks in advance.
Have a great weekend.Raj,
Try to find out which text element is trigerring after the line items text element while debuging the script and then place the box code in that text element.
regards. -
Hi All,
My header in the main window is getting printed at the end of the page even if it contains no data in the main area.
I have given a porgram code in the header, becos based on that my header data should be printed and a page break in the main (sort end event).
What should i do to avoid the extra header.hi
good
go through these links which ll give you complete idea about the printing of the header in the main window,hope this would help you to solve your problem
http://www.supinfo-projects.com/fr/2005/forms_sapscript_en/7/
http://help.sap.com/saphelp_nw04/helpdata/en/d6/0dba4e494511d182b70000e829fbfe/content.htm
thanks
mrutyun^ -
Main window iteration problem in smart forms
Hai,
I am struggling from a problem from past 1 weak, can anybody help me.
Problem:
user- inputs: 2 different items say item1 and item2.
The output should be the combinations of four pages(pg1,pg2,pg3,pg4) based on conditions.
pg1 should be displayed when:
1. item1 and item2 are less than 5.
2. either pg1 or pg2 are less than 5.
note: pg1 can only display 5 items of each type.
pg2 should be displayed when:
1.item1/item2 is greater than 5 and less than 15.
2. either item1/item2 >5 and <=15 .
note: pg1 can only display 15 items of each type.
pg3 should be displayed when:
item1 is greater than 15.
pg4 should be displayed when
item2 is greater than 15.
My problem is when there are items greater than 15 say 90 items then main window page is not iterated i.e only first 40 is displayed remaining are not displayed.
Please help me as soon as possible.
Helpful answers will be rewarded.
Thanks and Regards,
Swetha Singh.Hi,
Instead of calculating the line items, you can use the command in the footer of the main table to go to next page. It will dynamicaly push to the next page, once first page data display was over.
Is this the answer you are looking for. Thanks. -
Tab setting in the main window sapscript table
Hi ,
i have one problem ,i am doveloping new script.in the main window having 5 column table .the table col size is grater than the populated field size.main problem is these values are not populated in the middle of the every column of the table.
to achive this how to set the tabsettings?
please sent the solution for this asap.
Thanking u.Hi SS,
U can do that by giving the alignment (Right,Left,Center Alignment) in the Pragraph format and also in Character format.......
any of the format you can choose....
as for as tab is concern you must have the size of the value which you want to populate...
accordingly you have to give the tab size in paragraph format...
thnx
Rohit -
Extra boxes when Main Window Overflows
Hi All,
I created a table in Main Window, after that i have long texts. If the long text overflows, then i am getting two boxes which are not even present in the form anywhere. I am wondering how to get rid of those two extra boxes. Please help me.
Thanks,
KumarHi Kumar,
Elobrate it a bit more.
I couldn't visualize what do you mean by extra box, where exactly they are...before the table/ after the table.
or extra boxes in one coulm of the table.
cheers,
Sai -
Hi,
I need to draw a box around the whole main window using BOX. i.e, if the page extends to more than one page, the box should draw on the next pages also. Right now I'm able to draw only on the first page. How should I do this?
This is what I have now.
POSITION WINDOW
POSITION XORIGIN -20 TW YORIGIN -20 TW
SIZE WIDTH +40 TW HEIGHT +40 TW
SIZE WINDOW
BOX FRAME 10 TW
BOX WIDTH '260.75' MM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
BOX XPOS '2.0' CM WIDTH 0 TW FRAME 10 TW
BOX XPOS '10.5' CM WIDTH 0 TW FRAME 10 TW
BOX XPOS '11.5' CM WIDTH 0 TW FRAME 10 TW
Thanks,
A.PHi,
put the box declaration b/w <b>top and endtop</b>.
<b>/: TOP</b>
POSITION WINDOW
POSITION XORIGIN -20 TW YORIGIN -20 TW
SIZE WIDTH +40 TW HEIGHT +40 TW
SIZE WINDOW
BOX FRAME 10 TW
BOX WIDTH '260.75' MM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
BOX XPOS '2.0' CM WIDTH 0 TW FRAME 10 TW
BOX XPOS '10.5' CM WIDTH 0 TW FRAME 10 TW
BOX XPOS '11.5' CM WIDTH 0 TW FRAME 10 TW
<b>/: ENDTOP</b>
Reward if it helps you.
Regards,
Sandhya -
Drawing box in main window of sapscript form
Hi all,
I am developing a script for vendor balance confirmation report, in which I have to provide check boxes to allow the user to select an option.
My problem is if I use the BOX statement to draw the box the alignment keeps changing when the size of vendor address changes.
i.e the boxes moves up and down
I have another reference script in which they used the following statement to draw the box <527>.
Please suggest a way to use statement like this <527>
Thanks,
RajanTry it as shown below for drawing dynamic boxes.
Here the code works this way the YORIGIN is incremented by 0.6CM each time it is in the loop thus drawing tables dynamically.
/E TAB
/: POSITION XORIGIN '0.9' CM YORIGIN '+0.6' CM
/: SIZE WIDTH '3.0' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '3.9' CM
/: SIZE WIDTH '7.3' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '11.2' CM
/: SIZE WIDTH '2.8' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '14' CM
/: SIZE WIDTH '2.6' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '16.6' CM
/: SIZE WIDTH '3.2' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW
P4 &X_VBAP-KWMENG(C)&,,&X_VBAP- ARKTX&,,&V_TOTALa&,,&V_TOTALb&,,&V_TOTALc&
the driver program's piece of code.
LOOP AT it_vbap INTO x_vbap.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'TAB'
window = 'MAIN'
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
codepage = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDLOOP.
Regards,
SaiRam
Maybe you are looking for
-
Looking for an app that will show me where my chil...
I am Looking for an app that will show me where my children are (via gps on their phomes). Looked in OVI store but came up empty. Need the app to work on my E71x. Thanks
-
Error 500--Internal Server Error when using BI Publisher within OBIEE 11g
I'm using OBIEE 11.1.1.6.2BP1 on a Linux x86-64 server and it has been working just fine. We recently started playing around with the BI Publisher component of that installation and every time i go to http://hostname:port/xmlpserver and try to log in
-
File name based routing in Receiver determination
Hi experts, I have a requirement to do receiver determination based on file names which are dynamic.To put it clearely, i will be having two files in my source File location and i need to route it based on the file name to two target systems. The fil
-
I can't open itunes with finder to get to the download part
I have a macbook and I downloaded the itunes 9, and it says that its itunes.9.0.2 I know that I need to open it in finder to get to the setup or whatever, but when I click on it, it opens with diskimage mounter, and I don't know how to open it with f
-
Developer Studio:Exception:The message server did not respond within 60 sec
Folks, I am getting this error in Developer Studio ( J2EE Engine Preference) , Can anyone please tell me what is the issue. Exception: The message server did not respond within 60 sec.Please check if the message server is running and if the socket co