Use of text symbol in webdynpro

Hello
I want to assign some text to a variable in webdynpro, that is not a screen field(just a normal variable).
Instead of hardcoding the text I just want to use a text symbol. Should I go for assistance class or OTR?
I tried using OTR.but it is not taking the value what I have stored.
check the below..
append 'Hello' to v_text.
instead of the above i wrote it like,
append text-001 to v_text, where text-001 is stored in OTR.
but after executing, v_text contains no value, instead it should take 'hello'.
Please help me out.

Hi,
Plz follow following threads.
[Assign Text Symbols in assistance class directly to UI element properies]
[https://forums.sdn.sap.com/click.jspa?searchID=19744239&messageID=6555655]
I hope it hepls.
Regards.
rohit
Edited by: Rohit Makkar on Dec 10, 2008 9:59 AM

Similar Messages

  • How to use text symbols in webdynpro

    Hello
    I want to assign some text to a variable in webdynpro, that is not a screen field(just a normal variable).
    Instead of hardcoding the text I just want to use a text symbol. Should I go for assistance class or OTR?
    I tried using OTR.but it is not taking the value what I have stored.
    check the below..
    append 'Hello' to  v_text.
    instead of the above i wrote it like,
    append text-001 to v_text, where text-001 is stored in OTR.
    but after executing, v_text contains no value, instead it should take 'hello'.

    Hi,
    make a node and procced as shown below....................
    This is with OTR text
    constants :   lc_directory type string value 'ZHRWEBDEV/IDS',
    data: otr_text  type string,
             otr_text1 type string.
    READ THE NODE CN_IDS TO SET THE ATTRIBUTE VALUES
       data lo_nd_cn_ids type ref to if_wd_context_node.
       data lo_el_cn_ids type ref to if_wd_context_element.
       data ls_cn_ids type wd_this->element_cn_ids.
       data lv_ca_ids like ls_cn_ids-ca_ids.
    READ THE NODE CN_EXAMPLE TO SET THE ATTRIBUTE VALUES
       data lo_nd_cn_example type ref to if_wd_context_node.
       data lo_el_cn_example type ref to if_wd_context_element.
       data ls_cn_example type wd_this->element_cn_example.
       data lv_ca_example like ls_cn_example-ca_example.
    NAVIGATE FROM <CONTEXT> TO <CN_IDS> VIA LEAD SELECTION
       lo_nd_cn_ids = wd_context->get_child_node( name = wd_this->wdctx_cn_ids ).
    GET ELEMENT VIA LEAD SELECTION
       lo_el_cn_ids = lo_nd_cn_ids->get_element(  ).
    NAVIGATE FROM <CONTEXT> TO <CN_EXAMPLE> VIA LEAD SELECTION
       lo_nd_cn_example = wd_context->get_child_node( name = wd_this->wdctx_cn_example ).
    GET ELEMENT VIA LEAD SELECTION
       lo_el_cn_example = lo_nd_cn_example->get_element(  ).
    SET THE CONTEXT CA_IDS
       lo_el_cn_ids->set_attribute(
         exporting
           name =  `CA_IDS`
           value = otr_text ).
    SET THE CONTEXT CA_EXAMPLE
       lo_el_cn_example->set_attribute(
         exporting
           name =  `CA_EXAMPLE`
           value = otr_text1 ).
    Edited by: Neha Thukral on Dec 10, 2008 11:48 AM

  • Using Text Symbols In Webdynpro

    Hi Experts,
       When i created a text symbol in my assistance class and provided it to my attribute via the set attribute method it is not working. Is there a different way  of  using Text Symbols or Text Elements
    compared to normal ABAP Programming.
    Thanks In Advance,
    Chaitanya.

    Thanks For Your Reply,
      CALL METHOD l_if_el_node_header->set_attribute
        EXPORTING
         value  =   TEXT-001
         name   = 'INPUT_STATE'.
    where 001 is the text symbol 'Sym' which has been assigned to the text " DISPLAY MODE " in my
    assistance class.
    i am guessing we need not preceed 001 with TEXT in the above code , please reply with your inputs.
    With Regards,
    Chaitanya.

  • How to use long text editor in Webdynpro

    hi ,
    I want to use text editor in webdynpro.  I want to save the data in  long text.
    My requirement is the format of data should remain same(It should not get changed).
    Thanks
    SK

    Hi,
    use text editor uielement and bind it with a attribute of type string.  convert this string into a table using function module
    fill another internal table which is type compatible with table of SAVE_TEXT function module.
    CONVERT_STRING_TO_TABLE. Call the function module SAVE_TEXT to save this text. 
    you need to find proper tdobject and tdid value which is to be passed in importing parameter "header".
    similarly use FM "READ_TEXT" and convert the returned data into string using FM CONVERT_TABLE_TO_STRING.
    Bind the returned table to an attribute of your context. The data will be displayed in the same format in which you entered it.
    Thanks
    Vishal Kapoor
    Edited by: vishal kapoor on Oct 19, 2010 3:51 PM

  • Use of text element in function module

    hi friends what is the use of text element i.e list headings, selection texts,text symbols in a function module. where a can see these things after giving some text into it and activated.
                                        kumar.

    hi
    <b>Text Symbols</b>
    A text symbol is a named data object that is generated when you start the program from the texts in the text pool of the ABAP program. It always has the data type c. Its field length is that of the text in the text pool.
    Text symbols, along with the program title, list headings, and selection texts, belong to the text elements of a program. Text elements allow you to create language-independent programs. Any text that the program sends to the screen can be stored as a text element in a text pool. Different text pools can be created for different languages. When a text element is changed or translated, there is no need to change the actual program code. Text elements in an ABAP program are stored in the ABAP Editor (see Text Element Maintenance).
    In the text pool, each text symbol is identified by a three-character ID. Text symbols have a content, an occupied length, and a maximum length.
    Examples for text symbols in an ABAP program:
    ID
    Contents
    Occupied length
    Maximum length
    010
    Text symbol 010
    15
    132
    030
    Text symbol 030
    15
    100
    AAA
    Text symbol AAA
    15
    15
    In the program, you can address text symbols using the following form:
    text-###
    This data object contains the text of the text symbol with ID ### in the logon language of the user. Its field length is the same as the maximum length of the text symbol. Unfilled characters are filled up with spaces. You can address text symbols anywhere in a program where it is also possible to address a variable.
    If there is no text symbol ### in the text pool for the logon language, the name text-### addresses the predefined data object space instead.
    You can also address text symbols as follows:
    ... 'textliteral'(###) ...
    If the text symbol ### exists in the text pool for the logon language, this is the same as using text-###. Otherwise, the literal 'textliteral' is used as the contents of the text symbol. This is only possible at positions in the program where a variable can occur. You can create a text symbol for any text literal by double-clicking the literal in the ABAP Editor and replacing the literal with the text symbol.
    You should use text symbols in your program whenever they need to be language-specific - for example, in a WRITEstatement.
    If you program a list whose layout depends on field lengths, you should be careful, since the field length of text symbols will be different in different languages. You should therefore set the maximum field length of the field symbol so that there is enough space to translate it into other languages. For example, the English word 'program' has seven letters, but its equivalent German translation 'Programm' has eight.
    The following example shows the use of text symbols in WRITE statements.
    SET BLANK LINES ON.
    WRITE:   text-010,
           / text-aaa,
           / text-020,
           / 'Default Text 030'(030),
           / 'Default Text 040'(040).
    If the text symbols of the above screen shots are linked to this program, the output looks as follows:
    Text symbols 020 and 040 have no text symbols. For text symbol 020, the system displays a space. This is only displayed in this case because the blank line suppression has been turned off (see Creating Blank Lines).
    regards
    ravish
    <b>plz reward if helpful</b>

  • Text Symbol in User exit

    Hello Friends ,
    I have a z - include ZX45AI91 in an user exit . I do not want to hard code the error message "Not authorized to update sales order  at this level"  instead use a Text symbol from the z - programs that triggers this exit .
    When I use the text symbol it gives me an error message that Access key is required .
    Please advise if this is possible
    Thanks ,
    Hari

    I think you are not getting my point .
    This is what is currently in the code :
    if l_user_level < approved_level.
              message e999 with 'Not authorized to update sales order at this level'.
          endif.
    I want to be able to use like :
    if l_user_level < approved_level.
              message e999 with text-054.
          endif.
    The text-054 is a text element in any z program .
    Is this possible ?
    Thanks

  • How to use the separate symbol in the text field in the adobe form.

    Hi,experts,
    I don’t know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form.
    Action:
    1. config the ADS successfully.
    2. create the adobe form with a mult-line textfield(binding the 'remark' context in the interface of the form) using sfp.
    3. create a WDA for invoke the form and transfer the 'remark' context data.
    I use the following codes to display the paragraph in the PDF document:
    CONCATENATE
    '1&#12289;aaaaaaaaaaa&#65307;'
    '2&#12289;bbbbbbbbb '
    '3&#12289;ccccccccccc'
    '4&#12289;ddddddddd'
    INTO remark .
    lo_nd_z_hr_php_payslip->set_attribute(
    EXPORTING
    name = `REMARK`
    value = remark ).
    But I found all the content aren't paragraph separate correctly in the text field in the adobe form when I run the WDA.
    Could you please give me some hints to make the paragraph separate correctly in PDF document? Thanks a lot in advance!
    My email is : [email protected]
    Best regards,
    Tao
    Edited by: wang tao on Apr 8, 2008 1:58 AM

    Hi,
    If it is just a one word value then you could use this in the exist event;
    this.rawValue    
    = util.printx(">?<*",this.rawValue);
    This changes the first character (represented by the ?) to uppercase (represented by the >) and all trailing characters (represented by the *) to lowercase (represented by the <).
    If you wanted something more general ... if they could also enter a middle name then you could call a function like;
    function        toTitleCase(textValue)
      return  textValue.toLowerCase().replace(/\b[a-z]/g, function replacer(match) { return match.toUpperCase(); });
    This uses a regex to change all lowercase letters following a word boundary to uppercase.
    Bruce

  • Text Symbols in ABAP WebDynpro

    Hi All.
           I am completely new to this ABAP WebDynpro Coding, i have a requirement, when i am cliking on field i need to display pop up window with some text, it's working fine, the below one is the code for displaying Pop Up:
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window(
                       window_name            = 'W_TEXT_POPUP_SPEDIS'
                      title                  = 'ABAP WebDynpro'
                     close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                     close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).
    in the above code, there is one line called title = 'ABAP WebDynpro' that is Pop Up window name, actually i hard coded that one, but my client wants that title name through Text Symbols, i found some thing but it is not working, i really don't know how to do this one, if any one know with step by step solution please help me.
    Really i appreciate.
    Thanks in Advance.
    Thanks and Regards,
    Abhiram.

    hi Abhiram ,
    go to this help ful SAP online content :
    http://help.sap.com/saphelp_NW70EHP1/helpdata/en/43/1f6442a3d9e72ce10000000a1550b0/content.htm
    & check for Working with Text Symbols in Web Dynpro ABAP
    with the instance attribute WD_ASSIST, you can access text symbols of the assistance class from within each controller of your component. When the method is called, the three-digit ID of the text symbol is passed to the KEY parameter.
    data: data: my_text type string.
      my_text = WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( KEY = '001' ).
    Text symbols in the assistance class can be maintained from any controller. To do this, choose Goto ->Text Symbols.
    rgds,
    amit

  • How to use the separate symbol in the textfield in adobe form?..urgent

    Hi,experts,
    I don’t know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form.
    Action:
    1. config the ADS successfully.
    2. create the adobe form with a mult-line textfield(binding the 'remark' context in the interface of the form) using sfp.
    3. create a WDA for invoke the form and transfer the 'remark' context data.
    I use the following codes to display the paragraph in the PDF document:
    CONCATENATE
    '1&#12289;aaaaaaaaaaa&#65307;'
    '2&#12289;bbbbbbbbb '
    '3&#12289;ccccccccccc'
    '4&#12289;ddddddddd'
    INTO remark .
    lo_nd_z_hr_php_payslip->set_attribute(
    EXPORTING
    name = `REMARK`
    value = remark ).
    But I found all the content aren't paragraph separate correctly in the text field in the adobe form when I run the WDA.
    Could you please give me some hints to make the paragraph separate correctly in PDF document? Thanks a lot in advance!
    My email is : [email protected]
    Best regards,
    Tao
    Edited by: wang tao on Apr 8, 2008 2:05 AM
    Edited by: wang tao on Apr 10, 2008 10:29 AM
    Edited by: wang tao on Apr 11, 2008 5:29 AM

    With the pen tool in Indesign, is there a way of making the points not join if you want to make a few single lines?

  • How to use the text module in script

    hi,
            i script how to use the text modules and how to write the code  in layout of the script?

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • How to use the text type in SAP Routine

    Hi,
    The following fields has to be populated in Stock transport order text fields at the time of saving the document & to be copied into delivery document
    1) Material type
    2) Receiving storage location
    3) Production supply Area
    STO
    Delivery
    EWM Delivery
    Origin of the field value
    Material type
    New text type to be created
    (90)
    New text type to be created (Z003)
    New text type to be created
    (Z003)
    Available in EKPO table (field name is MTART)
    Receiving storage location
    New text type to be created
    (91)
    New text type to be created (Z004)
    New text type to be created
    (Z004)
    Available in EKPO table (field name is LGORT)
    Production supply Area
    New text type to be created
    (93)
    New text type to be created
    (Z006)
    New text type to be created
    (Z006)
    To be retrieved from Control cycle table (PKHD-PRVBE), if the Kanban indicator (EKPO-KANBA) is ‘X’.
    With Best Regards,
    SDN user.

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • How can you determine which pages are using a specific symbol?

    I want to find all the pages that are using a specific symbol, but I don't know how.  I can't simply switch symbols because some have specific text & want to switch them with more generic smart buttons.  I'll have to find every instance to update the text.
    thanks!

    me too, my file has 39 pages with many unuse symbols, now I want to delete those unuse.
    I found that after deleteing those unuse in Page 1, actually they are being used in other page,
    I can't find the way to delete them all at one time for all pages.
    and I am using CS3

  • Assigning a Value to a Text Symbol: DEFINE

    Hi all,
    I am printing some text in the form. The text is in the database table and is retrieved. say the field name is fld06 in the table ztfin. Previously it is code as &zfin-fld06& in the form edotir. Now my requiremnet is to dispay some other text where ever I have to print ztfin-fld06. I have used the define statement in this way :
    /: DEFINE &ztfin-fld06& = 'Data Fattura'
    But when I look at the output the text is not replaced nor it is realised while I am debugging. Can anyone tellme where I am going wrong ?
    Regards,
    Varun.
    Message was edited by: varun sonu

    hi
    chk this out
    <b>DEFINE: Value assignment to text symbols
    Text symbols receive their value through an explicit assignment. This assignment can be made interactively in the editor via the menu options Include &#61614;&#61472;&#61614;&#61472;Symbols &#61614;&#61472;&#61614;&#61472;Text. This lists all the text symbols of a text module, as well as those of the allocated layout set.
    The contents defined in this way are lost if the transaction is exited. To continue printing the text module, you would have to enter the symbol values again.The DEFINE command allows you to anchor this value assignment firmly in the text, to also have it available when you next call up the text. Furthermore, you can allocate another value to a text symbol in
    the course of the text.
    Syntax:
    /: DEFINE &symbolname& = ‘value’
    Example:
    /: DEFINE &re& = ‘Your correspondence of 3/17/94’
    Example:
    /: DEFINE &symbol1& = ‘xxxxxxx’
    /: DEFINE &symbol2& = ‘yyy&symbol1&’
    /: DEFINE &symbol1& = ‘zzzzzzz’
    Result: &symbol2& &#61614;&#61472;yyyzzzzzzz
    The assigned value may have a maximum of 60 characters. It can also contain further symbols. When a symbol is defined using the control command DEFINE, symbols which occur in the value are not immediately replaced by their value. They are only replaced when the target symbol is output. If the operator := is used in the DEFINE statement, all symbols which occur in the value which is to be assigned are immediately replaced by their current values. The resulting character string is only then assigned to the target symbol when all occurring symbols have been replaced. The length of the value is limited to 80 characters. The target symbol must be a text symbol, as at present.
    Syntax:
    /: DEFINE &symbolname& := ‘value’</b>
    <i>u can also write a perform...endperform to change the value of a field to ur required text.</i>

  • Text symbol for automatic insertion of file and page data

    In Visio I have a footer on my wireframe pages that includes text symbols referencing data about the file (document name, last edited) and also the number of the page. These symbols automatically update as the data changes. I can do something similar in InDesign and Word.
    I cannot seem to find a way to do this in Fireworks. Perhaps I just don't know what the feature is called?
    --Jim

    Apologies, but you weren't particularly clear on the problems you were having in your prior post, so I was just making sure you actually found the shapes.
    You didn't ask about customizing the shapes either. If you had, we might have been able to save you the time. Auto shapes have very specific editable on-canvas features. The rest is controlled under the hood by JavaScript. It's quite likely that - had you opened the JS file - you could have made some of those edits. That's the cool thing about these shapes. You CAN change things.
    I don't pretend to be a JS guru, but when I opened the JSF file, I was able to find the variables for changing font color, size, fill color and whether the text automatically expands to fill the box, in few minutes.
    On the canvas, I can use the Subselection tool to change the width of the box and its fill, as well as the size of the text block.  I can use the customize command for the shape itself to place each piece of information on a separate line.Will you get a warning message when you resize the rectangle? Yes, because you are altering the base parameters of an object controlled by JS. Does it have a negative impact on  the shape? No.
    As for autonumbering of Pages, I isaid that this is an automatic feature in FW. You have no control over it in the current version and as I said, I do not beleive the numbering is carried over to a PDF. Beside each page name you will see a 2 digit number - that is what I was referring to.
    If you do not manually name your pages, FW will also name them onthe sequence in which they were created, Page 1, Page 2 etc. FW will NOT change that name if you change the order of the pages; it sill only update the sequence number.
    As you said yourself, you are new to Fireworks. Don't throw in the towel because of one negative experience, which could have been resolved with more knowledge of the software, or additional questions in the forum. And remember that Fireworks is not just a wireframing tool; it is also a design tool.
    Message was edited by: Jim_Babbage

  • What is a text symbol, what does it do (other than mess with my doc)?

    I am working with FM8 in Tech Comm Suite 1 on Windows XP.
    Some of my docs have text symbols sprinkled liberally throughout the text.  I know you can select the option not to view the text symbols, but they still show up in FM and PDFs and RoboHelp and play havoc with the spacing.
    What are text symbols?
    What purpose do they serve?
    How can you make sure they aren't inserted when creating a doc?
    Is there any way to get rid of them easily?
    Thanks for the help that I know will soon be coming.
    M

    To clarify, text symbols are one of FrameMaker's visual guides that can be optionally displayed in a FrameMaker document window to indicate the location of something else. A text symbol appears as a special character, but never prints or appears in PDF. However, the represented object may indeed affect the way the published document appears. As explained in the FM 9 User Guide, there are text symbols for an end of paragraph, end of flow, tab, anchored frame, table anchor, marker, forced return, equation alignment point, nonbreaking space, discretionary hyphen, and suppress hyphenation. You turn text symbols on and off with the View > Text Symbols command. Doing so does not affect the content of your document; it just helps you locate where the represented objects occur.
    Thus, the problem you are having is not text symbols per se, but the object represented by a text symbol. As others have commented, the tab character can produce the observed results. Viewing text symbols can help you locate the tab characters. While tab characters can be inserted automatically in an autonumber or, in a structured document, in a prefix or suffix, they can also be entered from the keyboard, by pasting, or by converting a document that contains them from another format. You can find tabs that are not automatic using Edit > Find/Change. Type \t as the text you want to find. If you wish you can do a global change to remove all the tabs in the document or change them all to spaces.
              --Lynne

Maybe you are looking for

  • More and more photos progressively disappearing from the Book

    Hi, Please help me! I've invested a ton of time into this book and am hoping that someone can have a fix instead of me doing the book over. I've bought Apeture for the next time I do one, but please, please tell me there is something that can be done

  • Send smartform as html email

    Hello all, I've been searching SDN for help with creating an email in html format via smartforms. Pavan Bayyapu's blog was really helpful and I've also used program SF_XSF_DEMO_MAIL as the basis for my program. I followed their examples exactly but m

  • Can I make a "contact-sheet" style printed backup of my pictures?

    I have over 12,000 photos in my iPhoto library, mostly pictures of my kids. I heard of someone who printed all their pictures from one year in their iPhoto library "contact-sheet" style into a book [I thought an iPhoto book, but I'm not sure], each o

  • Material documnet list

    Dears By using Notification Q2 type,in Action box i move my materrial unresticted to block area now system create two documnet  as follows Movement type :344 and item :1  (moved qty as +) Movement type :344 and item :2 (moved qty as -) Why system cre

  • Where do i make  the array???

    I have an a problem for my class.i need to make a room class, a house class that extends a building class. i am making the room class first with the instance vaiables of length and width. The house class is suppose to add the array of the rooms to ac