Dynamic Standard text in SAPscript

Hi,
Can we use dynamica standard text in SAP script?
The standard text name is supplied by a external field. The standard text contains a address.
I want to change address based on text name.
Thanks.
Shreyas
Help will be awarded.

Hi
In the SAPSCRIPT the std text is called by this statament:
/: INCLUDE &V_TEXT_NAME& OBJECT TEXT ID ST LANGUAGE &LAN&
The V_TEXT_NAME is the variable where the name of the std text is stored and it's filled at runtime.
Now while printing a document you shouldn't (can't) change the std text, so you should have many std text as the addresses you need to print.
So you can decide which text (address) to be printed inserting the name of the text in the variable V_TEXT_NAME.
Max

Similar Messages

  • Dynamic Standard text - Appending text with variable

    Dear All,
    We have a dynamic standard text. The text is being created based on sales order (I don't know how this has been created). Now I want to add text inside the standard text. That text will also contain variable.
    Example: "This is a valid sales order 100010000". This is a standard text where the sales order value is fed dynamically, I don't know how?
    Now the objective is to add another field "abcd" in the standard text with some other fixed texts. Eg. "I want to add my name sy-uname". So the entire text should be as:-
    "This is a valid sales order 100010000. I want to add my name sy-uname."
    1.  I am not sure how to identify the original standard text. I would like to add second line there.
    2.  I would like to pass variable value dynamically in the standard text.
    Please can you help me out in solving the issues.
    Best wishes,
    Atanu

    Hi
    Could you please be clear with your question so that some one can provide you with best solution quickly.
    I am assuming that when your sales order is being created at the same time ,your dynamic standard text is generated .So now you want to amend this standard text just after the sales order is saved.If so then
    Just go to the sales order text tab in change mode and click on the text eidtor window ,it will take to you sapscript editor ,Then from menu Goto-Header .From here you get the details of
    Text Name      
    Language       
    Text ID        
    Text Object  
    Now Find the userexit after save and their use a read_text function module and read the standard text which is alreday created and take down in it_lines table and modify the text by appending your sy-uname line as second line or you can concetante on the same line. Now then use the save_text function module and save the standard text.
    You can use the exit MV45AFZZ In that routine FORM userexit_save_document..
    Hope this help you to resolve the issue.
    Cheers
    Joginder

  • How to define & read Standard Text in SAPScript? Urgent Please

    Hi Experts,
    How to define & read Standard Text in SAPScript? Urgent Please..
    Thanks in advance
    good answer will points gud marks.
    sekhar

    Hi
    U can't define a standard text in a SAPScript, you call call it only by statament INCLUDE
    /: INCLUDE <ST TEXT NAME> OBJECT TEXT ID ST LANGUAGE <LANGUAGE>
    U can define it by trx SO10.
    If you need to know the text without to print it, you need to use a routine where u can use the fm READ_TEXT in order to find out the text.
    Max
    Message was edited by:
            max bianchi

  • Dynamic Standard text in SmartForms

    Hi,
    I have requirwemnt where I need to retrive the data from the Standard text to display.
    But it variews based on SalesOrge and Comany Code u2018Zxxxx_SALES_yyyyu2019 here XXXX is SalesOrge and YYYY Company code.
    How to call the standard text Dynamically in Samrtform?
    Regards
    Irfan

    Hi,
    For displaying standard text dynamically, just follow the following steps:
    1. Create a text element and in general attributes give type as Include Text.
    2. Instead of providing any static Standard text in Text Name field, you need to click on the arrow button pointing right, which is for Dynamic Field Value. There you can provide your variable as &VARIABLE&, which contains the standard text name based on the conditions.
    3. Pass value statically like Text Object-TEXT,  Text ID - ST , Language - EN or else you can passs them dynamically as per your requirement.
    As you will be passing variables in order to print dynamic standard texts, it is better to check the option "No error if no text exists".
    Karthik
    Edited by: Karthik S on Sep 2, 2010 2:40 PM

  • Recruitment Faxing & e-mailing only possible for standard text in SAPscript

    Hi,
    I am using the old recruitment module PA-RC ion ECC6 and I am trying to send an email to an applicant. When I try and do this I get message "Faxing and e-mailing only possible for standard text in SAPscript". In feature WPROC I am set up to use RTF. Is there no way to send RTF emails? Do I need to create SapScripts for anything that I may possibly want to email?
    Thanks
    Tom

    Apparently only able to carry this out in SAPScript

  • 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

  • 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

  • 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.

  • Pls explain how to add standard text in sapscript & smartforms

    Dear friends,
    pls explain how to implement standard text into sap script and smartforms.
    in how many we can do.
    and what is diff between include text & text modules in smartforms.
    how we can translate into multiple languages.
    Regards
    Jagadeeshwar.B

    hi,
    for the include text goto tcode so10.
    for changing the smartform and scripts use there methods..
    1. goto se63>translation->abap objects->other long texts->FS Forms and Styles---> for scripts use Forms
                                           for smartforsm use SAPSmart form
                                           for styles use Styles
    2. goto se71->utilities->original language.---> source lang
    (for scripts)                                                     target lang
    to include the include text created in the tcode so10 in the smartforms go to general attributes of the text element--text type> include text...
    regards,
    venkat.
    Edited by: venkat  appikonda on Mar 22, 2008 11:56 AM

  • Account number in Standard text in SapScripts

    Hello,
    I've created a standard text where I've to print account number as 12--1234-1234567-123.
    But REGUH-ZBNKL prints the bank number as 123456
    Where 1st 2 digits (12) is bank number and 2nd 4 digits (3456) is branch number.
    REGUH-ZBNKN displays the account number as 789012343
    Where 1st 7 digits (7890123) is account no and last 2 digit (43) is suffix no.
    How do I format these two numbers into one as 12-3456-7890123-043
    That means if the suffix is 2 digit add a '0' in front of the suffix to make it 3 digit (i.e. 034)

    Hi,
    You can use a concatenate stmt to prefix '0'.
    for eg:
       if ws_int < '99'.
        concatenate '0' ws_int into ws_int.
      endif.
    similarly you can use concatenate statement to build your string.
    concatenate reguh-zbnkl0(2) reguh-zbnkl2(4)
                       reguh-zbnkn+0(7) reguh-zbnkn ws_int separated by '-'
    into ws_account.
    regards
    Subramanian

  • Linking of standard texts in sapscripts

    After creating standard text in so10, how do we link these texts so that it can be used in sap scripts.

    Hi,
    you should have searched first... But here is the answer
    INCLUDE name OBJECT name ID name PARAGRAPH name LANGUAGE   name
    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)
    In future please search before posting

  • 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

  • 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

  • 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

  • Sapscript and Standard Text - Polish Characters not printing

    Hi,
    I have created an English Sapscript and translated it to Polish via transaction SE76.
    Changing my PC Region and Language settings to Polish allowed me to enter Polish Characters into Hardcoded text in the Sapscript and Standard Text via s010.
    I have two problems:
    1) With my PC Region and Language settings set to Polish, when I create my sapscript output some of the polish characters that I have entered via SE76 and SO10 do not appear and are replaced by others e.g.
    ę is dispalyed as ê
    ć is displayed as æ
    ń is displazed as #
    2) I have a business requirement to be in England Logged with PC Region and Language set to English but to print a sapscript output in Polish. Is this possible.
    We are currently on non unicode SAP system.
    Please can anyone advise.
    Regards

    Hello,
    SAP discourages mixed code page or MDMP systems and with good reason. If there is any possibility of you upgrading to a Unicode system in the near future you should try to wait for it. Supporting multiple languages in Unicode is easy, in MDMP it can be quite tricky. And MDMP makes the move to Unicode more difficult.
    That said, your BASIS team can enable Polish and you can print in Polish while your PC is set for English. The SAPScript/Form must be in Polish or using an INCLUDE that is LANGUAGE 'PL' to let SAP know which code page to use when printing.
    Seriously, look at moving to Unicode, you need to do it eventually anyways.
    Michael

