LSMW (PA40) successful but unable to update records in PA30

Hi,
I have tried running LSMW ( with external no range) in Fore ground mode. I can see that the data is getting properly picked from Excel sheet and in foreground mode, I am able to see this data getting into screens when i run LSMW last step.
But actually when i go and check in tables and in PA30 if these employees are hired, there is no data.
Can you please check the below --->
My guess is while recording when we save 0,1,2 there should be some code written for "SAVE". In my recording BDC Code i ddint find any specific code. Can you check in your recordings if there is any special code for "SAVE" like BDC_OKCODE = "SAVE".
Since there is no code written in my recording, i think this is the reason data is not getting saved.
Can you let me know what needs to be done? If the above doubt is right, how to insert that in my BDC code.
For your information-> U can find my BDC code pasted here.
Recording REC7 M7
PA40 Personnel Actions
SAPMP50A 2000
BDC_CURSOR T529T-MNTXT(01)
BDC_OKCODE =PICK
RP50G-PERNR PERNR Personnel Number
RP50G-EINDA EINDA Entry Date
RP50G-SELEC(01) X SELEC_01 Indicator for list sc
BDC_SUBSCR /1PAPAXX/HDR_30060A
MP000000 2000
BDC_CURSOR PSPAR-PERSK
BDC_OKCODE =UPD
P0000-MASSN MASSN Action Type
PSPAR-WERKS WERKS Personnel Area
PSPAR-PERSG PERSG Employee Group
PSPAR-PERSK PERSK Employee Subgroup
MP000200 2010
BDC_CURSOR Q0002-GESC1
BDC_OKCODE =UPD
Q0002-ANREX ANREX Form of address text
P0002-NACHN NACHN Last Name
P0002-VORNA VORNA First Name
Q0002-PERID PERID Personnel ID Number
P0002-GBDAT GBDAT Date of Birth
Q0002-GESC1 GESC1 Gender key
Q0002-GESC3 GESC3 Gender key
BDC_SUBSCR SAPMP50A
Thanks & Regards,
Mamta
Edited by: Mamta on Oct 28, 2008 7:58 PM
Edited by: Mamta on Oct 28, 2008 7:59 PM

Dear All,
First of all I would like to answer all your questions.
1. Yes, I tried LSMW by including PSPAR-PERNR PERNR Personnel Number in BDC code under MP000000 2000 too. Also, I did add the Perner again in the upload file too. In Read data mode I can see that Perner appeared twice as per our recording. In convert data Perner appeared only one. When I run last step of LSMW in foreground mode everything was perfect. But again when I go and check in PA30 there is no data.
2. Yes, I did use PA40 for recording.
3.  The sequence is 0000->0002->0001 while recording , in uploading file and in foreground mode too.
4. When I run in foreground it appears like the regular Manual PA40 transaction.
I donu2019t what might be causing this error. I would be glad to know your answers for the above issue.

