Creating/Adding Records

I have created a new data base from scratch and when click in the CREATE button...this is the error I'm getting. Please let me know what I need to change
ORA-01400: cannot insert NULL into ("HR"."EMPLOYEES"."EMPLOYEE_ID")
Error Unable to process row of table EMPLOYEES.
OK

because thats field is Primarykey?Give the man a coconut! Primary key columns are mandatory and hence NOT NULL.
auto increment type.Auto increment is MSSQL concept which Oracle does not support in the same way.
You will need to create a SEQUENCE and then build a trigger to populate it....
create sequence emp_seq
create or replace trigger emp_insert before insert on emp for each row
begin
  if :new.employee_id is null then
    select emp_seq.nextval into :new.employee_id from dual;
   end if;
end;
/Cheers, APC

Similar Messages

  • Creating/Adding Records -- Please help!

    I have created a new data base from scratch and when click in the CREATE button...this is the error I'm getting. Please let me know what I need to change
    ORA-01400: cannot insert NULL into ("HR"."EMPLOYEES"."EMPLOYEE_ID")
    Error Unable to process row of table EMPLOYEES.
    OK

    The table you have created (?) is set up not not allow a null value to be set in the employee_id column. It looks like the application you are using to do the inserts is not providing a value for this column. Either change the application so that it does provide a value, or add a trigger to the table that automatically set the value on each insert. You could use a sequence to provide you with a unique numeric value.
    Something like
    CREATE SEQUENCE SEQ_EMPLOYEE_ID;
    CREATE OR REPLACE TRIGGER TRG_EMPLOYEE_INSERT
         BEFORE INSERT ON EMPLOYEE
              FOR EACH ROW
              BEGIN
                   IF :new.EMPLOYEE_ID IS NULL THEN
                        SELECT SEQ_EMPLOYEE_ID.nextval INTO :new.EMPLOYEE_ID FROM DUAL;
                   END IF;
              END;
    COMMIT;

  • Adding beneficiary to Optional Life insurance in ESS creating new record

    Hi,
    We have a insurance plan called Optional Life Insurance. IN the portal (ESS) when a employee adds a new beneficiary to this plan, system is creating a new pending record by delimiting the old record to end of that month. The problem is the newly created pending record is asking for EOI (evidence of Insurability).
    Adding or deleting of beneficiaries in portal is resulting in EOI being asked. When the same process is done through GUI, there is no problem.
    The EOI setting for action in IMG for this plan is "Create Pending record for desired option".
    (But this setting is only for enrollment, this should  not be reflected when beneficiary is added or deleted, right?)
    Regards
    Kiran.

    Anyone faced such problem before? Any clues?
    Thanks.

  • Getting "java.lang.NullPointerException" error message when trying to run an OATS OpenScript file from Eclipse to Create a record in Oracle EBS

    Hello,
    I'm trying to run a simple OpenScript script in Eclipse that creates a record (a Supplier in this case) in Oracle E-Business Suite. So I copied the the script file from OpenScript and created it as a Class in Eclipse.  Then I created a main class to call the methods within the script class but no matter what method I call (initialize, run or finalize) I'm getting the java.lang.NullPointerException message. The error doesn't seem to be related with any specific line in the script but with the way that I'm calling it.
    Should I call the OpenScript class from my main class in a different way? (see my examples below)
    BTW, all external .jar files coming with OATS have been added to my project in Eclipse.
    1) Here's the main class I created to call the OpenScript method (Eclipse auto-corrected my main class adding a Try and Catch around the method call):
    public class Test {
        public static void main(String[] args) {
            nvscript nvs = new nvscript();
            try {
                nvs.initialize();
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
    2) Here's the script from OpenScript (the actual script has more steps but I'm just using the first one for a proof of concept):
    import oracle.oats.scripting.modules.basic.api.*;
    import oracle.oats.scripting.modules.browser.api.*;
    import oracle.oats.scripting.modules.functionalTest.api.*;
    import oracle.oats.scripting.modules.utilities.api.*;
    import oracle.oats.scripting.modules.utilities.api.sql.*;
    import oracle.oats.scripting.modules.utilities.api.xml.*;
    import oracle.oats.scripting.modules.utilities.api.file.*;
    import oracle.oats.scripting.modules.webdom.api.*;
    import oracle.oats.scripting.modules.formsFT.api.*;
    import oracle.oats.scripting.modules.applet.api.*;
    public class nvscript extends IteratingVUserScript {
        @ScriptService oracle.oats.scripting.modules.utilities.api.UtilitiesService utilities;
        @ScriptService oracle.oats.scripting.modules.browser.api.BrowserService browser;
        @ScriptService oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService ft;
        @ScriptService oracle.oats.scripting.modules.webdom.api.WebDomService web;
        @ScriptService oracle.oats.scripting.modules.applet.api.AppletService applet;
        @ScriptService oracle.oats.scripting.modules.formsFT.api.FormsService forms;
        public void initialize() throws Exception {
            this.getSettings().set("formsft.useformsonly",true);
            browser.launch();
        public void run() throws Exception {
            beginStep(
                    "[1] E-Business Suite Home Page Redirect (/ebs12cloud.winshuttle.com:8000/)",
                    0);
                web.window(2, "/web:window[@index='0' or @title='about:blank']")
                        .navigate("http://ebs12.xxxxxxx.com:8000/");
                web.window(4, "/web:window[@index='0' or @title='Login']")
                        .waitForPage(null);
                    think(4.969);
                web.textBox(
                        7,
                        "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:input_text[@id='usernameField' or @name='usernameField' or @index='0']")
                        .setText("winshuttle_user");
                    think(2.0);
                web.textBox(
                        8,
                        "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:input_password[@id='passwordField' or @name='passwordField' or @index='0']")
                        .click();
                    think(1.109);
                web.textBox(
                        9,
                        "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:input_password[@id='passwordField' or @name='passwordField' or @index='0']")
                        .setPassword(deobfuscate("kjhkjhkj=="));
                    think(1.516);
                web.button(
                        10,
                        "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:button[@id='SubmitButton' or @value='Login' or @index='0']")
                        .click();
            endStep();
        public void finish() throws Exception {       
    3) Here's the error messages I'm getting based on the method I call from my main class:
    3.a) when calling Initialize():
    java.lang.NullPointerException
        at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.getSettings(IteratingVUserScript.java:723)
        at nvscript.initialize(nvscript.java:22)
        at Test.main(Test.java:9)
    3 b) when calling Run():
    java.lang.NullPointerException
        at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.beginStep(IteratingVUserScript.java:260)
        at nvscript.run(nvscript.java:30)
        at Test.main(Test.java:9)
    Any help and/or constructive comment will be appreciated it.
    Thanks.
    Federico.

    UPDATE
    Compiling from command line I found out that the class definition for oracle.oats.scripting.modules.basic.api.IteratingVUserScript is missing. Do you know what .jar file contains this class?
    Thanks.
    Fede.

  • Error while adding record

    I am getting the following error while adding record into the table CM_RECIPE_ITEM :
    Error
    ORA-20505: Error in DML: p_rowid=626, p_alt_rowid=CRI_ID, p_rowid2=, p_alt_rowid2=. ORA-01410: invalid ROWID ORA-06512: at "COSTMAN.CM_RECIPE_ITEM_T3_AFTER", line 11 ORA-04088: error during execution of trigger 'COSTMAN.CM_RECIPE_ITEM_T3_AFTER'
    Error Unable to process row of table CM_RECIPE_ITEM.
    Kindly suggest if the problem is because of the Global temporary table or the triggers given below. Also suggest the solution.
    Thanking You,
    Yogesh
    CM_RECIPE_ITEM Table
    CRI_ID------CRI_CR_ID--------CRI_BOM_CODE--------CRI_CIFG_CODE---------CRI_CIRM_CODE--------CRI_SEQ--------CRI_QTY--------CRI_RM_COST
    625----------464-----------------PRODUCT3001----------FG003----------------------10---------------------------1-------------------60-----------------10
    626----------464-----------------PRODUCT3001----------FG003----------------------12---------------------------2-------------------40------------------10
    Global temporary table
    DROP TABLE COSTMAN.INTERIM CASCADE CONSTRAINTS;
    CREATE GLOBAL TEMPORARY TABLE COSTMAN.INTERIM
    ROW_ID ROWID
    ON COMMIT PRESERVE ROWS
    NOCACHE;
    CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T3"
    BEFORE INSERT OR UPDATE ON "CM_RECIPE_ITEM" FOR EACH ROW
    BEGIN
    INSERT INTO interim VALUES (:new.rowid);
    END;
    Trigger to update data on CM_RECIPE table
    CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T3_AFTER"
    AFTER INSERT OR UPDATE ON "CM_RECIPE_ITEM"
    BEGIN
    FOR ds IN (SELECT row_id FROM interim) LOOP
    UPDATE CM_RECIPE
    SET CR_RMC = (
    SELECT SUM(CRI_QTY * CRI_RM_COST)/SUM(CR_QUANTITY)
    FROM CM_RECIPE_ITEM
    WHERE CRI_BOM_CODE = CR_BOM_CODE
    AND rowid = ds.row_id
    UPDATE CM_RECIPE
    SET CR_TOTAL_COST = (
    SELECT CIFG_PACKING + CIFG_OVERHEAD +CIFG_OTHERS
    FROM CM_ITEM_FG
    WHERE CIFG_CODE = CR_CIFG_CODE
    AND rowid = ds.row_id
    ) + CR_RMC;
    UPDATE CM_RECIPE
    SET CR_GROSS_MARGIN =
    (SELECT CIFG_DP_RATE
    FROM CM_ITEM_FG
    WHERE CIFG_CODE = CR_CIFG_CODE
    AND rowid = ds.row_id) - CR_TOTAL_COST) / CR_TOTAL_COST;
    END LOOP;
    END;
    /

    yogeshyl wrote:
    Error
    ORA-20505: Error in DML: p_rowid=626, p_alt_rowid=CRI_ID, p_rowid2=, p_alt_rowid2=. ORA-01410: invalid ROWID ORA-06512: at "COSTMAN.CM_RECIPE_ITEM_T3_AFTER", line 11 ORA-04088: error during execution of trigger 'COSTMAN.CM_RECIPE_ITEM_T3_AFTER'
    Error Unable to process row of table CM_RECIPE_ITEM.
    Kindly suggest if the problem is because of the Global temporary table or the triggers given below. Also suggest the solution.The error message points to the trigger...

  • Save required when adding record to avoid multiple record entries@same time

    Hello, just wondering if anyone would be so kind as to help me out. I have a small problem that when a user is adding records to my form I want them to add one, then if they go on to add another at the same time (before commiting the first one) that they will be shown a prompt Which states something along the lines of "Before you add another record you must first save the first record, do you wish to do so" , yes will then commit the first record and allow the user to enter the second record, whilst cancel will not allow a second record to be entered.
    If anyone would helpout i would be very grateful.

    Hi
    Here is my suggestion, the idea is to use a global variable to memorize the fact that a record has been created :
    KEY-CREREC
    begin
              if :GLOBAL.<BLOCK-NAME>RECORDCREATED = 'FALSE' then
                   create_record;
                   :GLOBAL.<BLOCK-NAME>RECORDCREATED := 'TRUE';
              else
                   message('Commit or delete before inserting a new record');
                   message('Commit or delete before inserting a new record');
              end if;
    end;
    =====================================================================
    KEY-DELREC
    begin
         if :system.record_status in ('NEW','INSERT') then
              :GLOBAL.<BLOCK-NAME>RECORDCREATED := 'FALSE';
         end if;
         delete_record;
    end;
    ====================================================================
    KEY-COMMIT
    begin
         commit_form;
         :GLOBAL.<BLOCK-NAME>RECORDCREATED := 'FALSE';
    end;
    ====================================================================
    POST-SELECT
    :GLOBAL.<BLOCK-NAME>RECORDCREATED := 'FALSE';
    ====================================================================
    It's a bit more complicated if you allow the user to go beyond the last record for creating a new record, as KEY-CREREC and KEY-DELREC are not triggered.
    In this case, my suggestion is the following :
    KEY-CREREC
    begin
              if :GLOBAL.<BLOCK-NAME>RECORDCREATED = 'FALSE' then
                   if :system.last_record = 'TRUE'then
                        next_record;
                   else
                        create_record;
                        :GLOBAL.<BLOCK-NAME>RECORDCREATED := 'TRUE';
                   end if;
              else
                   message('Commit or delete before inserting a new record');
                   message('Commit or delete before inserting a new record');
              end if;
    end;
    ===============================================================
    WHEN-NEW-RECORD-INSTANCE
    begin
         if :system.mode = 'NORMAL' then
              if :system.record_status = 'NEW' and :system.last_record = 'TRUE' then
                   if :GLOBAL.<BLOCK-NAME>RECORDCREATED = 'TRUE' then
                        message('Commit or delete before inserting a new record');
                        message('Commit or delete before inserting a new record');
                        delete_record;
                   end if;
              end if;
         end if;
    end;
    ================================================================
    KEY-DELREC
    begin
         if :system.record_status in ('NEW','INSERT') then
              :GLOBAL.<BLOCK-NAME>RECORDCREATED := 'FALSE';
         end if;
         delete_record;
    end;
    =================================================================
    KEY-COMMIT
    begin
         commit_form;
         :GLOBAL.<BLOCK-NAME>RECORDCREATED := 'FALSE';
    end;
    ===============================================================
    WHEN-VALIDATE-RECORD
    begin
         if :system.record_status = 'INSERT' and :system.last_record = 'TRUE' then
              :GLOBAL.<BLOCK-NAME>RECORDCREATED := 'TRUE';
         end if;
    end;
    ==================================================================
    POST-SELECT
    :GLOBAL.<BLOCK-NAME>RECORDCREATED := 'FALSE';
    ================================================================

  • Imported Form and sub-form from another database. Sub-form not creating new records tied to parent form's data.

    I have imported all objects from an old access db (.adp file) into a new db (.accdb).  All of my data lives in sql server so I have added all the tables and views to the .accdb as linked tables.  My forms all connect to data, but I am having issues
    with a sub form.  The sub form does not allow for creation of children records tied to the parent record the way the old db did/does.
    Correct - old format .adp file (notice the empty second record in sub-form with the defaulted date of today's date):
    Incorrect - new .accdb file (notice the lack of empty second record in sub-form like above):
    If I click the create new record icon in the bottom of the subform, it creates a completely blank record not tied to the parent record (fields blacked out in screen shots above).  When using this button all parent record fields are blank.  
    I have also verified the child table used in the sub-form has a valid Fky relationship to parent table used in the parent form.
     

    Have you checked each forms 'Filter' property (in Design view) to make sure they are blank and that each forms 'Filter On Load' property to make sure it is set to 'No'? Also, you might try inserting the following commands in each forms On
    Open event:
    DoCmd.RunCommand acCmdRemoveAllFilters
    DoCmd.ShowAllRecords
    If you can open each forms Record Source and they are showing that new records are able to be entered (the new record * is showing at the bottom of the recordset), then check each forms On Load and On Open events to make sure there is no filtering.
    In addition, check any macro or VBA commands behind the button that opens the main form to make sure there is no SQL filtering in the DoCmd.OpenForm command.
    If one of the forms Record Source does NOT allow new records, then you will need to change that Record Source so the new record * indicator shows.
    Out of ideas at this point.

  • NetBeans Create new Record to Database, How to retrieve it?

    Hi
    I am new to java and using NetBeans and JBoss to develop a new web application now.
    I created a new "ComModule" record to "ComModule" table in database inside my servlet while clicking Add button on my web page.
    The codes are:
    ComModuleFacadeRemote comModuleFacadeRemote = this.lookupComModuleFacade();
    ComModule cm = new ComModule();
    cm.setSerialNumber(serialNo);
    cm.setMacAddress(MACAddress);
    comModuleFacadeRemote.create(cm);
    As in ComModule class, I have set the ComModule ID as sequence and primary key. So this code will add a new reocord by increasing the sequence key automatically.
    What i need to do now is to retrieve the new added record in "ComModule" table and pass it as an Object for other uses.
    e.g. I can do like this:
    ComModule cmObj = comModuleFacadeRemote.getComModuleByID(id);
    BUT the problem now is I don't know the ID of the new added record. How can I retrieve it?
    In ComModuleFacade(), the common method are CREATE, DESTROY, EDIT, FIND, FINDALL. Is there a method that I can directly retrieve a new inserted record??
    Thanks a lot for any of your help...
    Edited by: OhLei on Mar 19, 2008 12:24 AM

    Hi,
      public Long create(name,surname) throws
                SomeException{
            Person person=null;
                try{
                    person=new Person(name,surname);
                    em.persist(object);
                }catch (Exception ex){
                     throw new EJBException("create: " + ex.getMessage());
            return person.getId();  //here it will return your id
        }Person is an entity class with fields id, name, surname.
    Good Luck.

  • Oracle.jbo.AttrValException: Attribute test in TestEO is required. (When trying to create duplicate Record)

    I am facing an issue when trying to create a Duplicate Record.
    Ist time when I create a record, its created Successfully.
    I have Attribute validations which should not accept duplicate values, So to check that I tried to create the record with same values to display proper warning message.
    After entering all the values (same values which i already entered in 1st record), when I tab out its showing as Red color border for that field, its expecting behaviour so no problem with that...
    Then I click on Submit or Next button, now it's showing pop-up with expected warning message along with unexpected Exception message.
    oracle.jbo.AttrValException: Attribute test in TestEO is required
    The test field is mandatory in EO, VO and .jsff.  Could any body please help me what i missed here.
    My JDEV version: 11.1.17.0
    Regards
    Gowreenath

    Hi Popz,
    Thanks for your reply. 
    I am using fnd:applicationsPanel next button as nextAction="next", so i didn't find immediate property in fnd:applicationPanel. 
    So, I tried 2 things based on your comment.
    1. nextPartialSubmit ="true"... this option is also not worked.
    2. In my Test attribute added immediate="true" this is also not worked.
    If you have any id how to set immediate property or related property in fnd:applicationPanel for nextAction.  Please let me know.
    Thanks
    Gowreenath

  • Last added record key for UDO

    Hi,
    I create a UDO , how i get the last added record key after i add document ?
    Please Advise. Thanks

    Hi,
    Or try oCompany.GetNewObjectCode().
    Or if this dosent work try the following.... Before adding the record in the before action = True execute a simple query 
    select max(docentry)  from OINV
    And now store that in a variable and execute the same query after the record is added in the beforeaction = false and check if both are same, if not then u have a new record added.
    Hope it helps,
    Vasu Natari.

  • -5002 error ("No Data ") when adding record to a UserTable

    B1 2007A
    Here's my code.  I've stripped it about as far as I could to try and solve this problem... but I must be missing something.  Basically, I referenced the UIDIBasicApp for the UserTables portion.
    In the "PopulateUserTable" subroutine, where I attempt to add the record with:
    lngRetCode = objUserTable.Add()
    ... lngRetCode comes back as "-5002".  The error message is "No Data ".
    I've added records with the same data into the table through B1 User-Defined Windows and it accepts the data without a problem.  I've been re-checking the code, and searching the forums and the help file since last week, and I haven't found any reference to a problem like this.
    Any ideas?  Thanks!
    Module Module1
        Public WithEvents objSboApp As SAPbouiCOM.Application
        Public WithEvents objSboCompanyDi As SAPbobsCOM.Company
        Public Sub Main()
            ConnectUI()
            ConnectDI()
            CreateUserTable("TP_WhereUsed")
            PopulateUserTable("TP_WhereUsed")
        End Sub
        Public Function ConnectUI()
            Dim objSboUiApi As SAPbouiCOM.SboGuiApi
            objSboUiApi = New SAPbouiCOM.SboGuiApi
            Dim sConnectionString As String
            sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"
            objSboUiApi.Connect(sConnectionString)
            objSboApp = objSboUiApi.GetApplication
        End Function
        Public Function ConnectDI()
            objSboCompanyDi = New SAPbobsCOM.Company
            Try
                objSboCompanyDi = objSboApp.Company.GetDICompany()
            Catch
                objSboApp.MessageBox(Err.Description)
                Exit Function
            End Try
        End Function
        Public Sub CreateUserTable(ByVal TableName As String)
            Dim lngRetCode As Long
            Dim lngErrCode As Long
            Dim strErrMsg As String
            Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
            oUserTablesMD = objSboCompanyDi.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
            oUserTablesMD.TableName = TableName
            oUserTablesMD.TableDescription = TableName
            lngRetCode = oUserTablesMD.Add
            If lngRetCode <> 0 Then
                Select Case lngRetCode
                    Case Is = -2035
                        'Table already exists.
                        Exit Sub
                    Case Else
                        objSboCompanyDi.GetLastError(lngErrCode, strErrMsg)
                        objSboApp.MessageBox("Error - Table not created: " & strErrMsg)
                End Select
            Else
                objSboApp.SetStatusBarMessage("Table: " & oUserTablesMD.TableName & " was added successfully", SAPbouiCOM.BoMessageTime.bmt_Short, False)
            End If
        End Sub
        Private Sub PopulateUserTable(ByVal TableName As String)
            Dim lngRetCode As Long, lngErrCode As Long, strErrMsg As String
            Dim strCode As String, strName As String, intArrayCounter As Integer
            Dim objUserTable As SAPbobsCOM.UserTable
            objUserTable = objSboCompanyDi.UserTables.Item(TableName)
            intArrayCounter = 0
            Do Until intArrayCounter > 10
                strCode = "Code" & CStr(intArrayCounter)
                strName = "Name" & CStr(intArrayCounter)
                lngRetCode = objUserTable.Code = strCode
                lngRetCode = objUserTable.Name = strName
                lngRetCode = objUserTable.Add()
                intArrayCounter = intArrayCounter + 1
                objSboCompanyDi.GetLastError(lngErrCode, strErrMsg)
            Loop
        End Sub
    End Module

    Hi
    Try your code with the lines I've added to the code of your CreateUserTable function.  Hope it works!
        Public Sub CreateUserTable(ByVal TableName As String)
            Dim lngRetCode As Long
            Dim lngErrCode As Long
            Dim strErrMsg As String
            Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
            oUserTablesMD = objSboCompanyDi.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
            oUserTablesMD.TableName = TableName
            oUserTablesMD.TableDescription = TableName
            lngRetCode = oUserTablesMD.Add
            If lngRetCode <> 0 Then
                Select Case lngRetCode
                    Case Is = -2035
                        'Table already exists.
                        Exit Sub
                    Case Else
                        objSboCompanyDi.GetLastError(lngErrCode, strErrMsg)
                        objSboApp.MessageBox("Error - Table not created: " & strErrMsg)
                        System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
                        oUserTablesMD = Nothing
                        GC.Collect() ' free occupied resource
                End Select
            Else
                objSboApp.SetStatusBarMessage("Table: " & oUserTablesMD.TableName & " was added successfully", SAPbouiCOM.BoMessageTime.bmt_Short, False)
    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
                oUserTablesMD = Nothing
                GC.Collect() ' free occupied resource
            End If
        End Sub

  • Transferred Records 5463 but Added Records 0

    Hi Experts,
    My current project is CRM BI implementation. I am trying to load in 0BPARTNER Master data and DataSource 0BPARTNER_ATTR is enhanced by 44 customed attributes and it is 3.X DataSource. So, I created 44 InfoObjects, added those InfoObjects as an Attributes of 0BPARTNER. I created InfoSource, InfoPackage and Update Rule accordingly. I got data in PSA. But in DataTarget, I saw transferred records and no added records. Where should I troubleshoots and please tell me steps. Thank you.
    Md

    Md,
    The behaviour is perfectly fine. As its master data, 0BPARTNER already has the master data entries (primary keys in the P table). Only attributes to the same record have been added through the enhancement you have done.
    Please check that the attributes are filled in as you'd expect.
    In the scenario that BP was not loaded before and you load master data, you can see a > 0 figure for added records in manage screen as well.
    Hope this helps.
    Regards,
    Ashu

  • Purchasing Cube -- 0PUR_C01.. "Added record" is showing zero in request

    When i try to load the data to this cube, my trasfer record is showing values while Added Record is showing zero values. Whats the problem. Please advise !!

    Hi,
    Check whether do you have defined the industry sector in R/3. This has to be done before filling the setup table. search the forums with note no 353042.
    This is done with the help of Transaction MCB_ which you can find in the OLTP IMG for BW (Transaction SBIW) in your attached R/3 source system.
    Here you can choose your industry sector. 'Standard' and 'Consumer products' are for R/3 standard customers, whereas 'Retail' is intended for customers with R/3 Retail only.
    You can display the characteristics of the process key (R/3 field BWVORG, BW field 0PROCESSKEY) by using Transaction MCB0.
    If you have already set up historical data (for example for testing purposes) by using the setup transactions (Statistical Setup Programs) (for example: Purchasing: Tx OLI3BW, material movements: OLI1BW) into the provided setup tables (for example: MC02M_0SCLSETUP, MC03BF0SETUP), you unfortunately have to delete this data (Tx LBWG). After you have chosen the industry sector by using  MCB_, perform the setup again, so that the system fills a valid transaction key for each data record generated. Then load this data into your connected BW by using 'Full update' or 'Initialization of the delta process'. Check, whether the system updates data into the involved InfoCubes now.
    If all this is not successful, please see Note 315880, and set the application indicator 'BW' to active using Transaction 'BF11'.
    Regards,
    Anil Kumar Sharma .P

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • How can i create a record with a qualified or a hierarchy look up field

    if have the api to create a this record by one time  or must to create lookup then create main record???

    Hi,
    The process is to first populate the values in the lookup(can be a part of main table or qualified table) and hierarchy tables. Once done, create the main table record and then fill the details in the qualified table for that particular main table record. Since the details of the qualified table are stored in the link established between main table record and qualified table record hence you cannot first create a qualified table record before creating main table record.
    Also when you first create a main table record containing set of lookup & hierarchy fields then you wont find the values in the drop down since you have not filled the lookup tables, hence we always fill the lookup table data first.
    Regards,
    Jitesh Talreja

Maybe you are looking for

  • Not able to print the script form from print preview

    Hi Experts, I need to print one of the script form from print preview. As per the req. first i need to generate a print preview of this form and if required should be able to print it from this preview. i am able to generate print preview and also ab

  • Cannot read some HTML mail sent

    I have an issue where certain messages are showing up as blank in mail, no matter what I do. The only way to read them is for me to log onto my web based e-mail service, and read them there, using Safari, where they show up fine. Is there any way to

  • Failed to edit context value via OAM

    I was modifying a new value to PERL5LIB variable through OAM as below: /d001/app/oracle1/product/10.2/perl/lib/5.8.3::/d001/app/oracle1/product/10.2/perl/lib/site_perl/5.8.3::/d001/app/oracle1/product/10.2/perl/lib::/d001/app/oracle1/product/10.2/app

  • 403 Error during communication with System Landscape Directory from RWB

    Hi, I've got a new install of PI (XI 7.0) SPS 10 and am getting an error whenever I try to access the SLD from RWB or Integration Builder.  The SLD is running on the same server as XI. I've been through the various config guides (strangely there does

  • How can I update my ipod without deleting everything on it?

    Ok, so here is the situation, and I am pretty sure I am screwed. I have an ipod touch, 32 GB 3rd or 4th gen (the one right before the one with a camera) My macbook (1st gen) died last april, taking with it all my music, photos, apps and other such fi