ABAP Text Symbol Problem

Hi experts,
I'm using function module 'FI_TEXT_ZTERM' to retrieve description texts of terms of payment. However, this function module is using text symbols to generate these texts. So if I log on in English, I could not get Chinese texts if I want.
Does anybody know some good solutions? Thanks.

Try the "FI_PRINT_ZTERM" and pass it the language - you'll see at the top of that function that it does a "set language i_langu" and that seems to allow it to return the correct element from the textpool.  Example code below also includes a "how to" on getting the textpool values (should you want them).
Jonathan
report zsdn_jc_zterm_text.
parameters:
  p_repid               type syrepid default 'SAPLFHL2',
  p_langu               type sylangu default sy-langu.
start-of-selection.
  perform read_textpool.
  perform get_terms_of_payment.
*&      Form  read_textpool
form read_textpool.
  data:
    ls_textpool        type textpool,
    lt_textpool        type table of textpool.
  clear: lt_textpool, lt_textpool[].
  read textpool p_repid
    into lt_textpool language p_langu.
  loop at lt_textpool into ls_textpool.
    write: /
       ls_textpool-id,
       ls_textpool-key,
       ls_textpool-entry(70),
       ls_textpool-length.
  endloop.
endform.                    "read_textpool
*&      Form  get_terms_of_payment
form get_terms_of_payment.
  data:
    ls_t052            type t052,
    lt_t052            type table of t052,
    ls_ttext           type ttext,
    lt_ttext           type table of ttext.
  select * into table lt_t052
    from t052.
  loop at lt_t052 into ls_t052.
    call function 'FI_PRINT_ZTERM'
      exporting
        i_langu = p_langu
        i_t052  = ls_t052
      tables
        t_ztext = lt_ttext
      exceptions
        others  = 0.
    loop at lt_ttext into ls_ttext.
      write: / ls_ttext-text1.
    endloop.
  endloop.
endform.                    "get_terms_of_payment