Similar Messages

  • Unable to update record in web Form

    Hi, i am unable to update record in a form. I am building a custom form using forms 6i and putting it on the web in oracle applications 11.5.9
    I used template.fmb as a starting point for my form. I have one datablock based on a table. Insert, update and delete properties are set to yes on the property pallete of data block. The table against which i am running the form has a primary key which is a combination of two fields. I am able to update a record with pure SQL running against the table.
    My form now brings back a record from the db like it should but whenever I try to update that record either by pressing Action Save or by clicking button that has update statement in it, instead of doing an update, it does an insert and tells me that this record already exists and that i entered value(s) that must be unique for each record. It thinks I want to insert but I want to update. What am i doing wrong???
    Update allowed value is set to Yes in all the items in the data block and at the data block level as well. Querly_only is set to no.
    What's even more frustratinng is that I've ran the form manually before starting with template.fmb and have been able to update the table but when I put it on the web and used template.fmb it stopped working!
    I am very new to forms, can anybody suggest anything? Please help!!!

    When you populate the 2nd block with a select into query, it's the same as just typing the data into the block. The record is treated as one needing to be inserted, not as one that is queried.
    To populate it using a true query, but with data from the LOV, you can do this:
    Programmatically set the default_where clause of the block based on the LOV. For example, if a name is chosen from the LOV in an item called LOV1, you could do:
    set_block_property('block2','default_where','name='''||:block1.lov1||'''');
    or if the LOV is a number, like a department number:
    set_block_property('block2','default_where','deptno='||:block1.lov1);
    The tricky part when you build your where clause is that you must surround strings with single quotes, and the way to do this is to use two single quotes to represent an actual single quote in the where clause. Otherwise a single quote is interpreted as part of the PL/SQL syntax.
    Then, just navigate to block 2 and execute a query:
    go_block('block2');
    do_key('execute_query');
    I hope this works for you. I didn't have time to test this, so I hope I didn't make any syntax errors when typing.

  • FRM-40509: ORACLE error: unable to UPDATE record.

    FRM-40509: ORACLE error: unable to UPDATE record.
    what can i do?

    There will always be another error which tells you what the actual problem on the database is. Use the Display message key, or message out DBMS_ERROR_TEXT

  • DataProvider unable to update records in table

    Hi guys,
    as above, I have got this piece of code below.
    What happen is I am unable to update the records in one of the dataprovider - "objectidsDataProvider" (used to keep track of no. of items in itemsDataProvider).
    If I take away the objectidsDataProvider coding; I am able to update the itemsDataProvider.
    Please kindly advice and let me know if any additional info needed. Thanks in advance.
    CODE:
    int newItemId = 0;
    if (itemsDataProvider.canAppendRow()) {
      try {
        RowKey rowKey = itemsDataProvider.appendRow();
        itemsDataProvider.setCursorRow(rowKey);
        // put the new data in the data provider
        itemsDataProvider.setValue("ITEMS.ID", new Integer(0));
        itemsDataProvider.setValue("ITEMS.USERNAME", uname);
        itemsDataProvider.setValue("ITEMS.TITLE", title);
        newItemId = ((Integer)objectidsDataProvider.getValue("MAXITEMID")).intValue();
        objectidsDataProvider.setValue("OBJECTIDS.ID", new Integer(newItemId));
         objectidsDataProvider.commitChanges();
        // Navigate through rows with data provider
        if (itemsDataProvider.getRowCount() > 0) {
          itemsDataProvider.cursorFirst();
          do {
            if (itemsDataProvider.getValue("ITEMS.ID").equals(new Integer(0))) {
              itemsDataProvider.setValue("ITEMS.ID", new Integer(newItemId));   
          } while (itemsDataProvider.cursorNext());
        itemsDataProvider.commitChanges();
      } catch (Exception e) {
        log("Cannot add new DVD", e);
        error("Cannot add new DVD: " + e.getMessage());
      return "success";
    } else {
      return "fail";
    SELECT * FROM DVD.OBJECTIDS
    TABLE_NAME        ID
    items            28
    SELECT * FROM DVD.ITEMS
    ID    USERNAME    TITLE
    1        John        300
    ...

    RowKey rowKey = itemsDataProvider.appendRow();
    itemsDataProvider.setCursorRow(rowKey);
    // put the new data in the data provider
    itemsDataProvider.setValue("ITEMS.ID", new Integer(0));
    itemsDataProvider.setValue("ITEMS.USERNAME", uname);
    itemsDataProvider.setValue("ITEMS.TITLE", title);try to use this :
    RowKey rowKey = itemsDataProvider.appendRow();
        itemsDataProvider.setCursorRow(rowKey);
        // put the new data in the data provider
        itemsDataProvider.setValue("ITEMS.ID", rowKey ,new Integer(0));
        itemsDataProvider.setValue("ITEMS.USERNAME", rowKey ,uname);
        itemsDataProvider.setValue("ITEMS.TITLE",rowKey , title);and dont forget to end ur code with ,,, commiteChanges();
    Hope this will help
    Good luck
    Mohammed

  • Unable to update records in table

    Hi all,
    While updating particular set of records in a table system gets hanged however it is allowing to update rest of record.i checked lock using
    v$locked_object ,v$session but i cud't find any..is there any way to find lock at all levels.
    thanks

    Grab your sid of the session that you are running via sys_context('USERENV','SID') or something else and then check out the wait events, and locks:
    select * from gv$lock where sid = <sid>;
    select * from gv$session_wait where sid = <sid>;P.S. Watch for triggers... YUCK!
    Message was edited by:
    JoeC

  • Installed successfully, but can't update.  Error "Serial Number is not for qualifying product"

    I installed Adobe Creative Suite Production Premium (CS5) on a new PC (Windows 8.1).  Installation was successful.  I uninstalled it on old PC and de-activated it.  My problem is that I can't Update.  Without Updates, I can't read newer Canon photos (so I can't use Bridge or PhotoShop).  In doing the install the first time, I put in an incorrect Adobe product number (I think from Elements 8.0, which I purchased years ago).  I have re-installed twice using the correct serial number, but same result:  I can't Update the programs and get a "Serial Number is not for qualifying product" error..  Please help.  Dave

    update manually,  http://www.adobe.com/downloads/updates/

  • My site has published successfully, but won't update...

    I have uploaded my site successfully a couple of times, but now when I try and update it - it goes through the motions - says it has successfully uploaded - but the changes are not visable - have tried deleting the cache and looking from another machine.
    Is there a limit to the .mac account? Should I be resizing images before putting them in masks - or do masks resize them for you? Can imagine the site would be huge with the images the size they are - but don't know where to find this information on iweb.
    Cheers

    Welcome to the Apple Discussions. Have you emptied your browser's cache? In Safari just type CommandOptionE. Afterward refresh the page.
    OT

  • Unable to update records in Plan

    Hi
    I am trying the example oracle bam integration with Oracle AQ/Database
    As while updating myplan in design studio I am not getting any error but data also not inserted in my grid.
    when I hit update after 2 mins its displaying updated(2 min 33 seconds, 0 records).
    could anyone help me out with this issue?
    Regards,
    Ana
    Edited by: user10181991 on Dec 16, 2008 3:22 AM

    Grab your sid of the session that you are running via sys_context('USERENV','SID') or something else and then check out the wait events, and locks:
    select * from gv$lock where sid = <sid>;
    select * from gv$session_wait where sid = <sid>;P.S. Watch for triggers... YUCK!
    Message was edited by:
    JoeC

  • PDF uploaded into webdynpro application successfully, but unable to open it

    Dear colleagues,
    We have developed a webdynpro appllication in which there is a functionality to add attachments from our local file to the WD applicaiton and save it. Now the  error is that we are able to upload the attachmnets successfully and save it, but when we try to view the file which we upload from the WD application, it gives error message and we are unable to view it. For example, I have PDF form which was uploaded successfully into the WD application and save it. Later when I try to open the PDF form to view it(from the WD application), the adobe reader is opened, but gives error message 'There was an error opening this document. The file is damaged and could not be repaired' and we could not view the contents of the file. Please help me in this regard.
    Note: The PDF file has no errors before uploading into the WD application. Similar kind of error is shown for other file formats also - like *.docx, *.xlsx, *.pdf, *.docm, *.ppt, *.pptx etc.
    Please suggest us how to overcome this error.
    Thanks in advance.
    Regards,
    Vijay

    Hi Vijay,
    are you using business document service to upload the file? There are BAPIs available to save and read the business documents. we used the same concept in our WDA to save and read the attachements to equipment master ie use can see the attachment in IE03 created via WD application and from another WDA, user can read it.
    provide more info about ur application.
    Thanks,
    Chandra

  • Unable to change Country Region until credit used, but unable to update credit card as no longer valid

    Hi,
    Please help.
    Im trying to change my app store from Autralia to New Zealand.  It is telling me i need to spend the credit on my itunes account before i can make this change.  So i went to make a purchase, however my Credit Card details need updating, and i no longer have my australian credit card.  I tried inputting NZ credit card details, but this was not allowed.
    How do i get around this? If i dont have a valid Australian Credit Card to make purchases using my available itunes credit, to then eventually change regions in app store?
    Cheers

    You can only use a credit card issued by a Australian bank on an Australian account. Try contacting iTunes Support and ask them if they can remove the balance so that you can change countries : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I can access HSQLDB(OOo Base) by JDBC, but unable to update it, HELP!!!

    here is a code to access HSQLDB (or OOo Base)
    but unfortunately it can read the data only (and when i execute an update it fails to store them in next running...
    here connection code...
    public static void createConnection(){
            File defaultDataLocation = new File(getDatabasePath()+"/RamanInfo");
            defaultDataLocation.mkdir();
            defaultDataLocation = new File(getDatabasePath()+"/logs");
            defaultDataLocation.mkdir();
            try {
                Class.forName("org.hsqldb.jdbcDriver");
            }catch(Exception ex) {
                WriteToLog.writeToLog(ex.toString());
            ZipFile file = null; //For handling zip files
            ZipEntry ent = null;
            Enumeration en = null; //For the entries in the zip file
            BufferedOutputStream out = null; //For the output from the zip class
            InputStream in = null; //for reading buffers from the zip file
            int len; //General length counter for loops
            //Unzip zip file, via info from
            //http://www.devx.com/getHelpOn/10MinuteSolution/20447
            try{
                File db=new File(ConnectionManagement.getDatabasePath()+"/RamanInfo");
                if(!db.exists()){
                    WriteToLog.writeToLog("Create a Database");
                    //Open the zip file that holds the OO.Org Base file
                    file = new ZipFile(ConnectionManagement.getDatabasePath()+"/RamanInfo.odb");
                    //Get file entries from the zipfile and loop through all of them
                    en = file.entries();
                    while (en.hasMoreElements()) {
                        //Get the current element
                        ent = (ZipEntry)en.nextElement();
                        //If the file is in the database directory, extract it to our
                        //temp folder using the temp filename above as a prefix
                        if (ent.getName().startsWith("database/")) {
                            byte[] buffer = new byte[1024];
                            //Create an input stream file the file entry
                            in = file.getInputStream(ent);
                            //Create a output stream to write out the entry to, using the
                            //temp filename created above
                            out = new BufferedOutputStream(new FileOutputStream(ConnectionManagement.getDatabasePath()+"/RamanInfo/" + dbName + "." + ent.getName().substring(9)));
                            //Read the input file into the buffer, then write out to
                            //the output file
                            while((len = in.read(buffer)) >= 0){
                                out.write(buffer, 0, len);
                            //close both the input stream and the output stream
                            out.close();
                            in.close();
                    //Close the zip file since the temp files have been created
                    file.close();
                //Create our JDBC connection based on the temp filename used above
                try {
                    ConnectionManagement.con = DriverManager.getConnection("jdbc:hsqldb:file:"+ConnectionManagement.getDatabasePath()+"/RamanInfo/" + dbName, "SA", "");
                    ConnectionManagement.stmt=ConnectionManagement.con.createStatement();
                }catch (SQLException sqlex) {
                    WriteToLog.writeToLog(sqlex.toString());
            }catch(IOException ioex){
                WriteToLog.writeToLog(ioex.toString());
        }and here an update code
    public static int execQuery(String query){
            try{
                int result=ConnectionManagement.stmt.executeUpdate(query); // execute a query
                return result;
            }catch(SQLException sqlex){// an error is occured
                WriteToLog.writeToLog(sqlex.toString());
                return 0; //no updates occred
        }calling method is as follows:
    execQuery("INSERT INTO \"branches\"(\"branch\") VALUES('Slemany')";it stores the data until exiting a program, when i exit a program
    all stored data will be loss...
    can any one help me to be able to store to the database????

    OOOOOOOOoo
    i fixed the error..
    the error was about closing....
    during exiting the connection...
    you should run this statement (stmt.executeUpdate("shutdown");)
    before closing it...
    since the HSQLDB will not save updates in the dbName.data file, during running, but it keeps them inside the dbName.log file, but during shutting down it will save them inside dbName.data....
    thank you very much...

  • I updated to software 10.9 but unable to update iMovie due to video card on older iMac

    How do you delete an update that you cannot action due to age of system equipment? Eg early video on iMac

    Hi,
    I'm not sure that you can. I have the same problem on my older iMac. In the past if a update was not compatible, it would not show. Something has obviously changed with OS X Mavericks.
    Jim

  • Error in updating records brought by LOV

    Hi everybody
    I am using Oracle 10 g
    when fetching data from the database by choosing a specific record from LOV then trying to make "save" means "commit" I have this error
    FRM-40509: Oracle error: unable to update record
    I think there is a problem in mapping btw the record in the form and the cursor pointing to that record in the database because when i execute "next_recod" button after choosing one in LOV it go to the record next the one specified before choosing from LOV
    knowing that updating process working correctly when choosing by ("first_record, previous_record, next_record or last_record)
    so what is the solution
    please help
    thank you very much

    yes please
    I didn't know what do you mean by customized or default menu
    I build LOV using the wizard and bind it by a query to a table then make Show_LOV from the form
    so when I choose one of the rows and they brought to the text boxes assigend to them after that when I make "Commit" I got that error
    thank you for help
    and sorry for bieng late in reply, I don't have enternet after 2:00 pm

  • Unable to update from ver 10 to 11.01.03.

    Hi
    I am trying to update from ver10 to ver 11.01.03 but unable to update.
    I have follwoed the following steps...
    1) Checked for updates
    2) Accepted update
    3) Downloaded updates
    4) Restrated the computer.
    After all the above steps when I check in About tab of itunes, it still shows itunes10.
    How sould I update to the latest version of itunes ?
    Thanks

    try to download the latest update of iTunes from this link:
    http://www.apple.com/itunes/download/
    it will automatically removed iTunes 10 on your Mac and replace it with the latest version.

  • Nokia Care is unable to update my phone software.....

    Hi,
    I am using Lumia 710.
    I was trying to update my OS to 7.8 with zune, but zune said that your phone is up to date. (8773). So i visited to the near Nokia Care Center, they tried to update the OS, but unable to update and return back me with some cause. (hard disk open or something else.)
    And the phone is resetted and all my apps, games, photos & contacts are deleted.
    Also told me to submit the phone to send it to Bangalore for L3 Support.
    Can you tell me what the reason behind it??
    Why Nokia Care unable to update my OS.
    Solved!
    Go to Solution.

    There are two different issues here, firstly roll out to Zune of updates can take a while and secondly Nokia Care wouldn't use Zune to update your Lumia 710 so apparently device has a USB communication issue precluding installing firmware requiring escalation to Level 3 service centre.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

Maybe you are looking for

  • For BPC how to enable Wow6432 compatibility to run in 32 bit mode on the 64

    Dear friends I am going to install BPC 7.0 so I want to  enable following issues on my windows OS 64Bit "If you run this on 64 bit hardware, you must configure it to enable Wow6432 compatibility to run in 32 bit mode on the 64 bit system" can any tel

  • Using Image Capture to scan with Canon Pixma MX700

    I previously had trouble connecting my Canon Pixma MX700 to my MBP, but soon figured out that I needed a new high speed USB 2.0 cable, versus the old one I was trying to use it with. Doh! So now it prints without any trouble at all, and I know that a

  • Forms server failing after the first reboot.

    Recently installed R12 on XP and was able to add users and responsibilities. after my first reboot of xp i was able to login but not able to start form server. Have tried reinstalling j2se and created mesg folder under forms folder as indicated in on

  • Huge pictures folder

    Hi- I've been a bad boy and until recently hadn't backed up my photos. I've now moved my Pictures folder to an external Hard Drive and noticed something strange: When I open iPhoto it shows as having 8Gb of photos, but the Pictures folder is 18Gig. I

  • Missing iLife Media Browser

    After transferring data via time machine from my alu. MBP15" to unibody MBP13", I could not see iphoto library in the media Browser. I tried that in IMoive and adium. I think the problem comes from different version of ilife in both Macs. The 15" has