Customer Item Open Interface
Does anyone know what the Lock_flag is for the customer item open interface and what it should be set to when creating customer items? It is a required field but it is not explained in the 11.5.9 documentation.
Hi
I didn't find this flag in TRM of 11.5.10. In what table did you find it?
Regards,
Ricardo Cabral
Similar Messages
-
Customer Item Open Interface Validation
Hi Folks,
I have to write package for customer item open interface ,
can anyone let me know what are the validation required or if any one have package written ,please share it with me .[email protected]
Waiting for your kind response.
Thanks in advance....
Regards
RPHi
Please find the code below for Customer Item Interface
HTH
Dinesh
declare
ex_not_ok exception ;
Cursor cur_cust_item is
select b.*,rowid from btl_cust_item b ;
rec_cur_cust_item cur_cust_item%rowtype;
vc_rowid varchar2(50);
vc_error_desc varchar2(2000);
vc_org_code varchar2(20) :='F02';
vc_org_id varchar2(20) ;
vc_inv_item number ;
vc_cust_id varchar2(50) ;
vc_create_by number;
vc_last_updated_by number;
vc_user_name varchar2(100);
vc_login_name varchar2(30) := '&1';
vc_master number;
begin
vc_org_id := &2 ;
vc_master := &3;
begin
select user_id ,last_updated_by ,user_name
into vc_create_by ,vc_last_updated_by , vc_user_name
from fnd_user
where user_name = vc_login_name;
end;
open cur_cust_item; -- open cursor
loop
begin
fetch cur_cust_item
INTO rec_cur_cust_item;
vc_rowid := rec_cur_cust_item.rowid;
exit when cur_cust_item%NOTFOUND;
-- perform the mandatory validations
-- 1. Check the validity of the customer
begin
select count(*)
into vc_cust_id
from ra_customers
where upper(customer_number) = upper(rec_cur_cust_item.customer_number);
if vc_cust_id > 0 then
null;
else
vc_error_desc := rec_cur_cust_item.customer_number||' '|| rec_cur_cust_item.customer_name ||' - Customer Number Does not Exist in Ra_customers';
raise ex_not_ok;
end if;
exception
when no_data_found then
update btl_cust_item
set process_flag = 'E',
error_message = 'XREF- Customer Does not exist '||vc_error_desc
where rowid = vc_rowid;
end ;
-- 2. Check that the Customer Item Is not Null
begin
if rec_cur_cust_item.customer_item_number is not null then
null;
else
vc_error_desc := rec_cur_cust_item.Customer_Number ||' - '|| rec_cur_cust_item.customer_item_number || ' - Customer Item has no value ';
raise ex_not_ok;
end if;
end;
-- 3. Validate the Inventory Item
begin
select count(*)
into vc_inv_item
from mtl_system_items a, org_organization_definitions b
where a.organization_id = b.organization_id
and rec_cur_cust_item.inventory_item = segment1
and a.organization_id = vc_org_id;
if vc_inv_item != 0 then
null;
else
vc_error_desc := 'Inventory Item '|| rec_cur_cust_item.inventory_item ||' is not valid/exist in mtl_system_item ';
raise ex_not_ok;
end if;
end;
rec_cur_cust_item.commodity_code := 'MISC';
insert into mtl_ci_interface (
PROCESS_FLAG ,
PROCESS_MODE ,
TRANSACTION_TYPE ,
CUSTOMER_NUMBER ,
CUSTOMER_NAME ,
CUSTOMER_ITEM_NUMBER ,
ITEM_DEFINITION_LEVEL ,
COMMODITY_CODE ,
INACTIVE_FLAG ,
LOCK_FLAG ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
CREATION_DATE ,
CREATED_BY ,
--LAST_UPDATE_LOGIN ,
ERROR_CODE ,
ERROR_EXPLANATION
values
'1' , --PROCESS_FLAG
'1' , --PROCESS_MODE
'CREATE' , -- TRNASACTION_TYPE
rec_cur_cust_item.customer_number , --CUSTOMER_NUMBER
rec_cur_cust_item.customer_name , --CUSTOMER_NAME
rec_cur_cust_item.customer_item_number, --CUSTOMER_ITEM_NUMBER
'1' , --ITEM_DEFINATION_LEVEL
rec_cur_cust_item.commodity_code , --COMMODITY_CODE
'2' , --INACTIVE_FLAG
'N' , --LOCK_FLAG
sysdate , --LAST_UPDATE_DATE
vc_last_updated_by , --LAST_UPDATED_BY
sysdate , --CREATION_DATE
vc_create_by , --CREATED_BY
--'10' , --LAST_UPDATE_LOGIN
'N' , --ERROR_CODE
' ' --ERROR_EXPLANATION
Insert into mtl_ci_xrefs_interface (
PROCESS_FLAG ,
PROCESS_MODE ,
TRANSACTION_TYPE ,
CUSTOMER_NUMBER ,
CUSTOMER_NAME ,
CUSTOMER_ITEM_NUMBER ,
ITEM_DEFINITION_LEVEL ,
INVENTORY_ITEM ,
MASTER_ORGANIzATION_ID ,
PREFERENCE_NUMBER ,
INACTIVE_FLAG ,
LOCK_FLAG ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
CREATION_DATE ,
CREATED_BY ,
--LAST_UPDATE_LOGIN ,
ERROR_CODE ,
ERROR_EXPLANATION
Values
'1' , --PROCESS_FLAG
'1' , --PROCESS_MODE
'CREATE' , --TRNSACTION_TYPE
rec_cur_cust_item.customer_number, --CUSTOMER_NUMBER
rec_cur_cust_item.customer_name , --CUSTOMER_NAME
rec_cur_cust_item.customer_item_number, --CUSTOMER_ITEM_NUMBER
'1' , --ITEM_DEFINATION_LEVEL
rec_cur_cust_item.inventory_item, --INVENTORY_ITEM
vc_master , --MASTER_ORGANISATION_ID
'1' , --PREFERENCE_NUMBER
'2' , --INACTIVE_FLAG
'N' , --LOCK_FLAG
sysdate , --LAST_UPDATE_DATE
vc_last_updated_by , --LAST_UPDATED_BY
sysdate , --CREATION_DATE
vc_create_by , --CREATED_BY
--'10' , --LAST_UPDATE_LOGIN
'N' , --ERROR_CODE
' ' --ERROR_EXPLANATION
--dbms_output.put_line( ' Inserting into reference table - done');
exception
when ex_not_ok then
update btl_cust_item
set process_flag = 'E',
error_message = 'XREF-'||vc_error_desc
where rowid = vc_rowid;
end ;
end loop;
commit;
begin
dbms_application_info.set_client_info(' ');
end;
dbms_output.put_line ( ' End time ' || to_char( sysdate, 'DD-MON-YYYY HH24:MI:SS'));
exception
when others then
dbms_output.put_line( Sqlcode || ' ' || Sqlerrm );
end ;
/ -
Item Open Interface giving error for Org Assignment
We ran the MTL_SYSTEMS_ITEMS_INTERFACE & loaded all the items at master level.
We are having issues in setting at Org level. Cant figure out what the issue as only few records gets assigned & then garbage sets in for remaining records. An SR has been raised & the tech support representative was saying that UOM's are different at master & org levels. Never heard of this issue earlier. I have worked with UOM's different at Master/Org levels.
The UOM's are different at Master & Org Level and in some cases the UOM are different for different Orgs. Attribute Control for Primary/Sec UOM is at Org level. The UOM's belong to the same UOM Class. There are standard conversions defined for all these UOMs.
Any pointers for quick resolution ?Pl do not post duplicates - Item Open Interface giving error for Org Assignment
-
Importing Items using Items Open Interface
Hi ,
I am creating items using Items Open interface program. I have populated the data in the MTL_SYSTEM_ITEMS_INTERFACE. Itemcode, oganization, primary_uom and template id and getting the following error.
TRANSACTION ID : 18739
ORGANIZATION ID : 103
TABLE NAME : MTL_ITEM_REVISIONS_INTERFACE
COLUMN NAME : ITEM_ID
MESSAGE NAME : INV_IOI_REV_NO_ITEM
ERROR MESSAGE : The revision entered is for an item that does not exist in MTL_SYSTEM_ITEMS nor MTL_SYSTEM_ITEMS_INTERFACE.
Item is not revision control and them same is in the template also. still system is giving this error. Whats needs to be done.
Regards/Prasanth@ ABOVE ALL
Hi all,
Please see this document from meta-link,most probably it WILL solve your problem.
Note: 801354.1 INV_IOI_REV_NO_ITEM Error - The revision entered is for an item that does not exist
else you can refer following doc from meta-link
Note: 268968.1 Understanding Item Import and Debugging Problems with Item Import
Hope this helps. :)
Regards,
-sDJ -
Oracle Open interface- Error in Item Import (INCOIN)
Hi,
I am migrating items to oracle using oracle open interface.
I am getting the follwing errors.
1. The TEMPLATE_ID or TEMPLATE_NAME specified is not valid for this Organization
2. The revision entered is for an item that does not exist in MTL_SYSTEM_ITEMS nor MTL_SYSTEM_ITEMS_INTERFACE (No Revision Is Used)
3. Expense Account is required when Inventory Asset Value is "No" and Inventory Item is "Yes"
4. Item number is invalid.
EBS: 11.5.10
The Migratin was working fine in the previous instance. Pls let me know if you have any information on this.
Thanks
AMHi,
Please see these docs.
INCOIN: Error Message Template_ID or Template Name Specified is not a Valid Template When Item Catalog ID is NULL during Item Import in UPDATE Mode [ID 1076193.1]
Item Import: What Does "Sync" Items Do? [ID 417887.1]
INCOIN Gets INV_TEMPLATE_ERROR After Patch Applied [ID 141579.1]
Item Open Interface (INCOIN/IOI) Setup and How-To [ID 115557.1]
Understanding Item Import and Debugging Problems with Item Import [ID 268968.1]
Thanks,
Hussein -
Editing the Customer Address using Open Interface
Hi All,
The requirement is to edit the address details(postal codes) of the customer using Open Interface and not the APIs.
They are insisting on using open interface as the Vertex validation(Taxation rules) is taken care only by Open Interface.
Will need help on this.Kindly advice.Please refer the following whitepaper
https://metalink2.oracle.com/cgi-bin/cr/getfile.cgi?p_attid=67196.1:1
Thanks,
Anil -
After running Import Items Open Interface the concurrent program gets completed normal.But the item does not come into display in front end.It is not in the back end tables also.
This is something unusual thats happening, Run Import items and set the value of parameter Delete Processed Rows to No and process Items to No. This will only validate the records and the records will not be inserted in base table and will be sittin in the interface tables.
Take a note of request Id and see if there are any records in mtl_interface_errors table for that request ID.
www.sureshvaishya.blogspot.com -
MDX open interface error?
has anyone come across this error in Excel client? i get it when trying to remove 0's from the summarized values.
[MDX error|http://misiorek.com/mdx/MDX06.jpg]
apologies for small screenshot but this is a resolution for full screen and screen scraper requires it to be minimized.Hi,
Please see these docs.
INCOIN: Error Message Template_ID or Template Name Specified is not a Valid Template When Item Catalog ID is NULL during Item Import in UPDATE Mode [ID 1076193.1]
Item Import: What Does "Sync" Items Do? [ID 417887.1]
INCOIN Gets INV_TEMPLATE_ERROR After Patch Applied [ID 141579.1]
Item Open Interface (INCOIN/IOI) Setup and How-To [ID 115557.1]
Understanding Item Import and Debugging Problems with Item Import [ID 268968.1]
Thanks,
Hussein -
How to purge Item/Categories open interface tables
Hi,
We are importing items into oracle inventory using oracle open interface tables. There is some existing data in the standard interface tables mtl_system_items_interface and mtl_revision_interface that we need to remove. What is the best way to do this? IS hard deleting an option? Are there any links with other tables that we need to take into consideration? (eg. mtl_interface_error)
I could not find what oracle suggests about this. Please share any info you have.
Thanks
AMHi Am;
What is your EBS? Pelase check below note which could be helpful for your issue:
APC/PIM Item Attribute Import Performance Slow FAQ - Purging Interface? Why Do Successful User Defined Attributes (UDAs) Remain In the Interface (EGO_ITM_USR_ATTR_INTRFC) [ID 1101824.1]
Purging Strategy for eBusiness Suite 11i) [ID732713.1] << its for 12 too
Also see:
http://oracleappstechnology.blogspot.com/2008/12/in-built-data-purge-concurrent-programs.html
In r12 What is use of Purge log and Closed system alerts
Purge Debug Log And System Alerts Performance Issues
Regard
Helios -
Customer Open Interface sample code?
Hi
I am trying to import some data (customers) from a legacy
system into oracle. I would like to use the oracle customer open
interface but can anyone please give me some sample code how
they did the import?
Thank you
alphaHi
I am trying to import some data (customers) from a legacy
system into oracle. I would like to use the oracle customer open
interface but can anyone please give me some sample code how
they did the import?
Thank you
alpha -
Re:- How to see customer/vendor open items for profit center wise
any one help me regarding : How to see customer/vendor open items for profit center wise. That is possiable or not please suggest to me. I am using 4.6c version .
Run the report from Tcode FBL1N for vendor open item and from FBL5N fron Customer open items.
When you get the report, click on Change Layout icon ( or press Control + F8 from keyboard), search Profit Center fron the Table of Hidden fields on the right hand side. Move that field to the Left hand side table. Click ok, now you should be able to see the Profit Center column in your report.
You can save this layout by clicking on the Save Layout icon ( or press Control + F12 from keyboard)
Next time you can choose the saved layout by clicking on the Select Layout icon ( or press Control + F9 from keyboard)
Regards
Dharmveer -
Customizing report, list all GL items open as of a key date
Hi Experts,
For a customizing report, i have to list all those GL items open as of a key date, though they may be cleared now.
i m finding in GL open items table BSIS, i can find open items (uncleared) only.
please help me in developing this logic.
Regards,
ApoorvTable BSAS has cleared items but it also includes the clearing date, so you can combine results from both tables.
Rob -
Item Category Assignment Open Interface concurrent program
Hi,
A quick question,
Can anyone please tell me why "Item Category Assignment Open Interface concurrent program" is used for.
Purpose of running the program.
Thanks in advance.Pl post details of OS, database and EBS versions.
Pl see if MOS Doc 1060824.1 (R12: Supplier Open Interface APXSUIMP Errors with REP-0004 Output Does Not Indicate Reason for Rejection) is applicable
HTH
Srini -
Material Transaction Open Interface Error
Hi,
I'm getting following Error in Cost Manager after running the Transaction Open Interface,
Interface work well to update the stocks, but it returns error Layer Cost Worker Concurrent.
Error1
Bills of Material: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
CMCLCW module: Layer Cost Worker
Current system time is 10-OCT-2012 14:16:32
debug_level = 0
CM_EXTENDED_DEBUG = 2
CSTPLCIN.COST_INV_TXN:CSTPLVCP.interorg (160): ORA-00001: unique constraint (INV.MTL_CST_TXN_COST_DETAILS_U1) violated
Failing Transaction ID is 28227
Start of log messages from FND_FILE
Standard costing org : -1
Interorg transfer send org: (consume layers) ...
84:5
28227:1
Entering get_layers_consumed for transaction 28227 and a required quantity of 2 with a consumption mode of NORMAL
Trying custom layers
There are 0 custom layers
General consumption
Using SQL SELECT inv_layer_id,layer_quantity FROM cst_inv_layers WHERE layer_id = :i AND inv_layer_id <> :j AND NVL(transaction_source_id,-2) <> :k AND layer_quantity > 0 ORDER BY creation_date, inv_layer_id with 1,-1,-1
End of log messages from FND_FILE
No completion options were requested.
Output is not being printed because:
The print option has been disabled for this report.
Deleting output file.
Concurrent request completed
Current system time is 10-OCT-2012 14:16:32
Error2
Bills of Material: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
CMCLCW module: Layer Cost Worker
Current system time is 10-OCT-2012 14:16:32
debug_level = 0
CM_EXTENDED_DEBUG = 2
CSTPLCIN.COST_INV_TXN:CSTPACDP.insert_account (10) ORA-01400: cannot insert NULL into ("INV"."MTL_TRANSACTION_ACCOUNTS"."BASE_TRANSACTION_VALUE")
Failing Transaction ID is 28228
Start of log messages from FND_FILE
Standard costing org : -1
----------l_to_method---------
=5
Interorg transfer receiving org: (create layers) ...
90:5
28228:2
i_txn_id 28228
1 records updated in mclacd for 15005
1 records copied from mclacd for 15005
interorg_cost_txn(..)
transaction_id:28228
org_id:90
i_txn_org_id:90
i_txf_org_id:84
i_txf_txn_id:28227
i_exp_item:0
i_fob_point:0
l_snd_rcv:2
l_from_org:84
l_to_org:90
Sending org distributions
Receiving org distributions
l_intransit:0
Calling Inventory acct
In Inventory_accounts
In insert accounts
l_ussgl_tc :
Payable amount(l_value): acct: 414240
In insert accounts
l_ussgl_tc :
DS - others Exception, sqlcode = -1400
End of log messages from FND_FILE
No completion options were requested.
Output is not being printed because:
The print option has been disabled for this report.
Deleting output file.
Concurrent request completed
Current system time is 10-OCT-2012 14:16:32
My Coding
insert into mtl_transactions_interface
(transaction_type_id, --------------1
transaction_uom, --------------2
transaction_date, --------------3
organization_id, --------------4
transaction_quantity, --------------5
last_update_date, --------------6
last_updated_by, --------------7
creation_date, --------------8
created_by, --------------9
transaction_mode, --------------10
process_flag, --------------11
source_header_id, --------------12
source_line_id, --------------13
source_code, --------------14
transaction_header_id, --------------15
inventory_item_id, --------------16
transaction_interface_id, --------------17
subinventory_code, --------------18
distribution_account_id, --------------19
transaction_cost, --------------20
transaction_reference, --------------21
transfer_organization, --------------22
transfer_subinventory, --------------23
-- transfer_cost, --------------24
primary_quantity, --------------25
lock_flag,
transaction_action_id,
transaction_source_type_id,
dst_segment1,
dst_segment2,
dst_segment3,
dst_segment4,
dst_segment5,
dst_segment6)
values
(v_trx_type_id, --------------1 ------transaction type id
i.uom_code, --------------2 ------transaction_UoM
sysdate, i.creation_date, ------------3 ------trasnsaction date
i.from_organization_id, --------------4 ------org id
nvl(i.quantity_delivered, i.quantity), --------------5 ------quantity
sysdate, --------------6 ------Last update date
-1, --------------7 ------last updated by
sysdate, --------------8 ------creation date
-1, --------------9 ------creation by
3, --------------10 ------transactio mode
1, --------------11 ------process flag
1, --------------12 ------source_header_id
1, --------------13 ------source_line_id
i.mrn_trx_number, --'MRN Interface', --------------14 ------source code
'999999', --------------15 ------transaction header id
v_item_id, --------------16 ------inventory item id
xx_mrn_mtl_trx_int_seq.nextval, --------------17 ------transaction_interface_id
i.from_subinventory_code, --------------18 ------sub inventory
v_code_id, --------------19 ------code compbination
v_item_cost, --------------20 ------cost
'MRN Interface', --------------21 ------reference
i.organization_id, --------------22
i.to_subinventory_code, --------------23
-- (nvl(i.quantity_delivered, i.quantity) * v_item_cost) --------------24
nvl(i.quantity_delivered, i.quantity),
2,
v_trx_action_id,
v_trx_source_type_id,
'01',
'00',
'000',
'141013',
'000000',
'00000');
ThanksCan you get the following for the errored transaction?
SELECT transaction_id txnid, transfer_transaction_id txfrtxnid
, organization_id orgid, transfer_organization_id txfrorgid, subinventory_code subinv
, transfer_subinventory txfrsubinv, cost_group_id cgid
, transfer_cost_group_id txfrcgid , prior_costed_quantity
, transfer_prior_costed_quantity , rcv_transaction_id rcvtxnid
, transaction_action_id txnactid , transaction_source_type_id txnsrctypid
, transaction_type_id txntypid , costed_flag cstdflg
, transaction_group_id , inventory_item_id invitmid
, transaction_source_id wip_entity_id , transaction_cost txncst
, shipment_number shipnum , new_cost , prior_cost
, actual_cost , project_id , transaction_uom txnuom
, transaction_quantity txnqty , primary_quantity priqty , prior_costed_quantity priorqty
, currency_code altcurr , currency_conversion_rate currconvrt , currency_conversion_date currconvdt
, TO_CHAR (mmt.creation_date, 'dd-mm-yyyy hh24:mi:ss') creation_date
, TO_CHAR (mmt.last_update_date, 'dd-mm-yyyy hh24:mi:ss')last_upd_date
, ERROR_CODE errcode
, error_explanation errexpl
FROM mtl_material_transactions mmt
WHERE transaction_id IN (&Trx_Id) -- Error transaction_id
ORDER BY transaction_id DESC -
Hi,
We are attempting to build a custom interface for receiving transactions and have the following requirements:
We want to create receiving transaction for the PO line
We want to create a lot for the items in the inventory
We have seen that there is the receiving open interface and also the mtl transaction interface that can probably do this together but want to know the tables to populate. Specifically, is there a link between he receiving transaction's line number and the lot that is created for it ?
Regards.As Sam said, there is no API for the table - you need to SQL*Loader or inserts (via SQL script or PL/SQL or whatever).
We have a number of processes that generate transactions for Projects where we use Stored PL/SQL based concurrent programs which insert records into PA_TRANSACTION_INTERFACE_ALL.
Maybe you are looking for
-
Are there any new HP Printers which will work on the new Airport Extreme?
Has anyone had luck connecting an HP printer to the new 802.11N network? We have an older one which will not connect. THANKS!
-
Can anybody recommend a decent spec PC for working with HD dSLR files in Premiere?
I will need to edit HD footage in premiere and I know that I wont be able to afford more than £1200. Can you point me to the latest PC's that will enable me to work fairly quickly? Thanks
-
Bridge CS5 version 4.0.0.529, Win 8.1 64 Bit. When moving files between folders, the program crashes and I have to restart from scratch. When I reboot the program, the files have been moved, but I have to go back to the original folder I was workin
-
Help: Dynamic ALV from an dynamic Node
Hi Expart, I have a question. I need to create an dynamic context node, and depending upon that dynamic context node, I need to create an dynamic ALV in the View. Is it possible to create two level of dynamic implimentation in case of ALV ? if possi
-
CAN'T GET HARD DRIVE BACK ON LINE!
I made the mistake of opening up a FCP4 file without the SCSI drive that contained the media and when it went looking for the hard drive it couldn't find it. So I shut down and rebooted with the hard drive on. NOW whenever I try to open the file it's