Using Standard text in scripts

Hi all,
I had a problem while printing standard texts in scripts.
I Know how to print standard text if we have to print it from the begining of window using
INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PAR
But my problem id i have print it after a hard coded text like
Delivery schedule: 'here i have to print the standard text'.
can any one please help me out how to solve the problem
Thanks & regards
sreehari p

Hi,
Here's one my brother taught me - you can actually trick the system to accommodate this requirement.
Ensure that you use 2 different paragraph formats in your INCLUDE statement, using the PARAGRAPH and NEW_PARAGRAPH clauses, ie.
INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PARAGRAPH P1 NEW-PARAGRAPH P2
Paragraph P2 (which will be used as the first line) should be created as having a Line Spacing value of 1 TW (1 twip) which is less than 1/1000th of an inch.  Also, set the Left Margin value to an offset which brings the text to the right of the Delivery schedule literal.
Paragraph P1 (which will be used for all subsequent lines) should be set up as normal - ie. use the same paragraph format as that for displaying your "Delivery schedule:" literal.  If you need the text to be indented in line with the first line, then copy your existing paragraph to a new paragraph but set the Left Margin value to the same as that in P2.
What this does is to output the first line of text indented by the margin after skipping 1 twip, giving the illusion that it's actually on the same line.  Since subsequent lines are output with a normal (or normal/indented) paragraph, that just follows with normal spacing on subsequent lines.
Hope this makes sense.
Regards,  Andy

