Retrieve Include Standard Text

Hi,
The long text currently I send to idoc are view exactly what we wrote in SAP transaction as below. Could I know how to retrieve the data from Include standard text and send along to idoc with others text to the segment? Thanks.
Before:
*    test pop-up'                                    
*    Text 1                                           
/ :  INCLUDE GENERAL_TEXT OBJECT TEXT ID ST
*    Text 2
Expected:
*   test pop-up'                                    
*   Text 1                                           
*   Standard Text display here   
*   Text 2

Hi,
I managed to find out how to expand the standard text by using this Function Module : TEXT_INCLUDE_REPLACE.
Now, I would like to make changes to my output. I need to move all include standard text to last line and display it out. Could I know I can achieve that?
Long Text Entered in SAP:
*    test pop-up'                                    
*    Text 1                                           
/ :  INCLUDE GENERAL_TEXT1 OBJECT TEXT ID ST 
*    Text 2
/ :  INCLUDE GENERAL_TEXT2 OBJECT TEXT ID ST
Output:
*   test pop-up'                                    
*   Text 1                                           
*   Text 2
/ : INCLUDE GENERAL_TEXT1 OBJECT TEXT ID ST
*   expanded text1
/ : INCLUDE GENERAL_TEXT2 OBJECT TEXT ID ST
*   expanded text2
Edited by: Blue Sky on Jun 27, 2008 4:55 AM

