List of text symbols

hi,
Can i get the o/p as list of text-001,text-002......text-a001....depending on nos of literals in given code.
eg:
Literal         Text Symbol
'ABC'           text-001
'DEF'           text-003
'Line is'       text-aa1
Thanks

Hi.abhi...try this...
DATA: ITAB LIKE STANDARD TABLE OF TEXTPOOL WITH HEADER LINE.
data: wa like line of itab.
CALL FUNCTION 'RS_TEXTPOOL_READ'
  EXPORTING
    OBJECTNAME                 = SY-REPID
  ACTION                     = 'EDIT'
  TABLES
    TPOOL                      = ITAB
EXCEPTIONS
   OBJECT_NOT_FOUND           = 1
   PERMISSION_FAILURE         = 2
   INVALID_PROGRAM_TYPE       = 3
   ERROR_OCCURED              = 4
   ACTION_CANCELLED           = 5
   OTHERS                     = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
skip 3.
LOOP AT ITAB into wa.
WRITE at 5 wa-entry.
concatenate 'text-' wa-KEY into w_text.
WRITE at 15 w_text.
write /.
clear w_text.
ENDLOOP.
Ram

Similar Messages

  • 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

  • Listing text literals and text symbols

    HI,
    I am able to get list of all text literals used in a program using
    SCAN ABAP-SOURCE gt_source
                    INCLUDE PROGRAM FROM 'ZTEST_AM_ALV2'
                    TOKENS INTO gt_tokens
                    STATEMENTS INTO gt_stmts.
    LOOP AT gt_tokens into w_tokens WHERE type = 'S'.
    WRITE:/1  w_tokens-row,
            15 w_tokens-col,
            29 w_tokens-str.
    ENDLOOP.
    Now for all these text literals in g_tokens i want to list down all the text symbols which can be assigned to these literals.
    Thanks.

    Hi...
      do this...
    DATA: ITAB LIKE STANDARD TABLE OF TEXTPOOL WITH HEADER LINE.
    CALL FUNCTION 'RS_TEXTPOOL_READ'
      EXPORTING
        OBJECTNAME                 = SY-REPID
      ACTION                     = 'EDIT'
      TABLES
        TPOOL                      = ITAB
    EXCEPTIONS
       OBJECT_NOT_FOUND           = 1
       PERMISSION_FAILURE         = 2
       INVALID_PROGRAM_TYPE       = 3
       ERROR_OCCURED              = 4
       ACTION_CANCELLED           = 5
       OTHERS                     = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT ITAB.
    WRITE:/ ITAB-KEY, ITAB-ENTRY.
    ENDLOOP.
    Abhishek...do not forget to give points...
    Rammohan

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

  • 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

  • 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

  • URGENT! Convert text symbols to a different language

    Hi all,
    I need to know if there is a way to call text symbols in a different language? I need to call the following text in german depending on certain prior conditions but when i log in to the SAP system it is in english.
    Any help would be much appreciated. Thanks
    WRITE: /2(15) TEXT-052,
                20 SY-VLINE,
                21(35) TEXT-053,
                102 SY-VLINE,
                103 TEXT-055.
    Thanks

    Hi Seema,
    You always want this text to be displayed in German when you login in English language?
    You can make the translation in German.
    Goto -> Translations will list all the texts used in your program.
    Corresponding to text-052, give your translated text in German.
    Every time, you run the program, this text in German will be displayed.
    Regards,
    Susmitha

  • Dynamically writing text symbols

    I have defined several text symbols in an ABAP program in the following pattern:
    TEXT-C01 - …
    TEXT-C02 - …
    TEXT-C08 - …
    Now I have to write in the end of the list all this symbols.
    I was thinking on using something like
    DO 8 times.
    ENDDO.
    Inside of the DO loop I would define dynamically the symbol that I was writing. I know that this is possible using field symbols but I’m not getting it right. Can anyone help me?
    Thanks in advance.
    Best regards
    Sónia Reis

    Hi,
    Not sure whether your issue is solved. Because you marked this as answered. If not please find a solution.
    DATA: w_te(8),
    w_count(1) TYPE n.
    FIELD-SYMBOLS : <fs> TYPE ANY.
    w_count = 1.
    DO 10 TIMES.
      CONCATENATE 'TEXT-C0' w_count INTO w_te.
      ASSIGN (w_te) TO <fs>.
      WRITE: w_te, ':', <fs>.
      NEW-LINE.
      w_count = w_count + 1.
    ENDDO.
    You will get the value of each text element in the field symbol <fs>.
    Kindly reward points if your question is answered.
    Thanks
    Vinod
    Message was edited by: Vinod C

  • Finding text symbols

    hi,
    In a given code i want the o/p as a list of all the text symbols used .
    Also what is the range of text symbols which can be assigned to any nos of literals in given pgm.
    Thanks.

    Hi,
    You can search for the char <fs> or just < > you will know where they are used in the program.
    go through the doc.
    Syntax
    FIELD-SYMBOLS <fs> { typing | STRUCTURE struc DEFAULT dobj }.
    Extras:
    1. ... typing
    2. ... STRUCTURE struc DEFAULT dobj
    Effect
    The FIELD-SYMBOLS statement declares a field symbol <fs>. The naming conventions apply to the name fs. The angle brackets of the field symbols indicate the difference to data objects and are obligatory. You can declare field symbols in any procedure and in the global declaration section of an ABAP program, but not in the declaration section of a class or an interface. You can use a field symbol in any operand position in which it is visible and which match the typing defined using typing.
    After its declaration, a field symbol is initial - that is, it does not reference a memory area. You have to assign a memory area to it (normally using the ASSIGN statement) before you can use it as an operand. Otherwise an exception will be triggered.
    Addition 1
    ... typing
    Effect
    You can use the addition typing to type the field symbol. The syntax of typing is described under Syntax of Typing. The typing specifies which memory areas can be assigned to the field symbol (see Checking the Typing) and in which operand positions it can be used.
    Note
    You can omit the addition typing outside of methods. In this case, the field symbol has the complete generic type any and is implicitly assigned the predefined constant space during the declaration.
    Addition 2
    ... STRUCTURE struc DEFAULT dobj
    Effect
    If you specify the addition STRUCTURE instead of typing for a field symbol, and struc is a local program structure (a data object, not a data type) or a flat structure from the ABAP Dictionary, this structure is cast for the field symbol <fs>. You have to specify a data object dobj that is initially assigned to the field symbol.
    The field symbol copies the technical attributes of structure struc as if it were completely typed. When you assign a data object using the addition DEFAULT, or later using ASSIGN, its complete data type is not checked in non- Unicode programs. Instead, the system merely checks whether it has at least the length of the structure and its alignment.
    In Unicode programs, we differentiate between structured and elementary data objects. For a structured data object dobj, its Unicode fragment view has to match the one of struc. In the case of an elementary data object, the object must be character-type and flat, and struc must be purely character-type. The same applies to assignments of data objects to field symbols typed using STRUCTURE when using the ASSIGN statement.
    Note
    Field symbols declared using the addition STRUCTURE are a mixture of typed field symbols and a utility for casting structured data types. You should use the additions TYPE or LIKE for the FIELD-SYMBOLS statement to type field symbols, while the addition CASTING of the ASSIGN statement is used for casting.
    Example
    The first example shows the obsolete usage of the addition STRUCTURE.
    DATA wa1 TYPE c LENGTH 512.
    FIELD-SYMBOLS <scarr1> STRUCTURE scarr DEFAULT wa1.
    <scarr1>-carrid = '...'.
    The second example shows the replacement of STRUCTURE with the additions TYPE and CASTING.
    DATA wa2 TYPE c LENGTH 512.
    FIELD-SYMBOLS <scarr2> TYPE scarr.
    ASSIGN wa2 TO <scarr2> CASTING.
    <scarr2>-carrid = '...'.
    reward if useful
    regards,
    ANJI

  • Reg Text symbols in user exit

    Hi,
    I have created 3 new text elements in exit EXIT_SAPMM06E_013. I created them by logging into SAP by language DE this is because when i tried to change the text symbols in EN it was not allowing me to change. Now when I logon in language EN always its giving me information message "Untranslated texts from master language DE will also be displayed." So to avoid this information message do I have do any transaltion? Will there be any issue with this message when I transport this to another server?
    Thank You,
    Juli

    go to the test element list and follow the path GOTO->Translation .. translate the text elements from DE to EN .. this will stop ur error message. It's better you do that the transaltion before you move to the other server.
    Hope That Helps
    Anirban M.

  • How to get the value from select list to text box

    Hi,
    I have a select list i want to retrieve the value from select list to text box.
    How can i do that???
    Regards,
    Sakthi.

    Hi Sakthi,
    Yo can use the Java script for that..
    Dynamically the value will come into text box.
    Use the below script.
    <script type="text/javascript">
    function disFormItems()
    var lReturn = $v(here your select list name)
    alert(lReturn);
    document.getElementById(here your text box name).value =lReturn; }
    </script>Cheers,
    Shan

  • 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

  • How do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    how do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    Where is this example spreadsheet? Without seeing it I can only guess at what you are asking.
    To make a drop-down list (a pop-up menu in Numbers-speak), format the cell as a pop-up then edit and add to the list of items.
    If the example spreadsheet is pulling in a dollar value based on what car you chose in the pop-up, it is probably using LOOKUP or one of the other lookup functions, getting the information from another table (a lookup table). If, instead, these dollar values are what you are choosing in the pop-up, then you need to create a pop-up with these values in it.
    The Help menu includes a link to a page where you can download the Numbers Users Manual. It also has a link to the Formulas and Functions guide. Both are useful to new users.

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

