Description of field from data element in table control

hello people !!! I need help !!
I’m using a table control in my module pool program. I create this table through wizard, taking the fields from an internal table. This internal table was defined like this:
Table Control ; posting items
DATA: t_postitems  TYPE stucture_fd OCCURS 0 WITH HEADER LINE.
Where  <b>stucture_fd</b> is strucuture with the fields.
The problem that I have is that the titles of the fields does not take their description from the data element.
How I create this table control from the internal table and that takes the description from the data element? It is very important this, because this development will be used in different languages.
From already I am thanking for any answer.
Thank so much.
Best regards, Esther.

Gracias, es mas facil para mi en espanol.
tables: tab_prb.
types: begin of <b>ti</b>.
           include structure <b>tab_prb</b>.
types: end of <b>ti</b>.
data: <b>ti_b</b>kpf type table of ti,
         <b>wa_bkpf</b> type ti.
Explicacion:
tab_prb, es una tabla transparent que contiene la estructura <b>struct_fd</b> que tiene los campos mas un flag para la seleccion de fila (flag).
Defini esta tabla transparente, para que los campos tomen su decripcion desde los elementos de datos.
Si creo el TB directo de la tabla tab_prb, no me permite seleccionar el campo flag como campo de seleccion, cuya funcion es marcar linea simple.
Si yo hago la definicion anterior en mi programa, cuando creo el TB, va todo bien, hasta <b>ti_bkpf</b> que seria mi tabla interna, pero cuando me pide el work area, le ingreso <b>wa_bkpf</b> me indica que no esta definido en mi programa o ne es una estrucutura.
Espero haber aclarado un poco mi respuesta.
Muchas gracias !!!
Esther.-

