REUSE_ALV_GRID_DISPLAY - updating the database with new values

Hi,
I am using the function module 'REUSE_ALV_GRID_DISPLAY' to display records. I have managed to open a field for input/edit mode. Once this data has been changed , where will this data be? I have checked the internal table - no joy. I need to use this new/changed data to update the database with the new values.
Thanks,
Leanne

Hi,
The data is stored in table tab. After the changes the data does not reflect in table tab. Where can I get the data so that I can update my database?
I have coded the process as follows:
    when '&SUSPEND'.
      loop at tab
        where box = 'X'.
          update zzzz
            set status       = 'SP'
      endloop.
Regards,
Leanne

Similar Messages

  • Updating the Database with datetime stamp

    Hi all,
    I have a scenario where in once sender JDBC channel polls the database , i need to update the table with current datetime stamp for a particular DATE field.
    what will be the update syntax command that i need to add in the sender channel ?
    Update Emp Set DATE =  ? where EmmNo = 100;
    Regards
    Vinay P.

    Hi Guys ,
    The following query is working :
    Update Emp Set DOJ = GetDate() where EmpNo = 1;  O/p = Sep 1 201
    Regarding adding Time as well , which function do i need to use
    Also say for example , i need the Date time stamp format to be updated in the following format : dd.mm.yyyy hh:mm:ss , what will be the syntax
    Regards
    Vinay P.

  • Trouble updating the database

    Hi,
    I using java studio creator 2 update 1. I have two pages. The first page contains a table with hyperlinks in serial_no column. When the user clicks on a hyperlink(serial_no) it redirects to another page which displays the details of the product that can be edited as drop down lists and text areas. I am not able to update the database with the edited values. I have been struggling with this since a week. Please help me. The code in the second page is as follows
    public void prerender() {
    serialNo = (String)getExternalContext().getRequestParameterMap().get("SerialNo");
    try
    getSessionBean1().getTblSampleRowSet4().setCommand("select Username, Problem_Type, Priority , Enhancement, Time, Source_req, Assigned_To,substring_index(Comment,'<END>',-1) as 'userComment', Solution, serial_no from tblSample where serial_no = " + serialNo);
    stUserName.setText(getSessionBean1().getTblSampleRowSet4().getString("Username"));
    ddlProblemType.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Problem_Type"));
    String priority = getSessionBean1().getTblSampeRowSet4().getString("Priority");
    outputText1.setValue(priority);
    ddlPriority.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Priority"));
    // ddlp.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Priority"));
    ddlEnhancement.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Enhancement"));
    ddlTime.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Time"));
    ddlSourceReq.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Source_req"));
    ddlAssignedTo.setSelected(getSessionBean1().getTblSampleRowSet4().getString("Assigned_To"));
    taSolution.setText(getSessionBean1().getTblSampleRowSet4().getString("Solution"));
    taUserComment.setText(getSessionBean1().getTblSampleRowSet4().getString("userComment"));
    catch(Exception e)
    * <p>Callback method that is called after rendering is completed for
    * this request, if <code>init()</code> was called (regardless of whether
    * or not this was the page that was actually rendered). Customize this
    * method to release resources acquired in the <code>init()</code>,
    * <code>preprocess()</code>, or <code>prerender()</code> methods (or
    * acquired during execution of an event handler).</p>
    public void destroy() {
    tblSampleDataProvider4.close();
    // tblSampleDataProvider.close();
    public String btnSave_action() {
    // TODO: Process the button click action. Return value is a navigation
    // case name where null will return to the same page.
    try {
    tblSampleDataProvider4.setValue("tblSample.Problem_Type", ddlProblemType.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Priority", ddlPriority.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Enhancement", ddlEnhancement.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Time", ddlTime.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Source_req", ddlSourceReq.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Assigned_To",ddlAssignedTo.getSelected());
    tblSampleDataProvider4.setValue("tblSample.Comment",taUserComment.getText());
    tblSampleDataProvider4.setValue("tblSample.Solution", taSolution.getText());
    tblSampleDataProvider4.commitChanges();
    tblSampleDataProvider4.refresh();
    } catch (Exception ex) {
    outputText1.setValue("error");
    return null;
    If i use
    getSessionBean1().getTblSampleRowSet4().execute(); after setting the command, it doesnt work. But if i comment it out, data corresponding to the serial no passes gets displayed. But I am not able to update the table with edited data.
    S

    Just a quick comment--
    You won't need rowset.getString(..) and dataprovider.setValue(...) if you bind the components and it could make it much simpler.
    There's a step by step tutorial on how to achieve this:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    If you can zip up the Project and email to me at CreatorFeedback AT sun DOT com, i can take a quick look at it. I would need your schema/SQL script as well.
    HTH,
    Sakthi

  • Field value is getting double while updating the database table

    Hi Experts,
    A simple doubt :
    there is a standard program through which a zfunction module is getting triggered, through this zfunction module i am updating the database table.
    Now what happening is one of the field(KCQTY) value in database is getting double at a time when i am executing the Program with same variant only.
    I have also done the CLEAR & REFRESH internal tables starting of the Function module.
    Can you please help me out.
    Max points wil be awarded.
    thanks
    rico.

    Hi Nicole,
    this is the part of the coding where you can see how the field KCQTY is getting moved in the loop statement.
      DELETE IT_CE20002B_815 WHERE
          KONDA = SPACE  OR
          WERKS = SPACE  OR
          VVB01001 < 0.
        LOOP AT IT_CE20002B_815.
          INDX = SY-TABIX.
          CONCATENATE IT_CE20002B_815-PERBL0(4) IT_CE20002B_815-PERBL5(2)
                                                    INTO MONAT.
       MOVE itab_ce20001b-perbl TO monat.
          CLEAR S815.
          READ TABLE IT_ZPL_MCS5 WITH KEY KONDA = IT_CE20002B_815-KONDA
                                           BINARY SEARCH.
            SELECT SINGLE * FROM S815 WHERE VRSIO = '000'
                                         AND SPMON = MONAT
                                         AND KONOB = 'APO'
                                         AND MVGR2 = IT_CE20002B_815-KONDA
                                         AND PRODH = IT_CE20002B_815-PRDHA
                                         AND WERKS = IT_CE20002B_815-WERKS.
                                        AND VTWEG EQ CO_VTWEG_99.
    BREAK SAMEE.
          IF SY-SUBRC EQ 0.
    Eintrag in S810 existiert
            IF S815-AEMENGE <= IT_CE20002B_815-VVB01001.
    wenn die Auftragseingangsmenge kleiner gleich der Kontingentsmenge
    wird die Kontingentmenge in das Steploop übernommen
              MOVE IT_CE20002B_815-VVB01001 TO  W_T_DATA_815-KCQTY.
    *Liste ausgeben
             PERFORM AUSGABE4.
              PERFORM AUSGABE4_815.
            ELSE.
    Ausgabe Fehlermeldung, wenn die Auftragsmenge größer als die
                           Kontingentmenge ist.
    *Liste mit fehlermeldungen ausgeben, Kontingent trotzdem übernehmen
              MOVE IT_CE20002B_815-VVB01001 TO  W_T_DATA_815-KCQTY.
             PERFORM AUSGABE_FEHLER4.
              PERFORM AUSGABE_FEHLER4_815.
            delete it_ce20002b index indx.
            continue.
            ENDIF.
          ELSE.
    Es existiert kein Eintrag in S810, dann direkt eingeben
            MOVE IT_CE20002B_815-VVB01001 TO W_T_DATA_815-KCQTY.
            MODIFY IT_CE20002B_815 INDEX INDX.
    *Liste ausgeben (Kein Eintrag in S810)
           PERFORM EINTRAG2.
            PERFORM EINTRAG2_815.
          ENDIF.
    *Übergabestructur für die Weiterverarbeitung durch das Copymanagement
    *im Functionsbaustein wird gefüllt.
          W_T_DATA_815-SPMON = MONAT.   "itab_ce20001a-perbl.
          W_T_DATA_815-KONOB = CO_KONOB_APO.
          READ TABLE IT_ZPL_MCS5 WITH KEY KONDA = IT_CE20002B_815-KONDA
                                          BINARY SEARCH.
          IF SY-SUBRC EQ 0.
            W_T_DATA_815-MVGR2 = CO_MVGR2_999.
          ELSE.
            W_T_DATA_815-MVGR2 = IT_CE20002B_815-KONDA.
          ENDIF.
          W_T_DATA_815-WERKS = IT_CE20002B_815-WERKS.
          W_T_DATA_815-PRODH = IT_CE20002B_815-PRDHA.
         W_T_DATA_815-VTWEG = '99'.
         W_T_DATA_815-KUNNR = '9999999999'.
          W_T_DATA_815-KCQTY = IT_CE20002B_815-VVB01001.
          W_T_DATA_815-BASME = IT_CE20002B_815-VVB01_ME.
    JR181005 - begin of ins.
         w_t_data_810-matkl = it_ce20002b-matkl.
    JR181005 - end of ins.
          APPEND W_T_DATA_815 TO TAB_DATA.
          CLEAR IT_CE20002B_815.
        ENDLOOP.
    thanks for reply
    rico

  • I bought new i phone 5 3 days back, after that asked for new update which is 6.1.4, after updating my iphone i am not able to use cellular data services. I called up data provider, they says its the problem with new software update. There is no option add

    I bought new i phone 5 3 days back, after that asked for new update which is 6.1.4, after updating my iphone i am not able to use cellular data services. I called up data provider, they says its the problem with new software update. There is no option add APN. Now when i switch to safari its showing you are not subscribed for cellular data. But I am able to use data on other phone.
    Will you please help me in this regard?
    Another issue, since i bought my new iphone there is dust inside back main camera.
    Your advises are highly appreciated.

    Hey Shaiju isac,
    I'd take a look at the following article, it'll guide you though steps to you troubleshoot cellular data issues on your iPhone:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    Cheers,
    David

  • I want to update iCloud account with new apple id but don't know password for old apple id.  Plus can no longer receive email at old apple id.  How can I delete the current iCloud account on my iPhone if the previously stated conditions exist?

    I want to update iCloud account with new apple id but don't know password for old apple id.  Plus can no longer receive email at old apple id.  How can I delete the current iCloud account on my iPhone if the previously stated conditions exist?

    If the old ID is yours, and if it is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • HT1338 i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created.

    i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.

    You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
    Hope that helps.

  • I have updated my Iphone5 with new IOS6 - now the screen/display does not react to my taps on screen as in i cant tap in my pin to start???

    I have updated my Iphone5 with new IOS6 - now the screen/display does not react to my taps on screen as in i cant tap in my pin to startup???

    I have updated my Iphone5 with new IOS6 - now the screen/display does not react to my taps on screen as in i cant tap in my pin to startup???

  • HT1414 When updating my iphone with new software it came up on screen with the cable and itunes sign (which is what I should get when restoration has been completed) yet it is still saying restore. I have tried 3 times and the screen won't change. HELP!

    When updating my iphone with new software it came up on screen with the cable and itunes sign (which is what I should get when restoration has been completed) yet it is still saying restore. I have tried 3 times and the screen won't change. HELP!

    If the sign does not go away it has not completed the restore. So you are incorrect when you say it "keeps completing the restore" if that message is still displayed.
    Do you get an error message? If so, what is the error number?

  • Regardig error while updating the database table

    hi experts,
       i m trying to update the database table from the values containig in my internal table  ,,,but the system is giving this error plz help me::::
    The type of the database table and work area (or internal table)
    "ITAB_UPDATE" are not Unicode convertible. Unicode convertible.          
    my internal table name itab_update and the database table name yitab.i m using this statement::
        modify yitab from itab_update.

    Hi
    1. You  have to Declare the Itab with the same structure as DB table.
    2. Use the statement
        Modify <DBtable> from TABLE <itab>.
    or
       Update <DBtable> from TABLE <itab>.
    Hope this will solve.
    Reward .....if so.
    Regards.

  • How to record value of field to perform action when saving with new value

    Hi,
    I have a multi-tabbed form (Forms 6i). I need to include code so that when a field is changed on one tab and is saved, then I need to update some fields on the other tabs.
    My first question is: How can I record a copy of the field whenever data is brought into the form (ie: through a query), and then what is the best way to update the other data:
    1) Update the database and then requery somehow
    2) Update the fields on the other tabs and then commit to the database?
    And roughly I how I do it?
    Any help appreciated
    Adam

    > if the user is inserting a new record and I try and use the DATABASE_VALUE property on that field.... what is going to happen?
    Read the on-line help for Database_value. Use :System.record_status to determine if the record is being inserted, then don't get database_value. It is not clear, but I believe on such records, it returns the current value of the item, not a null value. Regardless, it is useless.
    If you want to update fields in other blocks in your form automatically based on changes in a different block, you can start a non-repeating timer in a when-validate-item trigger on the field. When the timer expires, you can navigate to the other blocks and to various records, and update the fields in the other blocks. Then when the user commits, all changes will be applied together. The only trick to using a timer like that is that in the commit process, you also need to check to see if the timer exists, and if it does, delete the timer and do the updates to the other tables.

  • In FMDERIVE does the "Overwrite w/New Value"...

    ...button impact automatic Status Indicator on transactions. 
    Heres the situation.  We had a major re-organization and I set up an LSMW to transfer asset value from assets linked to an old  Cost Center to a new asset shell linked to a new Cost Center.  This was done after the configuration was changed in FMDERIVE for the Internal Order/Funded Program fields where the Fnded Program field was set to Overwrite with New Value.  This was done to accomodate the copy function in Purchase Orders and Purchase Requisitions when original order data changes from the time of origination to the time of realization. 
    It appears when we changed the configuration in FMDERIVE it stopped posting "Statistical" documents in FM and now everything is posting as real.  Can someone explain if indeed that "Iverwriute New Value" button is somehow linked to the Statistical vs. Real button?

    We finally discovered the problem.  In our FMDERIVE table we have an assignement configured for all Asset transaction types to post to a Statistical Commitment Item.  In our "Gold" client for some reason the "values" are blank for this assignment. When the transport for the Order/Funded Program rule were transported a pop up window requests, "Do you want to transport values?".  This was answered YES.  As a resulte the 18 values in the Quality and Production system in the Asset Transaction Type assignment were all wiped out.  Evidently, our organization has a policy to update values manually in Quality & Production. 
    I disagree with this philosophy so we will be addressing the issue that the Table is not identical to what is in Production. 
    Thanks for your help. 
    Dan

  • How to export "Managed by" field of Distribution and Security groups and import with new values? (Exchange 2010, AD 2003)

    My Active Directory environment is 2003 functional level and we have Exchange 2010.
    I am trying to find out the best way to do a mass edit for the "Managed by" values of our security and distribution groups.
    I know we can export the "managed by" field by csvde but I am not sure this is the correct way to do it. Also in the case that there are multiple users assigned to be managing a distribution group it only shows one value. Also powershell from Exchange
    2010 can be used with "get-distribution" but as our AD environment is 2003 is this correct also?
    Finally once the data is exported to csv can it be edited to then reimport and udpate the existing group managed by fields with new values?
    Not really sure that the best way to go about this is.
    Summary - We have 2003 AD with Exchange 2010 and I am trying to export a list of all our Distribution/Security groups showing the group name and managedby values so we can edit and update the
    existing managedby values with new ones. In some cases we have multiple users as the owners.
    Appreciate any advice on how this can be best achieved. Thank you.

    Hi,
    We can use the following command in Exchange 2010 to export "Managed by" field of Distribution and Security groups:
    Get-DistributionGroup | Select-object Name,@{label="ManagedBy";expression={[string]::join(“;”,$_.managedby)}},Primarysmtpaddress | Export-Csv
    C:\export.csv
    After you changed the Managed by field in export.csv and saved it as a new file named import.csv, we can run the following command to set with new value:
    Import-Csv C:\import.csv | Foreach-Object{ Set-DistributionGroup –Identity $_.Name –ManagedBy $_.ManagedBy}
    Hope it works.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • How to export "Managed by" field of Distribution and Security groups and import with new values?

    My Active Directory environment is 2003 functional level and we have Exchange 2010.
    I am trying to find out the best way to do a mass edit for the "Managed by" values of our security and distribution groups.
    I know we can export the "managed by" field by csvde but I am not sure this is the correct way to do it. Also in the case that there are multiple users assigned to be managing a distribution group it only shows one value. Also powershell from Exchange
    2010 can be used with "get-distribution" but as our AD envronment is 2003 is this correct also?
    Finally once the data is exported to csv can it be edited to then reimport and udpate the existing group managed by fields with new values?
    Not really sure that the best way to go about this is.
    Summary - We have 2003 AD with Exchange 2010 and I am trying to export a list of all our Distribution/Security groups showing the group name and managedby values so we can edit and update the
    existing managedby values with new ones.
    Appreciate any advice on how this can be best achieved. Thank you.

    Hi Barkley,
    You can also refer to Official Scripting Guys forum to get a script solution:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Amy Wang

  • Update the database structure from entity Framework Model

    Hello !
    I'm using VB.net , EF6 with SQL server 2008R2 database.
    This is the situation :
    I have created the application. Using wizard I have created the Entity model from an existing database.
    A client start using this application using this database on his computer.
    After some month , I made some modifications on the database and I have updated the model on my application .
    Now I have a new .exe file that has the new model from the new database.
    I put the new .exe file on the client computer.
    Now on his computer : The .exe file has the new database model , but the sql server database has the old structure.
    I want to know : Is possible to update the database structure from the entity model on application ?
    I want to add a command on application that can make ( if is possible ) this update , so the database become up to date according to entity model ?
    Thank you !

    Hello,
    From your description, it seems that you want to apply a migration for a database first approach, unfortunately, as far as I know, EF Migrations is a product targeted at Code First and doesn't support Database First operations. A workaround I know is to
    use update-scripts. If your database structure would be changed frequently, it is recommended to use the Code First approach which would have a better workaround for migrations, for details, you could refer to this
    video,
     and with the
    Entity Framework Power Tools, it is easy to create a code first based project form an existing database.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Forms and Reports 6i

    Warm greeting to you all, I have installed oracle 8i enterprise ideation in my machine. This is a trial software. Connection from SQL plus is perfect and I have managed to manipulate Objects that came in the products default database. Also, oracle Co

  • Please help me I can't get onto safari, everytime I click it it say safari quit unexpectedly

    Process:               Safari [413] Path:                  /Applications/Safari.app/Contents/MacOS/Safari Identifier:            com.apple.Safari Version:               8.0 (10600.1.25.1) Build Info:            WebBrowser-7600001025001000~1 Code Type

  • EA1 Export to Excel Fails

    When I export the result of a query to Excel I get an error message: When I execute select * from v$session and export the result to Excel I get following message: java.lang.NumberFormatException      at java.math.BigDecimal.<init>(BigDecimal.java:36

  • Printing 2 columns in reverse

    I have layed out the church service sheet for my son's wedding in Pages in two columns. I can print the four sheets without a problem but I want to print in reverse so that I get two sheets printed on both sides. 

  • Snow Leopard Update Problem

    I installed Snow Leopard 10.6.3 onto a wiped drive, left only one partition upon the GPT formatting...I am now trying run the updates in order to move up operating systems. After running software update and 1.27gb being dowloaded, I receive the follo