on 02-24-2010 5:21 AM
Dear experts,
I would like to know how we will create text elements in scripts.
How we will insert it in the script.
what is the use of text elements.
I want to cahge the text elements which are in numbers 510-A, 510-S etc.
I dont know how what are this numbers .
I have to do some layout adjustment.
please help me.
Hi Shilpa,
If we use any Text elemets in sap scripts .....U need to call those elemnts in driver program in write_form for printing the output data...see this example...
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = '510'
EXCEPTIONS
window = 1
element = 2.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = '514'
EXCEPTIONS
window = 1
element = 2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Helpful answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shilpa
Elements are used to dislay the data in Main window and these can be start with any type alphabet and '/E symbol in Tag column is used to represent text element.
Some format keys are defined by SAPscript. They have a predefined meaning and can be used in all texts:
Default paragraph
The format definitions which are specified for the paragraph defined in the assigned style or form as the default paragraph are used for the output formatting of the paragraph involved.
/ New line
The subsequent text is written to a new line during output formatting. The formatting attributes of the last paragraph format are retained.
/: SAPscript control command
The characters contained in the actual text line are not output as text but are regarded as a control command. They are not interpreted or executed until output formatting of the text. Control commands must always fit into a line fully. Subsequent lines are not allowed.
/* Comment line
This line is not taken into account during output formatting of the text.
= Extended line
This line is not subject to the line formatting in the SAPscript editor. The text contained in this line is appended directly to the character of the preceding text line which was output last. If this is not required, there must be at least one blank at the beginning of the extended line.
/= Like extended line
But the subsequent text is placed in a new line during output formatting.
( Raw line
The subsequent editor line is not interpreted by the SAPscript composer during output formatting. This means that character formats, symbols, tab characters, masking characters, or hypertext links which may be contained in this line are not evaluated and are therefore passed unchanged to the output device. The text contained in this line is also appended directly to the character of the preceding text line which was output last. If this is not required, there must be at least one blank at the beginning of the extended line.
/( Like raw line
But the subsequent text is placed in a new line during output formatting.
>x Fixed line
The line is not ready for input in the SAPscript editor. It can also not be deleted or separated. You can only create fixed lines with a program . You can therefore give a text a fixed structure, for example, which cannot be changed by the user.
You can use any number or letter for the 'x'. You can therefore separate different sub-headings, for example. If several fixed lines occur consecutively with the same indicator, they are regarded as a unit by the SAPscript editor. It is not possible to insert anything between these lines in the editor In the case of fixed lines, SAPscript print formatting interprets the first two characters of the line as a paragraph format for formatting. You therefore need to enter the required paragraph format or blank here.
For changing the layout we need to change the dimensions of window. follow the path settings-> form painter.
SAP standard text (Transaction: SO10) is used to display Hardcoded text in the output of script.
Regards,
Chandra Kavali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Text elements are created in scripts. We will use "/E" fomat option while creating text element, for example
/E <Element Name>
After this command what ever you write in scrit under this element will come into corresponding text element. So when you call this text element using script in print program, what ever written under text element will be printed in output/form.
As you asked to edit your text, first search for window in script in which these elements are written and then do modifications as required ( dont edit standrd forms, take a copy for that).
Hope this gives some idea.
Regards,
Aswini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to know how they are created. Using which transaction code.
How to print a continous line to a next line with more gap.
I want to increase the gap which is printing in script .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no separate tcode for creating text elements ..
But the linki i have posted below will be helpful to you ..
http://it.toolbox.com/wiki/index.php/Sap_script#2.7.09Text_Elements
also
http://help.sap.com/saphelp_40b/helpdata/pt/d6/0db400494511d182b70000e829fbfe/content.htm
Hope this helps ..
Regards
Manthan.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.