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
RP
Hi
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 ;
/
Similar Messages
-
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 -
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 -
I need validation code for cycle count open interface
Hi friends i require the validation code for the
cycle count open interface .
can anybody help me .......
Message was edited by:
user506929Hi David
I want to know the procedure for cycle count open interface i.e.
1> How the data from flat file is uploaded in oracle INV
How many Tables are needed?
2>What validations are required ?
3>How these validations are performed ?
If you have any document pls send it to me at :
[email protected]
thanks for ur responce ...... -
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 -
Hi ,
As far as i know , Validations are an integral part of interfaces.
Can anybody send me the basic validations that need to be performed on the following interfaces. I need to prepare a HLD for the same.
1) Journal Import Interface
2) Customer Interface
3) Purchasing Open Interface
4)PO REceipts interface
5) Supplier Interface
It would be great if someone forwards me the necessary information.
Regardshi.....
according to my knowledge in customer interface :
Check if legacy values fetched are valid.
Check if customer address site is already created.
Check if customer site use is already created.
Check is customer header is already created.
Check whether the ship_to_site has associated bill_to_site
Check whether associated bill_to_site is created or not.
Profile amounts validation:
Validate cust_account_id, validate customer status.
Check if the location already exists in HZ_LOCATIONS. If does not exist, create new location.
in Purchasing :
Header:
Check if OU name is valid
Check if Supplier is valid
Check if Supplier site is valid
Check if buyer is valid
Check if Payment term is valid
Check if Bill to and ship to are valid
Check if FOB, freight terms are valid
Lines:
Check if Line_type, ship_to_org, item, uom, ship_to_location_id, requestor, charge_account, deliver_to_location are valid
General:
Check for duplicate records in interface tables
Check if the record already exists in base tables.
and in Journl Import :
Validate SOB, journal source name, journal category name, actual flag
A – Actual amounts
B – Budget amounts
E – Encumbrance amount
If you enter E in the interface table, then enter appropriate encumbrance ID, if B enter budget id.
Check if accounting date or GL date based period name is valid (i.e., not closed).
Check if accounting date falls in open or future open period status.
Check chart of accounts id based on Sob id.
Check if code combination is valid and enabled.
Check if record already exists in GL interface table.
Check if already journal exists in GL application.
Regards,
Dushyant Sethi
Maybe you are looking for
-
HT204053 my mail since downloading mountain lion on my laptop is not coming up in the mail folder
I upgraded to Mountain Lion on my desktop imac and upgraded on my macbook pro but having problems with my mail not transferring over to my laptop. I am signed in to icloud and tried everything. Trying to figure out what is wrong. Does anyone know
-
HT204409 wifi on 3gs drop in and out why?
why does my wifi drop in and out on my 3gs ?
-
Portege R830 - Can't turn off touchpad
Hi, strange issue. But cant turn off the touchpad on a Portege R830 (Windows 7 32bit). I have seen this problem on both of the machines I have. This has never been an issue for the Tecra models I've had, M5, M9, M10, M11, R840 etc. I have the latest
-
DVCPRO HD downconverting to SD & MP2
I've searched the forum and haven't found the exact answer to my problem. I have a music video in DVCPRO HD 50i. I want to make a DVD, a PAL SD version, and a smaller Quicktime version to play on computers. I've made the SD versions by putting the DV
-
Moving users in the org structure
Dear Experts, Whenever, I move my user in PPOMA_BBP, it brings inconsistency that cannot be repaired. What could be the possible reason(s). Regards Mick