Install Base Accounting Class code

Hi,
Iam using api csi_item_instance_pub.update_item_instance for updating Install base instance.
Iam able to update the partyid, account id but not accounting class code.
Can anyone please help me how to update accounting class code along with party information.
Any help is highly appreciated.
Here is my code which Iam using to update Item instance..
CREATE OR REPLACE PROCEDURE updateib_load_test
IS
g_instance_id_lst csi_datastructures_pub.id_tbl;
l_instance_rec apps.csi_datastructures_pub.instance_rec;
p_ext_attrib_values apps.csi_datastructures_pub.extend_attrib_values_tbl;
p_party_tbl apps.csi_datastructures_pub.party_tbl;
p_account_tbl apps.csi_datastructures_pub.party_account_tbl;
l_pricing_attrib_tbl apps.csi_datastructures_pub.pricing_attribs_tbl;
l_org_assignments_tbl apps.csi_datastructures_pub.organization_units_tbl;
l_asset_assignment_tbl apps.csi_datastructures_pub.instance_asset_tbl;
l_txn_rec apps.csi_datastructures_pub.transaction_rec;
x2_txn_rec apps.csi_datastructures_pub.transaction_rec;
l_return_status VARCHAR2 (100);
l_msg_count NUMBER;
l_msg_data VARCHAR2 (2000);
l_created_manually_flag VARCHAR2 (100);
----l_org_id NUMBER := 204;
n NUMBER := 1;
v_instance_id NUMBER;
p_commit VARCHAR2 (5);
p2_commit VARCHAR2 (5);
p_validation_level NUMBER;
p_init_msg_lst VARCHAR2 (500);
v_instance_party_id NUMBER;
v_ip_account_id NUMBER;
l_relationship_tbl apps.csi_datastructures_pub.ii_relationship_tbl;
v_relationship_id NUMBER;
v_success VARCHAR2 (1) := 'T';
x2_return_status VARCHAR2 (100);
x2_msg_count NUMBER;
x2_msg_data VARCHAR2 (2000);
p2_validation_level NUMBER;
p2_init_msg_lst VARCHAR2 (500);
a NUMBER;
t1_msg_dummy VARCHAR2 (1000);
t1_output VARCHAR2 (1000);
l_not_created NUMBER;
l_buffer VARCHAR2 (32767);
l_problem EXCEPTION;
l_message VARCHAR2 (2000);
CURSOR updateib_cur
IS
SELECT *
FROM ib_conv_stg
WHERE updateib = 'Y'
AND status_stg = 'V'
AND new_instance_number IS NOT NULL
AND transaction_id_stg = 8077;
BEGIN
-- DBMS_OUTPUT.put_line ('AFTER BEGIN');
apps.fnd_file.put_line (apps.fnd_file.LOG, 'AFTER BEGIN');
FOR updateib_rec IN updateib_cur
LOOP
BEGIN
l_instance_rec.accounting_class_code := fnd_api.g_miss_char;
IF p_party_tbl.EXISTS (1) IS NOT NULL
THEN
p_party_tbl.DELETE;
END IF;
IF p_account_tbl.EXISTS (1) IS NOT NULL
THEN
p_account_tbl.DELETE;
END IF;
IF p_ext_attrib_values.EXISTS (1) IS NOT NULL
THEN
p_ext_attrib_values.DELETE;
END IF;
/* SELECT apps.csi_item_instances_s.NEXTVAL
INTO v_instance_id
FROM SYS.DUAL;*/
l_instance_rec.instance_id :=
TO_NUMBER (updateib_rec.new_instance_number);
l_instance_rec.instance_number := updateib_rec.new_instance_number;
apps.fnd_file.put_line (apps.fnd_file.LOG,
l_instance_rec.instance_id);
l_instance_rec.object_version_number := updateib_rec.object_version;
apps.fnd_file.put_line (apps.fnd_file.LOG,
l_instance_rec.object_version_number
--l_instance_rec.inventory_item_id := updateib_rec.inventory_item_id;
l_instance_rec.inv_master_organization_id :=
updateib_rec.inv_master_organization_id;
--189;
l_instance_rec.mfg_serial_number_flag :=
updateib_rec.mfg_serial_number_flag;
--'Y';
--l_instance_rec.serial_number := updateib_rec.ls_serial_number;
---'LOG0005';
l_instance_rec.quantity := updateib_rec.quantity; --1;
l_instance_rec.unit_of_measure := updateib_rec.unit_of_measure;
--'EA';
l_instance_rec.accounting_class_code :=
updateib_rec.accounting_class_code;
apps.fnd_file.put_line (apps.fnd_file.LOG,
updateib_rec.new_instance_number
|| 'instance_rec'
|| l_instance_rec.accounting_class_code
|| 'updateib'
|| updateib_rec.accounting_class_code
--'CUST_PROD'; --'INV';
l_instance_rec.instance_status_id := updateib_rec.instance_status_id;
--510;
l_instance_rec.customer_view_flag := updateib_rec.customer_view_flag;
--'N'; --N
l_instance_rec.merchant_view_flag := updateib_rec.merchant_view_flag;
--'Y'; --Y
l_instance_rec.sellable_flag := updateib_rec.sellable_flag;
--'Y'; --N
--l_instance_rec.active_start_date := updateib_rec.active_start_date;
--SYSDATE;
l_instance_rec.location_type_code := updateib_rec.location_type_code;
--'HZ_PARTY_SITES';
l_instance_rec.location_id := updateib_rec.location_id; --375885;
l_instance_rec.install_date := updateib_rec.install_date;
--SYSDATE;
l_instance_rec.install_location_type_code :=
updateib_rec.install_location_type_code;
--'HZ_PARTY_SITES';
l_instance_rec.install_location_id :=
updateib_rec.install_location_id;
--375885;
--l_instance_rec.vld_organization_id :=
--updateib_rec.last_vld_organization_id;
--2104;
l_instance_rec.creation_complete_flag :=
updateib_rec.creation_complete_flag;
--'Y';
--l_instance_rec.object_version_number :=
--updateib_rec.object_version_number;
-- 1;
l_instance_rec.external_reference :=
updateib_rec.ls_external_reference;
l_instance_rec.instance_usage_code :=
updateib_rec.instance_usage_code;
l_instance_rec.inv_organization_id :=
updateib_rec.inv_organization_id;
l_instance_rec.inv_subinventory_name :=
updateib_rec.inv_subinventory_name;
l_instance_rec.inv_locator_id := updateib_rec.inv_locator_id;
l_instance_rec.manually_created_flag :=
updateib_rec.manually_created_flag;
l_instance_rec.last_oe_po_number := updateib_rec.last_oe_po_number;
l_instance_rec.instance_type_code :=
updateib_rec.ls_instance_type_code;
l_instance_rec.attribute3 := updateib_rec.ls_warranty_expiration_date;
--l_instance_rec.UPDATE_ORACLE:= updateib_rec.UPDATE_ORACLE;
-- ************* FOR PARTIES **********************************************************
/* SELECT apps.csi_i_parties_s.NEXTVAL
INTO v_instance_party_id
FROM SYS.DUAL;*/
p_party_tbl (1).instance_party_id := updateib_rec.instance_party_id;
p_party_tbl (1).instance_id :=
TO_NUMBER (updateib_rec.new_instance_number);
p_party_tbl (1).party_source_table :=
updateib_rec.owner_party_source_table;
--'HZ_PARTIES'; --
p_party_tbl (1).party_id := updateib_rec.owner_party_id;
--442143; --13478;
p_party_tbl (1).relationship_type_code := 'OWNER';
p_party_tbl (1).contact_flag := 'N';
-- l_party_tbl (1).active_start_date := updateib_rec.active_start_date;
--SYSDATE;
p_party_tbl (1).object_version_number :=
updateib_rec.object_version_p;
apps.fnd_file.put_line (apps.fnd_file.LOG,
p_party_tbl (1).object_version_number
-- *********** FOR PARTY ACCOUNT *****************************************************
/* SELECT apps.csi_ip_accounts_s.NEXTVAL
INTO v_ip_account_id
FROM SYS.DUAL;*/
p_account_tbl (1).ip_account_id := updateib_rec.ip_account_id;
p_account_tbl (1).instance_party_id := updateib_rec.instance_party_id;
p_account_tbl (1).party_account_id :=
updateib_rec.owner_party_account_id;
--755865;
p_account_tbl (1).relationship_type_code := 'OWNER';
--l_account_tbl (1).active_start_date := updateib_rec.active_start_date;
--SYSDATE;
p_account_tbl (1).object_version_number :=
updateib_rec.object_version_a;
apps.fnd_file.put_line (apps.fnd_file.LOG,
p_account_tbl (1).object_version_number
-- 1;
p_account_tbl (1).parent_tbl_index := 1;
p_account_tbl (1).call_contracts := 'Y';
-- ************************** TRANSACTION REC *****************************************
l_txn_rec.transaction_date := SYSDATE;
l_txn_rec.source_transaction_date := SYSDATE;
l_txn_rec.transaction_type_id := 1;
l_txn_rec.object_version_number := 1;
-- *************** API CALL *******************************************************
-- DBMS_OUTPUT.put_line ('BEFORE CREATE ITEM INSTANCE');
apps.fnd_file.put_line (apps.fnd_file.LOG,
'BEFORE UPDATE ITEM INSTANCE'
END;
BEGIN
fnd_msg_pub.initialize;
csi_item_instance_pub.update_item_instance
(p_api_version => 1.0,
p_commit => apps.fnd_api.g_true
--Defaults assigned in the package
p_init_msg_list => apps.fnd_api.g_true
--Defaults assigned in the package
p_validation_level => apps.fnd_api.g_valid_level_full
--Defaults assigned in the package
p_instance_rec => l_instance_rec,
p_ext_attrib_values_tbl => p_ext_attrib_values,
p_party_tbl => p_party_tbl,
p_account_tbl => p_account_tbl,
p_pricing_attrib_tbl => l_pricing_attrib_tbl,
p_org_assignments_tbl => l_org_assignments_tbl,
p_asset_assignment_tbl => l_asset_assignment_tbl,
p_txn_rec => l_txn_rec,
x_instance_id_lst => g_instance_id_lst,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data
COMMIT;
apps.fnd_file.put_line (apps.fnd_file.LOG,
'AFTER UPDATE ITEM INSTANCE'
apps.fnd_file.put_line (apps.fnd_file.LOG, 'test' || l_msg_data);
/* apps.fnd_file.put_line (apps.fnd_file.LOG,
'test1'
|| apps.fnd_msg_pub.get
(l_lcv,
apps.fnd_api.g_false
IF l_return_status != apps.fnd_api.g_ret_sts_success
THEN
l_not_created := l_not_created + 1;
ROLLBACK;
RAISE l_problem;
END IF;
updating STATUS in stg table
BEGIN
IF l_return_status = 'S'
THEN
dbms_output.put_line('satus :'||l_return_status);
COMMIT;
END IF;
COMMIT;
END;
-------------exception l_problem
EXCEPTION
WHEN l_problem
THEN
IF (l_msg_count > 0)
THEN
l_buffer := '';
FOR l_lcv IN 1 .. l_msg_count
LOOP
l_message :=
apps.fnd_msg_pub.get (l_lcv, apps.fnd_api.g_false);
END LOOP;
END IF;
COMMIT;
END;
END LOOP;
END updateib_load_test;

Hi Nagamohan,
Thanks for your reply.
Iam using the Location type code 'HZ_PARTY_SITES'.
Actually Iam updating existing instance to update party information.
The existing instance has the accounting_class_code as 'CUST_PROD'.
I want to update accounting class code to 'INV' while updating party information.
Iam able to update party information but not able to update accounting class code.
When I digged into the api, csi_item_instance_pub.update_item_instance I found some code which was updating the accounting_class_code to null if there is party information to be updated. I think this is the reason Iam not able to update accounting class.
Please help me if there is any chance of updating accounting class code along with party information.
Thanks in advance

Similar Messages

  • Issue in updating Install Base Owner account

    Hi,
    I'm using csi_item_instance_pub.update_item_instance API to update ownership and installed at details in Install Base. When I run my script, I do not get any error, but the party account details do not get updated. The owner party gets updated successfully. Even the installation details and operating unit details get updated, but the owner party account and Bill-to and Ship-to do not get updated. I'm posting my code here for details. If anyone could let me know what am I doing wrong, I would really appreciate that.
    TIA,
    Alka.
    DECLARE
      ln_order_num NUMBER;
      lc_p_sno     VARCHAR2(30); -- Variable for printer serial no.
      CURSOR ib_cur IS
        SELECT cii.instance_id
              ,cii.serial_number
              ,cii.inventory_item_id
              ,cii.object_version_number
        FROM csi_item_instances cii
        WHERE cii.instance_id = &instance_id
        ORDER BY 1;
      TYPE ib_rec_tbl_type IS TABLE OF ib_cur%ROWTYPE;
      ib_rec_tbl ib_rec_tbl_type;
      -- Variables needed to call the Item Instance update API
      l_api_version CONSTANT NUMBER := 1.0;
      l_msg_count             NUMBER;
      l_msg_data              VARCHAR2(2000);
      l_msg_index             NUMBER;
      l_instance_id_lst       csi_datastructures_pub.id_tbl;
      l_instance_header_rec   csi_datastructures_pub.instance_header_rec;
      l_party_header_tbl      csi_datastructures_pub.party_header_tbl;
      l_party_acct_header_tbl csi_datastructures_pub.party_account_header_tbl;
      l_org_unit_header_tbl   csi_datastructures_pub.org_units_header_tbl;
      l_instance_rec          csi_datastructures_pub.instance_rec;
      l_party_tbl             csi_datastructures_pub.party_tbl;
      l_account_tbl           csi_datastructures_pub.party_account_tbl;
      l_pricing_attrib_tbl    csi_datastructures_pub.pricing_attribs_tbl;
      l_org_assignments_tbl   csi_datastructures_pub.organization_units_tbl;
      l_asset_assignment_tbl  csi_datastructures_pub.instance_asset_tbl;
      l_ext_attrib_values_tbl csi_datastructures_pub.extend_attrib_values_tbl;
      l_pricing_attribs_tbl   csi_datastructures_pub.pricing_attribs_tbl;
      l_ext_attrib_tbl        csi_datastructures_pub.extend_attrib_values_tbl;
      l_ext_attrib_def_tbl    csi_datastructures_pub.extend_attrib_tbl;
      l_asset_header_tbl      csi_datastructures_pub.instance_asset_header_tbl;
      l_txn_rec               csi_datastructures_pub.transaction_rec;
      l_install_location_id   NUMBER;
      l_return_status         VARCHAR2(5);
      lc_init_msg_lst         VARCHAR2(1) := 'T';
      ln_validation_level     NUMBER;
      lc_error_text           VARCHAR2(4000);
      l_install_location_type_code csi_item_instances.install_location_type_code%TYPE;
      j BINARY_INTEGER := 0;
      l_party_tbl_idx BINARY_INTEGER;
    BEGIN
      --Create a savepoint
      --  SAVEPOINT dcrd_csi_upd_ib_snm;
      OPEN ib_cur;
      FETCH ib_cur BULK COLLECT
        INTO ib_rec_tbl;
      CLOSE ib_cur;
      IF ib_rec_tbl.COUNT > 0
      THEN
        --fnd_file.put_line(fnd_file.log, 'Begin loop');
        dbms_output.put_line('Begin loop');
        FOR i IN ib_rec_tbl.FIRST .. ib_rec_tbl.LAST
        LOOP
          --Set savepoint before processing record.
          --SAVEPOINT dcrd_csi_upd_ib_snm;
          l_instance_header_rec.instance_id := ib_rec_tbl(i).instance_id;
          csi_item_instance_pub.get_item_instance_details(p_api_version => l_api_version
                                                        ,p_commit => fnd_api.g_false
                                                        ,p_init_msg_list => fnd_api.g_false
                                                        ,p_validation_level => fnd_api.g_valid_level_full
                                                        ,p_instance_rec => l_instance_header_rec
                                                        ,p_get_parties => fnd_api.g_true
                                                        ,p_party_header_tbl => l_party_header_tbl
                                                        ,p_get_accounts => fnd_api.g_true
                                                        ,p_account_header_tbl => l_party_acct_header_tbl
                                                        ,p_get_org_assignments => fnd_api.g_true
                                                        ,p_org_header_tbl => l_org_unit_header_tbl
                                                        ,p_get_pricing_attribs => fnd_api.g_false
                                                        ,p_pricing_attrib_tbl =>l_pricing_attribs_tbl
                                                        ,p_get_ext_attribs => fnd_api.g_false
                                                        ,p_ext_attrib_tbl => l_ext_attrib_tbl
                                                        ,p_ext_attrib_def_tbl => l_ext_attrib_def_tbl
                                                        ,p_get_asset_assignments => fnd_api.g_false
                                                        ,p_asset_header_tbl => l_asset_header_tbl
                                                        ,p_resolve_id_columns => fnd_api.g_false
                                                        ,p_time_stamp => SYSDATE
                                                        ,x_return_status => l_return_status
                                                        ,x_msg_count => l_msg_count
                                                        ,x_msg_data => l_msg_data
          lc_error_text := NULL;
          l_instance_rec.instance_id := l_instance_header_rec.instance_id;
          l_instance_rec.install_date := '12-MAR-2008';
          l_instance_rec.install_location_type_code := 'HZ_PARTY_SITES';
          l_instance_rec.install_location_id := 97918;
          l_instance_rec.location_id := 97918;
          l_instance_rec.location_type_code := 'HZ_PARTY_SITES';
          l_instance_rec.object_version_number := l_instance_header_rec.object_version_number;
          l_txn_rec.transaction_id          := fnd_api.g_miss_num;
          l_txn_rec.transaction_date        := SYSDATE;
          l_txn_rec.source_transaction_date := SYSDATE;
          l_txn_rec.transaction_type_id     := 8; --Id for DATA_CORRECTION transaction type
          --Change Owner party details
          FOR i IN l_party_header_tbl.FIRST..l_party_header_tbl.LAST
          LOOP
            IF l_party_header_tbl(i).relationship_type_code = 'OWNER'
            THEN
              l_party_tbl(j).instance_party_id := l_party_header_tbl(i).instance_party_id;
              l_party_tbl(j).relationship_type_code := l_party_header_tbl(i).relationship_type_code;
              l_party_tbl(j).party_id := 210617;
              l_party_tbl(j).contact_flag := 'N';
              l_party_tbl(j).object_version_number := l_party_header_tbl(i).object_version_number;
              l_party_tbl_idx := j;
              j := j + 1;
            END IF;
          END LOOP;
          dbms_output.put_line('l_party_tbl count is '||l_party_tbl.COUNT);
          j := 0;
          dbms_output.put_line('l_party_acct_header_tbl count is '||l_party_acct_header_tbl.COUNT);
          --Change Owner party account details
          FOR i IN l_party_acct_header_tbl.FIRST..l_party_acct_header_tbl.LAST
          LOOP
            IF l_party_acct_header_tbl(i).relationship_type_code = 'OWNER'
            THEN
              l_account_tbl(j).ip_account_id := l_party_acct_header_tbl(i).ip_account_id;
              l_account_tbl(j).instance_party_id := l_party_acct_header_tbl(i).instance_party_id;
              l_account_tbl(j).party_account_id := 61217;
              l_account_tbl(j).object_version_number := l_party_acct_header_tbl(i).object_version_number;
              l_account_tbl(j).bill_to_address := 77370;
              l_account_tbl(j).ship_to_address := 77648;
              l_account_tbl(j).parent_tbl_index := l_party_tbl_idx;
              j := j + 1;
            END IF;
          END LOOP;
          dbms_output.put_line('l_account_tbl count is '||l_account_tbl.COUNT);
          j := 0;
          --Change Operating Unit details
          FOR i IN l_org_unit_header_tbl.FIRST..l_org_unit_header_tbl.LAST
          LOOP
            IF l_org_unit_header_tbl(i).relationship_type_code = 'SOLD_FROM'
            THEN
              l_org_assignments_tbl(j).instance_ou_id := l_org_unit_header_tbl(i).instance_ou_id;
              l_org_assignments_tbl(j).instance_id := l_org_unit_header_tbl(i).instance_id;
              l_org_assignments_tbl(j).relationship_type_code := l_org_unit_header_tbl(i).relationship_type_code;
              l_org_assignments_tbl(j).active_start_date := '12-MAR-2008';
              l_org_assignments_tbl(j).operating_unit_id := 86;
              l_org_assignments_tbl(j).object_version_number := l_org_unit_header_tbl(i).object_version_number;
            END IF;
          END LOOP;
          -- Call instance update API if a serial no. is to be updated
          /*fnd_file.put_line(fnd_file.log
          ,'Updating IB record for IB# ' || ib_rec_tbl(i).instance_id);*/
          dbms_output.put_line('Updating IB record for IB# ' || ib_rec_tbl(i).instance_id);
            csi_item_instance_pub.update_item_instance(p_api_version           => l_api_version
                                                      ,p_commit                => 'F' --Handled outside API
                                                      ,p_init_msg_list         => lc_init_msg_lst
                                                      ,p_validation_level      => ln_validation_level
                                                      ,p_instance_rec          => l_instance_rec
                                                      ,p_ext_attrib_values_tbl => l_ext_attrib_values_tbl --Null
                                                      ,p_party_tbl             => l_party_tbl --Null
                                                      ,p_account_tbl           => l_account_tbl --Null
                                                      ,p_pricing_attrib_tbl    => l_pricing_attrib_tbl --Null
                                                      ,p_org_assignments_tbl   => l_org_assignments_tbl --Null
                                                      ,p_asset_assignment_tbl  => l_asset_assignment_tbl --Null
                                                      ,p_txn_rec               => l_txn_rec
                                                      ,x_instance_id_lst       => l_instance_id_lst
                                                      ,x_return_status         => l_return_status
                                                      ,x_msg_count             => l_msg_count
                                                      ,x_msg_data              => l_msg_data);
            IF l_return_status <> 'S'
            THEN
              /*fnd_file.put_line(fnd_file.log
              , 'Error updating the install base for IB# ' || ib_rec_tbl(i)
               .instance_id);*/
              dbms_output.put_line('Error updating the install base for IB# ' || ib_rec_tbl(i)
                                   .instance_id);
              FOR i IN 1 .. l_msg_count
              LOOP
                fnd_msg_pub.get(p_msg_index     => -1
                               ,p_encoded       => 'F'
                               ,p_data          => l_msg_data
                               ,p_msg_index_out => l_msg_index);
                lc_error_text := lc_error_text || (substr(l_msg_data, 1, 255));
              END LOOP;
              dbms_output.put_line(lc_error_text);
              --Rollback the transaction if error occured.
              --ROLLBACK TO dcrd_csi_upd_ib_snm;
            ELSE
              /*fnd_file.put_line(fnd_file.log
              , 'Install base update successful for IB# ' || ib_rec_tbl(i)
               .instance_id);*/
              dbms_output.put_line('Install base update successful for IB# ' || ib_rec_tbl(i)
                                   .instance_id);
              lc_error_text := 'SUCCESS!';
            END IF;
            --Update the temporary table record status
            --update_status(ib_rec_tbl(i).snm_id, l_return_status, lc_error_text);
        END LOOP;
        --Commit transactions.
        --COMMIT;
      END IF;
    EXCEPTION
      WHEN no_data_found THEN
        --fnd_file.put_line(fnd_file.log, 'No records to process');
        dbms_output.put_line('No records to process');
      WHEN OTHERS THEN
        /*    fnd_file.put_line(fnd_file.log, 'Error in update_ib procedure');
            fnd_file.put_line(fnd_file.log, to_char(SQLCODE) || ' - ' || SQLERRM);
        dbms_output.put_line('Error in update_ib procedure');
        dbms_output.put_line(to_char(SQLCODE) || ' - ' || SQLERRM);
    END;

    I will try the mass edit. Here is my code.
    Thanks,
    Alka.
    DECLARE
      ln_order_num NUMBER;
      lc_p_sno     VARCHAR2(30); -- Variable for printer serial no.
      CURSOR ib_cur IS
        SELECT cii.instance_id
              ,cii.serial_number
              ,cii.inventory_item_id
              ,cii.object_version_number
        FROM csi_item_instances cii
        WHERE cii.instance_id = &instance_id
        ORDER BY 1;
      TYPE ib_rec_tbl_type IS TABLE OF ib_cur%ROWTYPE;
      ib_rec_tbl ib_rec_tbl_type;
      -- Variables needed to call the Item Instance update API
      l_api_version CONSTANT NUMBER := 1.0;
      l_msg_count             NUMBER;
      l_msg_data              VARCHAR2(2000);
      l_msg_index             NUMBER;
      l_instance_id_lst       csi_datastructures_pub.id_tbl;
      l_instance_header_rec   csi_datastructures_pub.instance_header_rec;
      l_party_header_tbl      csi_datastructures_pub.party_header_tbl;
      l_party_acct_header_tbl csi_datastructures_pub.party_account_header_tbl;
      l_org_unit_header_tbl   csi_datastructures_pub.org_units_header_tbl;
      l_instance_rec          csi_datastructures_pub.instance_rec;
      l_party_tbl             csi_datastructures_pub.party_tbl;
      l_account_tbl           csi_datastructures_pub.party_account_tbl;
      l_pricing_attrib_tbl    csi_datastructures_pub.pricing_attribs_tbl;
      l_org_assignments_tbl   csi_datastructures_pub.organization_units_tbl;
      l_asset_assignment_tbl  csi_datastructures_pub.instance_asset_tbl;
      l_ext_attrib_values_tbl csi_datastructures_pub.extend_attrib_values_tbl;
      l_pricing_attribs_tbl   csi_datastructures_pub.pricing_attribs_tbl;
      l_ext_attrib_tbl        csi_datastructures_pub.extend_attrib_values_tbl;
      l_ext_attrib_def_tbl    csi_datastructures_pub.extend_attrib_tbl;
      l_asset_header_tbl      csi_datastructures_pub.instance_asset_header_tbl;
      l_txn_rec               csi_datastructures_pub.transaction_rec;
      l_install_location_id   NUMBER;
      l_return_status         VARCHAR2(5);
      lc_init_msg_lst         VARCHAR2(1) := 'T';
      ln_validation_level     NUMBER;
      lc_error_text           VARCHAR2(4000);
      l_install_location_type_code csi_item_instances.install_location_type_code%TYPE;
      j BINARY_INTEGER := 0;
      l_party_tbl_idx BINARY_INTEGER := 0;
      l_ce_exists BOOLEAN := FALSE;
      ln_contact_ip_id NUMBER;     --contact_ip_id for preferred CE record in csi_i_parties table.
    BEGIN
      --Create a savepoint
      --  SAVEPOINT dcrd_csi_upd_ib_snm;
      OPEN ib_cur;
      FETCH ib_cur BULK COLLECT
        INTO ib_rec_tbl;
      CLOSE ib_cur;
      IF ib_rec_tbl.COUNT > 0
      THEN
        --fnd_file.put_line(fnd_file.log, 'Begin loop');
        dbms_output.put_line('Begin loop');
        FOR ib IN ib_rec_tbl.FIRST .. ib_rec_tbl.LAST
        LOOP
          --Set savepoint before processing record.
          --SAVEPOINT dcrd_csi_upd_ib_snm;
          l_instance_header_rec.instance_id := ib_rec_tbl(ib).instance_id;
          csi_item_instance_pub.get_item_instance_details(p_api_version => l_api_version
                                                        ,p_commit => fnd_api.g_false
                                                        ,p_init_msg_list => fnd_api.g_false
                                                        ,p_validation_level => fnd_api.g_valid_level_full
                                                        ,p_instance_rec => l_instance_header_rec
                                                        ,p_get_parties => fnd_api.g_true
                                                        ,p_party_header_tbl => l_party_header_tbl
                                                        ,p_get_accounts => fnd_api.g_true
                                                        ,p_account_header_tbl => l_party_acct_header_tbl
                                                        ,p_get_org_assignments => fnd_api.g_true
                                                        ,p_org_header_tbl => l_org_unit_header_tbl
                                                        ,p_get_pricing_attribs => fnd_api.g_false
                                                        ,p_pricing_attrib_tbl =>l_pricing_attribs_tbl
                                                        ,p_get_ext_attribs => fnd_api.g_false
                                                        ,p_ext_attrib_tbl => l_ext_attrib_tbl
                                                        ,p_ext_attrib_def_tbl => l_ext_attrib_def_tbl
                                                        ,p_get_asset_assignments => fnd_api.g_false
                                                        ,p_asset_header_tbl => l_asset_header_tbl
                                                        ,p_resolve_id_columns => fnd_api.g_false
                                                        ,p_time_stamp => SYSDATE
                                                        ,x_return_status => l_return_status
                                                        ,x_msg_count => l_msg_count
                                                        ,x_msg_data => l_msg_data
          lc_error_text := NULL;
          l_instance_rec.instance_id := l_instance_header_rec.instance_id;
          l_instance_rec.install_date := '12-MAR-2008';
          l_instance_rec.install_location_type_code := 'HZ_PARTY_SITES';
          l_instance_rec.install_location_id := 97918;
          l_instance_rec.location_id := 97918;
          l_instance_rec.location_type_code := 'HZ_PARTY_SITES';
          l_instance_rec.object_version_number := l_instance_header_rec.object_version_number;
          l_txn_rec.transaction_id          := fnd_api.g_miss_num;
          l_txn_rec.transaction_date        := SYSDATE;
          l_txn_rec.source_transaction_date := SYSDATE;
          l_txn_rec.transaction_type_id     := 8; --Id for DATA_CORRECTION transaction type
          --Change Owner party details
          j := 0;
          FOR i IN l_party_header_tbl.FIRST..l_party_header_tbl.LAST
          LOOP
            IF l_party_header_tbl(i).relationship_type_code = 'OWNER'
            THEN
              l_party_tbl(j).instance_party_id := l_party_header_tbl(i).instance_party_id;
              l_party_tbl(j).instance_id := l_party_header_tbl(i).instance_id;
              l_party_tbl(j).relationship_type_code := l_party_header_tbl(i).relationship_type_code;
              l_party_tbl(j).party_source_table := l_party_header_tbl(i).party_source_table;
              l_party_tbl(j).party_id := 210617;
              l_party_tbl(j).contact_flag := 'N';
              l_party_tbl(j).preferred_flag := NULL;
              l_party_tbl(j).primary_flag := NULL;
              l_party_tbl(j).contact_flag := 'N';
              l_party_tbl(j).object_version_number := l_party_header_tbl(i).object_version_number;
              l_party_tbl_idx := j;
              dbms_output.put_line('index is '||j);
              ln_contact_ip_id := l_party_header_tbl(i).instance_party_id;
              j := j + 1;
            ELSIF l_party_header_tbl(i).relationship_type_code = 'CUSTOMER ENGINEER'
            THEN
              l_ce_exists := TRUE;
              l_party_tbl(j).instance_party_id := l_party_header_tbl(i).instance_party_id;
              l_party_tbl(j).instance_id := l_party_header_tbl(i).instance_id;
              l_party_tbl(j).relationship_type_code := l_party_header_tbl(i).relationship_type_code;
              l_party_tbl(j).party_source_table := 'EMPLOYEE';
              l_party_tbl(j).party_id := 9115;
              l_party_tbl(j).contact_flag := 'N';
              l_party_tbl(j).preferred_flag := 'Y';
              l_party_tbl(j).primary_flag := 'Y';
              l_party_tbl(j).contact_flag := 'Y';
              l_party_tbl(j).contact_ip_id := ln_contact_ip_id;
              l_party_tbl(j).object_version_number := l_party_header_tbl(i).object_version_number;
              l_party_tbl(j).contact_parent_tbl_index := l_party_tbl_idx;
            END IF;
          END LOOP;
          dbms_output.put_line('l_party_tbl count is '||l_party_tbl.COUNT);
          IF NOT l_ce_exists
          THEN
            FOR i IN l_party_header_tbl.FIRST..l_party_header_tbl.LAST
            LOOP
              IF l_party_header_tbl(i).relationship_type_code = 'OWNER'
              THEN
              l_party_tbl(j).instance_party_id := fnd_api.G_MISS_NUM;
              l_party_tbl(j).instance_id := l_party_header_tbl(i).instance_id;
              l_party_tbl(j).party_source_table := 'EMPLOYEE';
              l_party_tbl(j).relationship_type_code := 'CUSTOMER ENGINEER';
              l_party_tbl(j).party_id := 9115;
              l_party_tbl(j).contact_flag := 'N';
              l_party_tbl(j).preferred_flag := 'Y';
              l_party_tbl(j).primary_flag := 'Y';
              l_party_tbl(j).contact_flag := 'Y';
              l_party_tbl(j).contact_ip_id := ln_contact_ip_id;
              l_party_tbl(j).object_version_number := l_party_header_tbl(i).object_version_number;
              l_party_tbl(j).contact_parent_tbl_index := l_party_tbl_idx;
              END IF;
            END LOOP;
          END IF;
          j := 0;
          dbms_output.put_line('l_party_acct_header_tbl count is '||l_party_acct_header_tbl.COUNT);
          --Change Owner party account details
          FOR i IN l_party_acct_header_tbl.FIRST..l_party_acct_header_tbl.LAST
          LOOP
            IF l_party_acct_header_tbl(i).relationship_type_code = 'OWNER'
            THEN
              dbms_output.put_line('Adding account details for ip_account_id '||l_party_acct_header_tbl(i).ip_account_id);
              l_account_tbl(j).ip_account_id := l_party_acct_header_tbl(i).ip_account_id;
              l_account_tbl(j).instance_party_id := l_party_acct_header_tbl(i).instance_party_id;
              l_account_tbl(j).party_account_id := 61217;
              l_account_tbl(j).object_version_number := l_party_acct_header_tbl(i).object_version_number;
              l_account_tbl(j).bill_to_address := 77370;
              l_account_tbl(j).ship_to_address := 77648;
              l_account_tbl(j).parent_tbl_index := 1;--l_party_tbl_idx;
              j := j + 1;
            END IF;
          END LOOP;
          dbms_output.put_line('l_account_tbl count is '||l_account_tbl.COUNT);
          j := 0;
          --Change Operating Unit details
          FOR i IN l_org_unit_header_tbl.FIRST..l_org_unit_header_tbl.LAST
          LOOP
            IF l_org_unit_header_tbl(i).relationship_type_code = 'SOLD_FROM'
            THEN
              l_org_assignments_tbl(j).instance_ou_id := l_org_unit_header_tbl(i).instance_ou_id;
              l_org_assignments_tbl(j).instance_id := l_org_unit_header_tbl(i).instance_id;
              l_org_assignments_tbl(j).relationship_type_code := l_org_unit_header_tbl(i).relationship_type_code;
              l_org_assignments_tbl(j).active_start_date := '12-MAR-2008';
              l_org_assignments_tbl(j).operating_unit_id := 86;
              l_org_assignments_tbl(j).object_version_number := l_org_unit_header_tbl(i).object_version_number;
            END IF;
          END LOOP;
          -- Call instance update API if a serial no. is to be updated
          /*fnd_file.put_line(fnd_file.log
          ,'Updating IB record for IB# ' || ib_rec_tbl(ib).instance_id);*/
          dbms_output.put_line('Updating IB record for IB# ' || ib_rec_tbl(ib).instance_id);
            csi_item_instance_pub.update_item_instance(p_api_version           => l_api_version
                                                      ,p_commit                => 'F' --Handled outside API
                                                      ,p_init_msg_list         => lc_init_msg_lst
                                                      ,p_validation_level      => ln_validation_level
                                                      ,p_instance_rec          => l_instance_rec
                                                      ,p_ext_attrib_values_tbl => l_ext_attrib_values_tbl --Null
                                                      ,p_party_tbl             => l_party_tbl --Null
                                                      ,p_account_tbl           => l_account_tbl --Null
                                                      ,p_pricing_attrib_tbl    => l_pricing_attrib_tbl --Null
                                                      ,p_org_assignments_tbl   => l_org_assignments_tbl --Null
                                                      ,p_asset_assignment_tbl  => l_asset_assignment_tbl --Null
                                                      ,p_txn_rec               => l_txn_rec
                                                      ,x_instance_id_lst       => l_instance_id_lst
                                                      ,x_return_status         => l_return_status
                                                      ,x_msg_count             => l_msg_count
                                                      ,x_msg_data              => l_msg_data);
            IF l_return_status <> 'S'
            THEN
              /*fnd_file.put_line(fnd_file.log
              , 'Error updating the install base for IB# ' || ib_rec_tbl(ib)
               .instance_id);*/
              dbms_output.put_line('Error updating the install base for IB# ' || ib_rec_tbl(ib)
                                   .instance_id);
              FOR i IN 1 .. l_msg_count
              LOOP
                fnd_msg_pub.get(p_msg_index     => -1
                               ,p_encoded       => 'F'
                               ,p_data          => l_msg_data
                               ,p_msg_index_out => l_msg_index);
                lc_error_text := lc_error_text || (substr(l_msg_data, 1, 255));
              END LOOP;
              dbms_output.put_line(lc_error_text);
              --Rollback the transaction if error occured.
              --ROLLBACK TO dcrd_csi_upd_ib_snm;
            ELSE
              /*fnd_file.put_line(fnd_file.log
              , 'Install base update successful for IB# ' || ib_rec_tbl(ib)
               .instance_id);*/
              dbms_output.put_line('Install base update successful for IB# ' || ib_rec_tbl(ib)
                                   .instance_id);
              lc_error_text := 'SUCCESS!';
            END IF;
            --Update the temporary table record status
            --update_status(ib_rec_tbl(i).snm_id, l_return_status, lc_error_text);
        END LOOP;
        --Commit transactions.
        --COMMIT;
      END IF;
    EXCEPTION
      WHEN no_data_found THEN
        --fnd_file.put_line(fnd_file.log, 'No records to process');
        dbms_output.put_line('No records to process');
      WHEN OTHERS THEN
        /*    fnd_file.put_line(fnd_file.log, 'Error in update_ib procedure');
            fnd_file.put_line(fnd_file.log, to_char(SQLCODE) || ' - ' || SQLERRM);
        dbms_output.put_line('Error in update_ib procedure');
        dbms_output.put_line(to_char(SQLCODE) || ' - ' || SQLERRM);
    END;

  • Report Related to Installed Base (T.Code IB51and IH20)

    Hello Experts,
    In IB51 Installed Base Number is generating based up on Header Material Number and Serial Number.
    and it will be generated based up on both Header Material and Child Data .
    But my problem is I need to Find the in which Table IBASE number is storing.
    I Need to Generate the report which Needs to be display the IBASE Number along with all the data.
       PLease anybody help me to find out the table of IBASE Number..only I hav the inputs Material Number and Serial Number.

    Hello Prabakaran,
         Simialr issue i'm also facing. I need to generate report which gives details of Installed base in CRM like Partner details, Product details, Sales area details & so on...I'm unable to find Functiona module that gives me data for all these paramaters. If you have found solution for this already kindly let me know.
    i've found 2 tables that gives IB no, & its components. IBIB & IBIN.
    Pls reply back if you have any solution to this.
    Regards
    Devika.S

  • Error Class Code: 70 on Linux Redhat 6.0

    hi guys!!
    I was installing package by using yum commad on my fresh Linux Red hat 6.0 which i have installed it first time  as follow.
                        $ yum install libaio-devel-0.3.107-10.el6.i686
    But it return error as:
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    No package libaio-devel-0.3.107-10.el6.i686 available.
    Error: Nothing to do
    So to reslove this I created account on rhn.redhat.com. I saw under "Registered system" that there was no old system registered. Then I tried to register my system with rhn as follow.
    1. Login as root
    2. rhn_register
        After supplying username and password it returns error like
    Error Class Code: 70
    Error Class Info:
         All available subscriptions for the requested channel have been exhausted.
         Please contact a Red Hat Network Sales associate.
    Explanation:
         An error has occurred while processing your request. If this problem
         persists please enter a bug report at bugzilla.redhat.com.
         If you choose to submit the bug report, please be sure to include
         details of what you were trying to do when this error occurred and
         details on how to reproduce this problem.
    So how can i resolve this error?
    Plz help me....

    As the error states:
    Please contact a Red Hat Network Sales associate.
    If you have a problem with your Red Hat subscription you should contact Red Hat support. It has nothing to do Oracle and I'm afraid no one here will help you with it. RHEL is not a free product beyond its evaluation period.
    Perhaps you might want to take advantage of Oracle Linux as mentioned in your previous discussion at https://forums.oracle.com/thread/2593755
    Here are some more links that may help you to make the right decisions:
    https://linux.oracle.com/switch.html
    https://blogs.oracle.com/linux/entry/migration_made_easy_switch_from
    http://www.oracle-base.com/articles/linux/oracle-linux-frequently-asked-questions.php

  • Error while creating contact through API in Install Base

    Hello
    I am trying to create contacts when creating a install base through API...
    I tried below code as per metalink note# 215456.1 and giving the below error. I checked setup andI have 'Ship To' exists in Instnace Party Account Relationsship setup in the aplication and also I have a party Id 1232890 exist in hz_parties table with party type as 'Person' and I passed contact_ip_id as instance_party_id from CSI_I_PARTIES table for the instance to be update...
    Also, can anybody help me how to purge the error messages before calling the API, suppose if i have 2 records and all two records will error then my second record error getting contatenated with my first error and message count also getting increased(see error message below as message count coming as 2 even though there is only one error)
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
    p_instance_rec CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
    p_ext_attrib_values_tbl
    CSI_DATASTRUCTURES_PUB.EXTEND_ATTRIB_VALUES_TBL;
    p_party_tbl CSI_DATASTRUCTURES_PUB.PARTY_TBL;
    p_account_tbl CSI_DATASTRUCTURES_PUB.PARTY_ACCOUNT_TBL;
    p_pricing_attrib_tbl CSI_DATASTRUCTURES_PUB.PRICING_ATTRIBS_TBL;
    p_org_assignments_tbl CSI_DATASTRUCTURES_PUB.ORGANIZATION_UNITS_TBL;
    p_asset_assignment_tbl CSI_DATASTRUCTURES_PUB.INSTANCE_ASSET_TBL;
    p_txn_rec CSI_DATASTRUCTURES_PUB.TRANSACTION_REC;
    x_instance_id_lst CSI_DATASTRUCTURES_PUB.ID_TBL;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    x_msg_index_out NUMBER;
    t_output VARCHAR2(2000);
    t_msg_dummy NUMBER;
    BEGIN
    p_party_tbl(1).instance_party_id := null;
    p_party_tbl(1).instance_id := 1216497;
    p_party_tbl(1).party_source_table := 'HZ_PARTIES';
    p_party_tbl(1).party_id := 1232890;
    p_party_tbl(1).relationship_type_code := 'Ship To';
    p_party_tbl(1).contact_flag := 'Y';
    p_party_tbl(1).contact_ip_id := 1699185;
    x_msg_count := 0;
    p_party_tbl(1).OBJECT_VERSION_NUMBER := 1;
    -- Now call the stored program
    csi_item_instance_pub.update_item_instance(
    1.0,
    'F',
    'F',
    1,
    p_instance_rec,
    p_ext_attrib_values_tbl,
    p_party_tbl,
    p_account_tbl,
    p_pricing_attrib_tbl,
    p_org_assignments_tbl,
    p_asset_assignment_tbl,
    p_txn_rec,
    x_instance_id_lst,
    x_return_status,
    x_msg_count,
    x_msg_data);
    -- Output the results
    if x_msg_count > 0
    then
    for j in 1 .. x_msg_count loop
    fnd_msg_pub.get
    ( j
    , FND_API.G_FALSE
    , x_msg_data
    , t_msg_dummy
    t_output := ( 'Msg'
    || To_Char
    ( j
    || ': '
    || x_msg_data
    dbms_output.put_line
    ( SubStr
    ( t_output
    , 1
    , 255
    end loop;
    end if;
    dbms_output.put_line('x_return_status = '||x_return_status);
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line('x_msg_data = '||x_msg_data);
    -- COMMIT;
    END;
    ERROR
    SQL> @p
    Msg1: The Party Relationship Type (Ship To) entered is either invalid or it does
    not exist in the Installed Base Lookups
    Msg2: The Party Relationship Type (Ship To) entered is either invalid or it does
    not exist in the Installed Base Lookups
    x_return_status = E
    x_msg_count = 2
    x_msg_data = The Party Relationship Type (Ship To) entered is either invalid or
    it does not exist in the Installed Base Lookups
    PL/SQL procedure successfully completed.

    Hi
    We are in 11.5.10.2 and I already checked notes which you sent before and setups are fine as the relationship type' Ship to' having 'contacts' enabled in the setup.
    I am also seeing a differernt issue as once I update existing item instnace with the status 'Return for Credit' through API, system is not allowing me to update the extended attributes through front end application manually and I am seeing a note at the end of the screen as 'Note: This item instance cannot be updated. ' and this is only happening when I update the item instance status to 'Returned for Credit' not when I create new item instances with status as 'Created'. Is this intended functionality to restrict update on extended attributes if I change the status of item instnace to 'Return for Credit' ?
    Thanks

  • How to install new fonts using code in java?

    Hi,
    How to install font in a system using java, provided i know the font file's address. Is there any specific class/method available for this purpose? Copying the file to windows/font directory will work for windows, but I think it wont be generic to all operating system. So is there anyway to install a font using code?
    I also want to know how to make the font available only until my application window is open, It must be available to all other external applications like photoshop, word etc., When I close my window it must un-install automatically or be made not available to other applications. Any suggestions? Please do help! Thanks in advance...

    I have already tried the above, But the font created using input stream is available only to my application* and is not viewable in photoshop.*. I realize this. Like I said, I know of no method that will register/deregister the font with the system. You'll have to create your own method that takes the operating system into account.
    String os = System.getPropery("os.name");
    if(os.equals("Windows Vista")) {
    }else if(os.equals("Windows XP")) {
    }else if(os.equals("Windows NT")) {
    }else if(os.equals("Solaris")) {
    AIX
    Digital Unix
    FreeBSD
    HP UX
    Irix
    Linux
    Mac OS
    Mac OS X
    MPE/iX
    Netware 4.11
    OS/2
    Solaris
    Windows 2000
    Windows 95
    Windows 98
    Windows NT
    Windows Vista
    Windows XPYou'll need the standard font directory for each system. I think all the window ones are C:\Windows\Font\ . Each OS probably has its own little quark (like having several font directories or throwing different security exceptions). Undoubtly it's going to require some research and a bit of trial and error. You can probably work some magic with Runtime.exec(...) as well.
    The alternative would be to google for some libraries that offer similar functionality, or promt the user for the system's font directory and save the location of the directory in a file somewhere for future use (so the user dosen't have to specify the font directory everytime he/she starts up the application).

  • Install base Open Interface

    Hello All,
    When I was trying to migrate a record into Install base using the interface tables with a party as owner for one instance, I am getting an error message saying "Invalid OWNER Party Account for Party ID <XXXX>". I have entered the party_id , and party_account_id(party_account1_id) in CSI_I_Party_Interface table.
    I am unable to find out why I am getting this error. Can any one please help me with this problem.
    Thank you all,
    Vijay

    Thanks Sandeep! This document is really helpfull!! Can we have the similiar type of document available for 11i becuase the user guide which I have for 11i does not have this information especially sample scripts.
    Thanks!

  • Install base API error Material Transaction errored prior to the current tr

    All,
    I wrote a script to update the install base installed date using API - csi_item_instance_pub.update_item_instance.
    Script updated many successfully, but, for many I am getting following error:
    You have Material Transaction_id (12169418) errored Prior to the Current Transaction. You need to process that first.
    You have Material Transaction_id (12020011) errored Prior to the Current Transaction. You need to process that first.
    I tried to reprocess using API again, but, it does update.
    Does any one encountered this before ? What's causing this issue and resolution for same ? Is there any data issue, if so where ?
    Thanks much

    Nagmohan,
    Thanks for quick update...
    I found that progam you mentioned 'Install Base Error Correction and Synchronization Program' and ran that with options Show instances - Y, Mode - C, Force all data fix - Y.
    I don't see any change what so ever in the csi_txn_errors. Though, I didn't ran the update API program.
    For testing purposes, I took one inventory_item_id from the csi_txn_errors table to see how many errors it got.
    Inventory_item_id = 304076
    Found there are 123 rows for this items. processed_flag D-20 ; E-103 ;
    I am enclosing few of data from the table here.
    I understand from you that we need to clean these errors by some means, so, we need to look at each one in sequential order, then, try to resolve that to get to next one and so on until all the errors cleared. Also, is that business users needs to do something over here to fix these errors ? Or each one have it's own resolution ?
    Why did Install Base error correction program did not fix the issues ? Is the program expected to fix the error by correcting the issue internally ?
    Thanks much,
    TRANSACTION_ERROR_ID MESSAGE_ID ERROR_TEXT PROCESSED_FLAG CREATION_DATE
    1 12224 10818 Transaction prior to freeze_date in install parameter D 10/6/2007 8:10:40 PM
    2 12227 10822 Transaction prior to freeze_date in install parameter D 10/6/2007 8:10:40 PM
    3 12229 10828 Transaction prior to freeze_date in install parameter D 10/6/2007 8:10:40 PM
    4 12230 10832 Serial control is now inappropriate for this txn. Knocking this D 10/6/2007 8:10:40 PM
    5 12225 10820 Transaction prior to freeze_date in install parameter D 10/6/2007 8:10:40 PM
    6 12226 10824 Transaction prior to freeze_date in install parameter D 10/6/2007 8:10:40 PM
    7 12228 10826 Transaction prior to freeze_date in install parameter D 10/6/2007 8:10:40 PM
    8 12231 10830 Serial control is now inappropriate for this txn. Knocking this D 10/6/2007 8:10:40 PM
    9 12950 12718 Transaction prior to freeze_date in install parameter D 10/6/2007 8:11:23 PM
    10 12952 12722 Transaction prior to freeze_date in install parameter D 10/6/2007 8:11:24 PM
    11 12954 12726 Serial control is now inappropriate for this txn. Knocking this D 10/6/2007 8:11:24 PM
    12 12947 12710 Transaction prior to freeze_date in install parameter D 10/6/2007 8:11:23 PM
    13 12948 12714 Transaction prior to freeze_date in install parameter D 10/6/2007 8:11:23 PM
    14 12949 12716 Transaction prior to freeze_date in install parameter D 10/6/2007 8:11:23 PM
    15 12951 12720 Transaction prior to freeze_date in install parameter D 10/6/2007 8:11:24 PM
    16 12953 12724 Transaction prior to freeze_date in install parameter D 10/6/2007 8:11:24 PM
    17 13574 14556 Transaction prior to freeze_date in install parameter D 10/6/2007 8:11:58 PM
    18 13575 14560 Transaction prior to freeze_date in install parameter D 10/6/2007 8:11:58 PM
    19 13573 14554 Transaction prior to freeze_date in install parameter D 10/6/2007 8:11:58 PM
    20 13576 14562 Serial control is now inappropriate for this txn. Knocking this D 10/6/2007 8:11:58 PM
    21 144067 34168 Either sub type has change owner code as "E" ,so the external party_id: (47598 ) E 12/6/2007 7:02:11 PM
    22 144133 34396 This customer item instance is currently in an Internal location INVENTORY and it is an Invalid location for the type of transaction being processed. E 12/8/2007 7:23:16 AM
    23 145027 34578 You have Material Transaction_id (4844377) errored Prior to the Current Transaction. You need to process that first. E 12/10/2007 12:04:35 PM
    24 168201 41858 You have Material Transaction_id (6048616) errored Prior to the Current Transaction. You need to process that first. E 1/30/2008 4:31:33 PM
    25 168195 41840 You have Material Transaction_id (4869894) errored Prior to the Current Transaction. You need to process that first. E 1/30/2008 4:18:43 PM
    26 169223 42238 You have Material Transaction_id (6048754) errored Prior to the Current Transaction. You need to process that first. E 2/1/2008 2:17:01 PM
    27 169211 42162 You have Material Transaction_id (6048616) errored Prior to the Current Transaction. You need to process that first. E 2/1/2008 8:52:50 AM
    28 170277 42680 You have Material Transaction_id (6072810) errored Prior to the Current Transaction. You need to process that first. E 2/5/2008 3:27:28 PM
    29 190286 46872 You have Material Transaction_id (6075528) errored Prior to the Current Transaction. You need to process that first. E 3/6/2008 6:43:27 AM
    30 190288 46876 The source item instance 304076, in Subinventory STAGE, for Organization 193 in Oracle Install Base does not exist. Please verify that any receipt transations were successful. (ITEM=304076) E 3/6/2008 6:49:20 AM
    31 207309 50410 You have Material Transaction_id (6635323) errored Prior to the Current Transaction. You need to process that first. E 3/28/2008 11:12:24 AM
    32 209320 51074 You have Material Transaction_id (7279930) errored Prior to the Current Transaction. You need to process that first. E 4/1/2008 11:44:27 AM
    33 241414 57434 You have Material Transaction_id (6151851) errored Prior to the Current Transaction. You need to process that first. E 5/12/2008 4:05:12 PM
    34 241435 57484 No instance is found for the inventory location attributes E 5/12/2008 7:01:04 PM
    35 242428 57654 No instance is found for the inventory location attributes E 5/13/2008 7:00:39 PM
    36 242419 57602 You have Material Transaction_id (7332482) errored Prior to the Current Transaction. You need to process that first. E 5/13/2008 2:44:11 PM
    37 244522 58180 You have Material Transaction_id (8291855) errored Prior to the Current Transaction. You need to process that first. E 5/15/2008 7:00:52 PM
    38 244499 58102 You have Material Transaction_id (6151851) errored Prior to the Current Transaction. You need to process that first. E 5/15/2008 1:42:11 PM
    39 247465 60310 The source item instance 304076, in Subinventory UCORE, for Organization 193 in Oracle Install Base does not exist. Please verify that any receipt transations were successful. E 5/30/2008 10:48:36 AM
    40 266432 81460 Invalid Instance Id Provided. The Item Instance ID (537385) provided is Either Expired or it does not exist in Installed Base Tables. E 9/19/2008 7:01:26 PM
    41 275056 87920 "You have encountered an unexpected error in Call_to_Contracts, with error ORA-01403: no data found.
    " E 10/22/2008 7:01:39 PM
    42 275055 87918 "You have encountered an unexpected error in Call_to_Contracts, with error ORA-01403: no data found.
    " E 10/22/2008 7:01:36 PM
    43 276087 89296 "You have encountered an unexpected error in Call_to_Contracts, with error ORA-01403: no data found.
    " E 10/30/2008 7:01:21 PM
    44 276135 89564 "You have encountered an unexpected error in Call_to_Contracts, with error ORA-01403: no data found.
    " E 10/31/2008 7:01:38 PM
    45 276153 89618 "You have encountered an unexpected error in Call_to_Contracts, with error ORA-01403: no data found.
    " E 11/3/2008 8:45:52 AM
    46 276155 89622 You have Material Transaction_id (12743392) errored Prior to the Current Transaction. You need to process that first. E 11/3/2008 8:48:13 AM
    47 276179 89690 "You have encountered an unexpected error in Call_to_Contracts, with error ORA-01403: no data found.
    " E 11/3/2008 9:31:46 AM
    48 276223 89868 You have Material Transaction_id (12743411) errored Prior to the Current Transaction. You need to process that first. E 11/3/2008 1:45:18 PM
    49 276205 89772 You have Material Transaction_id (12743982) errored Prior to the Current Transaction. You need to process that first. E 11/3/2008 11:32:40 AM
    50 276180 89694 You have Material Transaction_id (12743974) errored Prior to the Current Transaction. You need to process that first. E 11/3/2008 9:32:23 AM
    51 276318 90432 "You have encountered an unexpected error in Call_to_Contracts, with error ORA-01403: no data found.
    " E 11/5/2008 2:51:48 PM
    52 276370 90758 No instance is found for the inventory location attributes E 11/6/2008 7:01:02 PM
    53 276360 90686 You have Material Transaction_id (12744871) errored Prior to the Current Transaction. You need to process that first. E 11/6/2008 2:05:38 PM

  • Populating the configurator from install base!!

    HI All
    We have a requirement of
    Referencing the current product configuration from the Install Base and then populating it in Oracle Configurature , If any feature code is not populated due to any reason ,then we need to show those reason in the report .
    Do we have any stabdard API or concurrent program to this ??
    Or any program which does some part of the above requirement !??
    Pls help
    thanks
    naveen

    hi,
    To get one service customer created one order in CRM system (say A) and this order is came down to our system(say B) and we send it further to another system(say c). we got ok response from system whome we send the order i.e. (C), so in our system (B)we close the order.
    But unfortunately this order is failed in System C so we need to cancell this order. We cancelled the Order in system A but in our system(B) order is close so it is not possible to cancelled this order so we need to remove this item instance form install base.

  • Error while updating Instances in Install Base

    Hi Experts,
    I am using the "csi_item_instance_pub.update_item_instance" API to update the
    instance details. when i change the owner party and it's contacts(transfer ownership), I am getting following errors.
    1)Owner account for external parties is mandatory. Please provide a valid Account for the Owner Party - 1221238 for some instance.
    Eventhough i verified the correct party id and it's account id, it shows the same errror.
    2)For some cases, I am getting the error like "The Object Version Number passed does not match with the one existing in Installed Base tables" .
    Any suggestions for the above will be a great help for me .
    Thanks in advance,
    Ravi.
    Edited by: user11291639 on Oct 28, 2009 9:45 PM

    Thanks you,
    By this Note id:395136.1
    Iam unable to find this Set profile 'HZ: Generate Events for DQM Real-Time Synchronization' to No
    with this Note id:278422.1
    We are unable to find this proifle option : HZ: Data Sharing and Security Enabled profile
    we are using applications 11i.
    please help to find this Profile option.
    But with this note id:ID 395136.1
    This is Working.
    Query for HZ: DQM Synchronization Method profile. Set the value to Disable.
    But iam facing proble while uploding data to DFF ,Error--SQL exception occurred during PL/SQL upload.
    Thanks for the Support-
    Sowmya.
    Edited by: user13419037 on Aug 11, 2011 11:53 PM
    Edited by: user13419037 on Aug 12, 2011 12:03 AM
    Edited by: user13419037 on Aug 12, 2011 3:45 AM

  • Install failed with exit code 11?

    Hi,
    I am trying to deploy a language pack and set the override language to English-US which I have created 2 programs for in my package. When the first program runs I am getting an error in the execmgr.log that "Install failed with exit code 11" Any
    ideas what this means? When I run this command manually on the machine it works fine:
    "C:\WINDOWS\System32\Dism.exe" /online /add-package /packagepath:"en-us\lp.cab"
    I checked the dism.log as well but I don't see any errors. Both logs are below, any help or suggestions would be greatly appreciated TIA
    <![LOG[Command line = "C:\WINDOWS\System32\Dism.exe" /online /add-package /packagepath:"en-us\lp.cab", Working Directory = C:\WINDOWS\ccmcache\4j\]LOG]!><time="08:00:28.447+300" date="01-27-2015" component="execmgr"
    context="" type="1" thread="4976" file="scriptexecution.cpp:352">
    <![LOG[Running "C:\WINDOWS\System32\Dism.exe" /online /add-package /packagepath:"en-us\lp.cab" with 32bitLauncher]LOG]!><time="08:00:28.447+300" date="01-27-2015" component="execmgr" context=""
    type="1" thread="4976" file="scriptexecution.cpp:370">
    <![LOG[Created Process for the passed command line]LOG]!><time="08:00:28.509+300" date="01-27-2015" component="execmgr" context="" type="1" thread="4976" file="scriptexecution.cpp:513">
    <![LOG[Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramStartedEvent
     AdvertisementId = "LIA20115";
     ClientID = "GUID:428D91E4-84BD-4740-97D9-9177C39FA3F0";
     CommandLine = "\"C:\\WINDOWS\\System32\\Dism.exe\" /online /add-package /packagepath:\"en-us\\lp.cab\"";
     DateTime = "20150127130028.509000+000";
     MachineName = "";
     PackageName = "";
     ProcessID = 2012;
     ProgramName = "Install";
     SiteCode = "";
     ThreadID = 4976;
     UserContext = "NT AUTHORITY\\SYSTEM";
     WorkingDirectory = "C:\\WINDOWS\\ccmcache\\4j\\";
    ]LOG]!><time="08:00:28.509+300" date="01-27-2015" component="execmgr" context="" type="1" thread="4976" file="event.cpp:715">
    <![LOG[Raised Program Started Event for Ad:LIA20115, Package:LIA002A0, Program: Install]LOG]!><time="08:00:28.509+300" date="01-27-2015" component="execmgr" context="" type="1" thread="4976"
    file="executioncontext.cpp:459">
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="Install", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="08:00:28.509+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="4976" file="event.cpp:405">
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="Install", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="08:00:28.509+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="4976" file="event.cpp:405">
    <![LOG[MTC task with id {B7EEE891-740D-4762-8D2B-BA2D7E351F1D}, changed state from 4 to 5]LOG]!><time="08:00:28.525+300" date="01-27-2015" component="execmgr" context="" type="1" thread="5904"
    file="execreqmgr.cpp:6288">
    <![LOG[Program exit code 11]LOG]!><time="08:00:28.650+300" date="01-27-2015" component="execmgr" context="" type="1" thread="2488" file="scriptexecution.cpp:676">
    <![LOG[Looking for MIF file to get program status]LOG]!><time="08:00:28.650+300" date="01-27-2015" component="execmgr" context="" type="1" thread="2488" file="executionstatus.cpp:282">
    <![LOG[Script for Package:LIA002A0, Program: Install failed with exit code 11]LOG]!><time="08:00:28.650+300" date="01-27-2015" component="execmgr" context="" type="3" thread="2488" file="executionstatus.cpp:252">
    <![LOG[Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramErrorEvent
     AdvertisementId = "LIA20115";
     ClientID = "GUID:428D91E4-84BD-4740-97D9-9177C39FA3F0";
     DateTime = "20150127130028.650000+000";
     ExitCode = "11";
     MachineName = "";
     PackageName = "LIA002A0";
     ProcessID = 2012;
     ProgramName = "Install";
     SiteCode = "";
     ThreadID = 2488;
     UserContext = "NT AUTHORITY\\SYSTEM";
    ]LOG]!><time="08:00:28.650+300" date="01-27-2015" component="execmgr" context="" type="1" thread="2488" file="event.cpp:715">
    <![LOG[Raised Program Error Event for Ad:LIA20115, Package:LIA002A0, Program: Install]LOG]!><time="08:00:28.650+300" date="01-27-2015" component="execmgr" context="" type="1" thread="2488"
    file="executioncontext.cpp:572">
    <![LOG[Execution is complete for program Install. The exit code is 11, the execution status is FailureNonRetry]LOG]!><time="08:00:28.665+300" date="01-27-2015" component="execmgr" context="" type="1"
    thread="1956" file="execreqmgr.cpp:4165">
    <![LOG[Requesting MTC to delete task with id: {B7EEE891-740D-4762-8D2B-BA2D7E351F1D}]LOG]!><time="08:00:28.681+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956"
    file="executionrequest.cpp:9041">
    <![LOG[MTC task with id: {B7EEE891-740D-4762-8D2B-BA2D7E351F1D} deleted successfully.]LOG]!><time="08:00:28.681+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956"
    file="executionrequest.cpp:9070">
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="InstallEN", actionType 10l, value Result:FALSE, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="08:00:28.697+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="event.cpp:405">
    <![LOG[Deleting request for program Install. Failing parent program InstallEN]LOG]!><time="08:00:28.697+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="execreqmgr.cpp:8147">
    <![LOG[Requesting MTC to delete task with id: ]LOG]!><time="08:00:28.697+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="executionrequest.cpp:9041">
    <![LOG[This execution request does not have a corresponding task in MTC.]LOG]!><time="08:00:28.697+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="executionrequest.cpp:9059">
    <![LOG[Requesting MTC to delete task with id: {B7EEE891-740D-4762-8D2B-BA2D7E351F1D}]LOG]!><time="08:00:28.697+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956"
    file="executionrequest.cpp:9041">
    <![LOG[This execution request does not have a corresponding task in MTC.]LOG]!><time="08:00:28.697+300" date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="executionrequest.cpp:9059">
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="Install", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="08:00:28.697+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="1956" file="event.cpp:405">
    015-01-27 08:00:28, Info                  DISM   DISM.EXE:
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE:
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.3.9600, Running architecture=x86, Number of processors=4
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: Dism.exe version: 6.3.9600.16384
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: Executing command line: "C:\WINDOWS\System32\Dism.exe" /online /add-package /packagepath:"en-us\lp.cab"
    2015-01-27 08:00:28, Info                  DISM   DISM Provider Store: PID=5984 TID=4336 Getting Provider FolderManager - CDISMProviderStore::GetProvider
    2015-01-27 08:00:28, Info                  DISM   DISM Provider Store: PID=5984 TID=4336 Provider has not previously been encountered.  Attempting to initialize
    the provider. - CDISMProviderStore::Internal_GetProvider
    2015-01-27 08:00:28, Info                  DISM   DISM Provider Store: PID=5984 TID=4336 Loading Provider from location C:\WINDOWS\System32\Dism\FolderProvider.dll
    - CDISMProviderStore::Internal_GetProvider
    2015-01-27 08:00:28, Info                  DISM   DISM Provider Store: PID=5984 TID=4336 Connecting to the provider located at C:\WINDOWS\System32\Dism\FolderProvider.dll.
    - CDISMProviderStore::Internal_LoadProvider
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE:
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2015-01-27 08:00:28, Info                  DISM   DISM.EXE:

    Thanks, it seems as though it is not doing anything now. I just see that the policy has arrived in the log below but it is not installing it? The dism.log hasn't changed at all so it seems that it isn't even executing the command now? Am I missing something
    else? I even tried re-advertising it though client center.
    Command is now:
    C:\WINDOWS\sysnative\Dism.exe  /online /add-package /packagepath:"en-us\lp.cab"
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="InstallEN", actionType 45l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="08:52:28.943+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="5036" file="event.cpp:405">
    <![LOG[Policy arrived for child program Install]LOG]!><time="09:12:48.440+300" date="01-27-2015" component="execmgr" context="" type="1" thread="3528" file="execreqmgr.cpp:6867">
    <![LOG[Policy arrived for parent package LIA002A0 program InstallEN]LOG]!><time="09:12:48.487+300" date="01-27-2015" component="execmgr" context="" type="1" thread="3528" file="execreqmgr.cpp:6893">
    <![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="LIA002A0",ProgramID="InstallEN", actionType 6l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="09:12:48.487+300"
    date="01-27-2015" component="execmgr" context="" type="1" thread="3528" file="event.cpp:405">
    <![LOG[Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramOfferReceivedEvent
     AdvertisementId = "LIA20116";
     ClientID = "GUID:428D91E4-84BD-4740-97D9-9177C39FA3F0";
     DateTime = "20150127141248.502000+000";
     MachineName = "";
     ProcessID = 2012;
     SiteCode = "";
     ThreadID = 3528;
    ]LOG]!><time="09:12:48.502+300" date="01-27-2015" component="execmgr" context="" type="1" thread="3528" file="event.cpp:715">
    <![LOG[The user has logged off.]LOG]!><time="09:36:59.174+300" date="01-27-2015" component="execmgr" context="" type="1" thread="4320" file="execreqmgr.cpp:5138">

  • Migration to new GL and usage of cash basis accounting

    Hi,
    We are working in ECC6 enhancement pack 4 and are planning to migrate to new general ledger.
    My understanding from note 1558185 is that since cash basis accounting requires the use of a parallel ledger, this functionality is available for new client with new installation in new GL and not not for existing client that are migrating to new GL.
    Migration with scenario 4 5 7 8 is not yet adapted for cash basis ledger.
    Is this correct ?
    Kind Regards
    Sophie

    I could not see anything in note which prevents to maintain on cash basis in note 1558185
    Usually the ledger are maintained on based on different types of valuation like IFRS, US GAAP, UK GAAP and IAS etc.
    Whereas, cash and accrual basis is the way of accounting. Nothing will be prevented to post journals using FB50L.
    But, how will you restrict the accrual documents raised through the transaction codes other than FB40L.
    Question: Does all other companies / organisations will follow the cash accounting in your industry?

  • Install Base APIs - creating 'Installed At' address

    Dear Experts,
    I am looking to create an Item Instance using the API: CSI_ITEM_INSTANCE_PUB.create_item_instance such that when it is queried from the Oracle E-Business Suite under the responsibility: 'Oracle Installed Base User' then all the information is there as if it was created through this front-end.
    I have managed to get the API to work successfully. However, when I query the Item Instance through the E-Business Suite, the 'Installed At' address is not there. I wish it to be the same as the current address.
    Is there any way I can create the 'Installed At' address using the API?
    My code is below. Many thanks for your time and assistance,
    Mark
    Declare
    l_instance_rec csi_datastructures_pub.instance_rec;
    l_ext_attrib_values_tbl csi_datastructures_pub.extend_attrib_values_tbl;
    l_party_tbl csi_datastructures_pub.party_tbl;
    l_party_account_tbl csi_datastructures_pub.party_account_tbl;
    l_pricing_attribs_tbl csi_datastructures_pub.pricing_attribs_tbl;
    l_org_assignments_tbl csi_datastructures_pub.organization_units_tbl;
    l_asset_assignment_tbl csi_datastructures_pub.instance_asset_tbl;
    l_txn_rec csi_datastructures_pub.transaction_rec;
    x_instance_id_lst csi_datastructures_pub.id_tbl;
    lr_party_rec csi_datastructures_pub.party_rec;
    lr_party_account_rec csi_datastructures_pub.party_account_rec;
    lr_ext_attrib_value_rec csi_datastructures_pub.extend_attrib_values_rec;
    l_return_status VARCHAR2(1);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2(2000);
    l_msg_index_out VARCHAR2(100);
    l_api_version CONSTANT NUMBER := 1.0;
    l_error_stage VARCHAR2(240);
    l_start_date DATE;
    l_start_time DATE;
    Begin
    dbms_output.enable('1000000');
    l_instance_rec.instance_id := NULL;
    l_instance_rec.instance_number := NULL;
    l_instance_rec.external_reference := '';
    l_instance_rec.serial_number := '';
    l_instance_rec.inventory_item_id := 142;
    l_instance_rec.inv_master_organization_id := 83;
    l_instance_rec.vld_organization_id := 83;
    l_instance_rec.instance_status_id := 1011;
    l_instance_rec.object_version_number := 1.0;
    -- l_instance_rec.location_type_code := 'HZ_PARTY_SITES';
    l_instance_rec.quantity := 1;
    l_instance_rec.unit_of_measure := 'EA';
    l_instance_rec.mfg_serial_number_flag := 'N';
    l_instance_rec.version_label := 'AS_CREATED';
    -- l_instance_rec.location_id := l_location_id;
    l_instance_rec.active_start_date := sysdate;
    l_instance_rec.install_date := sysdate;
    --l_instance_rec.rec.active_end_date := l_hdr_rec.ib_end_date;
    lr_party_rec.party_source_table := 'HZ_PARTIES';
    lr_party_rec.instance_id := NULL;
    lr_party_rec.relationship_type_code := 'OWNER';
    lr_party_rec.party_id := 10780429;
    lr_party_rec.contact_flag := 'N';
    l_party_tbl(1) := lr_party_rec;
    lr_party_account_rec.relationship_type_code := 'OWNER';
    lr_party_account_rec.parent_tbl_index := 1;
    lr_party_account_rec.party_account_id := 1357;
    lr_party_account_rec.bill_to_address := '';
    lr_party_account_rec.ship_to_address := '';
    l_party_account_tbl(1) := lr_party_account_rec;
    lr_ext_attrib_value_rec.attribute_value_id := NULL;
    l_txn_rec.transaction_date := sysdate;
    l_txn_rec.source_transaction_date := sysdate;
    l_txn_rec.transaction_type_id := 1;
    l_error_stage := 'Call API CSI_ITEM_INSTANCE_PUB.CREATE_ITEM_INSTANCE';
    l_msg_data := NULL;
    l_msg_index_out := NULL;
    l_msg_count := NULL;
    CSI_ITEM_INSTANCE_PUB.CREATE_ITEM_INSTANCE
    p_api_version => l_api_version
    ,p_commit => FND_API.G_FALSE
    ,p_init_msg_list => FND_API.G_FALSE
    ,p_validation_level => FND_API.G_VALID_LEVEL_FULL
    ,p_instance_rec => l_instance_rec
    ,p_ext_attrib_values_tbl => l_ext_attrib_values_tbl
    ,p_party_tbl => l_party_tbl
    ,p_account_tbl => l_party_account_tbl
    ,p_pricing_attrib_tbl => l_pricing_attribs_tbl
    ,p_org_assignments_tbl => l_org_assignments_tbl
    ,p_asset_assignment_tbl => l_asset_assignment_tbl
    ,p_txn_rec => l_txn_rec
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data
    IF(l_return_status IN ('E', 'U')) THEN
    FOR i IN 1..fnd_msg_pub.count_msg LOOP
    fnd_msg_pub.get( p_msg_index => i
    ,p_encoded => 'F'
    ,p_data => l_msg_data
    ,p_msg_index_out => l_msg_index_out);
    dbms_output.put_line('l_return_status: ' || l_return_status);
    dbms_output.put_line('l_msg_data: ' || SUBSTR(l_msg_data, 1, 250));
    END LOOP;
    ELSE
    dbms_output.put_line('------------------------------------------');
    dbms_output.put_line('l_return_status: ' || l_return_status);
    dbms_output.put_line('l_msg_data: ' || SUBSTR(l_msg_data, 1, 250));
    dbms_output.put_line('The instance ID: ' || to_char(l_instance_rec.INSTANCE_ID));
    dbms_output.put_line('The instance Number: ' || to_char(l_instance_rec.INSTANCE_NUMBER));
    dbms_output.put_line('------------------------------------------');
    COMMIT;
    END IF;
    End;
    /

    I have found the problem:
    In create_item_instance for record type "instance_rec" pass values for "INSTALL_LOCATION_TYPE_CODE" and "INSTALL_LOCATION_ID". This will populate the "Installed At" address.

  • No Configuration In Install base for procured Items

    No configuration is build in Install base for Configured Items procured thru PO.
    Problem Description:
    We created a PO for a Configured Item and received into an Org ( setup as serialized at receipt) for stocking purpose. The Entire Configuration is not created in Install base. We expected both the Parent and the child ( which are IB-trackable) to be created in the Install base. But the child is not created in the Install base.
    We set the profile CSI:Explode BOM as "yes" and still it did not help.
    Any ideas
    Regards
    Kumar

    Alka,
    FYI, the error code is as follows...Can you give us the error code?
    Also paste the procedure structure that you are using to call the IB API where you are trying to trap the error.
    Let us see what we can do.
    Thanks
    Nagamohan

  • Can I create new wip accounting class type?

    What are the differences between wip accounting class types are set? and can I define new types?

    >
    I could use some quick help. In our 9i environment I used to type in dbca command to create a new database. Is there a similar option in 10G express.
    >No. You cannot create a XE database: it's created when installing XE and you cannot create another database with XE software on the same host.
    >>I can not seem to find a way to create a new database instance. I am guessing I will need to re-create my schema, and table structures under the one instance. Is that true?
    >Yes you need to create your schema in the existing XE database.

Maybe you are looking for