Similar Messages

  • Is it possible to assign user-defined data elements to table control?

    Hi SDN,
    Is it possible to assign a user defined data element other than basic data types in table control column.

    Hi Suresh,
    In Screen layout,In element list tab,i am not able to give the user-defined data types other than basic data types?please tell me how to give other data types

  • EEWB : in CRM 4.0 adding  field with data element = table type

    Hi,
    Do you have experience in CRM4.0 to add a customer field with data element that is a table type ?

    Marie,
    I don't believe it is possible in CRM 4.0.  Another drawback of the EEWB is that you can't add currency or quantity fields using the EEWB tool.
    Good Luck,
    Stephen

  • Releation between fields and data element

    Dear Abapers,
    What is the relation between the fields and data element,  while cretion of fields system will ask the data element, can we have one data element to more than one fields.  Can you plese explain me.
    Regards

    Hi,
    data elements are structures defined in SAP Dictionary. 
    Fields you meen in a table? or in programs? in both places you create in reference to SAP Dictionary. 
    data element char20.  TEXT20
    Programs  data:  l_text type char20.
    Tables  ... field   ZTEXT  type CHAR20...TEXT20

  • Move Field symbol data to Internal table

    Dear All,
                     Please suggest how to move field symbol data to internal table. The requirement is I have dynamic data in Field symbol which to move to table parameter of a function module.
    Thanks in Advance
    Rams.

    Dear All,
                    In need to pass tabular data  i.e. multiple entries from field symbol to the table parameter of the custom function module.
    Field symbol is declared as below:
    FIELD-SYMBOLS: <FS_EXCEL_TAB> TYPE STANDARD TABLE,
                                 <FS_TABLE_HEADER> .
    DATA WA_PD LIKE PRICE_DOWNLOAD.
    APPEND <FS_TABLE_HEADER> TO <FS_EXCEL_TAB>.
    CLEAR <FS_TABLE_HEADER>.
      WA_PD-VKORG = <FS_EXCEL_TAB>-VKORG.u201D Problem while using this statement
      APPEND WA_PD TO PRICE_DOWNLOAD.
       CLEAR WA_PD.
    Field symbol <FS_EXCEL_TAB>  is populated like this.
    VKORG | KUNNR_SH | KUNNR_SP |
    0015      | 102105       | 102105       |
    Now I need to move this data to table in tables parameter of custom fucntion module.
    Thanks in advance,
    Rams

  • Reading selected data in the table control

    Hi Friends,
    I have final data in my table control now the user wants to select only few records from the displayed data, for that I kept a check box for selection, But my question is I am unable to read the selected data.
    Actually user requirement is he has to update only the selected data from the displayed data in the table control.
    Can any one tell me how to read the selected records after displaying in the table control.
    Thanx in advance,
    Line

    Hi
    If your table control has a check box, your internal table should have a field for it. Its value will be X if the checkbox is setted else it'll be SPACE.
    So in the PAI u should read only the records where that flag is X:
    LOOP AT ITAB WHERE MARK = 'X'.
    ENDLOOP.
    Max

  • Selecting data in the table control

    Hi Friends,
    I have final data in my table control now the user wants to select only few records from the displayed data, for that I kept a check box for selection, But my question is I am unable to read the selected data.
    Actually user requirement is he has to update only the selected data from the displayed data in the table control.
    Can any one tell me how to read the selected records after displaying in the table control.
    Thanx in advance,
    Line

    Hello Line,
    As gopi has suggested do the following..
    for the table control properties u have an option called W/SelColumn.
    Give in some name (ROW_SEL)to that and also include a field CHK in the internal which is being passed to the table control.
    and in the PAI of the table control module wirte like this...
    Then in your code..
    PROCESS BEFORE OUTPUT.
    PBO FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'
    MODULE TABCONTROL_CHANGE_TC_ATTR.
    MODULE TABCONTROL_CHANGE_COL_ATTR.
    LOOP AT lt_final
    INTO lw_final
    WITH CONTROL tabcontrol
    CURSOR tabcontrol-current_line.
    MODULE tabcontrol_get_lines.
    MODULE TABCONTROL_CHANGE_FIELD_ATTR
    ENDLOOP.
    MODULE status_0101.
    PROCESS AFTER INPUT.
    PAI FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'
    LOOP AT lt_final.
    MODULE read_data.
    MODULE tabcontrol_user_command.
    ENDLOOP.
    MODULE TABCONTROL_CHANGE_TC_ATTR.
    MODULE TABCONTROL_CHANGE_COL_ATTR.
    MODULE user_command_0101.
    MODULE tabcontrol_user_command input.
    if lt_final-chek = 'X'.
    *put your logic here something like
    move corresponding lt_final to gt_final.
    *now you have selcted rows data in gt_final.
    endif.
    endmodule.
    Regards

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

  • Field label from data element (language dependent)

    I have 2 development systems and am struggling to get different language from a standard sap data element.
    On Dev system 1 the program is:
       parameters:  l_file1  like filename-fileintern.
    In the selection texts of the program I select "Dictionary ref." and the text is automatically populated with the value "Logical File" i.e. it picks it up from the data element FILEINTERN of the parameter.
    Now I log out and log back in in German and in this field I have "logische Datei" i.e. as expected this is the value in the data element of FILEINTERN.
    When I logon in English and execute the program, the selection screen has "Logical File", and when I login in German and execute the program the selection screen has "logische Datei".
    All well and good at this point and everything works as expected.
    On Dev system 2 I have exactly the same program i.e. the same parameter, and same selection text settings.
    However when I logon in English and execute the program I get "Logical File", but when I log on in German and execute it displays "L_FILE1" i.e. the name of the parameter and not the data element text value?
    Any help greatly appreciated.

    Hi Edgar and Sree,
    Yes I have checked the data element in both systems and it is identical. In fact in the 2nd system when I log in in German and display the selection text it is correctly in German, only when I execute the program I don't get the value on the screen!
    I realise I can simply uncheck this "dictionary ref." and translate the value myself but i want to understand why this doesn't work.... argh.

  • How to change data element in table?

    Hello all:
          I just need to change data element for a field in some Z table. I know I can do it through SE11 but I just want to make sure if there is anything I should be aware of? Are there any other steps I should perform apart from making changes through SE11? Any information you could provide would be great.
    Thanks.
    Mithun

    Hi Mithun,
    Yes, you can change the table using SE11. After saving, check for errors and activate. Using Menu, Utilities
    -> click on Database Utility and then click on 'activate and adjust database'.
    Hope this helps.
    Thanks,
    Srinivasa
    Message was edited by:
            Srinivasa Bhanuprasad Moningi

  • Update fields from Adobe Form to Table

    Hello,
    I want to integrate Adobe Form into Webdynpro ABAP Application in which I want to have 2 fields which need to be updated to a DB Table.
    For this first I created an Interface in Transaction SFP , added 2 import parameters of type <Table Type>-<FieldName>. Then I created a Webdynpro Component created a new I Interactive Form UI Element and binded the Context of the Form to the Interface.
    Then I added 2 fields to the form from Data View . Everything is fine but when I run the Webdynpro Application the fields are not available for Input.i.e. They are in the ReadOnly Mode.
    The 'enabled' property of the Interactive Form is checked.
    Please help.
    Any help would be highly appreciated.
    Thanks.
    Edited by: SAPEPDeveloper on Feb 7, 2011 11:45 PM

    Hi,
    The process explained is ok, but I can explain you a better way.
    1) Create the webDynpro Component first.
    2) Create the context nodes as per the requirement.
    3) From the 'integration' panel drag and drop the Interactive form UI element into the view.
    4) Bind dataSource to root context node.
    5) Check enabled property true.
    6) Give a template source name (ZName).
    7) On double clicking the template source, system will prompt you to enter the interface name. Map context node to the interface.
    8) Interface gets created automatically and the lifecycle designer gets opened.
    9) Goto the properties tab and give layout type as 'ZCI Layout'
    10) Drag and drop required fields from the data view to the layout designer.
    11) Insert webdynpro script from the Utilities
    12) Edit -> Form Properties -> Defaults -> XDP Preview Format should be dynamic
    13) Drag and drop 'Submit Button' from Library palette -> Webdynpro native controls
    On clicking the submit button at runtime you will get the control in the webdynpro submit event.
    Above all these you have to check with your basis team, that the 'usage credentials' have been applied while configuring the ADS. Go to SE38 and run the program 'FP_TEST_IA_01' and check whether it is giving an error message or not.
    Hope this Helps.
    Thanks & Regards,
    Sanoosh

  • Creation of field without data element

    Hi all,
    i want to create a field SLNO without data element, i.e. by assigning direct data type NUMC.
    by doing so while activating it is giving the below message.
    "The table must be adjusted by unloading and reloading
    it in the database. This function has a long runtime and should
    not be performed while the table is being used for production."
    "If you want to start the adjustment nevertheless,
    select a processing type and choose 'Adjust'.
    Otherwise choose 'Terminate'."
    pls let me know which is better i.e. by assingning direct data type, or else can i create a data element with type as 'NUMC'.
    Regards,
    venkat

    hi venkat,
    when creating the db table in se 11 ,if u want to use predefined data type ie char,numc,date etc ... With in se14,in fields tab, click predefined type button which is placed in the first row along with cut ,delete icons.
    When u click predefinedtype button, the field named data type will be enabled and its there ready for editing.Choose the data type u need and data length etc.
    If u r creating the db for the first time, there is no need for , adjusting the db table using se14.
    But if u r trying to edit a db ,that is already been created , then make neccessary changes in the db and go to se14. There give ur edited db name, and click "activate and adjust database " button...Ensure that "save data " option button is selected.
    Note:
    If u r making any structural  changes in already existing db ,then use se14 to adjust ,save and activate the db.
    Hope the content is usefull
    please change the problem  status if its resolved .Thank you.
    thanks
    rajeshwari
    Edited by: Rajeshwari padmanaban on Jan 16, 2009 11:24 AM

  • How to generate .txt file from data in internal table

    Hi I am using the program below to load .txt file into SAP table.
    I am moving the records from a .txt file into internal table final and then into ZOUT_CCFOBS table.
    How do I load records from internal table final back to another .txt file with the same layout? Pls advice.
    REPORT  ZOUP_LOAD_CCF_OBS.
    TABLES: ZOUT_CCFOBS.
    TYPES: BEGIN OF tline, "structure to store a line of each row
        line(1000) TYPE c,
    END OF tline.
    TYPES: BEGIN OF i_split, "structure to store split record of each row
          t_ZOTFACIL(100)    TYPE c,
          t_ZOTCCF(8)    TYPE c,
          t_ZOTOBSCAT(100)    TYPE c,
    END OF i_split.
    DATA: itab TYPE TABLE OF tline WITH HEADER LINE.
    DATA: idat TYPE TABLE OF i_split WITH HEADER LINE.
    DATA: final TYPE STANDARD TABLE OF ZOUT_CCFOBS WITH HEADER LINE.
    DATA: file_str TYPE string.
    DATA: c_fnh_mask TYPE dxfields-filemask VALUE '.',
          c_search_dir TYPE dxfields-longpath.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
    PARAMETERS p_file LIKE rlgrap-filename.                "file location
    SELECTION-SCREEN END OF BLOCK a1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM f4_dxfilename USING p_file.
    START-OF-SELECTION.
    Download data from application server
      PERFORM download_data.
      file_str = p_file.
      LOOP AT itab.
        CLEAR idat.
    this will split the line at every delimeter into single field
        SPLIT itab-line AT ',' INTO idat-t_ZOTFACIL
        idat-t_ZOTCCF
        idat-t_ZOTOBSCAT.
        APPEND idat.
      ENDLOOP.
    copying the internal table into final table which compatible with table tcurr
      LOOP AT idat.
        final-ZOTFACIL = idat-t_ZOTFACIL.
        final-ZOTCCF = idat-t_ZOTCCF.
        final-ZOTOBSCAT = idat-t_ZOTOBSCAT.
        APPEND final.
      ENDLOOP.
      LOOP AT final.
        MODIFY ZOUT_CCFOBS FROM final.
        IF sy-subrc EQ 0.
          MESSAGE S001(ZCURR).
        ELSE.
          MESSAGE A000(ZCURR).
        ENDIF.
      ENDLOOP.
    FORM f4_dxfilename USING p_file.
    addition TAICK 15/07/2008.
    *maintain application server default search path.
      IF sy-sysid = 'BWP'.
        c_search_dir = '//rdmsbw/prd/data/output/all'.
      ELSEIF sy-sysid = 'BWQ'.
        c_search_dir = '//rdmsbw/uat/data/output/all'.
      ELSEIF sy-sysid = 'BWD'.
        IF sy-mandt = '900'.
          c_search_dir = '//rdmsbw/sit/data/output/all'.
        ELSE.
          c_search_dir = '//rdmsbw/dev/data/output/all'.
        ENDIF.
      ENDIF.
      DATA: wa_file LIKE dxfields-longpath.
      CLEAR: wa_file.
      CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
        EXPORTING
          i_location_flag = 'A'
          i_server        = ' '
          i_path          = c_search_dir
          filemask        = c_fnh_mask
          fileoperation   = 'R'
        IMPORTING
          o_path          = wa_file
        EXCEPTIONS
          rfc_error       = 1
          error_with_gui  = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        p_file = wa_file.
      ENDIF.
    addition end TAICK 15/07/2008.
    ENDFORM. " f4_dxfilename
    FORM download_data .
      OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      DO.
        IF sy-subrc <> 0.
          exit.
        ENDIF.
        READ DATASET p_file INTO itab.
        if sy-subrc = 0.
          APPEND itab.
        clear itab.
        endif.
      ENDDO.
      CLOSE DATASET p_file.
      delete itab index 1. "remove column header
    ENDFORM.                    " download_data
    Edited by: RebekahMBB on Feb 20, 2012 12:56 PM

    Hi I am using this piece of code to download my internal table into an .xls file on my pc.
    FORM Z_CONVERT_EXCEL .
      "This part of code to add column name in the downloaded file.
      data : begin of int_head occurs 0,
      Filed1(20) type c,                     " Header Data
      end of int_head.
      int_head-Filed1 = 'ZOTOUS'.
      APPEND int_head.
      CLEAR int_head.
      int_head-Filed1 = 'ZOTOUS'.
      APPEND int_head.
      CLEAR int_head.
      int_head-Filed1 = 'ZOTOGCUR'.
      APPEND int_head.
      CLEAR int_head.
    Select ZOTOUS ZOTSYORGU ZOTOGCUR from ZOUT_ORG_CURR into CORRESPONDING FIELDS OF TABLE itab.
      v_filetype = '.xls'. "I just manipulate the file name using XLS file type.
      v_filename = 'C:\Documents and Settings\00088592\Desktop\OUs automation\development'.
      CONCATENATE v_filename v_filetype INTO lv_filename.
      CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
            filename         = lv_filename
            filetype         = 'ASC'
          APPEND           = 'X'
            write_field_separator = 'X'
          CONFIRM_OVERWRITE = 'X'
       TABLES
            data_tab         = itab
            FIELDNAMES       = int_head
       EXCEPTIONS
            file_open_error  = 1
            file_write_error = 2
            OTHERS           = 3.
      IF sy-subrc <> 0.
      ENDIF.
    ENDFORM.                    "Z_CONVERT_EXCEL
    As you can see the code specifies the header row separately and appends it in int_head.
    What if I have 76 fields or more? I cant be specifying each like that.
    Is there any other way to do this? To move the 76 field headers into int_head?
    Pls help.
    Thanks!

  • Declaring field from the internally declared table into dynamic table

    Hi Gurus,
    I need your help on one of my requirements.
    Due to dynamic nature of ALV report, I have used a dynamic internal table to pass it to function module.
    In dynamic tables, I am trying to have one column form the internal table which is being calculated by substracting 2 fields( i,e. diff = wa_stk-labst - wa_stk-omeng). Is it possible to include that field (diff) which is coming from the internally declared table(i_out) into the dynamic table decleration. Please assist.
    Thanks in Advance

    Hi,
    Suppose your dynamic table is of type table.
    When you pass the data from internal table I_OUT to your dynamic table it will get the same structure as of your internally declared table IT_OUT which is calculated by subtracting 2 fields.
    What you can do is create one more field in I_OUT which holds the value of the subtracted amount then pass the table IT_OUT to your dynamic table.
    Thanks
    Bhanu

  • To fetch selective fields from DATABASETABLE into Internal TABLE

    Hi Friends,
    I have declared an internal table with fields for e.g. A , B , C , D.
    This does not have any records as of now.
    I have to fetch data from a DATABASE TABLE with fields A , B , X , Y , Z having records .
    I only need records for fields A B fron DB table.Can any one pls tell how can I do that with performance issues in mind as lots of records are there.
    I had written a query where:
    SELECT A B from dbtab
                        into CORRESPONDING FIELDS of table it_table.
    It_table i had defined with only two fields A B.
    Is this correct?
    Please tell wats the way to do it as I am new to ABAP.
    THANKS in ADVANCE..

    Hi.....
    What mentioned in all above answers is very helpful for ur requirement...
    and...
       Here some Steps to increase the performence of your programs...
    >Use Select Single when only one row is expected
    >Use Select Where rather than Selectu2026Check
    >Use Select with aggregate functions (SUM, MAX, MINu2026)
    >Use a View instead of nested Selects
    >Use Select column specific instead of select * for few fields
    >Use Selectu2026Into Table rather than Select...Move Corru2026Apend
    >Use Join extension with Select if possible
    >Use special operators (CO, CA, CS) rather than code your own
    >Use Delete Adjacent Duplicates rather than manual processing
    >Specify key fields for Readu2026Binary Search
    >Use Loop At Where rather than Loop Atu2026Check
    >Copy Internal Tables with TAB_DEST() = TAB_SRC()
    >Specify the sort key as restrictively as possible
    >Use Append To, Insert Into, Collect Into rather than Move
    >Compare tables with If Tab1() = Tab2()u2026
    >Use Delete ITAB Whereu2026 instead of Loop At ITAB Whereu2026Delete..
    >Use Case statements instead of If-constructions
    >Use Call Functions wisely, Performs use less memory
    >Use While instead of Do Exit
    >Use Type I for Indices
    >Keep Occurs clause realistic or use 0
    >Use COMMIT WORK as appropriate to free the Data Base and preserve work
    >
    >Avoid:
    >Using Shift inside a While-loop
    >Leaving unneeded declarations in your program
    >Using Move-corresponding for just a few fields
    >Excessive nested includes within function calls
    >Using DB field names if the value will be changed
    >Using Occurs clause if only the header is needed
    Thanks,
    Naveen.I

Maybe you are looking for

  • In the MMC, the dispatcher stays yellow, with the status

    Hi all, In My Solution Manager system, In the MMC, the dispatcher stays yellow, with the status 'Dialog Queue Info unavailable'. However, the system continues to run. Can you please help on this. Thanks suman

  • End of contract

    Hi I'm on a 18 month Infinity and calls package and a 12 month BT Vision contract. Will I be contacted before the end of each contract to discuss renewal or will I be auto-contracted for another period if i don't get in touch with BT? Can I keep BT V

  • Distorted text when rendering

    Hi everyone, I'm totally new here and I've been trying to teach myself Premiere for a while, but have come across a snag that I can't seem to find the answer to. I'm creating a tutorial for work and I have video screen captures that are 1440X868 AVI

  • Can't get rid of creative mediasource 5 in control pa

    Not only that, creative software update, and creative system information, are still there, I can't uninstall it from control panel, it refuses to uninstall. Why is it still there and how do I get rid of them?

  • My Macbook Pro mid 2012 is randomly restarted (10.8.2)

    Hi all, i got a mid 2012 macbook pro 2 months ago, and this happens to me since i upgrade 10.8.2, it has been restarted by itself many times, and i don't know why, i just use web browser, not any heavy software, additionally this morning it was resta