Sap script window
Hi All
Is it possible to print the outer line of the window in SAP script like address window, I want to print the whole address in a block. IF any body can guide me that would be great.
thanks
C
Hi
This will help you.
/: BOX XPOS YPOS WIDTH HEIGHT FRAME INTENSITY
/: POSITION XORIGIN YORIGIN WINDOW PAGE
/: SIZE WIDTH HEIGHT WINDOW PAGE
BOX:
WIDTH
Width of the box. Default: WIDTH value of the SIZE command.
HEIGHT
Height of the box. Default: HEIGHT value of the SIZE command.
FRAME
Thickness of frame. Default: 0 (no frame).
INTENSITY
Grayscale of box contents as %.
Example:
/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
Regards
Anshul
Similar Messages
-
Hello All
I have done changes to include few(3) lines in a SAP Script window. Because of those 3 lines, contents that were printed earlier are not getting printed.
The window is getting printed inside a box and it is defined as
BOX FRAME 10 TW.
Window height is 22.50 Ln,width 9.50 CM.
To rectify this should I increase the height of this window or should I define the attributes of the box
Please reply at the possible earliest.
Thanks in advance.Check this
Setting default parameters for a box:
You can use the POSITION and SIZE commands to set default parmeters for a box.
Instead of:
/: BOX XPOS '11.21' MM YPOS '5.31' MM HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW
You can write:
/: POSITION XORIGIN '11.21' YORIGIN '5.31' MM
/: SIZE HEIGHT '2' MM WIDTH '76' MM
/: BOX FRAME 10 TW INTENSITY 10
This can be usefull if you gave several boxes that share the same parameters.
If you want to set the position realtively to the window use POSITION WINDOW
to set the position to the top/left start of the window. Then use POSITION
to set the current position relatively to the start of the Window.
Note that you uses "+" or "-" in the ORIGIN position to the set the position relatively.
/: POSITION WINDOW
/: POSITION XORIGIN '+5' MM YORIGIN '+10' MM
the position is now 5 MM from the left and 10 MM from the top of the window
NOTE: After using the position command you can move the current position
realtively to the last used position
/: POSITION XORIGIN '+10' MM YORIGIN '+20' MM
Now the position will be X = 15 and Y = 30
Drawing a line. You can draw a line by setting the Height or Weidth to 0
and add a frane. E.g. a horizontal line:
/: SIZE HEIGHT '0' MM WIDTH '200' MM
/: BOX FRAME 10 TW XPOS '11.21' MM YPOS '14.81' MM INTENSITY 100 -
Dump error when clicked on text elements in SAP Script window
Hi All,
There is an inclusion in SAP Script. I have written the code in driver program. I need to pass the value to SAP Script in the requested position. But when I go to SE71 > Form Name > Change or Display > MAIN Window > Text Elements > I get a dump error.
Category ABAP Programming Error
Runtime Errors DATA_LENGTH_TOO_LARGE
Except. CX_SY_RANGE_OUT_OF_BOUNDS
ABAP Program SAPLSTXK
Application Component BC-SRV-SCR
Date and Time 30.04.2014 20:00:08
Short text
Invalid partial field access: Length is too large
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLSTXK" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_RANGE_OUT_OF_BOUNDS', was not
caught in
procedure "TOKEN_COMMENT" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
In the executed program "SAPLSTXK", the system attempted to access the field
"ITF_TOKEN" of the type "C" and with the length 255 using the length 272.
However, a partial field access with a length specification that is
larger than the field length is not allowed.
How to correct the error
Reduce the length used to access the field.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"DATA_LENGTH_TOO_LARGE" "CX_SY_RANGE_OUT_OF_BOUNDS"
"SAPLSTXK" or "LSTXKFRN"
"TOKEN_COMMENT"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
2937 * todo empty comment ???
2938 if g_tm_open eq true or " Section
2939 g_tm_b_close eq true.
2940 l_token = '\chcbpat0'.
2941 l_len = strlen( l_token ).
2942 token_control = true.
2943 assign l_token to <itf1>.
2944 perform put_itf1_new using l_len.
2945 perform token_line_begin changing l_next_token.
2946 else. " without section
2947 concatenate '\chcbpat0\line' g_cf_string l_cbpat_token into l_token.
2948 l_len = strlen( l_token ).
2949 token_control = true.
2950 assign l_token to <itf1>.
2951 perform put_itf1_new using l_len.
2952 endif.
2953 elseif l_next_token-code eq ')L'. " \par
2954 l_token = '\par'.
2955 l_len = strlen( l_token ).
2956 token_control = true.
2957 assign l_token to <itf1>.
2958 perform put_itf1_new using l_len.
2959 elseif l_next_token-code eq '(C' or " \par + format
2960 l_next_token-code eq ')C' or
2961 l_next_token-code eq '(&' or
2962 l_next_token-code eq 'TA' or
2963 l_next_token-code eq 'SC' or
2964 l_next_token-code eq 'ST'.
2965 concatenate '\chcbpat0\par' g_pf_string g_cf_string l_cbpat_token into l_token.
2966 l_len = strlen( l_token ).
>>>>> itf_token(l_len) = l_token.
2968 token_control = true.
2969 assign l_token to <itf1>.
2970 perform put_itf1_new using l_len.
2971 endif.
2972
2973 * Step 7: (L to disarm
2974 if g_compose eq true and
2975 l_next_token-code eq '(L'.
2976 perform read_next_itf_token(rstxscan) using p_token.
2977 endif.
2978
2979 ENDFORM. " token_comment
2980 *&---------------------------------------------------------------------*
2981 *& Form create_lang_info
2982 *&---------------------------------------------------------------------*
2983 * add default language to rtf
2984 *----------------------------------------------------------------------*
2985 * -->P_HEADER text
2986 * <--P_RESULT text
How do I open the text elements? I need to pass the variable inside SAP Script.
Please Help. The requirement is pending from very long. Not able to rectify this issue.
Regards,
RekhaHi,
There is a SAP Note about this problem
566794 - Runtime error: STRING_OFFSET_TOO_LARGE during conversion
Correction Instructions
Correction Instructions
Software Component
Valid from
Valid to
Number
SAP_BASIS
46B
46D
473267
SAP_BASIS
610
620
473185
Support Packages & Patches
Support Packages
Software Component
Release
Support Package
SAP_BASIS
46B
SAPKB46B48
46C
SAPKB46C39
46D
SAPKB46D28
610
SAPKB61027
620
SAPKB62014
Regards
Miguel -
Positioning dynamic text in SAP Script windows
HI all,
Is there any control command to position DYNAMIC text that comes from a variable into a window...
Regards,
Chandra SekharHi chandra,
You can move the text into one variable in the print
program and in the layout form call this as
&VAR&.
Thanks&Regards,
Siri. -
How to deal with Print Controls in SAP SCRIPT
Hello All...
I have two requirement in SAP SCRIPT for which I will need to use PRINT CONTROLS.
1) To print a window with 90 degree rotation
2) In the same window I wanted to have black background and white text printed on it.
For rotating the text,
Primary basis I created two Z print controls using SPAD.
One to rotate with 90 and another to rotate with 0.
In SPAD I assigned \e&a90P and \e&a0P respectivaly in device type.
Now in sap script window I specified below commands...
/: PRINT-CONTROL Z90
= TEST
/: PRINT-CONTROL Z00
but in the SP01 the text is still printing Horizontally...
Also Is there any standard print controls which set backgroud to black for specific window.
and how to use that?
Please help me to resolve this issue.
Thanks in advance,
ShwetaHi,
Occassionally, when you make frequent changes to your SAPScript, the system can get out of sync.
When you view the form, the old data get display without your changes.
This can be fixed by deleting the SAPScript LOAD with program RSTXDELL.
Hope it helps.
Reward if helpful.
Regards,
Sipra -
Using Function Module in SAP Script
Dear Friends,
how can i use function modules in sap scripts?. i want to use call function SPELL_AMOUNT in sap script?
in text element using perform statement hw can i use?
Regarding i search related articles but, i am not getting any solution.
Plz help Me.
Regards,
K.S.KannanDear Kanan,
You can do it in two ways:
Way1
your Amount will be in some variable say VAR_AMT1 and want in words in field say VAR_SPELL.
In your report program you can use the function module SPELL_AMOUNT and pass the VAR_AMT1 to it and you will get the words in VAR_SPELL.
So now in your sap script you can use the variable VAR_SPELL to print the amount in words.
we normally use this above method.
WAY2
You are inside Sap script and you can write the following code in the sap Script window.
/: PERFORM AMT_TEXT IN PROGRAM ZF_REPORT USING &VAR_AMT1& CHANGING &VAR_SPELL&
/: ENDPERFORM
In the Tag Column when you press F4 you can see various symbols like
/: = ( / /= /( /: /* /E
. Select
In the program ZF_REPORT (any report) you should have the perform AMT_TEXT where you should use the function module SPELL_AMOUNT to convert the amount into words.
Hope its Clear. -
In SAP Script how to hard code my Company address in footer window
Hi All ,
In SAP Script how to hard code my Company address in footer window .
Ex : in YB_F140_ACC_STAT this script i want to keep my company address, i want to hard coad , i dont want to use any field from table.
Please give me step by step.
Thanks
SridharHi,
You can make use of standard text...
create a standard text in SO10 with your company address
and in the footer window of your script.. use include text and provide the name of the standard text you created in SO10.
In the text editor... goto insert > text> standard
You get popup give the name of the text name id and language
regards
padma -
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.. -
How to insert a condition in the Graphic Window of a SAP Script ?
Hi,
I need to give a condition inside the Graphic Window for printing the Logo in the SAP Script. Now, my problem is that the Graphic window is only opening in Display mode. How to make it editable and insert a condition in it?
OR
Is there any other way to do it?
Please Help.
Thanks in Advance.
-VRUHi
I got your point. I'll provide you solution
In the logo window goto coding part by pressing F9 and give your coding as
IF &BKPF-BUKRS& = 'COM1'
INCLUDE GSPL OBJECT GRAPHICS ID BCOL LANGUAGE DE
BITMAP 'LOGO1' OBJECT GRAPHICS ID BMAP TYPE BCOL
ELSEIF &BKPF-BUKRS& = 'COM2'
BITMAP 'LOGO2' OBJECT GRAPHICS ID BMAP TYPE BCOL
ELSEIF &BKPF-BUKRS& = 'COM3'
BITMAP 'LOGO3' OBJECT GRAPHICS ID BMAP TYPE BCOL
ELSEIF &BKPF-BUKRS& = 'COM3'
BITMAP 'LOGO4' OBJECT GRAPHICS ID BMAP TYPE BCOL
ELSEIF &BKPF-BUKRS& = 'COM4'
BITMAP 'LOGO5' OBJECT GRAPHICS ID BMAP TYPE BCOL
ENDIF
<b>Note:</b>But you have to upload all your logos in se78 then only you can upload and give conditions for this
Regards
Pavan -
Vertical line issue in SAP Script main window
Hi All,
I want to draw a vertical line in my main window in SAP Script output.
But problem is in main window i am printing some texts at the beggining then i am printing line items.
So this is not fixed line (box). It may increase/decrease based on text available before line items.
How can i manage this prining vertival line as i don't know height, top of this line!
Thanks in advance.
Thanks,
Deep.Hai Deep,
Use Elements as suggested by Kodarapu.
Now goto Paragraph Formats create a format for Item lines.
ex.
Name Paragraph Format as 'IL' Now click on the Push Button "Tabs" on bottom Right.
now in "Tab Position" enter the spacing that you need for your item dispaly
ex.
Number Tab position Alignment
1 6.00 CH LEFT
2 25.00 CH LEFT
3 54.00 CH LEFT
The above example is for 3 items
Now in your Script Windows-> Main
do the following.
/E ITEM_LINE_A
IL &EKPO-EBELP&,,&EKPO-EMATN&,,,,&EKPO-TXZ01&
Hope it SOlves your Issue.
Cheers,
Suvendu -
Hi
i have copied a already existing sap Script(both layout SE71 and Print program Se38) in our Script but for that i am not doing any changes in Print program.
for any changes in my layout(se71) i create Perform ,and put form for that in a Subroutine pool.
but due to some requirement i have to create 2 constant window in my layout,but i am not writing any code to call that window in the print program. therefore that window are not showing in printing test.
i want to ask , there is a way to call these constant windows without not adding any code for this in prin program.
regards
AtulHi Atul ,
Since you want a constant window on all your pages .Try this!
1. Create a variable window .(with same measurements of tht of your constant window)
2. Call it every time you call new page , this will reduce the overhead too .
3. Adjust your page and make space for this window .
4. You need not change the text but just adding an additional window .
Hope it helps!
Much Regards ,
Amuktha .
Edited by: Amuktha Naraparaju on Feb 6, 2009 9:55 AM -
How to remove the window border in SAP Script
Hi,
In my requirement when I create any window in SAP Script, in the output the border around the window should not be displayed.
Request to suggest how to proceed on this.
Thanks,
NareshHi.
I assume that in the window's code, there is a "BOX" statement. Just comment it out and you are done. If you are using SMARTFORM, there is a respective checkbox in the windows properties.
Reward please if it helps.
Regards,
George -
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 -
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
-
Trying to re-size the windows in Z SAP Script!!
Hello,
Am looking to do some modifications to the custom SAP Script Layout-set, mainly re-sizing the windows, including the MAIN window.
So, SE71>Change mode>Graphical Form Paiter checked, then, opened the Windows layout in graphical manner.........but, am unable to edit/move/re-size/modify the sizes of the windows with the help of mouse (pointer) movements!!
And also am unable to edit the left side dimensions numericals of these windows, bcoz, those (dimensions numericals) fields are GREYED OUT!!
I also tried by selecting the radio button of PAGE WINDOWS ........here also the dimensions numericals fields are GREYED OUT!!
So, pls. let me know the options for editing/re-sizing the windows of SAP Script. I prefer to re-size them by changing the dimension numerical digits, instead of graphically changing with mouse pointer.
Thank youlogged-off and logged-in.......its worked
Thank you
Maybe you are looking for
-
HP Pro 8600 error message for printing
I just set up my 8600 and I cannot print. It is connected and I installed hardware. I also printed network test results and that is good too. I try to print from my laptop (already set security to medium) it says to check wireless?? Why can't I print
-
Anyone having issues with lightroom mobile?
it's not syncing my collections...the outlines of the images show up with a broken image link. see screenshot - http://i.imgur.com/63grLFH.png
-
Using Wacom Intros4 in Premiere Pro
Hi When moving clips in the timeline using my Wacom Intros4 in Premiere Pro it is very sluggish and most times it drops my clips or overwrites in the wrong places. I've switched to the Apple Mouse and moving clips with that is fine. I'm editing with
-
Can I increase menu sizes and fonts without lowering my resolution?
This is my first desktop Mac ever and its a huge shock to have the menus and fonts so small. I thought my having a large 27" display that its going to be easy to see everything. At the same time I do not want to lower my resolution as i feel it defe
-
I am measuring velocity using a linear encoder. Resolution is 40microns, sample frequency is 1MHz and the real velocity is oscillatory in nature with an amplitude of 200 to 400 mm/s with a freq of about 1Hz. We use a 5ms fixed time window to measure