Retrieve fieldtext with dynamic table.

Hy everyone ,
Is it possible to retrieve the long or medium text of a field label in data element using cl_abap_elemdescr or cl_abap_typedescr ?
Thank's a lot. !!

Hi,
Yes, you can use the following:
data lo_elem type ref to cl_abap_elemdescr.
data l_field type dfies.
parameters p_elem type rollname.
start-of-selection.
  lo_elem ?= cl_abap_elemdescr=>describe_by_name( p_elem ).
  l_field = lo_elem->get_ddic_field( ).
  write : / 'Field', p_elem, 'descriptions:',
          / 'Short: ', l_field-scrtext_s,
          / 'Medium: ', l_field-scrtext_m,
          / 'Long: ', l_field-scrtext_l,
          / 'Heading: ', l_field-reptext.
Regards,
Tanguy

Similar Messages

  • Itextsharp using livecycle form with dynamic table

    Hello all, after searching Google for the past two days and not able to find any relevant information, hence this post.
    Some background:
    1) Created a pdf form using Adobe Livecycle designer 9.
    2) It is a dynamic form with textboxes and a table configured to repeat rows dynamically.
    3) Testing form using xml data within designer works just fine.
    Requirement:
    Need to populate form dynamically using data from database.
    Solution:
    Found iTextSharp (free assembly) which assists with populating existing pdf form.
    Issue
    This assembly works without any issue when populating textfields (see sample code below). The problem I am facing is with the dynamic table where in I am not able to reference rows greater than 1. Since the pdf template contains a table with just one row referencing the first row using acrofield works.
    I was under impression since this is a dynamic table with repeat enabled, in asp.net if I referenced row2 onwards the table would grow automatically. Which I have come to realize is not going to be possible.
    So I am looking for ideas on how I can accomplish this. I wish this could have been a fixed row table then reference rows would have been easier. However in this situation the table has to be dynamic.
    Any ideas thoughts would be appreciated.
    Below is my sample code:
    PdfStamper ps = null;
    try {
    // read existing PDF document
    PdfReader r = new PdfReader(
    // optimize memory usage
    new RandomAccessFileOrArray(Request.MapPath("itext.pdf")), null
    ps = new PdfStamper(r, Response.OutputStream);
    // retrieve properties of PDF form w/AcroFields object
    AcroFields af = ps.AcroFields;
    // fill in PDF fields by parameter:
    // 1. field name
    // 2. text to insert
    af.SetField("txtCompany", "Company name");
    af.SetField("txtDateDepartLocation", "date depart location");
    af.SetField("txtDate","test date");
    af.SetField("txtServiceNumber", "Service number");
    af.SetField("Table2.Row1.Cell1", "1test");  this works
    //doesnt work!!!
    af.SetField("Table2.Row2.Cell1", "1test");
    af.SetField("Table2.Row3.Cell1", "1test");
    // make resultant PDF read-only for end-user
    ps.FormFlattening = true;
    // forget to close() PdfStamper, you end up with
    // a corrupted file!
    ps.Close();
    catch { }
    finally { if (ps != null) ps.Close(); }

    Hi FourEyes;
    Try using this.
    Select Col1, Col2, Col3
    into :P1_Field1, :P1_Field2, :P1_Field3
    from Your_Table
    Where (your conditions);

  • Problem with Dynamic Table Name

    Hello all,
    I am having trouble using a dynamic table name. I have the following code.....
    declare l_cur sys_refcursor;
    l_ID int;
    l_tableName varchar(30);
    BEGIN
    open l_cur for
    select hkc.ColumnID, mapping from &HKAPPDB_Schema_Name..doctablemapping ddm
    inner join &HKDB_Schema_Name..HKColumns hkc on hkc.doctablemappingid = ddm.id
    where ddm.id > 0;
    LOOP
         FETCH l_cur into l_ID, l_tableName;
         EXIT WHEN l_cur%notfound;
         -- update missing VerbID in DocumentDocMapping table
         UPDATE &HKAPPDB_Schema_Name..IndexedDocument
         SET VerbID = (SELECT t.VerbID
                             FROM (SELECT DocRef, VerbID, DateUpdated
                                  FROM &HKAPPDB_Schema_Name..l_tableName dd        - this is where the dynamic table name is used
                                  WHERE dd.VerbID is not NULL))
         WHERE HKColumnID = l_ID AND VerbID is NULL;
    END loop;
    end;
    /When I try to execute this i get an error
    ORA-00942: table or view does not exist
    What am I doing wrong?
    Regards,
    Toby

    redeye wrote:
    I only started about 6 weeks ago, with no tutorials and learning it on the fly; Same here.. only my introduction was to a 12 node Oracle OPS cluster all those years ago.. and required a whole new mind set after using SQL-Server extensively. But it was fun. Still is. :-)
    but thats what you get when a company throws you in at the deep end with a ridiculous time constraint to migrate a whole MSSQL DB.Migrating SQL-Server to Oracle is not a simple thing. A lot of best practices in SQL-Server are absolutely worse practices in Oracle - they are that different. Simple example is lock escalation - an issue in SQL-Server. In Oracle, the concept of a lock being escalated into a page lock simply does not exist.
    In terms of getting the migration done as quickly and painlessly as possible I try to reuse all the logic as it appears in the MSSQL code - in this case it was using dynamic table names. I do not doubt that i am probably shooting myself in the foot in the long run.....As long as you do not splatter too much blood on us here.. not a problem :D
    Seriously though - just keep in mind that what works in SQL-Server may not work as well (or even at all) in Oracle. So do not hesitate to refactor (from design to code to SQL) mercilessly when you think it is warranted.

  • WD4A Dynamic ALV Table with dynamic tables

    Hi all,
    first I want give you the information what I try to do.
    I have an another WD4A application for administrative use in which I can assign certain tablefields to a certain user. You can say it's something like a customizing application.
    In the next application (with my issues) I will display the tables for the user, but these tables are not the complete table.
    I have a node in my context of the component controller which is bound to my ALV. I add during the runtime attributes to my node.
    * .... coding ....declaration
    * get the node
      lr_node = wd_context->get_child_node( 'M_TABLE' ).
      lr_node_info ?= lr_node->get_node_info( ).
    * remove the attributes, if exists
      lr_node_info->remove_dynamic_attributes( ).
    * .... coding ....
    *   add attributes
        LOOP AT l_t_m_table INTO l_s_m_table.
          CLEAR ls_attribute.
    *     name of the attribute
          MOVE l_s_m_table-NAME TO ls_attribute-NAME.
    *     DDIC type of the attribute
          MOVE l_s_m_table-TYPE_NAME TO ls_attribute-TYPE_NAME.
    *     If the DDIC has a gen namespace like /B135/ replace the / with _
          REPLACE ALL OCCURRENCES OF '/' IN ls_attribute-NAME WITH '_'.
    *     add the attribute
          lr_node_info->add_attribute( EXPORTING
                                         attribute_info = ls_attribute ).
        ENDLOOP.
    This coding works fine I get the columns in my ALV. Then I tried to fill my ALV table with data from a database table.
    I created dynamicly an internal table with the following coding:
    *   Create dynamic table
        CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
          EXPORTING
            IT_FIELDCATALOG = l_t_FLDCAT
          IMPORTING
            EP_TABLE = l_t_NEW_M_TABLE.
    *   assign the table
        ASSIGN l_t_NEW_M_TABLE->* TO <M_TABLE>.
    *   structure of table
        CREATE DATA l_s_NEW_M_TABLE LIKE LINE OF <M_TABLE>.
        ASSIGN l_s_NEW_M_TABLE->* TO <l_s_m_table>.
    * get data from database
    SELECT * FROM (l_m_table) INTO CORRESPONDING FIELDS OF TABLE <M_table> WHERE OBJVERS = 'A'.
    With this coding I get the data from the database and only the required fields that means I have e.g. an itab with columns1, columns3, columns4 from the database.
    I also added e.g. these columns  (columns1, columns3, columns4 from the database) to the node as attribute. Now it should be possible to bind the table to the structure with this coding:
    lr_comp_usage_m = wd_this->wd_cpuse_usage_alv_M_table( ).
    *   create component if not active
        IF lr_comp_usage_m->has_active_component( ) IS INITIAL.
          lr_comp_usage_m->create_component( ).
        else.
    * set data if node exists
          l_ref_interfacecontroller = wd_this->wd_cpifc_usage_alv_M_table( ).
          l_ref_interfacecontroller->set_data( lr_node ).
        endif.
    *   bind table
        lr_node->bind_table( <M_TABLE> ).
    Now, I get an error, which is caused by the table binding.
    In ST22 I get:
    Short text
        Line types of an internal table and a work area not compatible.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_WDR_CONTEXT_NODE_VAL=======CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        The statement
           "INSERT wa INTO TABLE itab"
        requires the lines of the internal table "TABLE" and the
        work area " wa" to be compatible. Compatibility means
        equivalence in the context of ABAP/4 type checking.
        In this case, the condition is not satisfied because the internal table
        "TABLE" has the line type "u" and the length 28, but the work area " wa"
        has the type "C" and the length 2.
        (If the work area " wa" is the header line of the internal
        table "TABLE", the above inconsistency can arise if an internal
        table t with the line type T1 is passed to a subroutine (FORM or
        FUNCTION) as an actual parameter and the corresponding formal
        parameter p is declared in the subroutine by "TABLES p STRUCTURE T2".
        If then T1 and T2 are incompatible, the header line p
        has the type T2 (specifed by STRUCTURE), but the internal
        table p has the line type T1 (passed from the actual parameter)).
    Source Code Extract
    Line  SourceCde
        1 method if_wd_context_node~get_static_attributes_table .
        2
        3   field-symbols:
        4     <element> like line of me->collection,
        5     <static_attributes> type data,
        6     <table> type index table.
        7
        8 * check whether elements are supllied or not
        9   if me->elements_supplied = abap_false.
       10     me->supply_elements( ).
       11   endif.
       12
       13   clear table.
       14
       15   if me->table_ref is not initial.
       16     assign me->table_ref->* to <table>.
       17     table = <table>.
       18   else.
       19     loop at me->collection assigning <element> from from to to.
       20       assign <element>->static_attributes->* to <static_attributes>.
    error in line 21       insert <static_attributes> into table table.
       22     endloop.
       23   endif.
       24
       25 endmethod.
    Any suggestions? Is it allowed to use bind_table() with a field symbol?
    Another strange thing is that if I try the same with static itab and attributes during runtime it works, but only if the fields of the itab has the same name as the attributes, which means that I can not use itabs with fieldnames like /BI0/S_CUSTOMER and if I can not use them it's difficult to read data from database with SELECT * FROM ... INTO CORRESPONDING FIELDS OF TABLE itab.
    Thanks in advance for your suggestions!
    Best Regards,
    Marcel

    Hi Francois,
    I solve it with the RTTI and the method    
    lr_node_info = lr_node_info->add_new_child_node(
                          name = 'Dynamic_TABLE'
                          IS_MANDATORY = ABAP_false
                          IS_MULTIPLE = ABAP_true
                          STATIC_ELEMENT_RTTI = lr_struct_descr
                          IS_STATIC = ABAP_false
    I don't know why it doesn't work with adding attributes and binding the table after adding the attributes.
    Anyway thanks for your help.
    Best Regards,
    Marcel

  • Livecycle userform with dynamic table

    Hi Everyone,
    New to Livecycle Designer and was hoping this is possible - Can you have a PDF userform with a dynamic table below it?...
    Basically the user fills out a userform then clicks an ADD button - this populates a dynamic table below the userform then clears/resets the userform - as the records fill the table an EDIT button appears in the last column so that if the user makes an error with a record they could click the EDIT button, this would bring the record back into the userform fields so they could change the field(s) they made the error in then a SAVE button would replace the ADD button in this instance, clicking SAVE then changes the record and clears/resets the userform ready for more entries.
    At the bottom of the PDF there would be an EXPORT button which attaches the table as a csv or tab-delimited text file to an email message...
    If someone could point me in the right direction it would be appreciated - I have googled and searched the forums for an answer but they mostly relate to importing data into a dynamic table from a database or xml file... I was hoping to directly populate the table with the userform.
    I also have a PDF example which illustrates what I am trying to achieve... but seems you cannot attach to a post... I can email it if someone has a solution, but needs to see it visually.
    Cheers

    You don't know the names of your columns? hmm you do, because before you created dynamic table you had to create field catalog, so the structure and column names of newly (dynamically) created table will be the same like defined in the field catalog.
    The last loop also does not look good, in my opinion should be something like:
    LOOP AT lt_datatable +(my first table)+ ASSIGNING <ls_data4>.
        AT NEW pernr.
          APPEND initial line to <fs_1> assigning <fs_2>.
          <fs_2>-pernr = <ls_data4>-pernr.
        ENDAT.
        ASSIGN COMPONENT <ls_data4>-wage_type OF STRUCTURE <fs_2> TO <fs_5>.
        <fs_5> = <ls_data4>-amount.
    ENDLOOP.
    also keep in mind that number of calls of method cl_alv_table_create=>create_dynamic_table is limited to 36 (?) calls within one program session because it uses dynamic subroutine pool behind so you will have short dump if you will execute that 37 times.

  • Manipulate Layout on ALV Grid with dynamic table

    Dear all
    i'm generating a dynamic table depending of a date selection. That means that I show columns for weeks and the quantity of weeky migh change.
    Now the users wants to have a specific layout of the ALV grid with totals. When he saves the layout, only the weeks at this selection will show the next time he runs the programm with a larger selection.
    a) Is it possible to modify the layout during runtime by programming?
    b) Do you have any other ideas how to solve this problem?
    Thank you

    You don't know the names of your columns? hmm you do, because before you created dynamic table you had to create field catalog, so the structure and column names of newly (dynamically) created table will be the same like defined in the field catalog.
    The last loop also does not look good, in my opinion should be something like:
    LOOP AT lt_datatable +(my first table)+ ASSIGNING <ls_data4>.
        AT NEW pernr.
          APPEND initial line to <fs_1> assigning <fs_2>.
          <fs_2>-pernr = <ls_data4>-pernr.
        ENDAT.
        ASSIGN COMPONENT <ls_data4>-wage_type OF STRUCTURE <fs_2> TO <fs_5>.
        <fs_5> = <ls_data4>-amount.
    ENDLOOP.
    also keep in mind that number of calls of method cl_alv_table_create=>create_dynamic_table is limited to 36 (?) calls within one program session because it uses dynamic subroutine pool behind so you will have short dump if you will execute that 37 times.

  • SAP ME ADS Printing - Traveler with dynamic table

    Does any one have an example  traveler template that uses a dynamic table to display all the operations on the traveler? Ie one template that works for different routers.
    The problem we are having is due to the xml tags for each operation being different eg <operation0>, <operation1> etc which the dynamic table in Livecycle Designer doesn't seem to like.
    Thanks
    Kevin

    Hi Stuart,
    We are using ME15 SP03.
    We have already read that document cover to cover and we can print a traveler with SFC or Shop order header data etc. We can also print a fixed list of operations but what we want to do is have a single template that has a dynamic table that prints all the operations regardless of how many there are.
    Paragraph 6.11 of the document tells you that if you have multiple operations the binding should end with .Router_Step_ID0 , .Router_Step_ID1, Router_Step_ID2 etc etc
    This would mean that I would have to create a template for each different material that has a different number of router steps as you effectively hard code each step ID
    The first system I ever worked on (Visiprise 4.2) had the capability of using one template that automatically shrunk / expand based on the number of operations but I just cant see how to do it in LiveCycle Maybe I'm missing the obvious.
    Thanks
    Kevin
    PS. Great to see a fellow Scotsman on here

  • Function Modue with Dynamic Table as output parameter

    Hi experts,
    i have function (below) which reads "dynamically" data from table which is specify as input parameter, the data are "saved" in <ft>.
    How can i return <ft> as output parameter of function module (table) ?
    function
    import parameter  - > IC_TABLE
    source code
    data :   lt_OPTIONS   type standard table of RFC_DB_OPT,
             lt_fields    type standard table of rfc_db_fld,
             lt_data      type standard table of tab512,
             la_rfcdata   type tab512,
             la_rfcfields type rfc_db_fld,
             lr_dref      type ref to data.
    field-symbols: <ft>         type table.
    field-symbols: <structure>  type any.
    field-symbols: <field_to>   type any.
    field-symbols: <field_from> type any.
    CALL FUNCTION 'RFC_READ_TABLE'
      EXPORTING
        query_table                = IC_TABLE
      DELIMITER                  = ' '
      NO_DATA                    = ' '
      ROWSKIPS                   = 0
      ROWCOUNT                   = 0
      tables
        OPTIONS                    = lt_OPTIONS
        fields                     = lt_fields
        data                       = lt_data
    EXCEPTIONS
       TABLE_NOT_AVAILABLE        = 1
       TABLE_WITHOUT_DATA         = 2
       OPTION_NOT_VALID           = 3
       FIELD_NOT_VALID            = 4
       NOT_AUTHORIZED             = 5
       DATA_BUFFER_EXCEEDED       = 6
       OTHERS                     = 7.
      create data lr_dref type table of (ic_table).
      assign lr_dref->* to <ft>.
    Fill data from OLTP table into ct_table.
      assign local copy of initial line of <ft> to <structure>.
      loop at lt_data into la_rfcdata.
        loop at lt_fields into la_rfcfields.
          assign component sy-tabix of structure <structure> to <field_to>.
          if sy-subrc is initial.
            assign la_rfcdata+la_rfcfields-offset(la_rfcfields-length)
              to <field_from>.
            <field_to> = <field_from>.
          endif.
        endloop.
        append <structure> to <ft>.
      endloop.
    Thanks in advance
    Martin

    Hi Martin,
    parameters with generic types are not allowed. So TYPE ANY TABLE etc. will not work. As Alex alreads said, you could return a reference to your table.
    Your parameter should be typed like:
    re_table type ref to data.
    At the end of your function module get a reference of your table into your parameter:
    get reference of <ft> into re_table
    After the call of your function module you can now handle and work with your table as wished:
    * Declaration
    data: re_table type ref to data.
    field-symbols: <my_table> type standard table.
    * Assign reference to fieldsymbol
    assign re_table->* to <my_table>
    if sy-subrc NE 0.
    " Error: Could not assign reference
    endif.
    Best regards,
    Fabian

  • Issue with dynamic table which has RichCommandLink and RichSparkChart

    I’m running into an issue when I create a dynamic table with columns of type RichCommandLink and RichSparkChart.
    If my table has both of these types of columns, then the RichCommandLink column behaves like a NOP, meaning clicking on it does not cause the link to take effect and does not navigate to the designated page.
    If I remove the RichSparkChart column, then the RichCommandLink column behaves properly.
    Is there something I’m supposed to be aware of when creating these types of columns? Is there a known problem with RichSparkChart column, like some exception thrown which halts proper rendering of the rest of the columns?
    Thanks,
    Ania.

    Turned out that the problem was with ids which I was dynamically assigning. There was an overlap meaning two columns/elements got the same id. Not the manifestation or behavior I would expect as a result, but once I fixed that, having these two columns side by side works well.

  • Page breaks with dynamic table

    Hi there!
    We've built a LiveCycle process in which we get data from an XML file and generate the PDF in LC Output.
    However, although the items are being correctly generated in the table, only the first 20 or so records are being included, generatin just one page.
    There are around 200 records in the XML - we just can't find how to set up the XDP in LC Designer so that we get a multipages PDF containing all 200 records instead of just 20.
    We are using a dynamic table with the following set up:
    Pagination: Following Previous
    In Binding tab, we checked Repeat Row for Each Data Item
    This table was inserted using the Insert Table option in main menu, using the wizard and it's inserted in a subform.
    All these setup options were applied to the table row element.
    Any ideas?
    Thank you!
    Marcos

    Hi Niall,
    Thank you for the input!
    However, there's something else we're missing here.
    After I tried your suggestion there were actually page breaks... we got 4 pages. However, only one of them had any content (the dynamic table with 30 records) and the other three were blank. The XML that populates the table includes 200 records.
    We're pulling our hair off here, trying to do this for days!...
    BR,
    Marcos

  • Problem using DELETE ADJACENT DUPLICATES with dynamic table

    Hello All,
       In my program i have to delete duplicate records from dynamic table.
    I tried using  DELETE ADJACENT DUPLICATES FROM <DYN_TABLE> COMPARING <fieldname1> <fieldname2> but it fails in syntax check, then i tried like below:
      DATA string type string.
      string = '<fieldname1> <fieldname2>.........'.
      DELETE ADJACENT DUPLICATES FROM <DYN_TABLE> COMPARING (string).
    It also got failed at runtime.
    Please suggest how can i achieve this....
    Regards
    Munish Garg

    Hi,
    this code is worked truly.
    You can try this.
    Regards.
    DATA itab LIKE STANDARD TABLE OF mard.
    SELECT * FROM mard INTO TABLE itab UP TO 100 ROWS.
    * You define max number of the field that you need
    data : cmp01  TYPE string,
    cmp02 TYPE string,
    cmp03 TYPE string,
    cmp04 TYPE string,
    cmp05 TYPE string.
    * You fill the fields that you need, others is clear.
    cmp01  = 'MATNR'.
    cmp02 = 'WERKS'.
    CLEAR : cmp03,cmp04,cmp05.
    SORT itab BY (cmp01) (cmp02) (cmp03) (cmp04) (cmp05).
    DELETE ADJACENT DUPLICATES FROM itab COMPARING (cmp01) (cmp02) (cmp03)
    (cmp04) (cmp05).

  • Create Structure with dynamical Table-Type

    Hi experts,
    is there a possibility, to create a structure via SE11 and including there a field which referes to a dynamic table-type.
    So that I can append to this structure-field all different table-types?
    for example: ones I append MARA[] and ones AFKO[]
    Thx for help

    Hi Christian,
    There's not predefined generic type to do that, but you could create your own field type (deep structure) which would be able to keep table lines after transposition (90 degree flip) where in example it would have four columns: Table type, row id(index) field name, value. That way you could store ANY table row you need... This will not come cheap and will involve some work of course.
    You may want have a look at standard ABAP services RRTS and RTTI (see classes and structures used in attributes an parameters) - these are two services for handling data types and metadata related operations during runtime. You may want to use them for flipping your table entries to the tabular form and so on. You may also find some ideas there on how to compose your own data type for your purposes.
    Good luck!
    Marcin

  • INNER join with dynamic table name ?

    Hi,
    I have a problem with this statement.
    DATA: g_dso_bic_dofr TYPE tabname.
    SELECT t1~/bic/ziparomr
           t2~/bic/zifremom
    INTO (wa_rater_paromr-/bic/ziparomr,
           wa_rater_paromr-/bic/zifremom)
    *   FROM /bic/azd0bfr5100 AS t1     "equivalent to the dynamic statement below
    " this is the  problem
        FROM (g_dso_bic_dofr )AS t1
        INNER JOIN /bic/pzifremom AS t2
          ON t1~/bic/ziparomr = t2~/bic/ziparomr
    " --- to here
        WHERE t1~/bic/zikom     =  v_kommune
    The compile check doesnt work when i use the variable table name.
    I get
    "Wrong expression "INNER" in FROM clause. WHERE condition."
    Can anyone help me.
    Br Rasmus.

    " this is the  problem
    *    FROM (g_dso_bic_dofr )AS t1   "<<--- check spaces in here
        FROM (g_dso_bic_dofr) AS t1    "<<--- and here
        INNER JOIN /bic/pzifremom AS t2
          ON t1~/bic/ziparomr = t2~/bic/ziparomr
    " --- to here
    I think there's the problem, the space behind the parenthesis.
    Regards

  • Call transformation with dynamic table

    hi
    i uploaded the xml file from application server into a internal table
    data : begin of t_x occurs 0,
    d type string,
    end of t_x.
      OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT .
      DO.
        READ DATASET file INTO t_x-d.
        IF sy-subrc <> 0.
          EXIT.
        ELSE.
        append t_x.
        clear t_x.
        ENDIF.
      ENDDO.
      CLOSE DATASET filename.
    and after i want to call call transformation but i can't put a structure ref to a table like this
    CALL TRANSFORMATION ('ID')
    SOURCE XML xmlupl
    RESULT tab = t001[]
    because my file xml are not always the same structure.
    So is it possible to have a call transformation wit dynamic structure
    thanks for your help
    serge

    Hello Serge
    If you know what kind of structure you require for your itab you can dynamically create the appropriate itab:
    DATA:
      gd_struc    TYPE tabname,
      gdo_data    TYPE REF TO DATA.
    FIELD-SYMBOLS:
      <gt_itab>   TYPE TABLE.
    * Somehow find the required structure name
      gd_struc = 'KNA1'.  " for example
    * Create data reference with required type (dynamically)
      CREATE DATA gdo_dref TYPE (gd_struc).
    * Assign the data reference to your field symbol
      ASSIGN gdo_data->* TO <gd_itab>.
    * NOTE: <gd_itab> has the line structure of 'KNA1'.
    Regards
       Uwe

  • Error with dynamic table

    Hi, I'm creating some Attributes on my context:
    IWDAttributeInfo a=wdContext.getNodeInfo().getChild("DataTable").addAttribute("XAxis","ddic:com.sap.dictionary.string");
    for(int i = 0; i < (wdContext.nodeEt_Coordinates().size()-i1); i+)
    {IWDAttributeInfo b=wdContext.getNodeInfo().getChild("DataTable").addAttribute("val"+Integer.toString(i),"java.lang.Boolean");}
    Next, I "filling" them with some values:     
    for(int u = 0; u < wdContext.nodeEt_Coordinates().size(); u++)
    {IWDNodeElement ne =  wdContext.getChildNode("DataTable", 0).createElement();
    ne.setAttributeValue("XAxis", wdContext.nodeEt_Coordinates().getEt_CoordinatesElementAt(u).getCoord_Short());
    for(int i = 0; i < wdContext.nodeEt_Coordinates().size(); i++)
    {ne.setAttributeValue("val"+Integer.toString(i), Boolean.FALSE);}     
    wdContext.getChildNode("DataTable", 0).addElement(ne);
    Out of this Node DataTable I´creating a table.
    I get an error message, when im checking two chekboxes from two different lines in the resulting table. The message is the following:
    " com.sap.tc.webdynpro.progmodel.context.ContextException: DataAttributeInfo(MainView.DataTable.val2): does not have a simple type "
    Can anyone help?
    Message was edited by: Alexander Reinke

    Hi,
       Replace this line
    {IWDAttributeInfo b=wdContext.getNodeInfo().getChild("DataTable").addAttribute("val"+Integer.toString(i),"java.lang.Boolean");}
    with
    {IWDAttributeInfo b=wdContext.getNodeInfo().getChild("DataTable").addAttribute("val"+Integer.toString(i),"ddic:com.sap.dictionary.boolean");}
    or
    {IWDAttributeInfo b=wdContext.getNodeInfo().getChild("DataTable").addAttribute("val"+Integer.toString(i),"java:java.lang.Boolean");}
    Regards,
    Satyajit.
    Message was edited by: Satyajit Chakraborty

Maybe you are looking for

  • Sun Cluster 3.0 Veritas Volume manager add a new file system

    Hello people recently in need add a new file system to my Solaris cluster installation ( with oracle 8), but I have some dudes about the correct procedure for this. I put the procedure: Ok: /etc/vx/bin/vxdisksetup -i c4t1d1 /usr/sbin/vxdg -g space-dg

  • Mac & Photoshop Function Keys and/or volume

    Question for Mac & Photoshop users.. I want to use the Function keys for PS actions.. however I really love the volume buttons for music. If I turn on Use all Function Keys as F1, F2 etc, I can use the Fn keys for PS, but the volume options go away..

  • Looking for customer database template

    A buddy of mine just got an ipad and since I have an ipad as well he wants me to create a simple customer list for his small business, since he does everything with pencil and paper.  There is a template called Checklist and when you click on new for

  • "Servie Battery" Macbook Pro Retina Display

    Hi All, My Mid 2012 Macbook Pro Retina display is giving me a notification saying my battery needs to be serviced. It recently has been acting up a little, where sometimes it doesn't wake from sleep and i have to restart the system to get it to turn

  • Unable to import photos from Canon 7d

    Using Lightroom 4 [814577] on a Mac (with 16Gb memory) Mac OS Lion 10.7 When I plug in my Canon 7d and click import, I see a preview of my photos. However, when I then try to import, I get the message "no photos were found to import" I have the lates