Maybe you are looking for

  • Windows 7 will not allow me to recovery to factory settings

    MY  DVD's will not work to recover system setup.   F11 does not work at all .. I still have the recover partition on my hard drive... Should I reformt my hard drive and use my recovery disks to get back Vista ??? This is a good one... Can someone ple

  • Excel file upload in ODI 11g

    Hi, I am trying to define new data server in topology manager in order to upload excel file, and when i test the connection i got this error:The specified DSN contains an architecture mismatch between the Driver and Application. I did all the steps r

  • How to retrive multiple measures of a dimension in a single query

    I am working on Hyperion Essbase.My front end is Alphabox.I need to retrive multiple members of a same dimension at one one query.Suppose i have product as 5 products, and locations as 5 locations, if i need to pull the data for products P1,P2,P4 and

  • Safari gmail support gets worse every revision

    gmail is rapidly becoming the email program of choice for many people. i find it incredibly arrogant of the safari development team that existing issues are not only blatantly ignored, but the behaviour of the browser is actually getting worse with e

  • How 2 implement keyboard controls for 2 players simultaneusly in java game?

    I ' m making this fighting game . 2 players can fight at a time. I got my 2 characters on the screen at the same time. The 1st player should be controlled with Arrow keys and number key pad. The 2nd player should be controlled with Z for left C for R