Customer Open Interface
Customer Interface
Hi
I have a question about customer interface. We aleady have
oracle apps 11i implemented and would like to add another org
and now we need to import all the customer for that organization
to oracle from a legacy system. Any idea how can I use the
customer inteface? For example am going to use just a sql loader
to load the raw the data into the tables and then run the
cutomer interface program? Please give me some examples please.
Thanks
alpha
customer interface is bit simple
you can check at
http://www.oracleappshub.com/accounts-receivable/deep-drive-customer-interface-in-ar/
Similar Messages
-
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 -
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 -
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 ;
/ -
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 -
Issue with Supplier Open Interface Import Program
Hello Folks,
I need help with supplier conversion. I am trying to load suppliers through the supplier open interface program. I see that the record got rejected in AP_SUPPLIERS_INT table with status as REJECTED. However i do not see the record in AP_SUPPLIER_INT_REJECTIONS. Therefore, i am not able to understand the rejection reason. I enabled debug can seeing this log..
assign_party_usage (+)
do_assign_party_usage (+)
effective_start_date = 2011/05/12 effective_end_date = 4712/12/31
duplicates_exist (+)
No date tracking for this usage SUPPLIER. Check duplicate assignment.
l_has_duplicates = Y
duplicates_exist (-)
assign_party_usage (-)
Rejected Vendor_Interface_Id: 15004, No. of Messages from Create_Vendor API: 2, Message From Create_Vendor API:
Enter Password:
REP-0004: Warning: Unable to open user preference file.
MSG-00999: Custom Report
MSG-00001: After SRWINIT
MSG-00002: After Get_Company_Name
MSG-00003: After Get_NLS_Strings
MSG-00004: After Importing Suppliers
MSG-00005: After Get_Header_Information
MSG-00020: After SRWEXIT
As per my understanding from the log, there is some problem with party_usage_assignment. I would really appreciate is someone can help me debug the exact problem. Else i would have to open a SR for this
Thanks so much looking forward for your answers.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 -
Supplier Open Interface Errors
I created an supplier interface in plsql. Want I want to do is kick off the following concurrent programs from pl/sql using fnd_request.submit_request
Supplier Open Interface Import
Supplier Sites Open Interface Import
Now when I run the pl/sql without the call to the fnd_submit, then run the concurrent programs through the app in Payables Manager, it works fine. BUT when I add the fnd_submit call, it executes fine but there is a weird error dealing with reports. Now this seems like some kind of privilege thing maybe?
Below is my call to FND_SUBMIT and also my initialize. Also is the error. Ideas on what is up?
Maybe it is because the code is in a custom schema and not under apps??
APPS.fnd_global.apps_initialize(user_id =>'0'
,resp_id =>'50517'
,resp_appl_id =>'200');
v_header_req := APPS.FND_REQUEST.submit_request( application => 'SQLAP',
program => 'APXSUIMP');
v_site_req := APPS.FND_REQUEST.submit_request( application => 'SQLAP',
program => 'APXSSIMP');
Payables: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
APXSSIMP module: Supplier Sites Open Interface Import
Current system time is 24-MAR-2009 16:52:02
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
MSG-00001: After SRWINIT
MSG-00002: After Get_Company_Name
MSG-00003: After Get_NLS_Strings
MSG-00004: After Importing Suppliers
REP-1419: 'beforereport': PL/SQL program aborted.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1419: MSG-00001: After SRWINIT
MSG-00002: After Get_Company_Name
MSG-00003: After Get_NLS_Strings
MSG-00004: After Importing Suppliers
REP-1419: 'beforereport': PL/SQL program aborted.
Report Builder: Release 10.1.2.2.0 - Production on Tue Mar 24 16:52:06 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 370808.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
Finished executing request completion options.
Concurrent request completed
Current system time is 24-MAR-2009 16:52:07Hello Jason,
We have done somewhat the same, I see you dont add any arguments in the submit request call.
Maybe all below is already known, maybe it helps you to find just what is wrong in your case.
We did it this way:
l_id := fnd_request.submit_request( application => 'SQLAP'
+, program => p_name+
+, description => null+
+, start_time => null+
+, sub_request => null--fnd_global.conc_request_id+
+, argument1 => 'APXSUIMP'+
+, argument2 => 'ALL'+
+, argument3 => 1000+
+, argument4 => 'N'+
+, argument5 => 'N'+
+);+
After this we immediately execute a commit (as this will trigger the request start).
After that we also wait for the request to finish by doing the following:
if fnd_concurrent.wait_for_request
+( l_request_id+
+, 2 --interval+
+, 0 --max_wait+
+, l_phase --phase+
+, l_status --status+
+, l_dev_phase --dev_phase+
+, l_dev_status --dev_status+
+, l_message )+
then ...
Hope this helps,
Mark -
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. -
Hi,
My understanding is that FQEVENTS transaction is only active for FICA (contract account). Please correct. Is this also available for FI-AP?
If FQEVENTS is not available for FI-AP, we then need to use BTE (Business Transaction Evetnts-FIBF). I have checked events 1025 and 1030, assigned custom function modules for these events and inserted break-points. But when I create posting (F-53 outgoing payment for vendor), the above events are not triggered and thus function modules are not triggered. Is there anything missing?
Also, the requirement is to read the cleared(paid) amount for given vendors and store to a Z table. Is there any user exit/BTE which gets triggered before SAVE of clearing document in FI-AP?
Thanks in advance.
KamalChandrasekar,
as i know, the main thing you should consider is, that starting from R12 you will
be able to import invoices only through the Payables Open Interface.
basically, Invoice Import is used by OA to create invoice (from expense reports or from Oracle Projects). for standard invoice import, i've ever used Payables Open Interface.
Milan
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chandrasekara Kayamboo ([email protected]):
I would like to know which is the best way to import invoice and what are the advantages and disadvange in each.
Regards
Chandrasekar<HR></BLOCKQUOTE>
null -
Receiving Open Interface related doubt
Hi All,
We are currently on Oracle Release 12.0.4 and need some help/information regards Receiving Open Interface tables : rcv_headers_interface & rcv_transactions_interface tables.
We import the ASN which is being sent across from the Supplier via EDI directly into the Receiving Open Interface tables and then RTP program ( Receiving Transaction Processor ) program processes these into the base tables
to complete the receipt process..
Now for some reason or the other lets say because of EDI data issues or some other system issue with the RTP program , the Interface records end up in error status & the users have to manually complete the Receipt in Oracle Forms directly..
Now this Interface data over a period in time keeps accumulating while the corresponding PO Document would already have been Received manually in Oracle.
Because of this errored interface records the Interface tables keep growing in size in terms of data volume..
Now is there a way script or a program which validates these interface records and purges these automatically based on some validations on its own..
For Example : for a po if the records are stuck in the interface table but the po shipment has already been received in manually and in Closed Status, then it would automatically purge these records from interface tables.
Could someone please help us with this as soon as possible with any suggestions or workarounds..
ThanksCurrently there is no purge program available to purge the records in RTI. Further the oracle support wont be able to provide a delete script to delete the records in RTI (The reason being, the records are populated by the customer and customers are the best persons to validate the records and delete them on their own).
However, for ASN's
You may write a query based on the RTI.po_distribution_id and then check, whether the corresponding po shipment\distribution is already received \ closed for receiving and then you may delete. -
Receiving Open Interface not picking Inter-Org records from Interface
Hi,
I am trying to receive the inter org transfer through the Receiving Open interface, but the interface not picking the data from the interface tables (RCV_HEADERS_INTERFACE, RCV_TRANSACTION_INTERFACE).
I am in 11.5.10.2, all the sources worked fine like Vendor, Internal Order, Customer but the issue is with the Inventory source (inter orgs)
Please could you advise what could be the reason for the interface for not picking the Inventory source data from the interface table.
Below are the interface insert script that am using..
INSERT INTO RCV_HEADERS_INTERFACE
(HEADER_INTERFACE_ID,
GROUP_ID,
PROCESSING_STATUS_CODE,
RECEIPT_SOURCE_CODE,
TRANSACTION_TYPE,
AUTO_TRANSACT_CODE,
LAST_UPDATE_DATE,
LAST_UPDATED_BY,
LAST_UPDATE_LOGIN,
CREATION_DATE,
CREATED_BY,
SHIPMENT_NUM,
RECEIPT_HEADER_ID,
SHIP_TO_ORGANIZATION_ID,
EXPECTED_RECEIPT_DATE,
EMPLOYEE_ID,
VALIDATION_FLAG
VALUES
(rcv_headers_interface_s.nextval , --Header_Interface_Id
rcv_interface_groups_s.nextval, --Group_Id
'PENDING', --Processing_Status_Code
'INVENTORY', --Receipt_Source_Code
'RECEIVE', --Transaction_Type
'DELIVER', --Auto_Transact_Code
SYSDATE, --Last_Update_Date
-1, --Last_Updated_By
-1, --Last_Update_Login
SYSDATE, --Creation_Date
-1, --Created_By
'ICR-001', --SHIPMENT_NUM
21073573, --RECEIPT_HEADER_ID
2266, -- SHIP_TO_ORGANIZATION_ID
SYSDATE+1, --Expected_Receipt_Date
5543, --Employee_Id,
'Y' --Validation_Flag
INSERT INTO RCV_TRANSACTIONS_INTERFACE
(INTERFACE_TRANSACTION_ID,
GROUP_ID,
LAST_UPDATE_DATE,
LAST_UPDATED_BY,
CREATION_DATE,
CREATED_BY,
LAST_UPDATE_LOGIN,
TRANSACTION_TYPE,
TRANSACTION_DATE,
PROCESSING_STATUS_CODE,
PROCESSING_MODE_CODE,
TRANSACTION_STATUS_CODE,
CATEGORY_ID,
QUANTITY,
UNIT_OF_MEASURE,
ITEM_ID,
AUTO_TRANSACT_CODE,
SHIPMENT_HEADER_ID,
SHIPMENT_LINE_ID,
SHIP_TO_LOCATION_ID,
RECEIPT_SOURCE_CODE,
TO_ORGANIZATION_ID,
DESTINATION_TYPE_CODE,
DELIVER_TO_PERSON_ID,
LOCATION_ID,
DELIVER_TO_LOCATION_ID,
SUBINVENTORY,
LOCATOR_ID,
HEADER_INTERFACE_ID,
VALIDATION_FLAG,
SHIPPED_DATE
--SELECT
VALUES
rcv_transactions_interface_s.nextval, --Interface_Transaction_id
rcv_interface_groups_s.currval, --Group_id
SYSDATE, --Last_update_date
-1, --Last_updated_by
SYSDATE, --Creation_date
-1, --Created_by
-1, --Last_update_login
'RECEIVE', --TRANSACTION_TYPE_RECEIVE
SYSDATE, --TRANSACTION_DATE
'PENDING', --PROCESSING_STATUS_CODE
'BATCH', --PROCESSING_MODE_CODE
'PENDING', --TRANSACTION_STATUS_CODE
203, -- CATEGORY_ID
20, --QUANTITY
'EACH', --UNIT_OF_MEASURE
4379131, --ITEM_ID
'DELIVER', --AUTO_TRANSACT_CODE
21073573, --SHIPMENT_HEADER_ID
16566939, --SHIPMENT_LINE_ID
101629781, --SHIP_TO_LOCATION_ID
'INVENTORY', --RECEIPT_SOURCE_CODE
2266, --TO_ORGANIZATION_ID
'INVENTORY', --DESTINATION_TYPE_CODE
13706, --DELIVER_TO_PERSON_ID
101629781, --LOCATION_ID
101629781, --DELIVER_TO_LOCATION_ID
'FG', --SUBINVENTORY
46259, --LOCATOR_ID
rcv_headers_interface_s.currval, --Header_interface_id
'Y', --VALIDATION_FLAG
SYSDATE
Thank you,
Genoo
Edited by: Geno on May 25, 2013 4:54 AMAny suggestion/advise please!
Thanks,
Genoo -
How to get unique Batch Name for AP Open Interface Import Program
Hi,
We have enabled the invoice batch controls i.e. the profile option 'AP: Use Invoice Batch Controls' set to Yes.
We have an interface with some system from where we receive a data file that has AP invoices. The invoices are loaded into staging table, and finally into AP invoice interface tables. After this the AP Open interface import is run.
The relevant programs are in a concurrent request set and are executed every day.
The issue is with the 'Batch Number' parameter of the Payables Open Interface Import Program. If I enter some text as the batch number, the Batch gets created with that name only. As such we need the Batch number to be unique for each job run.
Oracle help says "If the AP: Use Invoice Batch Controls profile option is enabled and if you provide no value for this parameter then the system provides a value for you. The value the system provides is the concatenation of the Source and a unique sequential number. For example, ERS: 1234".
However the problem is the Batch Name Parameter is mandatory, and cannot be left NULL.
Has any one faced this issue earlier? Am I missing any setup or step?
Any inputs in this regard would be highly appreciated!
Best regards,
AnandThe proper Oracle suggested method would be to put a wrapper program around your request set that determines the batch name.
The easier (abet less supported) method:
CREATE OR REPLACE TRIGGER custom.coop_ap_batches_all_insert
BEFORE
INSERT
ON ap.ap_batches_all
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
-- to update batch name...
-- created so that the nightly batches can have unique names by date
-- nightly batches will be created with their simple name
-- IE VIR, DI, MI, etc... this trigger will rename them
-- to YYYY-MM-DD-VIR, YYYY-MM-DD-DI, YYYY-MM-DD-MI, etc...
IF LENGTH(TRIM(:new.batch_name)) < 4 THEN
:new.batch_name := TO_CHAR(SYSDATE,'YYYY-MM-DD') || '-' || :new.batch_name;
END IF;
:new.batch_name := UPPER(:new.batch_name);
END;
/ -
Bank Branch upload through open interface Table
Hello All,
I am currently doing Bank and Branch Conversion. My question is , is there any Open Interface Table available for bank and branch upload although there is api available .Please let know if any interface table and seeded program is available for bank and branch import.
Version : 12.1.1
Thank & Regards
AbooBut RA_CUSTOMER_BANK_INT_ALL is not existing in the 11.5.10, 12.0 and 12.1.1.
One more thing, I am able to create bank, branch and bank account (for customers), once the bank account is created i am able to see in the database
select * from iby_ext_bank_accounts where EXT_BANK_ACCOUNT_ID = <ID> but when i am looking into the customer screen, i am not able to see the bank account data added to the customer account.
But i clicked on the Add button and looked for the bank account, it is showing. So every time when i am creating bank account for a customer, once created , do i need to add in the screen?
please provide any sugession , its confusing.
Thanks & Regards
Aboothahir -
How to create cross charge AP invoice through Payables Open Interface Import
Hi,
I am working on developing an AP invoice interface program for creating cross charge invoices in Oracle 11i.
Cross charge invoice means the supplier & site is from operating unit A, but the costing should hit the project number in Operating unit B.
The pa_projects_all.allow_cross_charge_flag for the project number is set to Y. I am using below scripts to enter data into the interface tables:
<code>
INSERT INTO ap_invoice_lines_interface
(invoice_id,
invoice_line_id, line_type_lookup_code,
amount, org_id,
last_update_date, last_updated_by,
creation_date, created_by,
project_id, task_id,
expenditure_type, expenditure_item_date,
expenditure_organization_id
VALUES (v_invoice_id,
ap_invoice_lines_interface_s.NEXTVAL, 'ITEM',
c_line.invoice_amount, v_org_id,
TRUNC (SYSDATE), fnd_global.user_id,
TRUNC (SYSDATE), fnd_global.user_id,
v_project_id, v_task_id,
v_expenditure_type, v_expenditure_item_date,
v_organization_id
INSERT INTO ap_invoices_interface
(invoice_id, invoice_num, invoice_date,
gl_date, vendor_id, vendor_site_id,
invoice_amount, invoice_currency_code,
exchange_rate, exchange_rate_type, exchange_date,
terms_id, terms_date, payment_method_lookup_code,
pay_group_lookup_code, payment_currency_code,
last_update_date, last_updated_by, creation_date,
created_by, SOURCE, org_id
VALUES (v_invoice_id, c_head.invoice_num, c_head.invoice_date,
c_head.gl_date, v_vendor_id, v_vendor_site_id,
c_head.invoice_amount, c_head.invoice_currency,
v_rate, 'Corporate', c_head.invoice_date,
v_terms_id, TRUNC (SYSDATE), v_payment_method,
v_paygroup, c_head.payment_currency,
TRUNC (SYSDATE), fnd_global.user_id, TRUNC (SYSDATE),
fnd_global.user_id, 'CONCUR', v_org_id
<code>
After inserting data into the interface tables, I submitted the Payable Open Interface Import with correct source and the record fails with below errors:
REASON DESCRIPTION
Account Required An account is required
PA Flexbuild Failed Project Flexbuilder failed with error
The above inserts are working fine for same entity invoices.
I am not sure what could be the error.
Any help is greatly appreciated.
Thanks
ImranHave you customized/setup the Project Accounting Workflow builder. You need to do some setup for this workflow builder so that the project accounts can be derived properly.
Maybe you are looking for
-
i read thru da help in my mbp states dat boot camp can be done wif windows xp or vista..how bout windows 7?i tried wif windows 7 professional 32 bit..haf sum problems in running call of duty modern warfare where it hangs at the pause menu..besides th
-
MDM 3.0 Installation related
We are in a process of doing MDM installation. Background: We have new server in place for MDM 3.0 installation. We already have XI 3.0, EP 6.40 as separate instances running on different machines. Question 1: Can I reuse XI and EP's existing instanc
-
Scroll one item in List component
Hello! I use List component for song list in my flash music player. Everything works ok except for one problem - when the name of the song is too long, user can't read the full name of the song. One solution would be to use the horizontal scroll bar,
-
Greetings, A couple questions for GDS experts... 1. Is there a GDS repository for MDM server? I am asking about an .a2a file. I am not able to find one. Could you please guide me to the location from where I can download it? Thanks. 2. When we extra
-
Tried to move my CS4 Suite from Windows XP to new computer running Windows 8.0 and now receive Licensing for this product has stopped working, Error Message 5. I no longer have the disks for this program. Help!