API to Update Invoice Attributes in Oracle R12
Hi,
I'm looking some Oracle EBS API to update the Invoice header attributes fields in AR R12.
If some of you can help me I will appreciate it.
Regards.
Fco.
AFAIK, Oracle does not provide APIs to update ATTRIBUTE columns, since these columns store free-form customer-defined data. You can directly update ATTRIBUTE columns using SQL, taking appropriate care to not corrupt/invalidate the data in these columns.
HTH
Srini
Similar Messages
-
Use of APIs to update Absence info in Oracle HR/SSHR 11i
Dear all,
Use of APIs and Absences
1. Can you please let me know which are the relevant APIs to update Absences Information into Oracle Human Resources Application?
2. Where can I find relevant documentation on how to deploy these APIs?
Thanking you in advance for your feedback
Best regards
ElenaHi Elena,
You may find a list of the APIs in HRMS on Metalink. Just query for "APIs in HRMS". For absences you may use the following APIs: hr_absence_type_api, hr_person_absence_api
You may create a PL/SQL program to use these APIs or alternatively use web ADI to create upload integrators. You may have to write a custom wrapper before calling these APIs if required.
- Vikram -
API to update ASL attribute source document in 11.5.10.1
Hi All,
We are trying to update the ASL attribute source document, programmatically.
Can you please tell us, which API will be used to do so or any other alternatives?
Thanks & Regards,
GowriHi Helios,
Thank you for the update, actually the problem is solved.
The issue is : Whenever i am trying to show a message in that form using either form personalization or CUSTOM.pll, it is giving the error, if i do any thing else like 'changing the default where clause etc', it is not giving any error. The problem is only with message. Actually my requirement is changing the where clause, which is happening with out any problem. I dropped the idea of showing the message any way.
This problem is strange. Any ways, i am raising an SR with Oracle.
Raj -
Update supplier number in oracle r12
Dear All ,
There is a business requirements to update the supplier number when creating the supplier with a specified format .
how i can make this ,using personalization or extension .
Appreciate your efforts .Hi,
Check how the supplier number is getting populated when creating the supplier.
You can extend your controller and write the logic in PR method to set the supplier number as per the required format.
--Sushant -
API for Updating Attribute in CZ
Hi All,
Could you please suggest me any Standard API to update the Attribute Value in cz_config_ext_attributes.
Thank you,
AushCould you please suggest me any Standard API to update the Attribute Value in cz_config_ext_attributes.I do not see any reference on MOS that shows what API can be used to update this table.
Have you reviewed the documentation? -- http://www.oracle.com/technetwork/documentation/applications-167706.html
You may also review iREP and eTRM websites.
http://irep.oracle.com/index.html
http://etrm.oracle.com/
Thanks,
Hussein -
Hi All,
could you please provide me the API to update the PARTY Information in R12.
Thank you,
AushTry:
HZ_PARTY_V2PUB.update_person
HZ_PARTY_V2PUB.update_group
HZ_PARTY_V2PUB.update_organization
Hope it helps. -
API to update resource Planning list in Oracle Projects
I have found the following API to update the RPL in Oracle Projects.
PA_PLAN_RES_LIST_PUB
My question is this API updates the RPL only at the Definition level, is there any way that once we update using this API , the changes to be reflected to RPL assigned to the Project Templates.
We cannot check the check box for Centrally Controlled at the RPL setup due to some business reasons.
Pleasae let me know if anyone has any idea about this issue.
Thansk
SunilYou can have customization/trigger on the planning resource list table, whenever it is updated, it checks for the templates which it is being used and it updates it accordingly.
You may have to careful that the trigger is not mutating though !
Thanks,
Sathish
www.projectsaccounting.com -
Cannot update delivery attributes: the following field(s) are not updatable
Hi. I create in EBS simple Order
Now , my goal is to create a delivery , pick , change shipping quantity and ship confirm. Here is my code
DECLARE
p_sales_order NUMBER := 10014445;
p_line_number NUMBER := 1.1;
p_org_id NUMBER := 308;
l_shipped_quantity NUMBER := 5;
p_api_version_number NUMBER := 1.0;
init_msg_list VARCHAR2(200);
l_commit VARCHAR2(30);
x_msg_details VARCHAR2(3000);
x_msg_summary VARCHAR2(3000);
x_return_status VARCHAR2(3);
x_msg_count NUMBER;
x_msg_data VARCHAR2(3000);
p_validation_level NUMBER;
v_errbuf VARCHAR2(2000);
v_retcode VARCHAR2(20);
v_released_status wsh_delivery_details.released_status%TYPE;
v_inv_interfaced_flag wsh_delivery_details.inv_interfaced_flag%TYPE;
v_oe_interfaced_flag wsh_delivery_details.oe_interfaced_flag%TYPE;
v_source_code wsh_delivery_details.source_code%TYPE;
v_pending_interface_flag wsh_trip_stops.pending_interface_flag%TYPE;
l_changed_attributes wsh_delivery_details_pub.changedattributetabtype;
l_source_code VARCHAR2(30) := 'OE';
-- Parameters for WSH_DELIVERIES_PUB
p_delivery_name VARCHAR2(30);
p_action_code VARCHAR2(15);
p_asg_trip_id NUMBER;
p_asg_trip_name VARCHAR2(30);
p_asg_pickup_stop_id NUMBER;
p_asg_pickup_loc_id NUMBER;
p_asg_pickup_loc_code VARCHAR2(30);
p_asg_pickup_arr_date DATE;
p_asg_pickup_dep_date DATE;
p_asg_dropoff_stop_id NUMBER;
p_asg_dropoff_loc_id NUMBER;
p_asg_dropoff_loc_code VARCHAR2(30);
p_asg_dropoff_arr_date DATE;
p_asg_dropoff_dep_date DATE;
p_sc_action_flag VARCHAR2(10);
p_sc_intransit_flag VARCHAR2(10);
p_sc_close_trip_flag VARCHAR2(10);
p_sc_create_bol_flag VARCHAR2(10);
p_sc_stage_del_flag VARCHAR2(10);
p_sc_trip_ship_method VARCHAR2(30);
p_sc_actual_dep_date VARCHAR2(30);
p_sc_report_set_id NUMBER;
p_sc_report_set_name VARCHAR2(60);
p_sc_defer_interface_flag VARCHAR2(60);
p_sc_send_945_flag VARCHAR2(60);
p_sc_rule_id NUMBER;
p_sc_rule_name VARCHAR2(60);
p_wv_override_flag VARCHAR2(10);
p_asg_pickup_stop_seq NUMBER;
p_asg_dropoff_stop_seq NUMBER;
x_trip_id VARCHAR2(30);
x_trip_name VARCHAR2(30);
fail_api EXCEPTION;
x_debug_file VARCHAR2(100);
l_ship_method_code VARCHAR2(100);
l_user_id NUMBER;
l_resp_id NUMBER;
l_appl_id NUMBER;
CURSOR c_ord_details IS
SELECT DISTINCT det.source_header_number sales_order,
det.org_id,
det.source_line_number,
det.source_header_id,
det.source_line_id,
det.source_header_type_name,
det.inventory_item_id,
det.requested_quantity,
det.delivery_detail_id,
(SELECT concatenated_segments
FROM mtl_system_items_kfv
WHERE inventory_item_id = det.inventory_item_id
AND organization_id = det.organization_id) ordered_item,
det.organization_id,
det.src_requested_quantity,
det.shipped_quantity,
del.delivery_id,
del.status_code delivery_status_code,
det.released_status pick_release_status,
det.oe_interfaced_flag,
det.inv_interfaced_flag
FROM wsh_delivery_details det,
wsh_delivery_assignments asn,
wsh_new_deliveries del
WHERE 1 = 1
AND det.delivery_detail_id = asn.delivery_detail_id
AND asn.delivery_id = del.delivery_id(+)
AND det.source_header_number = 1199656
AND det.source_line_number = '1.1'
AND det.org_id = 10102
AND shipped_quantity IS NULL
AND NVL(del.status_code, 'OP') <> 'CL'
and det.delivery_detail_id =21439836
/* AND det.released_status = 'Y'*/;
BEGIN
-- Initializing the Applications
SELECT user_id INTO l_user_id FROM fnd_user WHERE user_name = 'MSHAPIRA';
SELECT responsibility_id, application_id
INTO l_resp_id, l_appl_id
FROM fnd_responsibility_vl
WHERE responsibility_name = 'OM Super User - UDS UK';
fnd_global.apps_initialize(l_user_id, l_resp_id, l_appl_id);
FOR i IN c_ord_details LOOP
DBMS_OUTPUT.put_line('Initializing the Application for Shipping Transactions');
-- Mandatory initialization for R12
mo_global.set_policy_context('S', i.org_id);
mo_global.init;
-- Ship Confirming
p_delivery_name := TO_CHAR(i.delivery_id);
DBMS_OUTPUT.put_line('Before Shipping, Calling WSH_DELIVERY_DETAILS_PUB API to Update Shipping Attributes');
DBMS_OUTPUT.put_line('=============================================');
l_changed_attributes(1).delivery_detail_id := i.delivery_detail_id;
l_changed_attributes(1).shipped_quantity := 5;
wsh_delivery_details_pub.update_shipping_attributes(p_api_version_number => 1.0,
p_init_msg_list => init_msg_list,
p_commit => l_commit,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
p_changed_attributes => l_changed_attributes,
p_source_code => l_source_code);
IF (x_return_status <> wsh_util_core.g_ret_sts_success) THEN
RAISE fail_api;
DBMS_OUTPUT.put_line('Failed to Update the Shipping Attributes');
ELSE
DBMS_OUTPUT.put_line('Successfully Updated the Shipping Attributes');
END IF;
BEGIN
SELECT shipping_method_code
INTO l_ship_method_code
FROM oe_order_headers_all
WHERE order_number = i.sales_order
AND org_id = i.org_id;
EXCEPTION
WHEN OTHERS THEN
l_ship_method_code := NULL;
END;
p_action_code := 'CONFIRM'; -- The action code for ship confirm
p_sc_action_flag := 'S'; -- Ship entered quantity.
p_sc_intransit_flag := 'Y';
--In transit flag is set to 'Y' closes the pickup stop and sets the delivery in transit.
p_sc_close_trip_flag := 'Y'; -- Close the trip after ship confirm
p_sc_trip_ship_method := l_ship_method_code; -- The ship method code
p_sc_defer_interface_flag := 'Y';
p_sc_stage_del_flag := 'Y';
p_sc_create_bol_flag := 'N';
p_wv_override_flag := 'N';
-- API Call for Ship Confirmation
DBMS_OUTPUT.put_line('Calling WSH_DELIVERIES_PUB to Perform Ship Confirmation');
DBMS_OUTPUT.put_line('=============================================');
wsh_deliveries_pub.delivery_action(p_api_version_number => 1.0,
p_init_msg_list => init_msg_list,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
p_action_code => p_action_code,
p_delivery_id => i.delivery_id,
p_delivery_name => p_delivery_name,
p_asg_trip_id => p_asg_trip_id,
p_asg_trip_name => p_asg_trip_name,
p_asg_pickup_stop_id => p_asg_pickup_stop_id,
p_asg_pickup_loc_id => p_asg_pickup_loc_id,
p_asg_pickup_stop_seq => p_asg_pickup_stop_seq,
p_asg_pickup_loc_code => p_asg_pickup_loc_code,
p_asg_pickup_arr_date => p_asg_pickup_arr_date,
p_asg_pickup_dep_date => p_asg_pickup_dep_date,
p_asg_dropoff_stop_id => p_asg_dropoff_stop_id,
p_asg_dropoff_loc_id => p_asg_dropoff_loc_id,
p_asg_dropoff_stop_seq => p_asg_dropoff_stop_seq,
p_asg_dropoff_loc_code => p_asg_dropoff_loc_code,
p_asg_dropoff_arr_date => p_asg_dropoff_arr_date,
p_asg_dropoff_dep_date => p_asg_dropoff_dep_date,
p_sc_action_flag => p_sc_action_flag,
p_sc_intransit_flag => p_sc_intransit_flag,
p_sc_close_trip_flag => p_sc_close_trip_flag,
p_sc_create_bol_flag => p_sc_create_bol_flag,
p_sc_stage_del_flag => p_sc_stage_del_flag,
p_sc_trip_ship_method => p_sc_trip_ship_method,
p_sc_actual_dep_date => p_sc_actual_dep_date,
p_sc_report_set_id => p_sc_report_set_id,
p_sc_report_set_name => p_sc_report_set_name,
p_sc_defer_interface_flag => p_sc_defer_interface_flag,
p_sc_send_945_flag => p_sc_send_945_flag,
p_sc_rule_id => p_sc_rule_id,
p_sc_rule_name => p_sc_rule_name,
p_wv_override_flag => p_wv_override_flag,
x_trip_id => x_trip_id,
x_trip_name => x_trip_name);
IF (x_return_status <> wsh_util_core.g_ret_sts_success) THEN
DBMS_OUTPUT.put_line('Ship confirm has not been Completed For SO => ');
ROLLBACK;
RAISE fail_api;
ELSE
DBMS_OUTPUT.put_line('Ship confirm Successfully Completed For SO => ');
COMMIT;
DBMS_OUTPUT.put_line('Checking the Delivery Status after delivery action API Call');
DBMS_OUTPUT.put_line('==========================================');
SELECT wdd.source_code,
wdd.released_status,
wdd.inv_interfaced_flag,
wdd.oe_interfaced_flag,
wts.pending_interface_flag
INTO v_source_code,
v_released_status,
v_inv_interfaced_flag,
v_oe_interfaced_flag,
v_pending_interface_flag
FROM wsh_trips wtr,
wsh_trip_stops wts,
wsh_delivery_legs wlg,
wsh_new_deliveries wnd,
wsh_delivery_assignments wda,
wsh_delivery_details wdd
WHERE wtr.trip_id = wts.trip_id
AND wts.stop_id = wlg.pick_up_stop_id
AND wts.pending_interface_flag = 'Y'
AND wdd.inv_interfaced_flag <> 'Y'
AND wlg.delivery_id = wnd.delivery_id
AND wnd.delivery_id = wda.delivery_id
AND wda.delivery_detail_id = wdd.delivery_detail_id
AND wnd.delivery_id = p_delivery_name
AND wdd.source_line_id = i.source_line_id;
IF (v_source_code = 'OE' AND v_released_status = 'C' AND
v_inv_interfaced_flag <> 'Y' AND v_oe_interfaced_flag <> 'Y' AND
v_pending_interface_flag = 'Y') THEN
DBMS_OUTPUT.put_line('The Delivery has been Shipped & the Next Step is - Run Interface');
DBMS_OUTPUT.put_line('===========================================');
-- API Call for Submitting Interface Trip Stop
wsh_ship_confirm_actions.interface_all_wrp(errbuf => v_errbuf,
retcode => v_retcode,
p_mode => 'ALL',
p_stop_id => NULL,
p_delivery_id => p_delivery_name,
p_log_level => 0,
p_batch_id => NULL,
p_trip_type => NULL,
p_organization_id => i.organization_id,
p_num_requests => 1,
p_stops_per_batch => 1);
ELSE
DBMS_OUTPUT.put_line('The Delivery has not Shipped Properly');
END IF;
END IF;
END LOOP;
EXCEPTION
WHEN fail_api THEN
DBMS_OUTPUT.put_line('==============');
DBMS_OUTPUT.put_line('Error Details If Any');
DBMS_OUTPUT.put_line('==============');
wsh_util_core.get_messages(p_init_msg_list => 'Y',
x_summary => x_msg_summary,
x_details => x_msg_details,
x_count => x_msg_count);
IF x_msg_count > 1 THEN
x_msg_data := x_msg_summary ||' '||x_msg_details;
DBMS_OUTPUT.put_line(x_msg_data);
ELSE
x_msg_data := x_msg_summary||' '|| x_msg_details;
DBMS_OUTPUT.put_line(x_msg_data);
END IF;
END;
But at the stage of updating delivery attributes I get the following error message
Warning: For Delivery Detail 21439836, the following field(s) are not updatable: SHIPPED_QUANTITY.
Why?Hi Paul
Looks like the authorisation is failing due to a bad registration for some reason.
Would you be kind enough to clear out the registration to ensure we are dealing with a fresh start and no information is being used which may have become corrupt. You may do this by following this procedure;
Remove existing reg details
# usr/lib/cc-ccr/bin/eraseCCRRepository
List /tmp/RegistrationProfile.properties file
# cat /tmp/RegistrationProfile.properties
Attempt re-registration
# sconadm register -a -r /tmp/RegistrationProfile.properties
Send us the full output of the commands above if you would please. -
How do I update "Rendered" attribute property from VO in runtime?
I can override isAttributeUpdateable() in RowImpl for "updateable" attribute property of a VO in runtime.
Is there API to update "Rendered" attribute property? I need to set it based on some condition or business rule in runtime.
thanks,If you have a work flow there are several ways to do this. If the attribute is global, and can change on all resources, you can set user.global.<attribute> to what ever you want and it will usually propagate out fine. You can also update the attribute specifically on the resource with user.accounts[LDAP].<attribute>.
-
Invoice Validation error in R12
All,
I pushed invoice transaction to Oracle R12 thru the Payables Open Interface. Though the concurrent completed successfully and creates a valid Invoice, on validating such invoice from the Invoice workbench throws me an error.
(Since I'm not able to copy the actual error message, I'm typing the same here for your info)
APP-SQLAP-10000:ORA-01400: Cannot insert Null into ("ZX"."ZX_ITM_DISTRIBUTIONS_GT"."TRX_LINE_DIST_AMT") occured in AP_ETAX_SERVICES_PKG.Populate_Distributions_GT<-AP_ETAX_SERVICES_PKG.Distribute<-AP_ETAX_PKG.Calling_eTax<-AP_APPROVAL_PKG.Approval<-APXINWKB with Parameters (p_invoice_header_rec=155936 p_calling_mode = DISTRIBUTE P_Error_code=p_calling_sequence= AP_ETAX_SERVICES_PKG.Distribute<-AP_ETAX_PKG.Calling_eTax<-AP_APPROVAL_PKG.Approval<-APXINWKB) while performing the following opertions
Step 7: Bulk insert into global temp table
I searched with the error number in the metalink, but couldn't find. Can anybody help me on this?
Thanks,
Sen.
Edited by: Sen2008 on Sep 1, 2008 3:09 AM
Edited by: Sen2008 on Sep 1, 2008 3:10 AMPlease log an SR with Oracle support if you were not able to locate anything on Metalink.
Alternatively apply the latest patches for apaprvlb.pls and retest. This could be a code or a set-up issue. Seems more likely a code issue to me.
Thanks -
Update Unpaid Invoice in Oracle R12
I wanted to update the paygroup (PAY_GROUP_LOOKUP_CODE) of unpaid invoices in oracle R12. Is this feasible? If yes, can you please let me know the API to do the same.
Thanks in advance, for your kind response.Hi,
Use below code to identify the unpaid invoice and update the paygroup.
Please let me know if i am missing something
select i.invoice_num,v.vendor_name,i.invoice_date,ps.due_date,
i.invoice_amount,i.amount_paid,ps.amount_remaining, SUM(i.invoice_amount),sum(ps.amount_remaining)
FROM ap_payment_schedules_all ps,
ap_invoices_all i,
apps.po_vendors v,
apps.po_vendor_sites_all vs
WHERE i.invoice_id = ps.invoice_id
AND i.vendor_id = v.vendor_id
AND i.vendor_site_id = vs.vendor_site_id
AND i.payment_status_flag ='N'
AND (nvl(ps.amount_remaining, 0) * nvl(i.exchange_rate,1)) != 0
AND i.cancelled_date is not null
group by v.vendor_name,i.invoice_num,i.invoice_date,ps.due_date,i.invoice_amount,i.amount_paid,
ps.amount_remaining
Order by v.vendor_name,i.invoice_num; -
API to update AP Invoice Information in R12
Hi Gurus,
I am creating AP Invoices through iexpense modules and everything working file except project information..
While creating the expense report i have entered project number and task details. But project information is not showing in AP Invoice ( this is standard functionality ).
So, I am planning to update project related information in AP Invoice line level through API.
Please let me is there any API.
Thanks,
Sreehari.
Edited by: user10741694 on Nov 22, 2012 10:54 PMHi Sreehari,
for the list of available API's, please add the responsibility "Integration Repository" to your username and browse by application for the list of APIs. The expense report export uses the payables interface, hence there will be an API available for it.
Also i would suggest an workaround of capturing this information in some DFF fields in the Invoice, hence when oracle does not provide something as standard, there must be a hint of complexity involved in performing the same....
(One can also login to irep.oracle.com for accessing the list of API's but this site has been down for a reasonable period of time ..)
Regards,
Ivruksha -
Hi,
can any one please tel the API to update the AP invoices.
Thanks
TriveniHi;
All APIs are listed in Oracle Integration Repository
http://irep.oracle.com/index.html
API User Notes - HTML Format [ID 236937.1]
R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
Technical Uses of Customer Interface and TCA-API [ID 269121.1]
Pelase also check below:
Api's in EBS
Re: Api's in EBS
http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
API
Fixed Asset API
List of API
Re: List of APIs
Oracle Common Application Components API Reference Guide
download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
List of APIs and open interface R12
Re: List of APIs and open interface R12
Regard
Helios -
API to update Trx_date and Acct_date for AR invoices.
Hi,
Some AR invoices are created with trx_date as future dates ex: 01-FEB-2011, but they should be having the trx_date as todays date.
For these invoices, acct_date also created with 01-FEB-2011.
I have to update these records for trx_date and acct_date fields to todays date.
Can you provide me an API to update this.
Thanks in advance.
Best Regards,
Mani,Oracle hasn't yet provided the UPDATE API for AR Invoices. You cna only update the transaction from application. If the invoices are not accounted yet, then
1. Incomplete the transaction
2. change the TRX_DATE and GL DATE
3. complete the transaction.
- Kiran -
API to update oracle base table in oracle apps
Hi,
What is the API used to update a base table in oracle contracts?
Please suggest.If you are on 11i, please check irep.oracle.com
It lists all APIs available.
IREP - Oracle Integration Repository: The Tool To Find Which API Is Supported and How To Use It ... (Doc ID 554986.1)
For R12, see
Oracle Integration Repository Documentation Resources Release 12 (Doc ID 396116.1)
Note: 462586.1 - Where are the Oracle® Release 12 (R12) API Reference Guide?
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=462586.1
Note: 458225.1 - Release 12 Integration Repository
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=458225.1
Hope this helps,
Sandeep Gandhi
Maybe you are looking for
-
I am new in indesign scripting, please tell me how to write a script to get content of a element in xml and then sort all the content
-
BAPI_PO_CREATE1 GR Indicator Problem... ?
Hi All, Even though I am passing space , the GR indicator is getting ticked when creating the PO through the BAPI BAPI_PO_CREATE1.Does anybody have any solution to stop this from happening ... ? Cheers Nishanth
-
What is the best way to set up a photo grid gallery in DW6? I had previously used a table.
-
Indesing doesn't launch after Mavericks update
Hi I just upgraded to a Mavericks. I have a macbookpro early 2011. My indesing CS6 doens't open. I try to reinstall it but still doesn't open: this the report: Process: Adobe InDesign CS6 [2776] Path: /Applications/Adobe InDesign C
-
After I updated to itunes 10.6.1 I can not synchronize my iphone 4s.