Similar Messages

  • SAPSCRIPT with Include Standard Text not converted in PDF Bitmap Image

    Hi Guru,
    When I use the function module CONVERT_OTFSPOOLJOB_2_PDF for import a spool, the image wasn't impoted. The Sapscript spooled have a include standard text that contain a image in BMON.
    If I view the OTF SPOOL the image was stored, but when I execute the Function Module CONVERT_OTFSPOOLJOB_2_PDF, the File PDF that I Download is missed of the image.
    Please Help me!
    Best regards

    Hi Murugesh,
    I have found the solution:
    the image was imported in PCL format and for this when I view OTF Spool the command is
    RDE ............
    otherwise
    RDH ............
    RDG ............
    RDJ ............
    RDI ............
    Regards Rino Patalano

  • Including standard text in sapsripts

    Hi all,
    I want to include standard text by using 'INCLUDE Z_STANDARDTEXT_TEST OBJECT TEXT ID ST' not in a single line.Means I want that Include command not to be included in single line only.Is there any option for this.

    you already created the similar post earlier. you can find answers in your old post.
    check this,Including standard text in Sapscripts
    close both the posts once your problem is solved
    Regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • Including standard text in Sapscripts

    Hi all,
    I want to include standard text by using 'INCLUDE Z_STANDARDTEXT_TEST OBJECT TEXT ID ST' not in a single line.Means I want that Include command not to be included in single line only.Is there any option for this.
    Rgds,
    Balaji

    then you can use '=' in the command line of next line and proceed as you want.
    for example
    <b>/:</b>     INCLUDE Z_STANDARDTEXT_TEST OBJECT TEXT
    <b>=</b>        ID ST
    hope you got it. '=' indicates that its a continuation of previous statement.
    what ever it is.It can be a static text or a command etc...
    regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • How to include standard text in a continuous line

    Hello all.
    I need to inculde a standard text of so10 in a continous line.
    Z1 Lieferbedingungen,,:,,&VBDKR-INCO1& &VBDKR-INCO2&
    /:    INCLUDE ZEDGCR0003699 OBJECT TEXT ID ST LANGUAGE DE PARAGRAPH Z1
    Here i m getting standard text in another line, where as i need standard text item just after &VBDKR-INCO2&.
    Regards,
    Baban

    hi
    try to use "/: INCLUDE" without keyword "PARAGRAPH"
    /    some text
    /:   INCLUDE ztxt1 OBJECT TEXT ID ST LANGUAGE &LANG_MAIN&
    and your standard text (here: ztxt1) should begin with command "="
    regards,darek

  • To Include Standard Text in TEXT Field of SMARTFORM

    Hi,
             I  have a requirement to include a Standard text inside a TEXT field. The name of standard text is ZSD_CMR_&VSTEL&_STATISTICAL  where for VSTEL we should put the respective work area field like ZSD_CMR_&W_LIKP-VSTEL&_STATISTICAL .
    But while executing the Form its giving Error that STD text does not exist.
    The Requirment is like - shipping point (LIKP_VSTEL) of the delivery to identify the standard text. So, if a doucument for a delivery for shipping point 3114 is printed, it should come with the contents of ZSD_CMR_3114 STATISTICAL  In case the shipping point is 3112 it shoukd be ZSDCMR_3112 _STATISTICAL.
    Can you please let me know how to include Std Text inside the TEXT, I mean SYNTAX .
    Regards
    Avi

    Hi Avi,
    Lets take the example the standard text <b>'ZSD_CMR_3114 _STATISTICAL'</b> then with this standard text get the TDOBJECT,TDNAME,TDID and TDPRAS from <b>STXH</b> table.
    In the Smartform, goto <b>TEXT->General Attributes Tab</b>.
    Select <b>Type</b> to be I<b>nclude Text</b> from the drop down list.
    Then give the Text Name, Text Object, Text ID and Language.
    Your Standard Text whcih you maintain in S010 will be displayed in the smartform window.
    Regards,
    Tushar
    Message was edited by:
            Tushar  Marshall Dass

  • Including standard text in SAPScript...

    Hi,
    I have created a standard text Z_NOTE in SO10. If I want to include in Sapscript form, how do I do it ?
    Thanks.
    Rajesh

    use the include control command:
    /: INCLUDE Z_NOTE LANGUAGE 'E'
    Assuming that the text is created in English language, in case if it is in a different lnaguage, modify the above include command with respective language.

  • Call Standard Text by report replacing the variables with their values

    Hi,
    I have a requirement to call a standard text from a report.
    Following is the text present in standard text.
    &PTXT1-ENAME& will attend for interview
    on &MEMOACT-PLDAT& at &MEMOACT-PLTIM&.
    I am doing it by using READ_TEXT. But READ_TEXT reads the entire text as it is.
    Is there any way I could retrieve the standard texts with  &PTXT1-ENAME& replaced by the value of  PTXT1-ENAME in report. And similarly &MEMOACT-PLDAT& replcaed with its actual value.
    Any pointers in this regard would be helpful.
    Points will be awarded.
    Regards,
    Mayank Agarwal

    Hi,
    In the Text
    &PTXT1-ENAME& will attend for interview
    on &MEMOACT-PLDAT& at &MEMOACT-PLTIM&.
    do not use the * as a paragrapgh , use /: as the paragraph
    Regards
    Sudheer

  • Dynamic STANDARD TEXT in scripts

    Hi friends,
             I have to include standard text in the script corresponding to the company code. For example if company code = 6100, I have to include standard text SD_6100, or else if 2000 I have to include SD_2000. Here I can use IF statement. But If company codes are 20 or 30 then it is difficult to write that many IF statements. And in future if they increased the company codes then we should write one more if statement.So is there any method to include the STANDARD TEXT dynamically.
    Sathish Reddy.

    Hi satish ,
    create the standard text in tcode SO10 .
    now u can create this with respect to company code
    /:  case & - bukrs&
    /:    when '20'
        text
    /:   when '30'
        text for 30
    /:   endcase.
    so by doing this u ll trigger the corresponding text for company code .
    now  to include the std text in your form
    just call the standard text IN THAT WINDOW AS ...
    /: INCLUDE Z_XXXXX OBJECT TEXT ID ST LANGUAGE EN
    remarks,
    Dynamically if u want to trigger the standard text u can go for IF end if logic as u stated or a case endcase..
    there is no alternate .
    regards,
    VIjay
    Message was edited by:
            Vijay k

  • Standard text in smart form

    Hi,
    can anyone tell me how to include standard text in smart form
    Thanks

    Procedure
    1. To create a text node, call the context menu for that node in the tree structure that shall
    receive the text and choose Create Text.
    2. Enter a unique name for the node and a node description (for example, letter).
    3. On the General Attributes tab choose Include text as text type.
    Since you edit a text element, an included text, or a text module exclusively via the
    text node, the system stores only information on the selected type. When you
    change the text type, the system therefore asks for your confirmation.
    4. In the Text key box, identify the include text.
    To identify individual text objects, use the search help in this field.
    The search help of the Text name field allows you include the attributes of SAPscript
    texts into the search.
    7. If required, use the Paragraph formats box to format the include text:
    The style assigned to the text node contains a format for the standard paragraph ('*'). If you enter a paragraph format in the Standard paragraph field, this format overwrites the style format for all standard paragraphs in the include text that use this paragraph format.
      Use the First paragraph field to set a paragraph format for the first paragraph of the
    include text. This format also overwrites the format set in the style. If you set the First
    paragraph field but leave the Standard paragraph field empty, the system uses the
    format set in the First paragraph field for any standard paragraphs in the include text.
    6. In the Text node box choose whether you want the text to start in a new paragraph, in a new
    line, or directly at the end of the current paragraph.
    7. If desired, choose the Output Options tab to maintain the style or box and shading
    of the text.
    Result
    The system displays the node in the tree structure, including its name and description. The
    included text is included only at the moment the form is processed.
    Regards

  • How to print a standard text of 3 pages in the script output?

    Hi all,
    I want to print a standard text as an include in the script output.
    But the standrad text is of 3 pages conataining continuous (some terms and condtitions) text.
    But while executing driver program, I am getting a STOP messgae pop-up saying 'Output is continuous or contains too many pages (>4)'.
    How to get the standard text of 3 pages in the output. The standard text is to be printed at the bottom of the output.
    Thanks,
    Sachin

    Hi ,
    To display standard texts you have to create a include in your script below is the syntax for that:
    INCLUDE name OBJECT name ID name PARAGRAPH name LANGUAGE   name
    Include command is used to include standard text in a form.the text 
    should be already defined by using transaction SO10.
    Here name is the name of text
    ID is used to classify text e.g. SDVD (SD related text) , ST (Standard text)
    OBJECT is used to specify type of object it an be TEXT , DOKU
    LANGUAGE is used to specify language like EN ,if ommited than logon
      language is used
    PARAGRAPH is used to specify the paragraph like C
    e.g. /:INCLUDE mytext OBJECT TEXT ID ST LANGUAGE EN
             Here the standard text created in SO10 with name mytext is
             included in the form in language EN (English)
    Please let me know if you have still any confusion.
    Thanks
    Narendra Vikram Vishwakarma

  • Standard Texts and Text Modules

    Hi,
    How to include standard texts and text modules in Adobe Print Forms?
    Is there any solution?
    Thanks !

    Hi
    You can call standard text and text modules by the following options :
    Create One Text Window by right clicking the option.  In this general attributes tab select the 'Text Type' as 'Text Module' and it will ask for the Name of the text module.
    Press f 4 help to select the text module.  And enter the language also.
    Thanks

  • Print standard text in a sapscript

    hi,
    I have want to include standard text by ME32k in a sapscript. I need to include the text and the particular format. For example if I use FM READ_TEXT for text object EKKO id F02 for a particular EKKO-EBELN, the FM give me the table LINES with this text:
    TD   TDLINE
    C      K02:HAEDER NOTE
    I need to print the text "K02: HAEDER NOT" with the format C ( Centered).
    Can you help me, please?
    Thank's.

    Hi,
    Tcode SO10 can be used to attach standard text in sapscript.
    For formatting, plz check the below link
    Standard text editor SO10

  • STANDARD TEXTS!!

    CAN ANYONE TELL ME AS TO HOW TO INCLUDE STANDARD TEXTS IN SAP SCRIPTS??

    Hi Sirish,
    1.Goto SE71->
    2.Give YOur Form Name and enter into form in change mode
    3.Click on Windows Button in Application Tool bar, it displays all available windows, Select your required window say Main Window and press on pencil symbol in Application tool bar
    4.It will takes you to line editor of the window, now Click on Insert in Menu , Select Texts->standard,then it will ask you the standard text which you want insert give that name and press enter , With this your job will be done.
    Regards,
    Raghav

  • Standard Text with ' include' option doesn't work with order created by FM

    Hi ABAPers,
    Standard text with 'Include' Option does not work with all the Order created via the Function Module SD_ORDER_CREATE_WWW. Where as Order created via VA01 display the Standard text with 'Include'.
    On my analysis I found that, Order created via FM use  the '*' 'Comment' instead of ':/' 'Command' in the script editor. So the Standard text inserted was considered as a Text instead of command.
    Hence issuing print or print preview, the Script display the INCLUDE statement instead of the text.
    Can you please let me know the reason and the way to rectify it.
    Thanks & Regards
    N.Suresh Kumar

    Hi.
    Make that * command as /: and try in ur program..
    It works..
    Hope it helps...
    Cheers,
    Simha.

Maybe you are looking for