Maybe you are looking for

  • Cucm upgraded from 8.6 to 9.1 and now want to add uri dialing

    Environment: Upgraded 8.6.2 to 9.1 AD Sync users and authentication Upgrade went well I thought that with the upgrade the existing AD integration would bring over the Directory URI or give me the option to choose the Directory URI choices from the ex

  • CS4 wont open - error specified module could not be found

    I have run CS4 on my windows Vista pc for years without a problem.  Yesterday I downloaded DNG converter 7.2 as I have purchased a Fuji Xpro and needed to be able to process the Raw files - my version of ACR is not compatible.  Today I tried to look

  • Problem with nokia xl free app download from airte...

    airtel india has promised to give 500mb free app download to all nokia xl customers....but I don't know why its not working with me, please help Solved! Go to Solution.

  • Can not get WET200 Bridge to wireless connect to EA6900 Router

    Hello, I have a connectivity problem with my LinkSys WET200 Wireless-G business Ethernet Bridge SN: MVP007800846. Any trouble shooting suggestions appreciated. My system is Dell Vostro 1500 laptop, with Windows XP SP3 Basis problem: When I try to con

  • [ACS 5.2.0.26] How to install cumulative update?

    Hello, I want to install cumulative patch 9 for Cisco ACS 5.2.0.26 I found installation guide: http://www.cisco.com/web/software/282766937/37718/Acs-5-2-0-26-9-Readme.txt Instructions on how to install the patch  =====================================