Gurus : READ dynamic table in an OO context ?

OK, so the following form of the READ statement is obsolete :
READ TABLE itab WITH KEY dobj
It used to be I could pass a left-aligned character field as dobj. This was perfect for a dynamic scenario, because a type-c field containing key contents could be calculated at runtime easily.
Currently, In my OO-code I do the following:
1. Pass the name of a transparent table to a method
2. Create a dynamic internal table of this transparent table
3. Fill the internal table with some data
Later on, I wish to READ this internal table to find a specific entry based on the key of the referenced transparent table.  This would be possible using the form :
READ itab FROM wa.
However, this does not work because the table key is not defined when the cl_alv_table_create=>create_dynamic_table method is used, and hence non-key fields are considered during the read.
Does anyone have a suggestion ?
Regards,
Roger

Actually, I am thinking of writing a blog article on the code anyway.  When I do, I'll post a link here.
Essentially, you can use CL_ABAP_TABLEDESCR=>Create( )  to create the dynamic internal table, in this method call you have the opportunity to specify a table of key fields.  The resulting internal table respects the table key during a READ statement of the form:
READ TABLE itab FROM wa
Where "wa" is a structure defined like a line of the itab.
Regards,
Roger
Regards,
Roger

Similar Messages

  • Reading dynamic table in a interactive form (web dynpro)

    Hi all,
    I created a WebDynpro application which contains an Interactive Form. This form contains a dynamic table with input fields. New rows can be added manually using a button.
    Now I have the following problem: How can I read all the rows of the table in my view after input? The input should be written into an itab.
    Thanks a lot for your suggestions and your help!
    Regards
    Anna

    Hi Anna,
    Try the solution given in this link:
    [Read Dynamic Table|Re: Data in dynamic table not pass to webdynpro java;
    Hope this helps,
    Amit

  • Reading Dynamic Table Values in interactive form (web Dynpro ABAP)

    Hi All,
    I have created a Web Dynpro ABAP application which contains an Interactive Form, That Adobe Interactive Form contains Dynamic table (New rows can be added manually and deleted using a button).
    I am not able to read the Dynamic table values in Web Dynpro u201COn Submitu201D.
    In the Adobe form I have web Dynpro native button (I am using ZCI), while clicking the native button I need to read the dynamic table values.
    How can I resolve this problem.
    Thanks and Regards,
    Boopathi M

    that means, when u add the table instance at runtime, you will also have to add an element to the node that is bound to the table.
    probably addNew() mathos may be useful to you.
    it appends a new record to the record set.
    xfa.sourceSet.dataConnectionName.addNew()
    also when on the exit event of the table field, do the following:
    var i = xfa.parent.index
    $record.rootnodename.tablenodename.data<i>.fieldname = $.rawValue
    xfa.host.messageBox($record.rootnodename.tablenodename.data<i>.fieldname)

  • Xfa.host.gotoURL() in Adobe Reader / Dynamic Tables with AcroForms?

    Hi All,
    I have a dynamic table in my LifeCycle form. Each table row contains a button that links to an external PDF file (using xfa.host.gotoURL). The links work fine in Acrobat 8 Pro, so far, so good... But when clicking the buttons in Reader 8, nothing happens. No error message or security warning, nothing...
    I searched the web and some forums for this problem and by reading between the lines of some posts I came to guess that my LifeCycle form will not work in Adobe Reader unless I purchase the respective LifeCycle Extensions license... :-/
    What exactly are my options now? Can I get the buttons to work in Adobe Reader somehow (using JS) without having to purchase the Reader Extensions? Or can I somehow recreate the dynamic table of the LifeCycle form using AcroForms in Acrobat 8 Pro to avoid the problem? If so, how do I add such a table using Acrobat's form tools...?
    Thanks for your help,
    Marcus

    Normal http://... URLs do indeed work, but relative URLs pointing to local files do not work with the Adobe Reader on my machine. I thought this might be due to a security restriction that can only be overcome by using the Reader Extensions...?
    Is there any other way of linking to other PDFs on the local machine than the gotoURL method? I also tried launchApp(), but it didn't work either.
    I currently use this statement to link to PDFs in a subfolder:
    xfa.host.gotoURL("TrainingGuides/"
    + docName + ".pdf", 1);

  • Dynamic Tables: TableCellEditor depending on Context node value

    Dear community,
    I'm creating a dynamic table containing all the neccessary fields to display my context node in Java code but I have one requirement that I can not resolve by myself:
    Depending on the value of a cell the TableCellEditor should be of type IWDTextView or LinkToURL. So if the context node value is e.g. the String "abc" I want to display a LinkToUrl containing a Target - such as http://www.abc.com - depending on the value, if the context node value is "def" I want to do nothing but display the value in a TextView.
    As I am creating the dynamic table in advance and binding my Context node to it later, I don't know how to change the TableCellEditor at that point of time.
    Right now I have the choice to either display all cells of the column as LinkToUrl TableCellEditor or display all cells as TextView - the dynamic table generation itself is no problem for me.
    Does anyone have an idea on how to do that? Maybe it is not possible in WDJ right now?
    regards,
    Christian

    Hi Christian
    Try this:
    IWDTable theTable=(IWDTable)view.createElement(IWDTable.class,"table");
    IWD TableColumn aColumn=(IWDTableColumn)view.createElement(IWDTableColumn.class,"col");
    if(str.equal("abc"))
    IWDTextView aField=(IWDTextView)view.createElement(IWDTextView.class,"TextView");
    aField.bindText(str);
    aColumn.setTableCellEditor(aField);
    else if(str.equal("def"))
    IWDLinkToURL aField=(IWDLinkToURL)view.createElement(IWDLinkToURL.class,"LinkToURL");
    aField.bindtarget("http://www."str".com");
    aColumn.setTableCellEditor(aField);
    theTable.addColumn(aColumn);
    Best regards,
    Sangeeta

  • Reading dynamic table column based on user selection

    Hi there,
    I am having a problem of reading and manipulating the data stored in a standard SAP table. The following example simulates the table and what i am trying to do:
    Table: Storing sales data for sales person
    SALES_PERSON    REGION   YEAR   MTH_S1  MTH_S2  MTH_S3 MTH_S4...
    Richard  S               NORTH    2007     100          200         300        400
    John K                    SOUTH    2007      50           100         100        20
    Brad P                    NORTH    2007     300          100         100        50
    User have have the following selection option:
    1. Month.
    The program will calculate the sales based on the individual month selected
    Example, if user select Month = 3, then program take only MTH_S3 column value
    So total sales = 300100100=500
    2. Month range
    The program will calculate the sales based on the month range selected
    Example, if user select Month 2 to 4, then program take MTH 2 to MTH_S4 columns value
    So total sales = 400 (for MTH_S2) + 500 (for MTH_S3) + 470 (for MTH_S4) = 1370
    How should i write the logic or code for this requirement?
    Hope someone can help.
    Thanks,
    Pang HK

    Try something like this
    TABLES:
    t247.
    SELECT-OPTIONS:
      s_month FOR t247-mnr NO-EXTENSION.
    DATA:
      BEGIN OF fs_data,
        person(30),
        area(10),
        year(4),
        mon1 TYPE kbetr,
        mon2 TYPE kbetr,
        mon3 TYPE kbetr,
        mon4 TYPE kbetr,
        mon5 TYPE kbetr,
      END OF fs_data,
      t_data LIKE STANDARD TABLE OF fs_data,
      w_no_months TYPE i,
      w_kbetr TYPE kbetr,
      w_total TYPE kbetr.
      LOOP AT t_data INTO fs_data.
        CLEAR w_kbetr.
        DO 5 TIMES VARYING w_kbetr FROM fs_data-mon1
                                                          NEXT fs_data-mon2.
        IF sy-index IN s_month.
          w_total = w_total + w_kbetr.
        ENDIF.
        ENDDO.
      ENDLOOP.
    change the value 5, according to the no.of months in ur internal table

  • Dynamic Table name in Inner Join in  4.6c

    data: tab1(10) type c value 'MARA',
            tab2(10) type c value 'MAKT'.
    data: dbtab1(10) type c,
             dbtab2(10) type c .
    dbtab1 = tab1. 
    dbtab2 = tab2. 
    DATA: BEGIN OF itab occurs 0,
               matnr TYPE mara-matnr,
               maktx type makt-maktx,
    END OF itab.
    DATA: column_syntax TYPE string,
                dbtab_syntax TYPE string.
    PARAMETERS: p_matnr TYPE mara-matnr.
    dbtab_syntax = '( (dbtab1) AS t1 '
    &' INNER JOIN (dbtab2) AS t4 ON t1MATNR = t4MATNR )'.
    SELECT  matnr maktx
    FROM (dbtab_syntax)
    INTO TABLE itab  WHERE t4~matnr   = p_matnr.
    Got the following error:
    "A table name, specified in an SQL command, is unknown"
    It seems not able to read dynamic table name in dbtab_syntax.
    thanks
    anya
    Moderation Message: Duplicate Post.
    Edited by: kishan P on Nov 29, 2010 11:17 AM

    Hi,
    Check this link.
    [http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/frameset.htm]
    [Re: accessing dynamic internal table's fields??;
    hope it'll help u.
    Regards,
    Sneha.
    Edited by: sneha kumari on Jun 18, 2009 1:57 PM

  • Reading colour table form a 24bit Bmp....

    Im trying to load and display a 24bit bmp using IMAQ, but it only show a
    gray scale picture and I cant get it to load the colour table. IMAQ load
    file is set to load the colour table, and I wierd the coulour table to IMAQ
    windraw.
    The colour tabel cluster is empty, why?
    Regards Reine

    Hi Anna,
    Try the solution given in this link:
    [Read Dynamic Table|Re: Data in dynamic table not pass to webdynpro java;
    Hope this helps,
    Amit

  • Dynamic table data isn't transfered to the context, with webdynpro for java

    Hi,
    I'm using LifeCycle designer 7.1 and Adobe reader 7.0.5.
    I'm trying to make a dynamic table in a PDF form, that will be related to a table in the context.
    I've designed the context like it says here: Dynamic Table -  same data repeating in all rows
    I made a dynamic table and related the cells on the row to the context, by dragging the variables from the DataView into them.
    The table is related to TableList, the row to TableWrapper[], and the cells are related like this: TableData[].ItemName
    And there's a button which adds a row to the table.
    And for some reason, that's not working; When hitting the Submit to SAP button, it doesn't appear as though the data was transferred to the WebDynpro context.
    Can anyone help me with it please..?
    By the way - I tried using the SAP standard subform controls, the 'Insert Remove Move' control.
    When trying it through the PDF preview, it doesn't work - whatever I click displays an error message, and when it runs from the browser - It automatically searches for an update for Adove Reader (I use 7.0.5).
    Is it supposed to work only with version 8 of the Adobe Reader?

    Well, I reinstalled ACF, and now the Submit button works, and the Insert Remove Move buttons work as well.
    But the table context still doesn't work.
    I had put some values in the context, in DoInit, and they appeared in the table in the form, but when I changed them in the form it didn't affect the context at all.
    There's a simple attribute value related to a text field, which IS affected when changed in the form, and the Submit button is clicked. Only the table doesn't work.
    How can I make it work?
    Thanks,
    Udi Dekel

  • Dynamic table data not transfered to context WD4ABAP

    Hello Guys,
    Currently I have a urgent problem with Adobe Forms and WD4Abap. We are using AdobeReader 8.1.1 und Designer 7.1. Me problem is:
    1) I have an interactive form with dynamic table and simple fields...
    2) Data within textfields can be updated, created and deleted
    3) Data which is initially transfered to TABLES can be changed!!!
    4) BUT, if I add or delete a table row, this is NOT sent back to the WebDynpro context
    I am using the buttons out of the WebDynpro Navtiv Library. Furthermore, if I save the PDF on my Harddisk and start in manually (offline) add, change or delete data, the data is updated by checking it with the export data function within Adobe reader (Document->Form->Export Data)
    Is anybody able to help me, my ideas are on the end...
    Best
    Carsten

    Hi Carsten,
    Thanks again for your quick response.
    I tried using the code you supplied (changing the appopriate fieldnames to suit my form) but unfortunately I am still not able to access the added rows from my WD context. 
    Could you please clarify a couple of things for me?
    1.  In the following line, is "button_1a_+" the name of your button that adds new rows?
    > Carsten Sallaba wrote:
    >
    >$record.BEHAVIOR.PARAMETER.value = "button_1a_+";
    2. I presume that the following line in the code snippet should trigger the submit event on the WD, however this doesn't seem to be working for me, even after creating an action for the onSubmit event in the WD.  Do you have any further info on the changes that need to be made on the WD side?
    > Carsten Sallaba wrote:
    >
    > // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051128130428.257427.256785 - SubmitToSAP.xfo
    > ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    > // END OF DO NOT MODIFY
    Kind regards,
    Tammie

  • Dynamic table data by adding or delting not transfered to context

    Hello Guys,
    Currently I have a urgent problem with Adobe Forms and WD4Abap. We are using AdobeReader 8.1.1 und Designer 7.1. Me problem is:
    1) I have an interactive form with dynamic table and simple fields...
    2) Data within textfields can be updated, created and deleted
    3) Data which is initially transfered to TABLES can be changed!!!
    4) BUT, if I add or delete a table row, this is NOT sent back to the WebDynpro context
    I am using the buttons out of the WebDynpro Nativ Library. Furthermore, if I save the PDF on my Harddisk and start in manually (offline) add, change or delete data, the data is updated by checking it with the export data function within Adobe reader (Document->Form->Export Data)
    Do I have to implement something special my application,lika a refresh etc.??!?!
    Is anybody able to help me, my ideas are on the end...
    Best
    Carsten

    Hi
    There is seperate forum for Adobe Interactive forms, you can expect more quicker response if you post in that forum.
    SAP Interactive Forms by Adobe
    Abhi

  • Dynamic Table data cannot be Read.

    Hello,
           I have an Adobe Interactive form and I am trying to read the data from the Dynamic Table I have in the Form. The Problem is when I try to read the data using the below code, the data which is entered by user data cannot be read for some reason.
    navigate from <CONTEXT> to <ADR_DATA> via lead selection
      lo_nd_adr_data = wd_context->get_child_node( name = wd_this->wdctx_adr_data ).
    navigate from <ADR_DATA> to <PREV_EMPLOYMENT> via lead selection
      lo_nd_prev_employment = lo_nd_adr_data->get_child_node( name = wd_this->wdctx_prev_employment ).
    get element via lead selection
      lo_el_prev_employment = lo_nd_prev_employment->get_element(  ).
    get all declared attributes
      "lo_el_prev_employment->get_static_attributes_table(
      lo_nd_prev_employment->get_static_attributes_table(
       IMPORTING
         table = form_data-prev_employment ).
    I have:-
    1. Checked the Binding on Adobe Form
    2. Checked the Context for the same.
    3. Checked the Cardinality of the Nodes.
    Please let me know in case i am missing something.
    Regards,
    Shishir.P

    Hello,
         I have tried other method as well but was unsucessful, the procedure is below:-
    1. Get PDF content of online form by reading the context.
    2. Convert this data to XML
          l_fp = cl_fp=>get_reference( ).
          l_pdf = l_fp->create_pdf_object( ).
          l_pdf->set_document( pdfdata = pdf_data ).
          l_pdf->set_task_extractdata( ).
          l_pdf->execute( ).
          l_pdf->get_data( IMPORTING formdata = l_xstring ).
          CLASS cl_ixml DEFINITION LOAD.
          DATA: g_ixml TYPE REF TO if_ixml,
                streamfactory TYPE REF TO if_ixml_stream_factory,
                istream        TYPE REF TO if_ixml_istream,
                document TYPE REF TO if_ixml_document,
                parser TYPE REF TO if_ixml_parser.
          g_ixml = cl_ixml=>create( ).
          streamfactory = g_ixml->create_stream_factory( ).
    wrap the table containing the file into a stream
          istream = streamfactory->create_istream_xstring( l_xstring ).
          document = g_ixml->create_document( ).
          parser = g_ixml->create_parser( stream_factory = streamfactory
                                          istream        = istream
                                          document       = document ).
          parser->parse( ).
    3. Read the data from the XML. (I was able to extract other data on the form but not the one in the table. The data entered in the table row in the interactive form is not getting converted into XML or not being extracted in PDF at all).
          form_data = get_adr_from_xml( document ).
    The Code Wizard is an old one and does not support table operations as the new code wizard. Please let me know in case you have any other method of resolving this issue.
    Please let me know your work around, I am in desparate need for a solution.
    Regards,
    Shishir.P
    Edited by: Shishir Paltanwale on Apr 21, 2010 8:16 PM

  • Bind Dynamic Table To a Context Node

    Hello,
    I created an internal dynamic Table. I want to show this table in an ALV-Table. So I want to bind it to a context node.
    I create the context node attributes by this:
    lr_node_info ?= lo_nd_template_exp->get_node_info( ).
    *Type of table type and context type have to be the same
    LOOP AT lt_plchar INTO ls_plchar.
      clear lv_text.
      lv_text = ls_plchar-plchar.
      TRANSLATE lv_text TO UPPER CASE.
      ls_fieldcatalog-fieldname = lv_text.
      ls_fieldcatalog-inttype  = 'C'.
      ls_fieldcatalog-intlen   = '10'.
      APPEND ls_fieldcatalog TO lt_fieldcatalog.
      ls_attribute-name = lv_text.
      ls_attribute-type_name = 'CHAR10'.
      lr_node_info->add_attribute( EXPORTING attribute_info = ls_attribute ).
    ENDLOOP.
    So I create a fieldcatalog and the attributes at once.
    Then I generate the table with  this:
    CALL METHOD cl_alv_table_create=>create_dynamic_table
           EXPORTING
             it_fieldcatalog = lt_fieldcatalog
           IMPORTING
             ep_table = <fs_data>
           EXCEPTIONS
             generate_subpool_dir_full = 1
             OTHERS = 2  .
      IF sy-subrc <> 0.
      ENDIF.
    * So  now points to our dynamic internal table.
      ASSIGN <fs_data>->* TO <fs_1>.
    * Next step is to create a work area for our dynamic internal table.
      CREATE DATA new_line LIKE LINE OF <fs_1>.
    * A field-symbol to access that work area
      ASSIGN new_line->*  TO <new_line>.
      Data: copy_table type ref to data.
      field-symbols: <copy_table> type standard table.
      create data copy_table like table of <new_line>.
      assign copy_table->* to <copy_table>.
    ok, nice. when i now bind the table to  <copy_table> to lo_nd_template_exp it all works fine. But i also want to but the data into the table.
    This also works. When I debug, I can see the table filled with the values. But then there's always this error:
    Invalid operand type for the MOVE-CORRESPONDING statement.
    Ok, I have read, that the types may be  not fit. But I don't know why and how i can solve it.
    Do you have any ideas?

    Hi,
    I've the same problem: I must create all attribute of my node at run-time and then create alv.
    I use the method:
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
    DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
    Pass context node to ALV
      lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
      lo_interfacecontroller->set_data( node_lenght ).  " node_lenght is my dynamic node
    But I receive this message error:
    Invalid operand type for the MOVE-CORRESPONDING statement.
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_BS_SERVICE_MNGR_TABLE=CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    What can I do??? My node doesn't static attribute....
    Thank,
    Federica.

  • Read a csv file, fill a dynamic table and insert into a standard table

    Hi everybody,
    I have a problem here and I need your help:
    I have to read a csv file and insert the data of it into a standard table.
    1 - On the parameter scrreen I have to indicate the standard table and the csv file.
    2 - I need to create a dynamic table. The same type of the one I choose at parameter screen.
    3 - Then I need to read the csv and put the data into this dynamic table.
    4 - Later I need to insert the data from the dynamic table into the standard table (the one on the parameter screen).
    How do I do this job? Do you have an example? Thanks.

    Here is an example table which shows how to upload a csv file from the frontend to a dynamic internal table.  You can of course modify this to update your database table.
    report zrich_0002.
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>,
                   <dyn_field>.
    data: it_fldcat type lvc_t_fcat,
          wa_it_fldcat type lvc_s_fcat.
    type-pools : abap.
    data: new_table type ref to data,
          new_line  type ref to data.
    data: xcel type table of alsmex_tabline with header line.
    selection-screen begin of block b1 with frame title text .
    parameters: p_file type  rlgrap-filename default 'c:Test.csv'.
    parameters: p_flds type i.
    selection-screen end of block b1.
    start-of-selection.
    * Add X number of fields to the dynamic itab cataelog
      do p_flds times.
        clear wa_it_fldcat.
        wa_it_fldcat-fieldname = sy-index.
        wa_it_fldcat-datatype = 'C'.
        wa_it_fldcat-inttype = 'C'.
        wa_it_fldcat-intlen = 10.
        append wa_it_fldcat to it_fldcat .
      enddo.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    * Upload the excel
      call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           exporting
                filename                = p_file
                i_begin_col             = '1'
                i_begin_row             = '1'
                i_end_col               = '200'
                i_end_row               = '5000'
           tables
                intern                  = xcel
           exceptions
                inconsistent_parameters = 1
                upload_ole              = 2
                others                  = 3.
    * Reformt to dynamic internal table
      loop at xcel.
        assign component xcel-col of structure <dyn_wa> to <dyn_field>.
        if sy-subrc = 0.
         <dyn_field> = xcel-value.
        endif.
        at end of row.
          append <dyn_wa> to <dyn_table>.
          clear <dyn_wa>.
        endat.
      endloop.
    * Write out data from table.
      loop at <dyn_table> into <dyn_wa>.
        do.
          assign component  sy-index  of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
            exit.
          endif.
          if sy-index = 1.
            write:/ <dyn_field>.
          else.
            write: <dyn_field>.
          endif.
        enddo.
      endloop.
    REgards,
    RIch Heilman

  • Read fields from dynamic table

    Hello everyone,
    I'm a BW-guy with some ABAP background, but it has been a while since I've used field symbos. I'm writing an enhancement for a BI-extractor using a badi. This is the situation:
    I have a dynamic table <t_data> over which I need to loop to change data. The fields I need to change are in another table, t_fields. I've written the following code, but in <fieldname>, I get the value of temp instead of the value in <s_data>-fieldname.
        LOOP AT <t_data> INTO <s_data>.
          LOOP AT t_fields INTO s_fields.
            concatenate '<s_data>-' s_fields-fieldname into temp.
            ASSIGN temp TO <fieldname>.
          ENDLOOP.
        ENDLOOP.
    for example a possible result is:
    <fieldname> =  '<s_data>-calday' in stead of '01.01.2009'
    Can anyone tell me what I've been doing wrong? Your help is greatly appreciated.

    Hi,
    Please let me know if I am clear on this.
    You have two internal tables, itab1 and itab2. You would like to change the value of field (say fld1) in itab1. This fld1 value is available from fld in itab2.
    If this is the situation, following is the code.
    FIELD-SYMBOLS: <w_tab1> TYPE ty_tab1.
    DATA:                   w_tab2     TYPE  ty_tab2.
    LOOP AT itab1 ASSIGNING <w_tab1>.
      READ TABLE itab2 into w_tab2 WITH KEY
                                   fldkey = <w_tab1>-fldkey.
      IF sy-subrc EQ 0.
        <w_tab1>-fld1 = w_tab2-fld.
      ENDIF.
    ENDLOOP.
    This is it. Table itab1 will be changed.
    Let me know if this works or if your issue is different.
    Regards,
    Sourav
    Edited by: Sourav1233 on Jul 8, 2009 2:15 PM

Maybe you are looking for

  • A function with a list of data

    I need to get a list of names from a function so that i can avoid creating seperate functions for each names... could anyone give a syntax for it? I dont want to have a procedure but a function will be good thanks

  • When I click on firefox setup 11.o nothing happens

    when i click on firefox setup 11.0 nothing happens

  • Wait for Java Activity

    Hi All, I have a Java Activity inside the BPEL. Now, this Java Activity gives a call to an external Web service using Apache Axis and it takes approximately around 30 seconds for the webservice to complete and return the response. However, in the mea

  • PP CS6 is very slow to change bins.

    App hangs briefly, says "not responding" for a long while, then finally changes bins.  I've cleaned cache. Project was working well for a long time, I made a backup of it, and have started to edit it with a bit of new stuff (proj file went from 24 MB

  • Short Dump when clicking on Reconstruction tab in ODS.

    Hi, I get a short dump with 'MESSAGE_TYPE_X' error when I click on the reconstruction tab in ODS Error analysis "MESSAGE_TYPE_X" " "   "SAPLRSS2" or "LRSS2U13" "RSS2_PSA_NEW_OLD_DS" Information on where terminated     Termination occurred in the ABAP