Similar Messages

  • Translating text symbols and selection texts in abap report

    Hi All,
    I have devolped a report and in that translation of selction texts and text symbols is required.
    Problem: In abap text elements  in the report i have gone for goto->translation->and then i have tried to translate by giving the target language as DE and changed all the texts but when i am tring to save it is showing a message that 'STILL 54 OF 54 TEXTS TO BE PROCESSED'.
    Alternative solution :I have tried even using se63 and selected <rept> selection texts.
    but still its showing the same error  ('STILL 54 OF 54 TEXTS TO BE PROCESSED'.)
    from se63.
    kindly give me solution for this issue.
    Thank you,
    bhavani.

    Hi Bhavani.
    Check the [SAP Document for translation|http://help.sap.com/saphelp_sm32/helpdata/EN/41/71601b3ab0f34a8e00aa01338c68f3/content.htm]

  • 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

  • Not able to make change of text in text symbol which are stored in txt pool

    Hi Experts,
    I have new problem today. I have been told to make changes of header text which is displayed after running one customized program.
    Program name : ZSDXXXXX1 which is attached in one Tcode: ZSDXX2.But when I goto SE38 and display the program to make changes, it shows the following different report name like AQCSSYSTQV000009ZSDXXXXX1 and the text symbols text-f58 which are somewhat different.
    Pls gide me to proceed further...
    In SE38:
    report AQCSSYSTQV000009ZSDXXXXX1
       line-size 253 no standard page heading line-count 000(003).
    include <symbol>.
    include <icon>.
    selection-screen: begin of block prog
                               with frame title text-f58.
    tables LIKP.
    data %count-LIKP(4) type x.
    data %linr-LIKP(2).
    tables aqldb.
    include rsaqexcd.
    data: begin of %st_liste occurs 100,
              head(1),
              tab(3),
              line(6) type n,
              cont(1) type n,
              fint(1),
              finv(1),
              fcol(1) type n,
              text(0253),
          end of %st_liste.
    etc.

    As per the report name "AQCSSYSTQV000009ZSDXXXXX1", it seems that there will be a SAP Infoset "ZSDXXXXX1"
    Go to transaction SQ02 with this infoset name "ZSDXXXXX1" then press change button.
    Then on right hand side there witll be field groups/data fields. Select the folder corresponding to Text-F58 and then press change button .
    If it does not work try transaction SQ01 & SQ03.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 11, 2008 4:29 PM

  • 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

  • Text symbols are missing in SAP standard program

    Hi All,
    I am in very critical probelm I have standard program J_1I_EWT_MIS in that i have text elements are in english.
    I dont have any access key but i want to transalte the text elements while tarnsalting it doesnt ask me for any access key.
    Unfortunately i have overwitten all the text elemnts to another language all my text sysmbols were disapperared.
    I dont have any solution now..
    BUt i know that etx symbols which are disapperead.
    Please advise me how can i proceed to get my text symbols.
    Thanks,

    Hi,
    My problem is i have selections texts in standard program previously i have descriptions for that.
    By mistaken all the texts were disappered and selection texts are existing.
    Now i eant to enter selection text name for that.AS it is a standard program i can't change it.
    Can you please give me an idea on this.
    Thanks,
    Swapna.

  • 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

  • Issue passing values to text symbols in Dynamic text PDF forms

    Hello Everyone,
    I am facing a problem related to Dynamic texts in Adobe PDF forms (Text node of type include text). I am able to pass the dynamic values to the Text node properties but i am not able to pass the values to Text symbols inside the Text node. When tested it says the field not found. I have the same structure and field in the CONTEXT as that of the text symbol. The problem i see is because in PDF the field names have $record.(fieldname) ?
    Please share your thoughts if anyone has faced similar problem or know how to handle it.
    Thanks a million in advance,
    Chandu

    Open the report up in the Designer and Click on Edit, Subreport Links. Likely what you can do is use Shared Variables to pass values from the main report to the subreport.
    You need to do this in the report first. If you are using RAS then you can at runtime. If RAS is not available to you then no way in code.
    See these samples:
    Root Page
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessIntelligence%28BusinessObjects%29+Home
    Enterprise Samples (including managed and unmanaged ras)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
    Non-Enterprise Samples
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    Exporting Samples (RAS)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Also refer to the DSK help files for the Engine or RAS and search on the subreportcontroller.
    If you are using RAS I'll move your post to the SDK forum.
    Thank you
    Don

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

  • Text symbols in BOR

    Hello,
    I am using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' for sending mails in workflow.
    For this purpose I have created a method in the BOR and its being called instead of a Standard Send MAil step.
    The reason for using this FM instead of the Standard Send mail step is that , I need to send a hyperlink which is around 250 chars long.This cannot be achieved through the standard mail step.
    I am passing the hyperlink and the mail content in literals to the variables  which forms the body of the email.
    My question is that instead of using literals (which give me errors in the Code inspector  check), is there a facility like Text symbols in the BOR. Or any other way I can replace those literals.
    Many thanks in advance !
    Thanks and Regards,
    Ameya Kulkarni

    Hi. I agree with Karri Kemp.
    I prefer to use FM to send mail or any other type of codifications.
    OR, if you prefer, why don't you store the LINK in another table and simply get it by a selection into a local variable ? I think it's a good way to maintain links. Because in future if this link change its address, you don't need the ABAP. You can store this link in a table accessed by SM30 and asks to key user or functional to maintain it. You can create a transaction to call this table like parameter transaction type.
    Some times it's a good practice maintaining some values inside a table which a key user can maintain the values and don't need ABAP when it has any change. BUT it can help you with this case of LINK having more than 70 characters.
    best regards.
    Glauco

  • Transport text symbols

    Hi Everyone,
    I have a zprogram in which there is an selection screen and with checkboces. For these checkboxes I have text symbols.
    When I released the transport, and checking the program in qa system, the text elements are not tranported. What could be the problem?
    I executed the program RSTXTRAN and specified the transport request number and press the execute button. But still I could not find any of the text elements to select or to assign.
    How do I transport these text elements Can anyone help me please.
    Its really urgent?
    Thanks,
    Prashant.

    Go to SE38 -> Program name ..Click  - > Text elemnets - > Hit change You `ll see 3 tabs ( text symbols , selection text ,list heading ) .. Activate them and hit save .it must ask you the trasport request. Add in transport and that`s sit
    <u><b>OR FOR transport text translation</b></u>
    First translate ur texts using SE63.
    Then choose GOTO>Administration>Transport Recording
    afterwards Request-->All languages.Then you will be taken into the screen where your texts will be assigned to a tranports
    Thanks
    Message was edited by: Saquib Khan

  • Table containing Program Texts(Text Symbols, SelectionTexts, List Heading)

    Hi All,
             I would like to know which is the standard SAP std. table which stores the data regarding Text Symbols, SelectionTexts, and List Heading of every program we create. There should definitly be a table where it is stored (otherwise we will not be able to retrieve it each time).
    I have found out a structure RS38M which has all the required fields. But since it is a structure, it doesnt contain data. 
    So please inform if any body knows any standard SAP table which stores Program Texts. A quick, correct reply would be highly appreciated.

    Hi
    All these texts are stored in text pool not in any std. table.
    To retrieve these info u have to use statement like:
    READ TEXTPOOL <prog_name> INTO itab LANGUAGE <language> [STATE state].
    This statement reads the text elements of the text pool of the language specified in lang and the program specified in prog from the Repository and places them into the internal table itab. The previous content of itab is deleted. If the text elements cannot be read, then the content of itab remains unchanged.
    For prog, you must specify a flat character-like data object, which contains the name of the program of the text elements to be read; the name is case-independent. The internal table can have any table type and its row type must correspond to structure TEXTPOOL from the ABAP Dictionary.
    For lang, you must specify a flat character-like data object, which contains a language key of up to one character, whose value must be contained in the SPRAS column of database table T002. If lang contains a blank, the behavior is undefined.
    After a successful read, itab contains in the ENTRY column the texts of the text symbols, the selection texts, the list headers and the title from the program attributes. Every text element that exists for the specified language occupies one row of the internal table and is identified uniquely by the columns ID and KEY. The column LENGTH contains the length of the text element. The table below shows the possible values of the columns ID and KEY and their meaning:
    ID KEY ENTRY
    H 001 to 004 List header: Column headings
    I Text symbol identifier Text symbol text
    R - Program title
    S Name of a parameter or selection criterion Selection text
    T - List Title: Titlebar

  • Text symbols

    Hi,
    Does someone know if it's possible in a function module to use text symbols declared in another program (report) ?
    Are Text symbols a part of a report / MF or different objects that can be used outside ?
    Thanks

    If you really need to access a text symbol of a different program or class, you can use the ABAP statement [READ TEXTPOOL|http://help.sap.com/abapdocu_70/en/ABAPREAD_TEXTPOOL.htm].
    To access the text symbols associated to a class, you need to use its include name, e.g.
    READ TEXTPOOL 'CL_OSME_GENERATOR=============CP' ...
    to access the text symbols of the class CL_OSME_GENERATOR. You can use the class CL_OO_INCLUDE_NAMING to determine the include name of a class.
    Of course, the online text repository is the better way to provide a central storage point for texts you want to use in many different programs.

  • Text symbol in script

    Hi All,
    I am using a standard symbol in script.Insert>symbol>standard symbol,whether these symbols are speific to the program or will be available globally.i meant to ask if i use a standard symbole 'cp_prod' can i use the same in another form for different text?
    Regards,
    Sai

    Hi
    These script symbols are global
    you can use them in other form also
    A variable in SAPscript is called a symbol. There are the following types.
    • System symbol (e.g. the number of the current page)
    • Standard symbol (usable in any document)
    • Program symbol (value from the print program)
    • Text symbol (“local variable”)
    The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
    goto any PAGEWINDOW's Text elements in Script (SE71)
    from the Menu-> INSERT-> Symbols
    you find all symbols here
    System symbols
    System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
    1. General system symbols
    See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
    2. SAPscript system symbols
    See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
    3. ABAP system symbols
    For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. [SYST is the dictionary structure for ABAP system fields.]
    Sample code:
    User: &SYST-UNAME&
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
    Standard symbols
    Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
    Tools
    Form Printout
    Administration
    Settings
    Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
    The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
    We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
    Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.
    Text symbols
    A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
    /: DEFINE &COMP_NAME& = ‘University of Warwick’
    /: DEFINE &WS_RATE& = &TAX_SUMM_C&
    Reward points for useful Answers
    Regards
    Anji

  • Text symbols - mlen

    Hi Experts,
    I'm creating a text symbols and for some reason I don't see the field mlen.
    Only fields I have are Sym, Text and dlen.
    My main problem is when I go to translate the text to french I don't have enough space to write the text because dlen gets its value from the length of the original text.

    Looks like it was hidden by default... I just needed to expand it again. Pretty strange we had 3 other developpers with the same problem.
    Edited by: Gino Godin on Dec 9, 2008 10:16 AM

Maybe you are looking for