Save attempt moves data one field forward after table schema change

Okay, this is very strange and hard to believe, but here goes.
First, I have Apex 2.2.1... and have also installed ApexLib - I will try to take ApexLib out of the picture as my first move, but if anyone recognizes this behavior in the mean time, please chime in.
Here's what happens:
1. Enter invalid data (not checked by ApexLib in at least one case, I believe, as the validity check involves two fields).
2. Page comes back displaying Error inline and at field level. Again, at least in one case, the error message is that set on the server side after a server-side validation.
3. Value entered in Field 1 is now displayed in Field 2.
Value entered in Field 2 is now displayed in Field 3.
etc. (unless Field 2 is a Select list that can't display the value from the preceding field)
Love to hear any ideas.
Thanks.
P.S. Actually - now it looks like this moving of data happens with or without error on this particular page. It uses Fetch Row and the table schema has changed since the page was first generated such that a field was added to the end of the table and is the 2nd field on the form. Thus, it looks like somehow the automatic update is confused by a new item having been inserted. Is this possible?
Message was edited by:
SydneyOs
Message was edited by:
SydneyOs

Check to make sure that the source of the new (added) column is database and that it has the correct column name.
Anton

Similar Messages

  • Dates one day behind after java upgrade to 1.6.0_27

    I have upgraded from Java 1.5.0_06 to 1.6.0_27
    After the upgrade ,I saw that dates are a day behind.All dates that lie between November 6th to March 10th are correct but dates
    lying between March 10th to November 5th for any year are wrong.(one day behind)
    Is it something to do with DayLight saying.
    I am using GMT-5 Eastern Time(US & Canada) and Server is set to automatically adjust time coressponding to day light saving.
    I checked,I get the date correct from database and in the factory class also it is correct,in the servlet it is correct but my Viewclass which calls this servlet shows date one day behind.
    I am doing no conversion ,the date fetched from database is stored like
    java.sql.Date beginDate= resultSet.getDAte("BeginDate")
    Schedule.setBegindate(beginDate)
    In the Schedule Object ,the beginDAte is of type Date.
    I am adding all dates to a treeset.I do a printout just after setting,it is correct
    But in my view class ,its one day behind,no manipulation is done.Dont know why is the day incorrect.
    IS it because of Java version.
    Please help

    As I mentioned That
    My view class TestView code is some what like this
    public class TestView extends JFrame
    public TestView(URL url, AppletContext appletContext)
    this.appletContext = appletContext;
    SwingUtilities.invokeLater(new Runnable() {
    public void run()
    testCommand test= new GetDatesCommand();//call factory class which fetches result from database
    Object returnValue = TestUtils.callServlet(test);//calls the servlet .
    if( returnValue instanceof TreeSet )
    TreeSet testSet= (TreeSet)returnValue;
    TestView.setDate(testSet));
    I am calling this constructor of viewtest class from my LoginTestApplet
    public class LoginTEstApplet extends JApplet
    public LoginApplet()
    TimeZone.setDefault(TimeZone.getTimeZone("EST"));
    LoginTestActionperformed()
    new testView(getDocumentBase(), this.getAppletContext());
    As I mentioned the values of dates as fetched from database ,factory class and getDatesCommand class prints fine.Its just inside this class after the call to servlet ,it displays wrong date.
    I have an applet ,LoginTestApplet which is the entry point for my application.Inside the default constructor ,I am doing
    TimeZone.setDefault(TimeZone.getTimeZone("EST"));
    I have mentioned in my second post what results it shows for getDefaults.
    I know its very strange ,the dates gets one day behind immedately only in the view class not in the servlet or the factory class.
    Please let me know if I need to post some more data .

  • Search Help on Table Control - Fill more than one field in the table?

    Hey everyone,
    I have built a screen with a Table Control on it... the fields of the table control are linked to an internal table...  The internal table has the line type of a structure I've defined in the data dictionary.  Within that structure in the data dictionary, I've linked some fields to search helps (For example, a MATNR and CUSTOMER search help)...  I've defined in the structure definition which fields from the search help are to be returned to which fields in the structure.
    The problem is, even though I have the search help set to export both the customer number and location when using the search help on the customer field, it still does not fill the location field within the table.  Is this a limitation of using search helps within table controls?
    I'm also finding that by defining the search help through the structure, instead of directly within the screen, the search help round button does not show up on the field, yet I can still press F4 to bring up the search help.  Is there a reason why it's not showing the search help clickable button even though it works fine using F4?
    For doing search helps in Table Controls, is it better to just build the search help, attach it directly to the field in the table, and then after the user picks the single field, use the PAI to run a select and fill the rest of the fields required?
    Thanks,
    Dallas

    Hi Dallas,
    (1)
    What  i understood is that you added a search help by defining it in the internal table type for a field customer number..in the search help you have 2 fields customer number and location...user press the search help ..then you need to fill 2 different fields or 1 field?
    if you need to fill the customer location or location (only one) then you need to set the "import" in the search help for whichever is required.....
    if you need to fill 2 or more different fields..then you can use the technique you have mentioned last , to do a select in PAI and fill the fields....but this you can use if the combination for the fields is unique...eg: u have customer number and location..if customer X can be mapped to location X and location Y..when a select statement is done there are 2 options..so in such cases it is better to leave the option to the user otherwise if there is a clear mapping like customer X can be mapped only to location X then you can use the select..
    (2)
    usually when you define it as a type in the internal table the icon doesn't show up..but you can do alternative like mentioned..go to the table,find the search help for the required field if present or create a new one if required and place the search help mentioned in the screen itself..so as to see the icon...sometimes users are adamant that they need the search help icon to be seen..so it depends on if your user
    (3)
    as in the example of customer number and location mentioned we can provide them different search helps and do the needful processing in PAI to fill the fields
    Table controls may be used for different purposes and requirements....even a checkbox,push button can be placed as a field in table control and used,but yes most of the time requirements are like what is mentioned in your case...
    Regards
    Byju

  • Palm desktop software moves data one day back

    Using Palm Desktop 4.6, the calendar data moved one back one day.  Thanksgiving is now on Wednesday along with all my calendar data.
    I downloaded and upgraded to Palm Desktop 6.2 and, of course, that did not correct the problem.
    I also HotSyncec with my Z22 and now the dates on it are also off by one day.  Can I fix this or do I have to do each day manually?  Thanks, Tom
    Post relates to: Palm Z22

    The same thing has happened to us. We don't sync with any device, but have changed computers, so are just transferring data from Palm Desktop on one computer to another (exported a file, put it on a flash drive, and then imported it). THe strange thing is that it doesn't move all the dates back one day, just some of them. There doesn't seem to be any pattern to which ones. And we noticed that it just dropped one all together.
    Looked at one of the dates that was moved. It is a repeat (a birthday). And when you look at the details of the repeat, the date is changed and where on the initial computer there was no end date, on the new computer it has put an end date.
    The desktop software is Pal Desktop by ACCESS, version 6.2.2
    Would love some help!!

  • How to read data from field symbol containing Table

    I defined a field symbols for reading output of a BRF plus rule however since fielk symbol is of type any
    I cannot read its contents
    Any inputs are highly appreciated
    Please see attachment explaining problem

    Thanks a lot for your help
    However It did not work for me as it started giving error incompatible types
    Here is my code
    constants:lv_function_id type if_fdt_types=>id value '3440B5B078B21EE3BC9EB53C42F84A45'.
    data:lv_timestamp type timestamp,
          lt_name_value type abap_parmbind_tab,
          ls_name_value type abap_parmbind,
          lr_data type ref to data,
          lv_counter type i value 0,
          lr_target type ref to data,
          lx_fdt type ref to cx_fdt,
          lo_trace type ref to if_fdt_trace,
          lo_lean_trace type ref to if_fdt_lean_trace,
          la_z_string type if_fdt_types=>element_text,
          lv_role_name  type grac_role_name,
          lv_result type string.
    field-symbols <la_any> type any.
    field-symbols <role_name> type grac_s_od_role_detail.
    field-symbols <system> type string.
       types:
        begin of ys_access ,
                  role_name type  string,
                  system_name   type string,
                end of ys_access .
      types:
        yt_access type table of ys_access .
    field-symbols: <access_item> type table,
                    <ls_req_access> type ys_access.
    data con_name type if_fdt_types=>element_text.
    data ls_any type ys_access.
    * All method calls within one processing cycle calling the same function must use the same timestamp.
    * For subsequent calls of the same function, we recommend to use the same timestamp for all calls.
    * This is to improve the system performance.
    * If you are using structures or tables without DDIC binding, you have to declare the respective types
    * by yourself. Insert the according data type at the respective source code line.
    * GET TIME STAMP FIELD lv_timestamp.
    * Process a function and record trace data, passing context data objects via a name/value table.
    * Prepare function processing:
    ls_name_value-name = 'Z_STRING'.
    la_z_string = 'P1'.
    get reference of la_z_string into lr_data.
    ls_name_value-value = lr_data.
    insert ls_name_value into table lt_name_value.
    * Create the data to store the result value after processing the function
    * You can skip the following call, if you already have
    * a variable for the result. Please replace also the parameter
    * EA_RESULT in the method call CL_FDT_FUNCTION_PROCESS=>PROCESS
    * with the desired variable.
      cl_fdt_function_process=>get_data_object_reference( exporting iv_function_id      = lv_function_id
                                                                    iv_data_object      = '_V_RESULT'
                                                                    iv_timestamp        = lv_timestamp
                                                                    iv_trace_generation = abap_true
                                                          importing er_data             = lr_data ).
      assign lr_data->* to <la_any>.
      try.
          cl_fdt_function_process=>process( exporting iv_function_id = lv_function_id
                                                      iv_timestamp   = lv_timestamp
                                                      iv_trace_mode  = if_fdt_constants=>gc_trace_mode_lean
                                                     "iv_trace_mode  = if_fdt_constants=>gc_trace_mode_lean_required
                                            importing ea_result      = <la_any>
                                                      eo_trace       = lo_trace
                                            changing  ct_name_value  = lt_name_value ).
          lo_lean_trace ?= lo_trace.
          lo_lean_trace->save( ).
          catch cx_fdt into lx_fdt.
    * You can check CX_FDT->MT_MESSAGE for error handling.
      endtry.
    * Get context values after processing:
      cl_fdt_function_process=>get_context_value( exporting  iv_function_id = lv_function_id
                                                             iv_trace_generation = abap_true
                                                             iv_timestamp   = lv_timestamp:
                                                             iv_data_object = '3440B5B078B21EE3BC9EFF599C110ADD' "Z_STRING
                                                   importing ev_data             = lv_result ). " Suggested variable: la_z_string
      create data lr_target type grac_s_od_role_detail.
    *  assign <la_any> to <role_name>.
      assign lr_target->* to <la_any>.
       loop at lt_name_value into ls_name_value.
        if ls_name_value-name cs 'RESULT'.
          assign ls_name_value-value  to <la_any>.
            ls_any = ls_name_value-value  .
        endif.
        endloop.
        access_item = <la_any>.
    * assign ( )<la_any> to <access_item>.
    * assign component 1 of structure <la_any> to <rolename>.
    *   assign <la_any> to <ls_req_access>.
    * lr_target = <la_any>.
    * assign lr_target->* to <role_name>.
    * lv_role_name = <role_name>.
      lv_result = lv_result.

  • Assigning fields(data) to field symbos of table

    Hi All,
      Though there is lot of material available on the concept of field symbols I could not apply the logic of it to my problem. Hence posting this query.
    I am creating dynamic internal table and want to populate that internal table with other itab.
    i have created Field symbols now how to populate the part of the other itab to field symbols which
    points to other itab.
    My code is like
    data : p_intab LIKE dfies-tabname .
    data : begin of wbs occurs 0,
         wbs type c,
            objnr type proj-objnr,
           end of wbs.
    FIELD-SYMBOLS :
      <fs_tab> LIKE LINE OF tab_info,
    Output Structure****
      <it_disptab> TYPE table .
    p_intab = fieldcatalog.
        ASSIGN p_intab TO <fs_tab>-tabname .
        CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
             EXPORTING
                  i_structure_name = <fs_tab>-tabname
             CHANGING
                  ct_fieldcat      = it_grid_fcat.
    *Creating internal table
        CALL METHOD cl_alv_table_create=>create_dynamic_table
           EXPORTING
               it_fieldcatalog           = it_grid_fcat
           IMPORTING
               ep_table                  = dref.
        ASSIGN  dref->* TO <it_disptab>.
        PERFORM populate_grid_data .
      CALL METHOD grid->set_table_for_first_display
          EXPORTING
            is_layout           = struct_grid_lset
          CHANGING
            it_outtab             =  <it_disptab>
            it_fieldcatalog       =  it_grid_fcat
        .      " Period
    form populate_grid_data.
    *i want to populate the fields of dynamic internal table <it_disptab>
    with wbs
    endform.
    *once i display it to user he will edit the values that i want to save it back to transperant table from fields symbols <it_disptab>.
    Best Regards
    Sandeep

    Hi Sandeep,
    within your form routine you can do the following:
    form populate_grid_data.
    *i want to populate the fields of dynamic internal table <it_disptab>
    with wbs
    1. create work area for your table
    data: l_lineref type ref to data.
    field-symbols: <l_line> type any.
    create data l_lineref like line of <it_disptab>.
    assign l_lineref->* to <l_line>.
    case you have identical named fields
    move corresponding wbs to <l_line>.
    append <l_line> to <it_disptab>.
    case the fieldnames are different
    field-symbols: <fs_target1>,
                   <fs_target2>.
    assign component 'Fieldname' of structure <l_line>
        to <fs_target1>.
    <fs_target1> = wbs-wbs.
    assign component 'Fieldname' of structure <l_line>
        to <fs_target2>.
    <fs_target2> = wbs-objnr.
    append <l_line> to <it_disptab>.
    endform.
    Hope it helps.
    regards
    Siggi

  • Reading the data from field symbol internal table //

    Hi,
    There are 2 internal tables defined as Fieldsymbols (type any) and I need to retrive data from second internal table based on a field value in first internal table.
    Let's assue the name internal table 1 is <it_itab1>, 2nd internal table name is <it_itab2> and the work areas are <wa_itab1> and <wa_itab2>.
    The existing logic :
    LOOP at <it_itab1> ASSIGNING <wa_itab1>.
      ASSIGN COMPONENT 'XYZ' OF STRUCTURE <wa_itab1> TO l_field6.
      LOOP AT <it_itab2> ASSIGNING <wa_itab2>.
        ASSIGN COMPONENT 'XYZ' OF STRUCTURE <wa_itab2> TO <p_field7>.
        IF <p_field7> = l_field6.
    do the required business.
        ELSE.
          *     do the required business.
        ENDIF.
      ENDLOOP.
    ENDLOOP.
    The requirement of reading second internal table was achieved by putting loop on the internal table but its giving considerable effect on performance !!
    Is there any way to use READ statement in my case OR any way of putting WHERE condition on loop statement of second internal table ??
    Thank you !!

    Use the below Logic.
    Loop at Itab1 into wa_itab1.
        Loop at itab2 into wa_itab2 where p_field7 = wa_itab1-xyz or I_field6.
    do the required business.
        endloop.
        Loop at itab2 into wa_itab2 where p_field7 <> wa_itab1-xyz or I_field6.
    do the required business.
        endloop.
    endloop.
    Hope it is useful...

  • Actual end date is not update after closing a change

    Hi,
    We are using SCSM 2012, now I want to make report on which changes have been closed in the last month. In som way all the changes that have been closed in SCSM do not have an actual end date, all the changes that I have imported from our old tool does. It
    looks like SCSM does not update this field by itself, but I can't find a field in the change managment module in which I can provide the actual end date.
    How does SCSM 2012 copes with this?
    Kind regards, Marco Jansen

    Hi Greg,
    We are actually testing this now, as MS is not planning to solve this issue on a short term. The use of the last modified date is casuing u a lot of trouble now as we have had an change on our change form casuingthe last modified for all change to be set
    to the date of the change. That was the end of my closing data.
    We are now getting the WA in place from Netviaconsulting, but that is not a complete solution. Not all change reach a state of complete before they are closed. Sometime you will close a change that is cancelled ,rejected or failed. this means that when
    triggering on an update of the record every update will set the actual enddate. Besides when setting the actual enddate on the status closed, the date is update every time the worflow runs.
    We just want the actual enddate to be filled  when a change comes to the status closed from any other status, but this sets the actual enddate on every status change of the change. in some strange way ewe cannot figure this out.
    If anybody has the correct configuration for this workflow it would be very useful. Most prefereably MicroSoft in this case.

  • How to check which fields of a table are changed

    Hi
    I have a FM in which i pass VBAK and VBAP. I store records of table in internal tables and update the values during execution and at the end of this i have to cpmare VBAK and VBAP with internal tables to chcek which field value is changed in both VBAK and VBAP. Its not possible to check all fields bcause there are so many fields in VBAK and VBAP. Can any body help me.
    Thanks and Regards
    Aditya

    Hi,
    Try using where used list.
    click on the field. pree F1. select Technical Info from the pop-up. then from the field data, double click one the field name. it will navigate to the table/structure where the field is used. double click on the field there or
    press CntrlShiftF3.
    It will give you the where used list.
    Pls reward poins if useful.
    Regards,
    Chandru

  • How to Copy data from field symbol to Dynamic Internal Table

    Hi,
    I want to copy the data between two dynamic Internal tables . Following is the code were I have data in the field symbol wanted to transfer it to the other Internal table :
    REPORT  ztest.
    DATA:
           gd_dref          TYPE REF TO data,
           gd_dref1          TYPE REF TO data.
    FIELD-SYMBOLS:  <fs1>   TYPE any,
                               <fs_wa> TYPE any,
                                <field>    TYPE any,                  
                                <fs_wa1> TYPE ANY TABLE.  * Contains data from p_src
    *Copy data from p_src to p_dest*
    PARAMETERS: p_src LIKE dd02l-tabname .    * Name of Dynamic Internal table *
                             p_dest LIKE dd02l-tabname .  * Name of Dynamic Internal table*
    *DATA : lt_csks LIKE p_dest WITH HEADER LINE.
    START-OF-SELECTION.
      CREATE DATA gd_dref TYPE (p_src).
      CREATE DATA gd_dref1 TYPE TABLE OF (p_src).
       ASSIGN gd_dref->* TO <fs_wa>.
       ASSIGN gd_dref1->* TO <fs_wa1>.
       SELECT * FROM (p_src) INTO TABLE <fs_wa1>.
    *Write out data from FIELD SYMBOLS TO Table.
       loop at <fs_wa1> into <fs_wa>.
         do.
           assign component  sy-index
              of structure <fs_wa> to <field>.
           if sy-subrc <> 0.
           exit.
           endif.
           if sy-index = 1.
             write:/ <field>.
           else.
           write: / <field>.
           endif.
         enddo.
       endloop.
    *Need Logic To Copy the Data to p_dest table from <fs_wa1>.
    *p_dest is a table having a similar structure to table p_src .
    *Need Logic To Copy the Data to p_dest table from <fs_wa1>.
    EXIT.
    Thanks in Advance.

    try this...
    I have extended your source code and just used vbak/vbap as an example as they have some common fields like vbeln/erdat etc which corresponds with your requirement of 'similar structure' i.e. shared/common fields in both.
    Cheers...
    report  ztest.
    data:
      gd_dref type ref to data,
      gd_dref1 type ref to data,
      gd_dref_str type ref to data,
      gd_dref_tab type ref to data.
    field-symbols:
      <fs1> type any,
      <fs_wa> type any,
      <fs1_dest_str> type any,
      <fs_dest_tab> type any table,
      <field> type any,
      <fs_wa1> type any table.
    * contains data from p_src
    *Copy data from p_src to p_dest*
    parameters: p_src like dd02l-tabname default 'vbak',
    * name of dynamic internal table *
                p_dest like dd02l-tabname default 'vbap'.
    * name of dynamic internal table*
    *data : lt_csks like p_dest with header line.
    start-of-selection.
      create data gd_dref type (p_src).
      create data gd_dref1 type table of (p_src).
      assign gd_dref->* to <fs_wa>.
      assign gd_dref1->* to <fs_wa1>.
      select * from (p_src) into corresponding fields of table <fs_wa1>
      up to 3 rows
      where vbeln ne space.
      create data gd_dref_str type (p_dest).
      create data gd_dref_tab type standard table of (p_dest).
      assign gd_dref_str->* to <fs1_dest_str>.
      assign gd_dref_tab->* to <fs_dest_tab>.
    *write out data from field symbols to table.
      loop at <fs_wa1> into <fs_wa>.
        " break-point here - can see vbeln/waers/create date/ etc move over to new structure
        " the 'common' fields of your structures - the same will happen. if they not the same name you will have to do an
        " explicit move i.e. if fieldname = xyz ....move fieldxyz to new field123....after the move-corre
        break-point.
        move-corresponding <fs_wa> to <fs1_dest_str>.
        insert <fs1_dest_str> into table <fs_dest_tab>.
    **    do.
    **      assign component  sy-index
    **         of structure <fs_wa> to <field>.
    **      if sy-subrc <> 0.
    **        exit.
    **      endif.
    **      if sy-index = 1.
    **        write:/ <field>.
    **      else.
    **        write: / <field>.
    **      endif.
    **    enddo.
      endloop.
      " write out some dest data from the dest table build from previous loop
      loop at <fs_dest_tab> assigning <fs1_dest_str>.
        do.
          assign component sy-index of structure <fs_wa> to <field>.
          if sy-subrc <> 0.
            exit.
          endif.
          if sy-index = 1.
            write:/ <field>.
          else.
            write: / <field>.
          endif.
        enddo.
      endloop.

  • Populating more than one table and more than one field

    I need some suggestions and this forum has always been a great source of good advice.
    I have a web form at the following location: http://www.webdevpractice.com/genoptix/CE/register.php
    Here's what the web form needs to do:
    Send a confirmation email listing seminars the visitor checked on the form.
    Create a similar message on a confirmation page.
    Populate 2 two tables.
    Items 1 and 2 are working fine.
    The advice I need is on how to populate two tables in the database.
    There are three tables:
    ACCOUNTS
    account_id
    first_name
    last_name
    medtech_id
    job_title
    npi
    company
    city
    state
    email
    phone
    contact
    ATTENDANCE
    attendance_id
    account_id
    seminar_id
    SEMINARS
    seminar_id
    seminar
    speaker_first_name
    speaker_last_name
    date
    The web form contains data that need to go into the ACCOUNTS table and the ATTENDANCE table. The challenge is getting the account_id and seminar_id into the ATTENDANCE table. If all the information was inserted properly, I could write a query that revealed who was taking what seminar.
    Inserting data into the ACCOUNTS table is not a problem. I will create another form to insert information into the SEMINARS so that should not be a problem. But inserting the account_id and the seminar_id is what I am wondering about. Also, can more than one record be inserted in a table? If an user checks more that one seminar, each seminar (seminar_id) would need to be inserted in the ATTENDANCE table as separate records along with the account_id. I'm thinking I may have to do this manually. Also, the values for each seminar are their dates and titles. I used these as values to send the confirmations.
    I'm just looking for advice at this point. Is this doable?

    Bregent,
    The table I am wondering about is the ATTENDANCE table. There are two fields in addition to the primary key: account_id and seminar_id. The field I am concern with is the seminar_id which comes from a group of checkboxs on the form. So, one form could create several records. For example, presently there are three seminars that are offered. If the visitor selects all three seminars, that would create three records in the SEMINARS table. So, it might look like this:
    attendance_id     account_id     seminar_id
         1                    1                    1
         2                    1                    2
         3                    1                    3
    My PHP skills are basic. I've done other forms and use PHP in other ways. But I have never had to populate several rows in one table with an array of checkboxes nor have I be able to find an example of this.
    So the advice I am seeking (and perhaps this is premature) is this:
    Can one field from a table populate more than one record?
    Should I set up checkboxs as a group or individually with a different name?
    I am also considering setting up my tables differently so there is a table from each seminar--that may solve my problem.

  • Problem with displaying Date field in the table.

    Hi All,
    I am trying to display data into a table UI Element. 
    In that data, i have one DATE type field. While displaying data in DATE field, it will display like this "01.02.2009".
    Now my requirement is if i want to modify that DATE field, it will allow to modify "01.02.2009"  to "26.02.2009".
    But while modifying DATE field , I want to show the Calender of that month, in that i  have to select the another date.
    (Like normal Date UI Element will show that calender).
    Can anyone please help me.
    Thanks in Advance!
    Regards,
    Sreelakshmi.

    Hi,
          Go to the context attribute that was mapped to the DATE field of the table and change the perperty INPUT HELP MODE to  AUTOMATIC and it works.
    Regards,
    Manne.

  • Summarization of field on more than one field

    Hi All,
    I have a internal table in which I have 6 field and I have to summarize the 6th field on basis of first five field.
    can I summarize one field in internal table on more than one field.
    Please help me out.
    Regards,
    Sandeep

    Hi sandeep,
    1. u want to summarize (total)
      the sixth field,
      on the basis of different combinations of first 5 fields.
    2. simple
    3. Create another table,
       with the same structure, say STAB.
    4. just use this logic.
    5. LOOP AT ITAB.
       CLEAR STAB.
       MOVE-CORRESPONDING ITAB TO STAB.
       <b>COLLECT STAB.</b>
      ENDLOOP.
    regards,
    amit m.

  • Assign function code to a field in internal table

    Hi all,
    Can we assign a function code to one field in internal table so that we can use it as an user command in list display.
    For ex:
    data : begin of itab occurs 0,
              check(1) type C,
              num type I,
             end of itab.
    I am preparing a list display using WRITE statements.
    I'ld like to update the checked value of check box as soon as the user selects a  check box. So I would like to assign a function code to this check box. Then I can use AT user-command.

    Hi,
    dinesh's apporach is not bad, but
    1. the structure' name cannot be part of the component
    2. you need to make sure the component-name always is in upper case.
    Try adapting the following code:
    data: begin of wa_test,
              field01 type string,
              field02 type string,
              field03 type string,
           end of wa_test.
    data:  l_fieldname  type string,
           l_counter    type string.
    field-symbols: <testc> type string.
    do 3 times.
      l_counter = sy-index.
      concatenate 'field0' l_counter into l_fieldname.
      translate l_fieldname to upper case.
      assign component l_fieldname of structure wa_test to <testc>.
      if <testc> is assigned.
        <testc> = 'any value'.
      endif.
    enddo.
    write / wa_test-field01.
    best regards

  • Some fields of SD Tables

    Hi friends,
    Can anybody help in specifying me in which SD table I will get the fields Sales Document Number, Planned Delivery Date & Actual Delivery Date.
    Thanx in advance
    Nishant

    Hi Nishu,
    Your question is a bit vague... Sales Document number can be anything from sales order number (table VBAK), delivery number (table LIKP) to billing number (table VBRK).
    Planned delivery date is field FKDAT in table LIKP.
    Regards,
    John.

Maybe you are looking for