Cachedrowset acceptchanges()  NOT updating to database

i wrote this code so that "cachedrowset -- crs" (i got from the "resultset -- rs") can be changed according to the condn specified and the modified cachedrowset will be updated in the oracle database.
condn. is when " name=sanjiv" it will change it to "rajiv" both in cachedrowset and database , it is changed in the cachedrowset (according to output below) but NOT changed in the database.
the output is
//start
tushar--100000
sanjiv--890000
rajesh--790000
tushar--100000
rajiv--7900
rajesh--790000
//end
// code start
import java.sql.*;
import javax.sql.RowSetMetaData;
import javax.sql.rowset.RowSetMetaDataImpl;
import com.sun.rowset.CachedRowSetImpl;
public class rowsetter {
public static void main(String[] args) throws Exception {
Connection conn=null;
Statement stmt=null;
ResultSet rs=null;
CachedRowSetImpl crs = new CachedRowSetImpl();
try{
conn = DriverManager.getConnection("jdbc:odbc:mydatasource","scott","tiger");
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
rs=stmt.executeQuery("select * from salary");
ResultSetMetaData rsmd = rs.getMetaData();
int rsmdcolcount = rsmd.getColumnCount();
crs.populate(rs);
RowSetMetaData rsmd1 = (RowSetMetaData)crs.getMetaData();
int rsmd1colcount = rsmd1.getColumnCount();
crs.setMetaData(rsmd1);
rsmd1.setColumnName(1,"name"); rsmd1.setColumnType(1,Types.VARCHAR);
rsmd1.setColumnName(2,"salary"); rsmd1.setColumnType(2,Types.VARCHAR);
crs.setTableName("salary");
while(crs.next()){
System.out.println(crs.getString(1)+"--"+crs.getInt(2));
if(crs.getString(1).trim().equals("sanjiv")){
crs.moveToCurrentRow(); crs.updateString(1,"rajiv"); crs.updateInt(2,7900);
crs.acceptChanges(conn);
crs.beforeFirst();
while(crs.next()){
System.out.println(crs.getString(1)+"--"+crs.getInt(2));
conn.close();
catch(SQLException sqle){
System.out.println("Exception Occured SQLE"+sqle);
catch(Exception ex){
System.out.println("Exception Occured "+ex);
//code end

Hi Marc,
In EXIT_SAPMM06E_018 do as follows:
e_ci_ekpo = ekpo_ci.
The append structure CI_EKPODB is included in ekpo_ci. Moreover the screen fields should be created with reference to ekpo_ci.
This will update the database table with values for the custom field.
Hope this helps.
Regards,
Abhisek.

Similar Messages

  • Data not updating in database

    Friends i have table and i have created a sequence on basis of that table.
    For 1st page i have created an html region and made few items there and a save button.
    I am filling data to the fields in page 1 and clicking the save button. In save button i have passed the address of the items of 1st page to items of 2nd page which contains the same field of page 1 and few more additional field.
    the 2nd page which i have made is on basis of form on a table or view and taken exsisting sequence there. When i clicking the submit button in page 2 it is not updating my database and throwing error called unable to fetch row. Any suggestions on this?

    Lev addition to this i wanted when my create button in 2nd page get clicks my database gets updated and also a query runs which checks the same data of combination variant_type,model_code,year_manuafacture. It means if i have 2 records in database with same variant_type,model_code,year_manufacture then in the field how_many in page 2 count of 3 gets updated and the other field solution avaiable get updated with Y.
    For this in my local system in page 2 i created a plsql process and wrote this code and applied it with create button but its not working. Any idea where i am failing?
    Declare
    l_how_many Number;
    l_sol_av Varchar2(1):= NULL;
    Begin
    select count(*)
    into l_how_many
    from quality
    where 1=1
    and variant_type= :P2_VARIANT_TYPE --'Road Bike'
    and model_code = :P2_MODEL_CODE --'6'
    and year_manufacture= :P2_YEAR_MANUFACTURE  ; --'2000'
    If l_how_many=null then
        l_sol_av := 'N' ;
    else
        l_sol_av := 'Y';
    end If ;
    :P2_SOLUTION_AVAILABLE := l_sol_av;
    :P2_HOW_MANY_RAISED       := l_how_many;
    Exception
        when no_data_found then
        null;
    end;

  • Application Compatibility does not update the database.

    Hi,
     I am using application compatibility manager 6.1, and SQL server 2012 as database. ACT run ok and it create the XML file but it does not update the database at "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA" location.
    I can see the valid XML file but somehow the MDF file of database is not updated so my ACT windows does not showing anything on it.
    Any Help would be appreciated.
    Thanks
    Rakesh Patel
    rakesh patel

    Hi Rakesh,
    I am not sure if you have resloved your issue.
    But for helping others to know what to do if they meet the same issue as yours, I consider to mark the post as answered.
    If you would like further assistance, please post back and we will be always here to help you.
    Any concern about this mark behavior, you can just unmark it.
    Thanks for your understanding.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • ERROR  IN  FILE--XI--RFC SCENARIO.  BAPI  did not UPDATE the DATABASE TABLE

    Hi
    I have created a scenario  FILE -XI- RFC
    File is picked by file adapter  - Its working fine
    I have used BPM
    In RFC side  i used BAPI_INCOMINGINVOICE_CREATE
    Its working fine and return an Invoice Number and Fisical year .
    When i Check this in the R/3 System , in Invoice no Does not Exist .
    Message mapping is ok
    SXMB_MONI all are ok
    Receiver file i got the invoice no and fisical year .
    The Problem is " DATABASE TABLE DID NOT UPDATED "
    So  should i do BAPI_COMMIT seperately ........
    Any solution ................
    VERY VERY URGENT .....
    thanks in advance
    B.Jude

    hi jude,
    Commit Control for Single BAPI Calls
    If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
    If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
    The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values “”, “S”, “I”, and “W” are displayed. All other values are regarded as errors.
    To change this setting, set the indicator BAPI Advanced Mode.
    <b>In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution.</b>
    Regards,
    Mandeep Virk

  • Subscreen data not updating to database

    Hi,
    I have created a subscreen in transaction code ME41/ME42/ME43. Whenever I put data on the custom subscreen, table ekpo is not getting updated with the input data. I have checked EXIT_SAPMM06E_013 and I did passed the new table to XEKPO. But it is still not working. Kindly advice.
    Thanks and regards,
    Marc

    Hi Marc,
    In EXIT_SAPMM06E_018 do as follows:
    e_ci_ekpo = ekpo_ci.
    The append structure CI_EKPODB is included in ekpo_ci. Moreover the screen fields should be created with reference to ekpo_ci.
    This will update the database table with values for the custom field.
    Hope this helps.
    Regards,
    Abhisek.

  • Console Application not updating the database

    Dear all,
    I am new to c# development. I have a console application front end in program.cs
    I have a local database on visual studio.
    When I execute the stored procedure locally on the database the data is getting updated in the database.
    When I update the same through Console Application - the data is not appearing in the database.
    Can somebody throw light on this? Where I am missing
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Data;
    using System.Data.SqlClient;
    namespace AssetApp
    class Program
    static void Main(string[] args)
    bool value = true;
    while (value)
    value = getdisplay();
    //Console.ReadLine();
    //value = false;
    private static bool getdisplay()
    Console.WriteLine("-------------------------------------- ");
    Console.WriteLine("---------------------------------------");
    Console.Clear();
    Console.WriteLine("----------Asset Application------------");
    Console.WriteLine(" 1 Company Asset ");
    Console.WriteLine(" 2 Standby Laptop Register ");
    Console.WriteLine(" 3 Scrap Register ");
    Console.WriteLine(" 4 Purchase Register ");
    Console.WriteLine(" 5 Service Call Report ");
    Console.WriteLine(" 6 IT Helpdesk ");
    Console.WriteLine(" 7 Exit ");
    Console.WriteLine("---------------------------------------");
    string input = Console.ReadLine();
    switch (input)
    case "1":
    CompanyAsset();
    break;
    case "2":
    Console.WriteLine("Standy Laptop Register");
    break;
    case "3":
    Console.WriteLine("Scrap Register");
    break;
    case "4":
    Console.WriteLine("Purchase Register");
    break;
    case "5":
    Console.WriteLine("Service call Report");
    break;
    case "6":
    Console.WriteLine("IT Helpdesk");
    break;
    case "7":
    return false;
    default:
    break;
    return true;
    private static void CompanyAsset()
    Console.WriteLine("------Company Asset------------------------");
    Console.WriteLine("Type the Department Name");
    string departmentName = Console.ReadLine();
    Console.WriteLine("Type the First Name");
    string firstName = Console.ReadLine();
    Console.WriteLine("Type the Last Name");
    string lastName = Console.ReadLine();
    Console.WriteLine("Type the User Name");
    string userName = Console.ReadLine();
    Console.WriteLine("Type the Model Number");
    string modelNumber = Console.ReadLine();
    Console.WriteLine("Type the AssetTypeID");
    string assetTypeID = Console.ReadLine();
    Console.WriteLine("Type the SerialNumber");
    string serialNumber = Console.ReadLine();
    Console.WriteLine("Type the WarrantyStartDate");
    DateTime warrantyStartDate = Convert.ToDateTime(Console.ReadLine());
    Console.WriteLine("Type the WarrantyEndDate");
    DateTime warrantyEndDate = Convert.ToDateTime(Console.ReadLine());
    Console.WriteLine("Company");
    string company = Console.ReadLine();
    Console.WriteLine("EngineerID");
    string engineerID = Console.ReadLine();
    Console.WriteLine("ITHelpdeskID");
    string itHelpdeskID = Console.ReadLine();
    Console.WriteLine("EmpID");
    string empID = Console.ReadLine();
    //Handshake
    SqlConnection myNewConnection = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\AssetApp.mdf;Integrated Security=True");
    //open the database
    myNewConnection.Open();
    //create command
    SqlCommand myCommand = myNewConnection.CreateCommand();
    //using the stored procedue to update the database using parameters add
    myCommand.CommandText = "InsertAsset";
    myCommand.CommandType = CommandType.StoredProcedure;
    myCommand.Parameters.Add(new SqlParameter("@DepartmentName", departmentName));
    myCommand.Parameters.Add(new SqlParameter("@FirstName", firstName));
    myCommand.Parameters.Add(new SqlParameter("@LastName", lastName));
    myCommand.Parameters.Add(new SqlParameter("@UserName", userName));
    myCommand.Parameters.Add(new SqlParameter("@ModelNumber", modelNumber));
    myCommand.Parameters.Add(new SqlParameter("@AssetTypeID", int.Parse(assetTypeID)));
    myCommand.Parameters.Add(new SqlParameter("@SerialNumber", serialNumber));
    myCommand.Parameters.Add(new SqlParameter("@WarrantyStartDate", warrantyStartDate));
    myCommand.Parameters.Add(new SqlParameter("@WarrantyEndDate", warrantyEndDate));
    myCommand.Parameters.Add(new SqlParameter("@Company", company));
    myCommand.Parameters.Add(new SqlParameter("@EngineerID", int.Parse(engineerID)));
    myCommand.Parameters.Add(new SqlParameter("@ITHelpdeskID", int.Parse(itHelpdeskID)));
    myCommand.Parameters.Add(new SqlParameter("@EmpID", int.Parse(empID)));
    int recordsAffected = myCommand.ExecuteNonQuery();
    if (recordsAffected == 1)
    Console.WriteLine("Successful your entry");
    else
    Console.WriteLine("Your entry is not successful");
    myNewConnection.Close();
    Console.WriteLine("");
    Console.WriteLine("Press Enter to continue");
    Console.ReadLine();
    public static void StandbyLaptopRegister()
    Console.WriteLine("-------------------------------");
    Console.WriteLine("Select the Date & Time");
    string DateTime = Console.ReadLine();
    Console.WriteLine("");
    ALTER PROCEDURE dbo.InsertAsset
    @DepartmentName NVARCHAR(50),
    @FirstName NVARCHAR(50),
    @LastName NVARCHAR(50),
    @UserName NVARCHAR(50),
    @ModelNumber NVARCHAR(50),
    @AssetTypeID INT,
    @SerialNumber NVARCHAR(50),
    @WarrantyStartDate SMALLDATETIME,
    @WarrantyEndDate SMALLDATETIME,
    @Company NVARCHAR(50),
    @EngineerID INT,
    @ITHelpdeskID INT,
    @EmpID INT
    @parameter1 int = 5,
    @parameter2 datatype OUTPUT
    AS
    /* SET NOCOUNT ON */
    BEGIN
    INSERT CompanyAsset(DepartmentName,
    FirstName,
    LastName,
    UserName,
    ModelNumber,
    AssetTypeID,
    SerialNumber,
    WarrantyStartDate,
    WarrantyEndDate,
    Company,
    EngineerID,
    ITHelpdeskID,
    EmpID)
    VALUES(@DepartmentName,
    @FirstName,
    @LastName,
    @UserName,
    @ModelNumber,
    @AssetTypeID,
    @SerialNumber,
    @WarrantyStartDate,
    @WarrantyEndDate,
    @Company,
    @EngineerID,
    @ITHelpdeskID,
    @EmpID)
    /*RETURN @@IDENTITY*/
    END
    Cheers
    Sathya

    Hello,
    Usually when I see
    AttachDbFilename=|DataDirectory| ...
    The database was added into the project via the IDE add new data source and if so make sure under the property window for the database that "Copy to Output Directory" is set to either the first or last option as the default "Copy always"
    copies the database each time you build the project thus overwrites the last time you ran the project.
    I would recommend the "Copy if Newer" which means the database is only copied if you make changes to the database. Set "Copy if newer", build run check results.
    Of course this may not be the issue but may very well be too.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Mpc/gmpc will not update mpd database

    As per thread title. I've installed mpc following the single user setup instructions. All the clients I've tried seem to connect to it normally, but I can't get them to update the database.
    mpc output:
    [jewdozer@OKW ~]$ mpc update / --wait
    Updating DB (#4) ...
    volume:100% repeat: off random: off single: off consume: off
    gmpc appears to update normally, but the files don't show up in the database. ncmpcpp puts the last update at hours ago, presumably when mpd was first started.
    This is my /etc/mpd.conf file:
    [jewdozer@OKW ~]$ cat /etc/mpd.conf
    music_directory "/home/jewdozer/Musik"
    playlist_directory "/var/lib/mpd/playlists"
    db_file "/var/lib/mpd/db"
    log_file "/var/log/mpd/mpd.log"
    error_file "/var/lib/mpd/mpd.error"
    pid_file "/var/run/mpd/mpd.pid"
    state_file "/var/lib/mpd/mpdstate"
    user "mpd"
    The files never show up in the db file, and the log and error files are empty.
    Ideas?
    Last edited by jewdozer (2010-01-22 14:01:26)

    Did you try to change the permissions of the directory or to put the files in your "home"?, for example my config file :
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    ######################## REQUIRED PATHS ########################
    # You can put symlinks in here, if you like. Make sure that
    # the user that mpd runs as (see the 'user' config parameter)
    # can read the files in this directory.
    music_directory "/home/mich/Musique"
    playlist_directory "/home/mich/.mpd/playlists"
    db_file "/home/mich/.mpd/mpd.db"
    log_file "/home/mich/.mpd/mpd.log"
    error_file "/home/mich/.mpd/mpd.error"
    #sticker_file "/home/mich/.mpd/mpd.db"
    ######################## OPTIONAL PATHS ########################
    # If you wish to use mpd --kill to stop MPD, then you must
    # specify a file here in which to store MPD's process ID.
    pid_file "/home/mich/.mpd/mpd.pid"
    # If specified, MPD will save its current state (playlist,
    # current song, playing/paused, etc.) at exit. This will be
    # used to restore the session the next time it is run.
    state_file "/home/mich/.mpd/mpd.state"
    ######################## DAEMON OPTIONS ########################
    # If started as root, MPD will drop root privileges and run as
    # this user instead. Otherwise, MPD will run as the user it was
    # started by. If left unspecified, MPD will not drop root
    # privileges at all (not recommended).
    user "mich"
    # The address and port to listen on.
    #bind_to_address "archlinux"
    port "6600"
    # If the address is a path, then a UNIX domain socket will be
    # created instead of listening on a TCP port.
    #bind_to_address "/var/run/mpd/sock"
    # Controls the amount of information that is logged. Can be
    # "default", "secure", or "verbose".
    #log_level "default"
    ########################### ZEROCONF ###########################
    # If yes, service information will be published with Zeroconf.
    #zeroconf_enabled "yes"
    # The service name to publish. This name should be unique on
    # your local network.
    #zeroconf_name "Music Player"
    ########################## PERMISSIONS #########################
    # MPD can require that users specify a password before using it.
    # You may specify one ore more here, along with what users who
    # log in with that password are allowed to do.
    #password "password@read,add,control,admin"
    # Specifies what permissions a user who has not logged in with a
    # password has. By default, all users have full access to MPD
    # if no password is specified above, or no access if one or
    # more passwords are specified.
    default_permissions "read,add,control,admin"
    ########################## AUDIO OUTPUT ########################
    # MPD supports many audio output types, as well as playing
    # through multiple audio outputs at the same time. You can
    # specify one or more here. If you don't specify any, MPD will
    # automatically scan for a usable audio output.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
    # for examples of other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    # device "hw:0,0" # optional
    # format "44100:16:2" # optional
    # use_mmap "yes"
    # PulseAudio
    audio_output {
    type "pulse"
    name "My MPD PulseAudio Output"
    #server "localhost" # optional
    #sink "alsa_output" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    # device "/dev/dsp" # optional
    # format "44100:16:2" # optional
    #audio_output {
    # type "jack"
    # name "my jack device"
    # format "44100:16:2"
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    # user "source" # optional
    # description "My Stream Description" # optional
    # genre "jazz" # optional
    # public "no" # optional
    # timeout "2" # optional
    # An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # Force all decoded audio to be converted to this format before
    # being passed to the audio outputs.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this
    # specifies the sample rate converter to use. Possible
    # values can be found in the mpd.conf man page or the
    # libsamplerate documentation.
    #samplerate_converter "Fastest Sinc Interpolator"
    samplerate_converter "Best Sinc Interpolator"
    ############################# MIXER ############################
    # MPD needs to know what mixer settings to change when you
    # adjust the volume. If you don't specify one here, MPD will
    # pick one based on which ones it was compiled with support for.
    # An example for controlling an ALSA mixer:
    #mixer_type "alsa"
    #mixer_device "default"
    #mixer_control "PCM"
    # An example for controlling an OSS mixer:
    #mixer_type "oss"
    #mixer_device "/dev/mixer"
    #mixer_control "PCM"
    # If you want MPD to adjust the volume of audio sent to the
    # audio outputs, you can tell it to use the software mixer:
    mixer_type "software"
    ######################### NORMALIZATION ########################
    # Specifies the type of ReplayGain to use. Can be "album" or
    # "track". ReplayGain will not be used if not specified. See
    # <http://www.replaygain.org> for more details.
    #replaygain "album"
    # Sets the pre-amp used for files that have ReplayGain tags.
    #replaygain_preamp "0"
    # Enable on the fly volume normalization. This will cause the
    # volume of all songs played to be adjusted so that they sound
    # as though they are of equal loudness.
    #volume_normalization "no"
    ########################### BUFFERING ##########################
    # The size of the buffer containing decoded audio. You probably
    # shouldn't change this.
    #audio_buffer_size "2048"
    # How much of the buffer to fill before beginning to play.
    # Increase this if you hear skipping when changing songs.
    #buffer_before_play "10%"
    # Similar options for the HTTP stream buffer. If you hear
    # skipping while playing HTTP streams, you may wish to increase
    # these.
    #http_buffer_size "128"
    #http_prebuffer_size "25%"
    ########################### HTTP PROXY #########################
    # Specifies the HTTP proxy to use for playing HTTP streams.
    #http_proxy_host "proxy.isp.com"
    #http_proxy_port "8080"
    #http_proxy_user "user"
    #http_proxy_password "password"
    ############################# LIMITS ###########################
    # These are various limits to prevent MPD from using too many
    # resources. You should only change them if they start
    # restricting your usage of MPD.
    #connection_timeout "60"
    #max_connections "5"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    ###################### CHARACTER ENCODINGS #####################
    # If file or directory names do not display correctly, then you
    # may need to change this. In most cases it should be either
    # "ISO-8859-1" or "UTF-8". You must recreate your database
    # after changing this (use mpd --create-db).
    filesystem_charset "UTF-8"
    # The encoding that ID3v1 tags should be converted from.
    id3v1_encoding "UTF-8"
    ######################### OTHER OPTIONS ########################
    # Try disabling this if you have MP3s which appear to end
    # abruptly. If this solves the problem, it is highly
    # recommended that you fix your MP3s with vbrfix (available from
    # <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point you can re-enable support for gapless MP3 playback.
    #gapless_mp3_playback "yes"
    # Enable this if you wish to use your MPD created playlists in
    # other music players.
    #save_absolute_paths_in_playlists "no"
    # A list of tag types that MPD will scan for and make available
    # to clients.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    Last edited by Drexya (2010-01-23 09:09:58)

  • Data is not updating in database when workflow is completed........

    Hi all,
       I am working on ESS leave request workflow.
       After the approval is being made by the agent, the relevant data is not getting updated in the database. There is no entry regarding the leave period in PA20.
    Is it a workflow issue???  
    Is it something related with commit work???

    Hi
    Did you try to run and check, the report RPTARQPOST report from the back end.  This report is resposnible to post the data into the workflow and complete the workflow. But as you mentioend that the workflow is getting completed then in this case I think you might be already scheduled the above report. Did you check with any kind of authorizations with the user under which the background job or the user who is runnig the report.
    There could also be a possibility that the applied user might not have right authorizations to manupulate Absences Infotype 2001. PLease check teh roles associated with the users in PFCG txn.
    Regards
    Pavan

  • SAVE TEXT not updating the database for Recipe Operation Long Texts

    Hi,
    We are trying to update the Recipe Operation long text using the FM SAVE_TEXT.
    The FM is not throwing any error, but the changes are not reflecting in the database.
    Text ID: PLPO
    Text Object: ROUTING
    Language: EN
    Text Name: Concatenated string of ARBPL,PLNNR,OPRATIONCOUNTER
    If someone faced similar scenarios, please share your inputs.
    Thanks in advance,
    Anand

    After some more R & D, i got to know that the Long Text indicator should be enabled to get the changes reflected in the C203 recipe operation details.
    In C202, if you pass two text lines for Operation long text, this Long text indicator is automatically enabled and its a non editable field.
    Can some one provide inputs how to enable this through program?
    Regards,
    Anand

  • BP Title for person not updating in database

    Hi Experts,
    I am finding an strange problem in creation of BP.
    We are uisng CRM2007 service pack5. Whne we try to create BP from IC agent role, we select the Title as Mr. after saving the BP on web IC, the title is not getting updated in the database table BUt000.
    Can you confirm is this a bug because of new Service Pack 5.
    Regards
    Arun

    Hi Arun,
    The title for HR employees and business partners have different key. Hence title 0001 may have different text for HR and different for BP. Hence, the code needs to do a mapping.
    For this, you need to maintain the customizing tables correctly. Please refer to note 984590 which has this information.
    Can you check if notes 1004176 and 1239702 are applied in your system u2013 they take care of this title mapping problem.
    This should solve your problem
    Cheers,
    Rishu.

  • Will not update my database

    After upgrading from Snow Leopard to Mountian Lion yesterday, I can not get Mail to operate.  The process did start and now a window is open saying that it is "update your Mail database," and the indicator bar is a quarter of the way done.  However, the bar has not moved in 12 hours eventhough it is giving the impression that it's working with the blue wavy bar. I've been connected to the web via Ethernet and WiFi over the past 24hours.

    I take it it some MS software you're trying to updaye!?
    http://support.microsoft.com/kb/2482074
    Last 2 posts here...
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macother/microsoft-da tabase-daemon-and-syncservices-agent/607050e6-acc4-4add-9143-187ddd315fd9?msgId= b731ae07-ed19-47f8-b018-f1b24bc1d7c3

  • BAPI_OBJCL_CHANGE - Not updating in database

    Hi,
    I am using BAPI_OBJCL_CHANGE and BAPI_TRANSACTION_COMMIT to update the characteristics data but it is not getting updated but gives a success message.
    I used BAPI_OBJCL_CONCATENATEKEY to generate a object key passing OBJECTTABLE as MARA and in OBJECTKEYTABLE values for matnr, and werks.
    I am changing CHAR type characteristics and i gave the characteristics name in CHARAT and the new characteristics value in VALUE_NEUTRAL.
    Any help regarding,
    1. Populating the ALLOCVALUESNUMNEW, ALLOCVALUESCHARNEW,
    ALLOCVALUESCURRNEW tables,
    2. Creating a object key for a material.
    Thanks in Advance,
    Kathir~

    >
    Krzysztof Konitz wrote:
    > Hi,
    >
    > I used this FM to change class characteristics for batches without problems.
    > I used call:
    >       CALL FUNCTION 'BAPI_OBJCL_CHANGE'
    >         EXPORTING
    >           OBJECTKEY                = OBJECTNAME
    >           OBJECTTABLE              = 'MCHA'
    >           CLASSNUM                 = CLASS
    >           CLASSTYPE                = '022'
    >         TABLES
    >           ALLOCVALUESNUMNEW        = ALLOCVALUESNUM
    >           ALLOCVALUESCHARNEW       = ALLOCVALUESCHAR
    >           ALLOCVALUESCURRNEW       = ALLOCVALUESCURR
    >           RETURN                   = RETURN.
    > variable OBJECTNAME contains concatenation of matnr, plant and batch, CLASS contains class name.
    >
    > I think that if you are using 'MARA' you should only use matnr in key without werks.
    >
    > Krzys
    how to create object key from (matnr, plant and batch)?

  • TP4 ADF BC [BUG] view link are not updated after database synchronization

    I have a table with a recursive relationship.
    By mystake, I created a recursive foreign key for the same attribute (deptid->deptid instead of deptid->parentdeptid).
    I generated entity, view and application module from this schema.
    When compiling, errors was produced indicating the problem.
    I corrected the problem in offline database, generate the changes into the database successfully.
    I ask to synchronize the entity with the database, the changes was identified correctly and a new association was created.
    First remark: the old one still there and it was necessary to delete it and rename the new generated one (to be consistent with other name). May be an option to overwriting the old one will be more pleasant, may be asking if the new one has to replace an existing one and show a list of existing ones.
    Regenerating the association was correct and one error was removed when compiling again. The error on the view link still there.
    I would like to delete the assoc and recreate it from the entity assoc but it was not possible easily because the view link is used in the application module !!!!
    It will be nice to permit to regenerate an existing view link from an entity association without deleting it.
    May be it is a better way to synchronize ? I would be very interesting to know how to achieve it as the best !

    Was the inability to have the synchronization remove the key specific to the existing association's being self-referential, or if your initial association was from DeptId to some other attribute (which you then corrected) would the synchronize have fixed the problem?
    The simplest way to achieve what you want given existing features would be to have delete the view link instance, view link, and association, follow by resynchronizing (I believe), then recreating the viewlink and adding back the view link instance.

  • Events not updating the database correctly

    Hi All,
    We need to update the created date and time as well as changed date and time for a custom table.Please have a look at the below piece of code.But the date never gets commited as well as when there is any change made to the entries in the table they are not getting commited.Please help.
    Thanks,
    Sham.
    LOOP AT total.
        READ TABLE extract WITH KEY <vim_xtotal_key>.
        IF sy-subrc EQ 0.
          l_index = sy-tabix.
        ELSE.
          CLEAR l_index.
        ENDIF.
        MOVE total TO w_mat.
        IF status-action EQ 'A'.
          w_mat-created_on = sy-datum.
          w_mat-creation_time = sy-uzeit.
          w_mat-created_by = sy-uname.
          w_mat-changed_on = sy-datum.
          w_mat-changed_by = sy-uname.
          w_mat-changed_time = sy-uzeit.
        ELSE.
          w_mat-changed_on = sy-datum.
          w_mat-changed_by = sy-uname.
          w_mat-changed_time = sy-uzeit.
        ENDIF.
        OVERLAY total WITH w_mat.
        MODIFY total.
        CHECK l_index GT 0.
        extract = total.
        MODIFY extract INDEX l_index.
      ENDLOOP.
      sy-subrc = 0.
    ENDFORM.
    Added code tags
    Edited by: Rob Burbank on Feb 27, 2009 11:06 AM

    total-created_on  = sy-datum.  "w_mat-created_on = sy-datum.similarly for other values
    MODIFY total .
    "total is table with header line
    "other option: MODIFY total from wrk_mat TRANSPORTING created_on etc

  • PreparedStatement not updating Oracle database

    I have wriiten a PreparedStatement to insert rows into a table that I have previously created but insert doesn't seem to be working. The program isn't reporting any exceptions but when do a select * on the table, no new rows have been inserted. Here is my code...
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    public class VideoStore {
         static Properties props;
         static Connection conn;
         static String driver, url, dbname, userName, password;
         // constructor
         VideoStore() {
              // load the database properties file
              try {
                   props = new Properties();
                   FileInputStream in = new FileInputStream("database1.properties");
                   props.load(in);
                   driver = props.getProperty("jdbc.driver");
                   url = props.getProperty("jdbc.url");
                   dbname = props.getProperty("jdbc.dbname");
                   userName = props.getProperty("jdbc.username");
                   password = props.getProperty("jdbc.password");
              } catch (FileNotFoundException e) {
                   System.err.println("Caught FileNotFoundException: " + e.getMessage());
              } catch (IOException e) {
                   System.err.println("Caught IOException: " + e.getMessage());
              // load the JDBC driver
              try {
                   Class.forName(driver);
              } catch (ClassNotFoundException e) {
                   System.err.println("Caught ClassNotFoundException: " + e.getMessage());
              // establish a connection to the database
              try {
                   conn = DriverManager.getConnection(url + ":" + dbname,userName,password);
              } catch (SQLException e) {
                   System.err.println("Caught SQLException: " + e.getMessage());
         } // end constructor
         // member function to signup a new member
         void addMember() {
              String last, first, address;
              PreparedStatement stmt = null;
              try {
                   stmt = conn.prepareStatement("INSERT INTO members values (?, ?, ?, ?, ?)");
              } catch (SQLException e) {
                   System.err.println("Caught SQLException: " + e.getMessage());
              last = readEntry("Enter last name: ");
              first = readEntry("Enter first name: ");
              address = readEntry("Enter address: ");
              try {
                   stmt.setInt(1, 15);
                   stmt.setString(2, last);
                   stmt.setString(3, first);
                   stmt.setString(4, address);
                   stmt.setInt(5, 0);
              } catch (SQLException e) {
                   System.err.println("Error adding member");
              try {
                   stmt.close();
              } catch (SQLException e) {
                   System.err.println("Caught SQLException: " + e.getMessage());
         } // end addMember()
         // function to read an input String. taken from page 217 of the text          
         static String readEntry(String prompt) {
              try {
                   StringBuffer buffer = new StringBuffer();
                   System.out.print(prompt);
                   System.out.flush();
                   int c = System.in.read();
                   while(c != '\n' && c != -1) {
                        buffer.append((char)c);
                        c = System.in.read();
                   return buffer.toString().trim();
              } catch (IOException e) {
                   return "";
         } // end readEntry()
            public static void main( String[] args ) {
                   VideoStore test = new VideoStore();
                   test.addMember();
         } // end main
    } // end VideoStore

    As an unrelated aside, you should consider putting your statement close in a finally block, to guarantee that it is closed even if you get exceptions executing your SQL. While it won't matter much in this simple program, it's good technique.
              try {
                   stmt.setInt(1, 15);
                   stmt.setString(2, last);
                   stmt.setString(3, first);
                   stmt.setString(4, address);
                   stmt.setInt(5, 0);
                            stmt.executeUpdate();
              } catch (SQLException e) {
                   System.err.println("Error adding member");
                    finally {
                  try {
                       stmt.close();
                  } catch (SQLException e) {
                       System.err.println("Caught SQLException: " + e.getMessage());
              }And it's also good practice to explicitly close your connection
    Also, by default, JDBC executes with autocommit, which when you get to bigger projects is what you don't want, although here it's fine...

Maybe you are looking for

  • Acrobat pro 9 install files

    Hi, My computer crashed, I managed to deactivate my Acrobat pro 9.  But unfortunately, the install file went with the crash.  I'm trying to locate in adobe.com where I can download the install files so that I can re-install onto my new computer.  Ado

  • My iOS 7 update did not include iTunes store

    I updated my iPhone 4s to iOS7, and now I don't have iTunes store. What do I do now?

  • Advanced Searching  - Multiple Menu/List/Radio Button Criteria

    Hi All, I am looking for a dreamweaver and/or PHP/MySQL tutorial and/or extension and/or tool that can walk me through creating an advanced search page. For example, I have multiple search criteria which allow users to select various criteria: Menu/l

  • Why are curves "inverted" after ACR grayscale conversion?

    I have Photoshop CS5 version 12.0.1.  If I make a grayscale conversion in Adobe Camera Raw and then open the image into Photoshop and add a curves adjustment layer, the curve is the "wrong" way round with the white point being on the left of the curv

  • Reinstalling deleted apps

    hi everyone! i got a problem, my "simcity" never came in to the game and just kept on showing the "loading" screen forever, so i deleted it i knew nothing would happen because i have bought the file once and have it my computer, but i cant figure out