Smartforms Dynamic Text option (Change standard texts dyanamically)

Hi,
My requirement is to change standard texts dynamically in the smartform. i.e. Standard texts names are stored in a custom table, based on condition I have to print different standard texts.
Thanks in Advance.

You can use the variable as the name of your text name.
Create a program lines to populate the variable. Use this variable as the text name. Like:
&W_TEXT_NAME&
Regards
Naimesh Patel

Similar Messages

  • How to change standard text in(me33k)?

    How to change standard text in me33k (under Reference data : Dept/Proj Manager) field. I tried it changing in CMOD - under Goto in Text enhancements in Keywords then Change . I did this change and in table ekko-verkf I can see the change, but in me33k I cannot . Appreciate if anybody can  reply back soon and help me solve this issue? points awarded for sure.

    If u are talking about the text  related to a Contract by (Trx ME33K --> Header --> Texts --> Text Overview).
    Then u need to use the FM create_text and then put the import parameters as
    Text Name     =  (contract number)
    Language       = EN
    Text ID        = K00  Release order header  text put K01 for first item text K02 for second item text so on
    Text object    = EKKO       Purchasing doc. header texts
    and then call bapi_transaction_commit
    u ll be a ble to find the changes
    thnks
    kanishak

  • How to change standard text in portal

    How to change standard text in portal
    Pls reply

    Archana,
    Please post it in the relevant forum(Portal Implementation/development)
    What text do you want to change.
    Thanks
    Bala Duvvuri

  • Default Standard Text Key or Standard Text to first Operation of Order

    I would like to have a standard text key or standard text defaulted for the first operation of an order created via IW31 of certain order type.
    For example we have an order type called CORR for corrective orders.  When ever there is a break fix, the user would create a CORR order via IW31.  When this order type is used I want the first operation to have a predefined Standard text key defaulted.  In this case we was our first operation to have a safety message and precautions listed.
    This would work similar to a planned order that calls from a task list and has text in the task list.
    I did some review and testing of the "Assign Standard Texts for Short Messages to Order Types", but as I understand it, this only works for sending message and not including text on the operation.
    Is what I want to do possible?  Or would it make more sense to use an exit like IWO10020, Maintenance order: Automatically include task list .  I guess I could create a general task list and use that in this exit for all CORR order types.
    Edited by: Darrell Dorsey on May 25, 2010 10:26 AM
    Edited by: Darrell Dorsey on May 25, 2010 10:30 AM

    For the scenario that you are referring to, i believe this would be the option that would be flexible. Yes, you will have to little bit of custom development for this  and i don't see any standard functionality to default the standard text on the first operation for specific order types. You should be able to attach a task list where its planning plant differs with that of the Order plant.
    There are much more simpler options available, if you are open to using a  different work center(You could default the Standard text key on the work center), if you are open to create a separate transaction for this order type (you could default the Standard text by creating a transaction variant through SHDO), If you are using GuiXT widely in your organization you could write a small simple script to default the Standard text for this order type.
    Regards
    Narasimhan

  • Smartforms,How to display different standard Text in a Text element.

    In smartform,if I want to according to the different conditions,display one of the serveral different standard Text objects which all  maintained in SO10 in a same text element,how to do it?
    if i put them in serval text elements, each condition only display the corresponding text element,but the text content can not display in the same position.
    Is there anyone can tell me?
    thanks.

    use Alternative to control it no problem
    for example you want to display the different SO10 to same position TEMPLATE's row 1 col2
    TEMPLATE1
    Alternative case1
    YES
    INCLUDE TEXT1(display SO10) [set output option line1 column2]
    NO
    Alternative case2
    YES
    INCLUDE TEXT2(display SO10) [set output option line1 column2]
    NO
    Alternative case3
    every case your SO10's text is always display at line2 column2
    just try to test it ,you can know

  • How to get the Hardcoded text and the Standard text in the same line

    Hi,
    I have an SAP Layout. In that, it should show the Consignee name as below.
         Consignee: SAP LABS
    In this, the text 'Consignee: ' should be hardcoded in the layout itself. and the customer has requested to create a standard text for 'SAP LABS' sothat if they want to change the value in future, they would go and change the Standard text. I have created the Standard Text for SAP LABS. I am not able to get both these texts on the same line. I wrote in the layout like below and AS is the Paragraph format.
    AS     Consignee:
    /:        INCLUDE ZVRU_CONSIGNEE OBJECT TEXT ID ST LANGUAGE EN PARAGRAPH 'AS'
    But, both are coming in dofferent lines. As /: is a command line, it is coming in the next line. Is there any way of getting these two texts in the same line..? While Inserting the Standard Texts, will there be any option/command to print it in the same line..?
    Please share your thoughts. Thanks in advance.
    Thanks & Regards,
    Paddu.

    Hi Paddu,
    I have had a similar requirement. I did not use any FM or anything, simply did the following:
    In  SO10, for your standard text where u have used the text SAP LABS.
    Instead of P1/ default para, change it to =. And then Save ur Standrd text.
    Now in the SAPScript Text editor in which you want to print
    P1 'Consignee :'
    /: INCLUDE TEST OBJECT TEXT ID ST LANGUAGE EN
    the output will be
    Consignee : SAP LABS
    I have tried and tested this method. It will surely work.
    With regards,
    Niharika.

  • Text object changed, but text not refreshing

    I have searched and searched for the problem, but am having no luck.
    I have a simple Text object. Dynamically as buttons are clicked, I want to set the text value of this Text object. I tried:
    textObject.rawValue = "my text";
    The actual text on the PDF file does not update. It is a dynamic PDF, as other scripts on the same page work. I used this same code to successfully set the text of a TextField object, so I am stumped.
    Any help would be great. Thank you.

    Hi,
    Text object doesn't have rawValue. If you want to change value of Text object try this scrript:
    xfa.resolveNode("Text1.caption.value.#text").value ="some text"
    BR,
    Paul Butenko

  • How to get the real texts according to Standard Text Key maintained in CA10

    Hi ;
    I have a requirement to fetch the standard text based on the standard text key which is maintained by CA10.
    is there any direct way to get those texts without giving 'TEXT NAME', 'TEXT ID' and 'TEXT OBJECT' but just by the standard key?
    Thanks in advance.
    Regards.
    Vindy

    Hi Varma,
    Even if you want to personalise the Text also you can do without checking the DICTREF checkbox. Dirctly you can give the text in the Text elements by using the Menu GOTO -> Text Elemetns -> Selection Texts.
    Regards
    Thiru

  • 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

  • Standard text from SO10 - smartform

    Hi Folks,
    I need to print a document with some standard text and the vendor address.
    1.For this I had created the standard text in S010,how to call this standard text in the text editor of the main window?
    This standard text will be the same for all the vendors.
    2.I need to fetch the address of the vendor.So I had created a select option.I have to print this document with the standard text for each vendor.Text will remain the same but the vendor address differs.I had created a structure having all the fields for the address and declared in the form interface.Internal table is getting populated but it is not printing in the smartform.
    How to get the document in one shot for all the vendors given in the range.
    Thanks,
    K.Kiran.

    u can call the standrd text from the smartform directly :
    got the smarform u created/ developed.
    create text.
    in the general attributes tab give the type <Include Text>
    assign the standard text that u want ot inclue.
    smartform will call that directly
    address cn be created direclty from the smartform
    in creation u will the get the option to create the address.
    just give th varible and populate the varible from the program.
    Thanks

  • STANDARD TEXT with BITMAP command in SMARTFORM

    Hello,
    I'd like to customize my smartform with picture defined by standard text.
    I defined standard text in SO10:
    /:   BITMAP 'xxx' OBJECT GRAPHICS ID BMAP TYPE BMON DPI xxx 
    .. and this standard text included to my smartform.
    But no picture appears.
    Best regards,
    Josef Motl

    Hi Josef!
    If you want to use the graphics from SO10 you have to change the syntax. Instead of "bitmap" you should use "include", the object should be text and you need the textid. If you use the bitmap-call you should upload the image with SE78. If you're transporting your syntax from one system to the other you have to include the image in your transport order or you have to upload it in each system.
    If you want good quality you should use SE78 and the BITMAP-call instead of SO10.
    Best regards,
    Ingo

  • Displaying dynamic data on every page of standard text

    Hi All,
    I m using standard text (created in SO10) in smartform . I want to display dynamic data on the top of every page of standard text.
    Displaying the dynamic data is not the problem, but how would i know where is page finished(or started) as Preview in SO10 may not look the same as smartform output.
    I dont want to do this manually by adjusting the size of window. Is there any other way to do the same??
    Vanita.

    Try to create a text in your SF and write the dynamic data.
    To know in which page use &SFSY-PAGE&
    this system fields may also be helpful for dynamic text on each page
    &SFSY-COPYCOUNT0&   "COPY COUNTER( 0 = ORIGINAL, 1 = 1st COPY)
    &SFSY-COPYCOUNT&   "COPY COUNTER( 1 = ORIGINAL,  2 = 1st COPY)
    Still you can called DYNAMIC text through your standard text.. but place your conditions.
    Regards,
    SaiRam
    Message was edited by:
            Sai Ram Reddy Neelapu
    Message was edited by:
            Sai Ram Reddy Neelapu

  • How to pass dynamic values in standard text......

    Hello,
    I have no idea that how to create the standard text with transaction SO10,and how to pass the dynamic values to that standard text.Will you guide me with step-by-step procedure.
    Thanking you in advance,
    Regards,
    Asmitha.

    Hi,
        Goto SO10 Tcode
    Give :- Text Name:- any Name
               Text Id :- ST
                Language:- required language
    Now the Text which you want to print along with the Dynamic variable,
    Ex:-  Sales order number is &VBAK-VBELN&
    Save and Activate
    above is i have given it VBAK-VBELN, you can give field name which hold dynamic value.
    Now call the above created Standard text in your Form and check it.
    Regards
    Bala Krishna

  • Problem in populating dynamic data in standard text

    Hi Guru's,
    I am finding difficulties in populating dynamic data of a standard text. I have created a standard text PM30_T010 (Type ST) as below.
    Objects Used:
    Equipment : &NOTIFICATION.EQUIPMENT&
    Floc           : &NOTIFICATION.LOCATION&
    I have added the container NOTIFICATION at the task level and call the standard text.
    INCLUDE PM30_T010 OBJECT TEXT ID ST LANGUAGE EN
    But the equipment number and location values are not getting populated. At the same time, if I place the same text (mentioned above) in the description section of Workflow task instead of calling the standard text, equipment number and location values gets populated as expected.
    Please let me know how to achive the same through standard text.
    Regards,
    Parthiban

    Hello !
         Check the binding and data types of the containers involved in binding.
        Also check in workflow log, whether the workflow containers are populated with required values.
    Regards,
    S.Suresh.

  • How to use standard text  so10

    Hello sir
    Here the problem is i want get three company adress in the script..
    Here i  used the satandard text  (so10)  and created three adress  and i went to address window  type
    There
    i written if exgrp =52
    <b> include zadress 1 text id  language E.
    else exgrp=53
    <b> include zadress 2 text id langugage e.
    this one i did in developement client and  i tested and  imported threw scc1 its not reflecting while exectuing.
    so please tell me how to print the 3 comapny address .. and step by step procedure .
    Thankyou
    Regars
    REDDY

    HELLO sir ,
    I done wt  u said but unable to get that address in script .......
    Please check  the flow once which done by me ......
    firsr created 3 texts and went to  the adress window there i used insert option gave standard text ...
    in the address window i gave
    If P_EXGrp -52( &j_1iexchdr-exgrp&)
    include text 1
    elseif P_exgrp=53
    include text 2
    else if P_exgrp=54
    endif .     this the  way i used if condition i ..........  if i changed the  second statement to Only  to "else" its printing the only else part exectuting  in script .
    and by using  RSTXTRAN progarm transported my request .  and by scc1 imported  but iunable to get Please tell me i didnt change the driver progarm .. selection scrrren &J_1iexchdr-exgrp& is one fileld based on this company code should come .. 
    Please let me know how to get ....wt changes i should make Please
    Thankyou,
    Regards

Maybe you are looking for