0% found this document useful (0 votes)
329 views

Oracle Applications - Update Oracle Service Contract Header Through API

This document discusses updating an Oracle service contract header through an API. It provides a PL/SQL block that declares variables, initializes the context, sets the update values for a contract record, calls the update API, commits if successful, and outputs any messages. The block updates the currency code, description, and other fields for a specific contract ID through the API.

Uploaded by

Sudha Krishna
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
329 views

Oracle Applications - Update Oracle Service Contract Header Through API

This document discusses updating an Oracle service contract header through an API. It provides a PL/SQL block that declares variables, initializes the context, sets the update values for a contract record, calls the update API, commits if successful, and outputs any messages. The block updates the currency code, description, and other fields for a specific contract ID through the API.

Uploaded by

Sudha Krishna
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1/24/2018 Oracle Applications: Update Oracle Service Contract Header Through API

More Next Blog» sudhakris

Home AP AR GL INV PO OM HR PA FAQS SCRIPTS PL-SQL TECH OAF FUSIO

SATURDAY, JULY 30, 2016

Update Oracle Service Contract Header Through API

DECLARE
l_return_status VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(1000);
l_contract_rec oks_import_header_pub.Update_rec_type;
x_Contract_rec oks_import_header_pub.Update_rec_type;
l_msg_index_out NUMBER;
BEGIN
FND_GLOBAL.APPS_INITIALIZE
( user_id => 1000200
,resp_id => 21708
,resp_appl_id => 515
);

okc_context.set_okc_org_context(204,204);
/*update contract header */
l_contract_rec.ID := 202111 ;
l_contract_rec.currency_code :='EUR';
l_contract_rec.short_description :='Test Update contract Header' ;
l_contract_rec.pricing_flag := 'R';
l_contract_rec.conversion_type := 'User';
l_contract_rec.conversion_rate :=1;
l_contract_rec.conversion_rate_date:='08-jan-2014';
l_contract_rec.description := 'Test update contract header API';

OKS_IMPORT_HEADER_PUB.UPDATE_CONTRACT_HEADER
(
p_api_version => 1.0,
p_init_msg_list => OKC_API.G_TRUE,
x_return_status=>l_return_status,
x_msg_count=>l_msg_count ,
x_msg_data=>l_msg_data ,
p_contract_rec=>l_contract_rec,
x_Contract_rec =>x_Contract_rec
);

Dbms_Output.put_line('l_return_status '||l_return_status);

IF l_return_status='S'
THEN
Dbms_Output.put_line('Contract Header is updated successfully '||x_Contract_rec.contract_number );
COMMIT;
END IF;

FOR i IN 1 .. fnd_msg_pub.count_msg
LOOP
FND_MSG_PUB.GET
(p_msg_index => i,
p_encoded => 'T',
p_data => l_msg_data,
p_msg_index_out => l_msg_index_out
);

FND_MESSAGE.SET_ENCODED (l_msg_data);
l_msg_data := fnd_message.get;
dbms_output.put_line(l_msg_data);
http://oracleapps88.blogspot.com/2016/07/update-oracle-service-contract-header.html 1/3
1/24/2018 Oracle Applications: Update Oracle Service Contract Header Through API
END LOOP;
END;

Best Blogger Gadgets

Posted by Raju Chinthapatla at 2:06:00 PM

Labels: API, CONVERSIONS, CRM

No comments:

Post a Comment

Enter your comment...

Comment as: Sudha Krishna Sign out

Publish Preview Notify me

Links to this post


Create a Link

Newer Post Home Older Po

Subscribe to: Post Comments (Atom)

http://oracleapps88.blogspot.com/2016/07/update-oracle-service-contract-header.html 2/3
1/24/2018 Oracle Applications: Update Oracle Service Contract Header Through API

Email : [email protected]. Picture Window theme. Theme images by konradlew. Powered by Blogger.

Get Flower Effect

http://oracleapps88.blogspot.com/2016/07/update-oracle-service-contract-header.html 3/3

You might also like