Update Purchase Order Header Details API Script - Oracle EBS R12
Update Purchase Order Header Details API Script - Oracle EBS R12
SOA,OracleAppsandOAFWorld:UpdatePurchaseOrderHeaderDetailsAPIScript:OracleEBSR12
Contrib
utors
Bi
b
e
k
a
n
a
n
d
a
Pa
d
hy
R
u
hi
Si
n
g
h
Followers
Followers(21)Next
Update Purchase Order Header Details API Script: Oracle EBS R12
There are certain scenarios in which PO headers details are required to be updated. Oracle has provided a
standard API to update PO header details.
PO Header fields which cab be updated are :
Vendor Site Details
Ship to Location
53705
Labels
APPS (23)
BPEL (2)
EBS R12 (8)
EBS Setups (17)
OAF (3)
Bill to Location
Purchasing (14)
Payment Term
Delivery Term
SOA (39)
Buyer Details
Below mentioned is the sample script to update PO Header Details through Oracle standard API.
CREATE OR REPLACE
PROCEDURE po_update_headers(
p_po_number IN VARCHAR2,
Blog Archive
14 (46)
Oct (1)
p_vendor_site_id IN NUMBER,
Aug (1)
p_ship_to_location IN VARCHAR2,
Jul (6)
p_bill_to_location IN VARCHAR2,
p_payment_id IN NUMBER,
p_delivery_term IN VARCHAR2,
p_buyer_id IN NUMBER,
p_status out VARCHAR2)
AS
Cursor To Get All the Details of PO
CURSOR po_hdr_cur
IS
SELECT ph.ROWID, ph.*
FROM apps.po_headers ph
WHERE ph.segment1 = p_po_number;
Follow
Total Pageviews
v_hdr_rec po_hdr_cur%rowtype;
BEGIN
apps.mo_global.set_policy_context('S',204);
apps.fnd_global.apps_initialize ( user_id => 1318, resp_id => 50578, resp_appl_id => 201 );
FOR hdr_rec IN po_hdr_cur
loop
apps.po_headers_pkg_s3.update_row
( x_rowid => hdr_rec.ROWID,
x_po_header_id => hdr_rec.po_header_id,
x_agent_id => nvl(p_buyer_id, hdr_rec.agent_id),
x_type_lookup_code => hdr_rec.type_lookup_code,
x_last_update_date => hdr_rec.last_update_date,
x_last_updated_by => hdr_rec.last_updated_by,
x_segment1 => hdr_rec.segment1,
x_summary_flag => hdr_rec.summary_flag,
x_enabled_flag => hdr_rec.enabled_flag,
x_segment2 => hdr_rec.segment2,
x_segment3 => hdr_rec.segment3,
x_segment4 => hdr_rec.segment4,
x_segment5 => hdr_rec.segment5,
x_last_update_login => hdr_rec.last_update_login,
x_vendor_id => hdr_rec.vendor_id,
x_vendor_site_id => nvl(p_vendor_site_id, hdr_rec.vendor_site_id),
x_vendor_contact_id => hdr_rec.vendor_contact_id,
x_ship_to_location_id => nvl(p_ship_to_location, hdr_rec.ship_to_location_id),
x_bill_to_location_id => nvl(p_bill_to_location, hdr_rec.bill_to_location_id),
http://bibeksoa.blogspot.com.eg/2014/05/updatepurchaseorderheaderdetails.html
Jun (4)
May (18)
Pick Activity to Receive
Multiple Response
From As...
Asynchronous BPEL
Process Returning
Multiple Respo...
Requisition Import API
: Oracle EBS R12
Query to Check
Concurrent Manager
Status
Update Purchase Order
Line Details : Oracle
EBS R...
Cancel PO Line API
Script: Oracle EBS
R12
Return to Vendor of
Purchase Order
Receipts Script...
Invoke a Web Service
From A Java Class
Using Jdev ...
Create A Web Service
From A Java Method
In Jdevelo...
Invoke A Java Method
From A Pl/Sql
Function
PO Reapproval API
Script: Oracle EBS
R12
Blanket Purchase Order
Import Program
Script: Orac...
Update Purchase Order
Header Details API
Script: O...
1/3
11/15/2016
SOA,OracleAppsandOAFWorld:UpdatePurchaseOrderHeaderDetailsAPIScript:OracleEBSR12
x_terms_id => nvl(p_payment_id, hdr_rec.terms_id),
x_ship_via_lookup_code => hdr_rec.ship_via_lookup_code,
x_fob_lookup_code => nvl(p_delivery_term, hdr_rec.fob_lookup_code),
x_freight_terms_lookup_code => hdr_rec.freight_terms_lookup_code,
x_status_lookup_code => hdr_rec.status_lookup_code,
x_currency_code => hdr_rec.currency_code,
x_rate_type => hdr_rec.rate_type,
x_rate_date => hdr_rec.rate_date,
x_rate => hdr_rec.rate,
x_from_header_id => hdr_rec.from_header_id,
x_from_type_lookup_code => hdr_rec.from_type_lookup_code,
x_start_date => hdr_rec.start_date,
x_end_date => hdr_rec.end_date,
x_revision_num => hdr_rec.revision_num,
Apr (2)
Mar (11)
Feb (3)
13 (40)
12 (1)
http://bibeksoa.blogspot.com.eg/2014/05/updatepurchaseorderheaderdetails.html
2/3
11/15/2016
SOA,OracleAppsandOAFWorld:UpdatePurchaseOrderHeaderDetailsAPIScript:OracleEBSR12
Sridevi K 11/03/2016 9:59 pm
Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile https://in.linkedin.com/in/sridevikoduru9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL,
PL/SQL, D2K at [email protected] | +91 9581017828.
Reply
Enteryourcomment...
Commentas:
Publish
Unknown(Google)
Signout
Notifyme
Preview
Newer Post
Home
Older Post
http://bibeksoa.blogspot.com.eg/2014/05/updatepurchaseorderheaderdetails.html
3/3