Similar Messages

  • Problem in using standard text in SAP Script

    Hi All,
    I have to replace English text hardcoded in a script with standard texts (SO10) in Spanish. When I am including the standard text in script, it is displayed in different font and bigger size. I want to reduce the size and change the font of standard text. Is there any way to do that?
    Thanks in advance
    Radhika
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 4, 2010 2:37 PM

    Please check the links below , which might hel you..
    Re: Setting font to standard text in sap script
    How to change stranded text font in script
    Regards
    Satish Boguda

  • How to use standard texts in smartforms

    Hi Friends,
          How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
    thanks in advance,
    regards,
    sharma.

    For long text
    method1
    Create TEXT node- general attributes change text type to include text
    then you can input text name/text object/text id/language
    method2
    create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
    then use LOOP or TABLE node to display it
    For TEXT module(For foreign language)
    Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
    then enter smartform Create TEXT node- general attributes change text type to text module
    input the text module name which created by above
    btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10

  • Use standard text (SO10) in report(SE38) to compose the body of email

    hello experts,
    here i wanna create the body of email with a format, hence i decide to use Standard Text. in this Standard Text, i also maintain some variable such &p_name&( i remember it works  in forms,such script and ssf), while i define p_name as 'demo' in the program and try to transfer p_name to standard text, it fails. while i check the output of standard text, it show &p_name& instead of demo.
    could anyone tell me how to realize this function?
    Thanks in advance.
    Desmond

    Hi,
    try this,
    data:w_field(10) type c VALUE '1234'.
    DATA:wa_head TYPE THEAD.
    data:it_final TYPE TABLE OF tline.
    wa_head-tdname = 'Z_SAMPLE'.  u201CStandard text,refer screen shot
    wa_head-tdid = 'ST'.
    wa_head-tdobject = 'TEXT'.
    wa_head-tdspras = 'EN'.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = wa_head-tdid
        language                      = wa_head-tdspras
        name                          = wa_head-tdname
        object                        = wa_head-tdobject
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        = HEADER
      TABLES
        lines                         = it_final
    EXCEPTIONS
      ID                            = 1
      LANGUAGE                      = 2
      NAME                          = 3
      NOT_FOUND                     = 4
      OBJECT                        = 5
      REFERENCE_CHECK               = 6
      WRONG_ACCESS_TO_ARCHIVE       = 7
      OTHERS                        = 8
    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 'REPLACE_TEXTSYMBOL'
      EXPORTING
        endline                = 10
      FORMATWIDTH            = 72
      LANGUAGE               = SY-LANGU
      LINEWIDTH              = 132
      OPTION_DIALOG          = ' '
      REPLACE_PROGRAM        = 'X'
      REPLACE_STANDARD       = 'X'
      REPLACE_SYSTEM         = 'X'
      REPLACE_TEXT           = 'X'
        startline              = 1
    IMPORTING
      CHANGED                = CHANGED
      TABLES
        lines                  = it_final

  • Calling standard text to script

    Hi,
    I created standard text using so10. How can I call this text to my script program??
    Is there any other way to acheive this??
    Thanks,
    Ravindra

    Hi Ravindra,
    By using INCLUDE command you can insert the standard text in script editor.
    please go throught the help command for include command and it will explain you in detail.
    One more thing regarding that,when you have to transport your request to QA system,  you have to include the standard text in your request otherwise your standard text will not be visible in the QA.
    To include your standard text to your request in DEU, run  program RSTXTRAN.
    Regards,
    Tarun

  • How to use Standard Text Key in maintenance order header long text?

    Dear All,
    I have created a standard text key using transaction CA10 and I want to use this in maintenance order header long text. Is there any way to select any standard text key in maintenance order header long text?
    Regards & Thanks,
    Saif

    Hi
    To use standard texts, perform the following six steps:
    Select the maintenance order and access the operation overview screen using Goto -->Operation overview.
    You can enter standard text keys in this screen or in a detail screen for the relevant operation.
    Enter a standard text key in the appropriate field and press ENTER .
    If the text is longer that the short text line available, the field Text is selected for that operation.
    Check the long text and edit it if necessary. To do this, select the operation and choose Operation--> Long text.
    The system branches to the text editor screen. If you also entered a short text for the operation and specified that this should not be overwritten by the standard text, you will see the short text displayed in the first line of the editor. The following lines contain the standard text.
    Check the standard text and change it if necessary.
    Save the final version of the text and return to the previous screen with Goto--> Back.
    Save the maintenance order.
    Standard texts are created for your system by your system administrator using the Customizing function.
    Regards
    Makarand Gurjar

  • Location of standard text in scripts

    hi,
            where will be the standard text in script?
    regards,
    bbr.

    SO10 is the T-code.
    You can call the FM Read_text.
    you should pass the below values to FM
        id                            =
        language                      =
        name                          =
        object                        =
      tables
        lines                         =.
    Regards,
    Rajasekhar Reddy.

  • How to use Standard Text in ALV

    How to use Standard Text in ALV header part? Can you please help me by giving the answer?

    Hi ,
           You can read the Standard text using read_text function module and then print in LV header part.

  • Need to use standard text in smartforms

    Hi,
        My requirement is like to use standard text for the address like ...
    Company Name
    Street, State, PIN
    Phone: 111-111-1111
    All the above lines should be aligned in the middle and 'Company Name' should be displayed in the bold.
    1) I have created the standard text, and included statement in text window as 'INCLUDE XXXX OBJECT TEXT ID ST LANGUAGE EN' but unfortunately it was not displaying anything in the output.
    2) I have tried the another method like using the 'Include Text' as a text type in the text window. It was coming but BOLD and center alignment was not coming.
    Here my question is why it was not coming in 1) case and if i use READ_TEXT function module will it solve the problem ? in case 2) how can i get all the 3 lines gets center aligned and first line should be bold.
    Thanks in advance for your help.

    Hi Jaya ,
    if u wnt ur Addr  first line should come in bold letter than for that
    u first *** to "sap smart forms : initial screen" there is option  'STYLE' click on that radiobutton and creat ur own STYLE (Zxxx) on there u vl find al ur answer...
    hope this vl  help u ,
    plz reward paint.
    regards
    wasim
    Edited by: mdwasim akram on Jun 11, 2008 1:09 PM

  • How to Maintain documentation (se38) using standard text (SO10)

    Hi,
    I have created standard text using SO10. Now I want to include the standard text in documentation (SE38) section of my ABAP program.
    I tried using /: INCLUDE 'YTEST' OBJECT TEXT ID ST LANGUAGE EN
    But the standard text is not showing up when I click the documentation icon in the selection screen.
    Can you please let me know how to maintain documentation for ABAP programs using Standard Texts.
    Thanks in advance.
    Sincerely,
    Vidya

    Hi Mahesh,
    In SO10, which format key has been used (AS, /*, /:, *.... to show up in documentation). when you used insert->text-> did you use 'expand immediately' check box. If expand immediately option is used, it won't serve our purpose.
    =
      (space)
    Example
    SO10 Yeurope_terms
    Inside Yeurope_terms
    Terms: For Europe
    /*           No Tax for Italy
    Waiting for your reply.
    Sincerely,
    Vidya

  • Using standard texts in reports output

    Hi,
    Would you please let me know the process of using standard texts created in So10 transaction in reports development. READ_TEXT function module made me to code a lot as per my requirement.
    Thanks,
    Kumar.

    Hi ,
    if you want to use READ_TEXT then you have to take help of you functional consultant.Ask him to provide the TEXT ID ,NAME, OBJECT and with the help of these things you can proceed furthur,
    If you still need any help.let me know.
    Thanks and regards,
    Rajeshwar

  • Using TemplateBeginEditable text in Script.

    Hi.
    Sorry for the topic, but I havent no idea how explain this in
    short way.
    I have dozens of pages where I have used template and now I
    need to use that text in a script. Is there any way I can automate
    that?
    <!-- InstanceBeginEditable name="Tuotenumero" -->I NEED
    TO USE THIS TEXT IN SCRIPT<!-- InstanceEndEditable -->
    <!-- start_"AND GET IT HERE"_price-->1,70<!--
    end-->
    Hope someone understood.

    Nope - sorry. Can you try to explain more about what you mean
    when you say
    "use that text in a script"?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Kultsi_" <[email protected]> wrote in
    message
    news:g0h8uo$rhq$[email protected]..
    > Hi.
    >
    > Sorry for the topic, but I havent no idea how explain
    this in short way.
    >
    > I have dozens of pages where I have used template and
    now I need to use
    > that
    > text in a script. Is there any way I can automate that?
    >
    > <!-- InstanceBeginEditable name="Tuotenumero" -->I
    NEED TO USE THIS TEXT
    > IN
    > SCRIPT<!-- InstanceEndEditable -->
    >
    > <!-- start_"AND GET IT HERE"_price-->1,70<!--
    end-->
    >
    > Hope someone understood.
    >
    >

  • How to use Standard text in SAP SCRIPTS

    Hi all,
    Please tell me how can we use the standard text what we have created in SO10 with sap scripts.

    Hi Gaurav
    You can create standard texts using the transaction SO10. Then to insert these standard texts in the SAPScript choose the menu, Insert->Text->Standard and choose the standard text that you want to choose.
    Alternatively, you can display standard texts in your SAP Scripts using the command:
    INCLUDE ZSTEXT OBJECT TEXT ID ST LANGUAGE EN
    where ZSTEXT refers to the Standard Text name.
    Reward pts if found usefull
    Regards
    Sathish:)

  • How to use standard text in sapscripts

    Hi,
    I want to place a part of text to be displayed in my sapscript in the form of a standard text. I want to make the text bold with italics and also want to set a perticualr size to it.
    I am new to SAPscripts can anybody please help me with this.
    regards

    hi
    Use character formats in the script itself for  the specific text. and in it mention font as bold and italic
    and in text elements keep the text between  <C1>......</> where C1 is your character format
                 or
    create global style with
    U can adjust the bold formats in the standard text itself.(se72).
    In the standard text give the character formats and apply them in the text editor of ur sapscript as
    text between  <C1>......</>
    In the text editor go to insert -> text elements-> and standard text.
    u can give the standard text name there.
    regards
    prasanth

  • Difference jb/w text symblosin script and standard text in scripts

    hi to all
    can u pols explain about the
    difference b/w text symblos in script and standard text in scripts

    hi
    Default paragraph Paragraph set to * in <b>standard text</b> maintenance
    If no form has been assigned to a text, the system automatically assigns the form SYSTEM, which contains minimal definitions for text formatting. There are two ways of formatting texts using forms: • Use the <b>standard text</b> maintenance to enter and print the text.
    Any kind of text can be included in a form. If no object is specified, then TEXT will be used (<b>standard texts</b>).
    <b>
    Text Symbols</b>
    Text symbols acquire their values as a result of explicit assignment. To interactively assign text symbols, in the text editor choose Include &#61614; Symbols &#61614; Text. This method is available for all text symbols belonging to a text module as well as those of the associated form. Values defined in this way are lost when the transaction is left. If you want to print the text module again, then you must enter the symbol values again. The purpose of the DEFINE command is to provide a means of making this value assignment a permanent part of the text, so that the values are available again when the text module is called again. This command can also be used to re-assign a new value to a text symbol half-way through the text. Syntax: /: DEFINE &symbol_name& = 'value'
    /: DEFINE &subject& = 'Your letter of 7/3/95' The value assigned can have a maximal length of 60 characters. It may itself contain other symbols. A symbol contained within the value assigned to another symbol is not replaced with its own value at the point at which the DEFINE command is executed. Rather, this replacement is made when the symbol defined in the DEFINE command is called in the text.
    /: DEFINE &symbol1& = 'mail' /: DEFINE &symbol2& = 'SAP&symbol1&' /: DEFINE &symbol1& = 'script' &symbol2& -> SAPscript If, however, the DEFINE command is written using the ':=' character rather than the '=' character, then any symbol contained within the value being assigned is replaced immediately with its current value. The assignment to the target symbol is made only after all symbols in the value string are replaced with their values. The total length of the value string may not exceed 80 characters. The target symbol must be a text symbol, as before.
    /: DEFINE &symbol1& = 'mail' /: DEFINE &symbol2& := 'SAP&symbol1&' /: DEFINE &symbol1& = 'script' &symbol2& -> SAPmail
    Inserting <b>Text Symbols</b>
    Procedure
    Inserting a Text Symbol
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Place the cursor on the desired text symbol.
    3. Choose Choose.
    4. The system inserts the text symbol.
    Editing the Value of a Text Symbol
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Edit value bearbeiten. The dialog window Value definition for symbol <text symbol> appears.
    3. Enter the appropriate value definition.
    4. Choose Continue. In the dialog window Text symbols the specified value appears after the name of the text symbol.
    5. Choose Continue.
    Deleting all Text Symbol Values
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Delete all values. The system deletes all defined values.
    3. Choose Continue.
    Using Formatting Options for Text Symbols
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Options. The dialog window Formatting options for <text symbol> appears.
    3. Fill in the fields.
    4. Choose Continue.
    5. Choose Continue. The system executes the selected formatting option.
    regards
    ravish
    <b>plz reward points if helpful</b>

Maybe you are looking for

  • When using Word, Excel, PowerPoint the Save As box flashes making it difficult to save.

    Mac Book Pro Processor 2.9 GHz Intel Core i7 Problem occurred since installing OSX Yosemite Version 10.10 When I use the Save As box it flashes making it very difficult to save a document. This happens in Word, Excel, PowerPoint. Using Excel for Mac

  • Flex With WAD

    Hi, What is the use of FLEX? Can flex be used with WAD 3.x? Is there any guide for using Flex? Any pointings/help will definitely be rewarded. Please help. --Ragu

  • Web Dynpro for SD module

    Hi, I want to know the standard Web Dynpro names which SAP supplied for SD modules. Any help is appreciated. Thanks, Subra

  • Probleme caractere Echap dans un string

    Je n'arrive pas à envoyer ce message sur le forum de la comm. française... Bonjour à tous, Je rencontre (encore) un problème et j'aurais besoin d'un peu d'aide svp. J'utilise un compteur Heidenhain ND287 et n'ayant pas trouvé de driver pour l'utilise

  • Album Artwork on Pre - How to Remove it

    For background info:  I tried using double twist to move my ITunes music to my Palm Pre.  Double twist wanted to move all of the ITunes library music, not just the music I wanted. It was way more than my Pre could handle. My Pre basically "froze" and