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>

Similar Messages

  • Use of text elements in wirte_form function module.

    Hi guru's,
    Could any one tell me  what is the use of text elements in write_form functional module SAP SCRIPTS. As per my knowledge text elements are used for multi language purpose is there any other advantage other than that.
    Thanks in advance.
    Vardhan.

    Hello.
    A text element is a block in script that can be written several times in your document. You can put fixed texts, variables, include texts, images, etc etc
    When you see WRITE_FORM, element 'X', you know that everything that is inside element /E X of your script is writen. It's very usefful to organize your script, and it eases to construct a very complex script.
    It's also usefull to translations in SE63.
    Best regards.
    Valter Oliveira.
    Edited by: Valter Oliveira on May 27, 2008 10:05 AM

  • Use of Text elements

    Hi all,
    I have created a window and giving text elements in that window.Now i m Adding a lin of type /E in change editor to use text element.i needed it it to specify text elements in SPRO transaction.
    So for that i want to add text elements in Form in SPRO transaction.
    Also want to know that is it possible to use condiitons in Text elements?
    Suggess me it's Urgent for implement.
    <b><REMOVED BY MODERATOR></b>
    Thanks
    Sanket sethi
    Message was edited by:
            Alvaro Tejada Galindo

    Hi
    Text elements in SAPscript are the individual text components of a form. In the different windows, you can define text elements with different attributes. For printout, the print program accesses them. Text elements can also contain variables (symbols) and SAPscript control statements.
    In simple words, Text Elements are the only way to transfer the data from report program to FORM using WRITE _FORM FM.
    Check this link(Very Helpful) :
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db38b494511d182b70000e829fbfe/frameset.htm
    You can define the text elements in sap script to group the texts that you want to display...like a condition..
    Ex..
    /E TEXT1
    P1 This is a first text element..
    Then use WRITE_FORM function module to call the text element
    CALL FUNCTION 'WRITE_FORM'
    ELEMENT = 'TEXT1'.
    You can also call the write_form function module within a loop..
    Check this link(Very Helpful) :
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db38b494511d182b70000e829fbfe/frameset.htm

  • Can i  use Two DSO 's in Function module

    hi experts,
    Can i  use Two DSO 's in Function module  .That FM is used for Layout
    I actually  want to  fill one DSO Refering the Data in Another DSO.
    Regard
    Naresh.

    In the first way the DSO's are usually called shared libraries or DSO libraries and named libfoo.so or libfoo.so.1.2. They reside in a system directory (usually /usr/lib) and the link to the executable program is established at build-time by specifying -lfoo to the linker command. In the second way the DSO's are usually called shared objects or DSO files and can be named with an arbitrary extension

  • Why we should use Macros if we have function Module

    Why we should use Macros if we have function Module and what is the Advantage of Macros than function Module
    Moderator Message: Interview-type questions are not allowed.
    Edited by: kishan P on Oct 7, 2010 2:22 PM

    Put it this way... if you have blueprints for a car you wouldn't want to produce only one car, would you? You would want to produce as many as needed. In another example, you don't want to be able to use only 1 window in Windows. Each window has common features but have different values. That's the purpose of non-static entities
    However, there are instances that you want to have only one value for something. That's when you use static entities.
    Get it? =)

  • IPCC 8.0: Using Unity Text to Speech functionality

    I wonder if you can use the Text to Speech functionality native to Unity to read a txt file containing string from a script IPCC.
    The IPCC native TTS only read certain variables but can not read variables String.
    Thanks
    Leer fonéticamente
    Diccionario - Ver diccionario detallado

    I'm not going to say it's not possible, I'm sure with lots of time, resources, and duct tape you could come up with something.  However, Unity is not really a peripheral (IVR, PBX, etc) so you're not going to be able to easily utilize it's funcationality within UCCE.
    david

  • Pls explain me the use and purpose of following Function modules

    pls explain me the use and purpose of following Function modules
    1. G_MAX_PERIOD_AND_OFFSET_GET
    2.  DEQUEUE_E_TABLE
    3. FI_COMPANY_CODE_CHECK
    4. G_PERIOD_GET
    5. alv_display_function
    6. G_SET_GET_ID_FROM_NAME
    thanks ,
    phyrose

    1. <b>G_MAX_PERIOD_AND_OFFSET_GET</b>
    For given No. of period & periods it gives the offset
    <b>2. DEQUEUE_E_TABLE</b>
    To Unlock the table records
    <b>3. FI_COMPANY_CODE_CHECK</b>
    To validate Company Code
    <b>
    4. G_PERIOD_GET</b>
    Returns no. of Posting period & Special period for give company code, posting date & ledger
    <b>5. alv_display_function</b> -
    No such FM exists
    <b>
    6. G_SET_GET_ID_FROM_NAME -</b> Use this module to derive the internal set Id from the name that appears on the user interface, for example, in order then to import the set (see the function group documentation).
    The function module first determines a candidate list of sets based on the set name and the class that might have been specified that could match the set name. The class can also be masked (e.g. 000+ for all FI-SL sets, including dynamic sets).

  • How to use a Logical Database in Function Module.

    Hi Experts,
    I want to use a logical database in a Function Module to fetch data from a standard SAP table into a Internal table for certain filter conditions.
    How can I get get this done????
    I called LDB_PROCESS FM in my FM, but I could not figure out how to store the extract in my IT table since we cant use GET in FM.
    Please provide me a sample code if possible.
    Thanks in Advance,
    Alex.

    Hi,
    i had an example program like this ,in this i want to get the data using pnp logical database with 5 fields in an interface program.
    data: begin of it_final occurs 0,
            pernr like pa0002-pernr,
            vorna like pa0002-vorna,
            nachn like pa0002-nachn,
           usrid like pa0105-usrid,
           usrid_long like pa0105-usrid_long,
           end of it_final.
    get pernr.
      clear : p0000,p0002,p0105.
      rp-provide-from-last p0000 space p_date p_date.
      if p0000-stat2 = '3'.
        v_pernr = pnppernr-low.
      else.
        reject.
      endif.
    *---Get employee pernr, First name ,Last name into final table
      rp-provide-from-last p0002 space p_date p_date.
      if pnp-sw-found = '1'.
       it_final-pernr = p0002-pernr.
       it_final-vorna = p0002-vorna.
       it_final-nachn = p0002-nachn.
      else.
    *---Error message if not infotype 0002 maintained
      T_ERROR-PERNR   = pnppernr-low.
      CONCATENATE TEXT-EMI '0002'
      INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
      APPEND T_ERROR.
      CLEAR T_ERROR.
      endif.
    **--Get SYSTEM USERNAME to final table
      rp-provide-from-last p0105 0001 p_date p_date.
      if pnp-sw-found = '1'.
        it_final-usrid = p0105-usrid.
      else.
    *---Error message if not SYSTEM USERNAME maintained
        T_ERROR-PERNR   = pnppernr-low.
        CONCATENATE TEXT-003 '0105'
        INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
        APPEND T_ERROR.
        CLEAR T_ERROR.
      endif.
    **--Get Email ID to final table
      rp-provide-from-last p0105 0010 p_date p_date.
      if pnp-sw-found = '1'.
        it_final-usrid_long = p0105-usrid_long.
      else.
    *---Error message if not Email ID maintained
        T_ERROR-PERNR   = pnppernr-low.
        CONCATENATE TEXT-004 '0105'
        INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
        APPEND T_ERROR.
        CLEAR T_ERROR.
      endif.
       append it_final.
        clear it_final.
    reward points if useful,
    venkat.

  • How to use select-options in the function module of import parameter ?

    Hi ...
       I have created a BAPI and tested in SWO1 tcode , by giving the single value for an company code ( BUKRS ) , it executed properly .
    Same thing is working after implementing in a program .
    so now it is working for fetching a single company code details .
    My requirement is : I want to use select-options in program as well as in function module IN IMPORT PARAMETER.
    Program :
    REPORT  ZTEST.
    TABLES : T001 , ZBAPI_STR .
    TYPES : BEGIN OF TY_ITEM  .
              INCLUDE STRUCTURE ZBAPI_STR .
    TYPES : END OF TY_ITEM .
    DATA :WA_ITEM TYPE TY_ITEM ,
          ITEM LIKE STANDARD TABLE OF WA_ITEM INITIAL SIZE 0 .
    PARAMETER : BUKRS TYPE ZBAPI_STR-BUKRS.
    call function 'ZBAPI_FMT001'
      exporting
        bukrs         =  BUKRS
    IMPORTING
      RETURN        =
      tables
        itemtab       = ITEM
    IF ITEM IS NOT INITIAL .
      LOOP AT ITEM INTO WA_ITEM .
        WRITE : / WA_ITEM-BUKRS , WA_ITEM-BUTXT , WA_ITEM-ORT01 , WA_ITEM-LAND1 .
      ENDLOOP.
    ENDIF.
    FUNCTION MODULE :
    FUNCTION ZBAPI_FMT001.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(BUKRS) TYPE  EFG_TAB_RANGES
    *"  EXPORTING
    *"     VALUE(RETURN) TYPE  BAPIRET2
    *"  TABLES
    *"      ITEMTAB STRUCTURE  ZBAPI_STR
    SELECT BUKRS BUTXT ORT01 LAND1 FROM T001 INTO TABLE ITEMTAB WHERE BUKRS = BUKRS .
    ENDFUNCTION.
    Regards
    Deepa.

    I have given a similiar example which i did
    Declare a
    Table type:Z_TT_PONUM             
    Short text  :  Select options  PO Number
    in SE11 tcode with row type eg: Z_ST_PONUM
    create a structure (this will be the row type)
    Structure          Z_ST_PONUM            
    Short text         Select Options Field PO number
    Compenent  Compent type
    SIGN       BAPISIGN      Inclusion/exclusion criterion SIGN for range tables
    OPTION       BAPIOPTION      Selection operator OPTION for range tables
    LOW       EBELN                      Purchasing Document Number
    HIGH       EBELN                      Purchasing Document Number
    In the function module import
    give as
    I_PO_NUM     TYPE     Z_TT_PONUM     opt  pass value Select options  PO Number
    Hope this is exactly what you want to know.
    So you create a structure simliar to mine but the low an high whould be your component
    then a table type  and then include that in the BAPI.
    Then pass your select-option value to this BAPI when you call this BAPI in the program

  • Use of structure ICL_SFC_DI in function module ICL_CLAIM_DI

    Hi.
    We are using function module ICL_CLAIM_DI to create claims and we want to add data to some SFC fields, the function module has a structure called ICL_SFC_DI for creation of the fields.
    In some of our SFC fields the answer is declared as a "Free Text" field, but i cant seem to find a field in the ICL_SFC_DI structure to fill in the free text?
    Regards Liselotte

    Hi,
    I'm more into functional side of claims management, however will attempt to answer this question.
    The Free text of an SFC and a normal options, both share the same field :
    Answer / BSFC_ANSWER / ICL_SFC_DI
    Value Range Table: TBSFC002
    Hope this helps.
    Regards,
    Anish

  • What is the use of text elements in scripts

    pls tell me what is text element?can we use this in any window or only in main window ?
    pls explain briefly with some coading .and onbe more question what is the lement that is used in our abap editor

    <b><a href="http://help.sap.com/saphelp_47x200/helpdata/EN/images/locate.gif">Text Elements of a Form</a></b>
    SAPscript calls the individual text components of a form text elements. To achieve good structuring and readability, you assign a fixed name to each text element in the form. The print program then uses these names to access the elements. This name applies also for translated versions of a text element, while the contents of the text elements depend on the language.
    Text elements are related to a window, that is, a print program can call for each window only those text elements that exist in this window.  They are used in main and other windows.
    The variables used within '&...&' are replaced by the system at output time
    /E    <element name>
    UL    &fieldnam& text text
    Named element are written when driver program use
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT = 'BOOKING'
            TYPE = 'BODY'
            WINDOW = 'MAIN'
    Unnamed element are written once in MAIN windows, and each time in other windos.
    Regards

  • Change Texts with EDIT_TEXT function module

    Hi,
    somebody knows how to change an additional text in a sales order using the EDIT_TEXT function module ?
    Thxs
    Antonio.
    THANKS!!****
    Hi guys,
    very thanks for your help!!
    They have been very useful and have solved my problem.
    thxs again,
    Antonio.
    Message was edited by: Antonio Castro

    here you have to GIVE the below fields
    1) text name : <doc number> (in our case)
    2)Language : EN
    3) text id : A01
    4) text Object : EKKO
    note down these fields & values.
    in your program you can use either READ_TEXT & SAVE_TEXT for this purpose.
    READ_TEXT : IF any header text available,it will be downloaded to your program in TDLINES. you have to pass above parameters for this func module.
    save_Text : first you populate all values in LINES * fill all HEADER details with the above mentioned values & then call this Func module.
    this will create header text
    X_HEADER-TDOBJECT = 'VBBK'.
      X_HEADER-TDNAME   = <YOUR PO NO>.
      X_HEADER-TDID     = 'ZMAN'.
      X_HEADER-TDSPRAS  = 'E'.
    you read the existing text by using READ_TEXT function module & the text comes to IT_TDLINES internal table. modify/add new entries to that table & finally call the function module SAVE_TEXT to save the text.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          CLIENT                = SY-MANDT
          HEADER                = X_HEADER
          INSERT                = ' '
          SAVEMODE_DIRECT       = 'X'
          OWNER_SPECIFIED       = ' '
          LOCAL_CAT             = ' '
        IMPORTING
          FUNCTION              =
          NEWHEADER             =
        TABLES
          LINES                 = IT_TLINES
         EXCEPTIONS
           ID                    = 1
           LANGUAGE              = 2
           NAME                  = 3
           OBJECT                = 4
           OTHERS                = 5
      IF SY-SUBRC <> 0.
      ENDIF.
    IT_TLINES : is the internal table with the Text.
    hope this gives you clear picture .
    regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • WBS element hirearchy function module

    Hi All
    Is there any function module in R3 that accepts WBS element as input and gives its hirearchy? I would like to know the function module name that accepts WBS elements in the internal table as input and gives all associated hirearchies as output in the internal table.
    Please advise
    Thanks
    Vennela

    Hi,
    we can see WBS Hierarch from cj20n tcode.
    Can you please give us an idea about what you are trying to do with WBS, extracting into Bi or other use in R/3 itself.
    Regards,
    Vamsi.

  • Use of Logical Database in function module

    Hello Experts,
    Is there a way of using logical database and Get enent inside a function module.
    I am trying to create a RFC for HR module and need this badly. Any help would be highly appriciated.
    Thanks,
    Gregory fernando

    This fm will work fine with all LDBs including PNP
    Have you checked the fm documentation ?

  • Error 101 using fp_job_open, fp_job_close in a function module

    I have earlier made a program generating a pdf used for printing. Used fp_job_open -> Call function xxx -> fp_job_close. This program works fine.
    Now I want to make a function module to generate this pdf for higher reusability, but when I call my generated FM its return sy-subrc = 1 and sy-msgno = 101. As far as I have investigate this error means "Job already open".
    I tried to comment out the call to the fp_job_open and fp_job_close, but then I have no possibility to mark the ls_outputparams-getpdf = 'X' and ls_outputparams-nodialog = 'X'.
    Any ideas anyone?

    I am not sure if this is the right forum for this question. Maybe: ABAP Developmnet -> Form printing [Output Management; is more proper?

Maybe you are looking for

  • Power Consumption Revisited

    I was reading an article on tomshardware.com the other day in which they described a process by which they were able to measure the power consumption of various video cards using a simple device that plugs into a standard wall socket and then display

  • Open xml relationship target is NULL when inserting chart into a mapped rich text content control in Word 2013

    Hi, I have a word document with a rich text content control that is mapped to a CustomXml. You can download an example here http://1drv.ms/1raxoUr I have looked into the specification ISO/IEC 29500-1:2012 and i understand that the attribute Target fo

  • Creating a book page from a file created in Illustrator

    I created a file in Illustrator and want to make it a page in a book made in InDesign. Is there a certain format that I can export the Illustrator file as to open and edit it in InDesign? Thanks!

  • Apple  trailers won't play

    i downloaded Divx Player and now i cant't watch trailers on the apple trailers page. i get sound but no video. can anyone help?

  • RAW support in iPhoto 8/Leopard

    Does anyone know if Apple added support for any new digital cameras in iPhoto 8/Leopard? I'm planning on buying an Olympus E-410 soon and would like to know if iPhoto will understand and display the RAW files it produces. Does anyone have experience