Documentation of Service Contracts API -- OKS_COVERAGES_PUB
Hi All
We have a requirement in the OKS Service Contracts Module, in which a Concurrent Program has to be created, such that it will detach the old coverage template and attach the new coverage template to the existing contracts.
We tried with the Standard API (“OKS_COVERAGES_PUB.DELETE_COVERAGE”, “OKS_COVERAGES_PUB.CREATE_ACTUAL_COVERAGE”)
but we are not able to get the desired results.
The API Works for only those service line ids of the contract which has the status “Entered”. For service line ids of status other than “Entered” the API throws an error.
Error Message Details – (x_return_status – ‘E’, x_msg_count – 1, x_msg_data – ‘OKC’)
We don’t know exactly the limitation of the API and there is no detail available about these API in both Service Contracts Development and API reference guide.
Kindly provide me some documentation related to this API to this mail id [email protected]
Thanks in Advance.
Thanks & Regards
Sivakumar
Hi,
i want to add the lines and covered product to the existing contract.
Cuold you please suggest me the API for the same.
Thanking you in anticipation.
Regards,
Reena
Edited by: user10829701 on Mar 27, 2009 1:34 AM
Similar Messages
-
Need Help in Oracle Service Contracts API -- OKS_COVERAGES_PUB
Hi All
We have a requirement in service contracts module, wherein we have to delete the old coverage template of service line of a contract and attach the new template with the service line.
For this, we are using OKS_COVERAGES_PUB (“OKS_COVERAGES_PUB.DELETE_COVERAGE”, “OKS_COVERAGES_PUB.CREATE_ACTUAL_COVERAGE”) API but not able to get the desired results.
The API Works for only those service line ids of the contract which has the status “Entered”.
For service line ids of status other than “Entered” the API throws an error.Error Message Details – (x_return_status – ‘E’, x_msg_count – 1, x_msg_data – ‘OKC’).
We don’t know exactly the limitation of the API and there is no detail available about these API in both Service Contracts Development and API reference guide.
If anyone come across similar requirement or known any details about this API, Kindly mail the details to this id : [email protected]
Thanks in Advance
Thanks & Regards
SivakumarHi,
i want to add the lines and covered product to the existing contract.
Cuold you please suggest me the API for the same.
Thanking you in anticipation.
Regards,
Reena
Edited by: user10829701 on Mar 27, 2009 1:34 AM -
Documentation for Service Contract API
Hi All,
Sub: Any Documentation For The Public API's OKS_CONTRACTS_PUB,
OKC_CONTRACTS_PUB.
Firstly i would like to say Thank You for spending your valuable time for this Query.
Introduction:
Currently i am working in Oracle Service Contracts module, which is Oracle
Application's CRM module.
Specifications:
oracle application version: 11.5.10.2
Data Base version: oracle 9.2.0.6
Problem:
We are trying to integrate the Service Contracts through following Public API's
with web.
API's are:
OKS_CONTRACTS_PUB,
OKC_CONTRACTS_PUB.
I search so much to the documentation for these API's, but i did not get any thing.
I search in Oracle Meta Link, Google.
Could you help If any Documentation If you find (or) you have ?
Please forward to:
[email protected]
[email protected]
Any help from your side will appreciate.
Thank you.
Regards,
Sai Krishna @cavayaLook at this link you will be able to get some information about the Api
http://mywebpages.comcast.net/muzaffarl/whitepaper/02d.pdf
If you find any document regarding this Api other than this kindly let me know. -
Hi Experts,
I came across the api oks_contracts_pub which can be used to create contract headers,lines and sublines.My requirement is to update the start and end date of the headers ,lines and sublines after the contract is created.
Can this api be used for update as well ?
ThanksTry OKC_CONTRACT_PUB.update_header
Hope this answers your question
Sandeep Gandhi
Omkar Technologies Inc.
Independent Techno-functional Consultant -
Service contract data conversion
Hi,
Where can I get documentation for service contraction data conversion process.I mean interface tables or api's etc.
Thanks
ramCan you please specify where can I find stepwise explanation for Service Contracts using APIs. Which Oracle API ref guide you are reffering here.
rgds -
Documentation on APIs for the Service Contracts.
Hi,
Can anyone please, point out some documentation for the Public APIs provided under the Service Contracts for R12.
Though I can look at the source code of the APIs, I cannot figure out what parameter is used for what, due to lack of proper comments in the PL/SQL code.
Any pointers would be of great help.
Thanks in Advance,
VijayPlease review the following notes/docs, it may be helpful:
Note: 421170.1 - R12 Oracle Service Contracts And Integration Repository Access
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=421170.1
Oracle Integration Repository User's Guide
http://download.oracle.com/docs/cd/B40089_09/current/acrobat/120irepug.pdf -
Documentation On Create Service request API
Hi, i have to create a service request thru the API........Can anybody suggest me the documentation for that.
thanks
kalyanYou can get some documentation on the create service request api from metalink. The note # is 215093.1. This gives you some real life example on how to update a service request. Hope this is helpful
-
How can i remove an Service Contract through DI API ????
Hi everybody,
when i try to delete an service contract through DI API (2007 PL 47), with method Remove, i receive the following error: "The object does not support this method, or method not implemented yet".
Somebody know the right way for delete an service contract?Hello,
This is not possible. If you read the help, this describes: Not Supported.
What you can do:
Set the Ending to Today or at least the same as Staring Date, or change the status to terminated or On Hold.
Best Regards,
János -
APIs to Modify Service Contracts
Hi,
Can any one help me regarding apis for modification of service contracts (header,service line and covered line).
Thanks in AdvanceThere are lot of API s to achieve this process.
You can search for OKC_CONTRACTS_PUB.update_XXXXXX...
Thanks
Lloyd -
Service contracts data conversion
hi
Can u send me the Oracle service contracts data converion sripts for this id [email protected]
its greate helpfull for me
Thanks
krishnaHi
Ref to OTN
You should be having Documentation for the list of API's
This is the Document Part number A95222-01
Title Oracle Contracts for Service API Reference Guide
Regards
Joseph -
Service Contracts Line and Header Tax amounts are not matching
Hi,
I am creating service contracts using API. Using below code i am applying price adjustments on the line. while using the below API Tax is calculated at line level and added for each line But the Tax filed on the header is not getting updated. I fwe go to front end and click on reprice then the Tax amount is added to the header(If the contract created with status 'Entered').
Please help me to fix this.
l_multi_line_tbl (0).ID := l_x_clev_rec.ID;
l_multi_line_tbl (0).price_list_id :=l_curr_price_list_id;
l_multi_line_tbl (0).lse_id := 46;
l_multi_line_tbl (0).line_pl_flag := 'Y';
l_x_return_status := NULL;
apps.oks_auth_util_pub.compute_price_multiple_line (
p_api_version
=> 1.0,
p_detail_tbl
=> l_multi_line_tbl,
x_return_status => l_x_return_status,
x_status_tbl
=> l_status_tbl);
Thanks,
Harinot answered yet.
-
How to delete the coverages for an ACTIVE service contract ?
Hi ,
I have created coverages for few service lines for a service contract in R12. The contract is in ACTIVE status. If it was in ENTERED state, I could use OKS_COVERAGES_PUB.DELETE_COVERAGE to delete the coverages. But this contract is in ACTIVE status.
Basically I want the lines lse_id=2,3 removed for a particular line (lse_id=1) which were created by using OKS_CONTRACTS_PUB.CREATE_SERVICE_LINE. This contract has a standard coverage and hence there should not be lines with lse_id=2,3 for that particular service line .
Also, I am not able to delete a coverage for an EXPIRED contract.
Please let me know if you need more information on this.Hi 2619098
Did you find a solution for this? I am having the same problem. Please advice.
Regards -
Error while creating Service Contract
Folks,
While I create a service contract, I am getting the error:
"An error occurred in system PEC510 during account assignment"
Could someone help me out with this?
Thanks,
Divya.Hi Divya,
Please check the following in IMG:
CRM -> Transactions -> Settings for Service Processes -> Integration -> Set up time sheet and controlling integration
After that you should enter the corresponding R/3 System. In R/3 customizing use the following path: Settings for Service Processing -> Controlling Integration -> Establish Controlling type, controlling level and controlling scenarios.
Here you should check if a controlling scenario for single object controlling (usually) has been maintained. See also paragraph 3.1.1.10.3 in BP guide C26 at the following location: http://help.sap.com/bp_crmv250/CRM_DE/BBLibrary/Documentation/C26_BB_ConfigGuide_EN_US.doc
Kind regards,
KZ -
Creation of Mfg Service contract from IB Instance number
Hi Team,
We have a requirement from client that we need to create a Mfg Service contract for a given IB Instance number. Can you please let me know, if we have any API for this?
I tried to create contract using Oks_Contracts_Pub.Create_Contract_Header API but this contract is not associated with Instance in IB.
Please help to provide any ideas on this. We are on 11.5.10 version.
Thanks/Suresh KSolution: You need to associate Contract with Covered line with that serial number.
-
Service Contracts Billing Schedule Creation Error
Hi,
I have a requirement of creating service contracts from back-end for which I am using the oks_contracts_pub.create_contract_header, create_service_line, and create_bill_schedule. I am creating my contracts with active status and renewal type of EVN (Header level), FUL(Line Level). My contract is of type subscription. The contract header and line are creating fine but the Bill schedule API is throwing an UNEXPECTED ERROR. The billing schedules need to be created based on accounting rule which can be quarterly or monthly. I have included the bill schedule code (hard coded values) for review. Any help is greatly appreciated.
Also the version I am working on is R12
________________________________________________CODE___________________________________________________________________
CREATE OR REPLACE PROCEDURE BILLING_SCHEDULE AS
l_strm_level_tbl OKS_BILL_SCH.STREAMLVL_TBL;
v_bill_qtrs NUMBER := 0;
v_bill_mths NUMBER := 0;
v_bill_days NUMBER := 0;
v_net_amount NUMBER := 468;
v_acct_rule_name VARCHAR2(50) := 'QUARTERLY';
v_amt_per_day NUMBER;
x_error_locator VARCHAR2(2000);
v_start_date DATE := '04-MAY-2010';
v_end_date DATE := '25-MAY-2010';
x_return_status VARCHAr2(3);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
v_billing_sequence NUMBER;
x_chr_id NUMBER := 17000;
x_line_id NUMBER := 223248604345353294444923586786456728480;
g_day_uom VARCHAR2(10) := 'DAY';
g_month_uom VARCHAR2(10) := 'MTH';
g_quarter_uom VARCHAR2(10) := 'QTR';
v_amt NUMBER;
v_invoicing_rule_id NUMBER := -2;
BEGIN
--Create Billing Schedule based on accounting rule
okc_context.set_okc_org_context;
MO_GLOBAL.INIT('OKS');
MO_GLOBAL.SET_POLICY_CONTEXT('S', 83);
v_bill_qtrs := 0;
v_bill_days := 0;
v_bill_mths := 0;
SELECT NVL(v_net_amount, 0)/(v_end_date - v_start_date)
INTO v_amt_per_day
FROM dual;
dbms_output.put_line('Calculated amt per day ' || v_amt_per_day);
IF v_acct_rule_name LIKE '%QUARTERLY%' THEN
--Quarterly billing schedule
SELECT FLOOR(MONTHS_BETWEEN( v_end_date,
v_start_date)/3),
v_end_date - ADD_MONTHS(v_start_date, (FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date)/3)*3))
INTO v_bill_qtrs,
v_bill_days
FROM dual;
dbms_output.put_line('Calculated the qtrs and days');
IF v_bill_qtrs > 0 THEN
SELECT (ADD_MONTHS(v_start_date, (FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date)/3)*3)) - v_start_date)*v_amt_per_day
INTO v_amt
FROM dual;
dbms_output.put_line('Calculated qtr amt');
SELECT NVL(MAX(sequence_no), 0) + 1
INTO v_billing_sequence
FROM oks_stream_levels_b
WHERE dnz_chr_id = x_chr_id
AND cle_id = x_line_id;
--Populating the stream line variables
l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
-- l_strm_level_tbl(v_billing_sequence).id := x_line_id;
l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
l_strm_level_tbl(v_billing_sequence).uom_code := g_quarter_uom;
l_strm_level_tbl(v_billing_sequence).uom_per_period := 1;
l_strm_level_tbl(v_billing_sequence).level_periods := v_bill_qtrs;
l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
l_strm_level_tbl(v_billing_sequence).amount := v_amt/v_bill_qtrs;
l_strm_level_tbl(v_billing_sequence).level_amount := v_amt/v_bill_qtrs;
l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
dbms_output.put_line('Before calling the Bill Sch API for QTR');
OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
p_strm_level_tbl=>l_strm_level_tbl,
p_invoice_rule_id=>v_invoicing_rule_id,
x_return_status=>x_return_status);
dbms_output.put_line('After calling the Bill Sch API for QTR');
IF x_return_status <> 'S' THEN
x_msg_count := 1;
dbms_output.put_line('Quarterly schedule creation error ' || x_msg_data);
---DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
-- RETURN;
END IF;
END IF;
IF v_bill_days > 0 THEN
SELECT NVL(MAX(sequence_no), 0) + 1
INTO v_billing_sequence
FROM oks_stream_levels_b
WHERE dnz_chr_id = x_chr_id
AND cle_id = x_line_id;
dbms_output.put_line('sequence '||v_billing_sequence);
--Populating the stream line variables
l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
--l_strm_level_tbl(v_billing_sequence).id := x_line_id;
l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
l_strm_level_tbl(v_billing_sequence).uom_code := g_day_uom;
l_strm_level_tbl(v_billing_sequence).uom_per_period := v_bill_days;
l_strm_level_tbl(v_billing_sequence).level_periods := 1;
l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
l_strm_level_tbl(v_billing_sequence).amount := v_net_amount;--v_amt_per_day*v_bill_days;
l_strm_level_tbl(v_billing_sequence).level_amount := v_net_amount;--v_amt_per_day*v_bill_days;
l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
dbms_output.put_line('Before calling the Bill Sch API for QTR days');
OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
p_strm_level_tbl=>l_strm_level_tbl,
p_invoice_rule_id=>v_invoicing_rule_id,
x_return_status=>x_return_status);
dbms_output.put_line('After calling the Bill Sch API for QTR days ' || v_bill_days || ' ' || x_return_status);
IF x_return_status <> 'S' THEN
x_msg_count := 1;
dbms_output.put_line('Day schedule, for quarterly accounting rule, creation error ' || x_msg_data);
--DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
--RETURN;
END IF;
END IF;
ELSE
--Monthly billing schedule
SELECT FLOOR(MONTHS_BETWEEN( v_end_date,
v_start_date)),
v_end_date - ADD_MONTHS(v_start_date, FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date)))
INTO v_bill_mths,
v_bill_days
FROM dual;
dbms_output.put_line('Calculated the mths and days');
IF v_bill_mths > 0 THEN
SELECT (ADD_MONTHS(v_start_date,FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date))) - v_start_date)*v_amt_per_day
INTO v_amt
FROM dual;
dbms_output.put_line('Calculated the mths amt');
SELECT NVL(MAX(sequence_no), 0) + 1
INTO v_billing_sequence
FROM oks_stream_levels_b
WHERE dnz_chr_id = x_chr_id
AND cle_id = x_line_id;
--Populating the stream line variables
l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
--l_strm_level_tbl(v_billing_sequence).id := x_line_id;
l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
l_strm_level_tbl(v_billing_sequence).uom_code := g_month_uom;
l_strm_level_tbl(v_billing_sequence).uom_per_period := 1;
l_strm_level_tbl(v_billing_sequence).level_periods := v_bill_mths;
l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
l_strm_level_tbl(v_billing_sequence).amount := v_amt/v_bill_mths;
l_strm_level_tbl(v_billing_sequence).level_amount := v_amt/v_bill_mths;
l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
dbms_output.put_line('Before calling the Bill Sch API for MTHS');
OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
p_strm_level_tbl=>l_strm_level_tbl,
p_invoice_rule_id=>v_invoicing_rule_id,
x_return_status=>x_return_status);
dbms_output.put_line('After calling the Bill Sch API for MTHS');
IF x_return_status <> 'S' THEN
x_msg_count := 1;
dbms_output.put_line('Monthly schedule creation error ' || x_msg_data);
--DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
--RETURN;
END IF;
END IF;
IF v_bill_days > 0 THEN
SELECT NVL(MAX(sequence_no), 0) + 1
INTO v_billing_sequence
FROM oks_stream_levels_b
WHERE dnz_chr_id = x_chr_id
AND cle_id = x_line_id;
--Populating the stream line variables
l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
--l_strm_level_tbl(v_billing_sequence).id := x_line_id;
l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
l_strm_level_tbl(v_billing_sequence).uom_code := g_day_uom;
l_strm_level_tbl(v_billing_sequence).uom_per_period := v_bill_days;
l_strm_level_tbl(v_billing_sequence).level_periods := 1;
l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
l_strm_level_tbl(v_billing_sequence).amount := v_amt_per_day*v_bill_days;
l_strm_level_tbl(v_billing_sequence).level_amount := v_amt_per_day*v_bill_days;
l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
dbms_output.put_line('Before calling the Bill Sch API for MTH days');
OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
p_strm_level_tbl=>l_strm_level_tbl,
p_invoice_rule_id=>v_invoicing_rule_id,
x_return_status=>x_return_status);
dbms_output.put_line('After calling the Bill Sch API for MTH days');
IF x_return_status <> 'S' THEN
x_msg_count := 1;
dbms_output.put_line('Day schedule, for monthly accounting rule, creation error ' || x_msg_data);
--DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
--RETURN;
END IF;
END IF;
END IF;
COMMIT;
EXCEPTION
when others then
dbms_output.put_line('Error ' || sqlerrm);
END;
Thanks,
Yash.Hi There,
I have a similar requirement to create rental service contracts and create billing schedules.
Can you please pass on your functional docs so that i can refer to them.
Thanks,
Raidu
Maybe you are looking for
-
Is there a way to make the "cover flow" on the iPod match the sort style that I use on the software . I go with Artist -- Album by Release Year . But the ipod seems to only do Artist -- Alphabetical by Album , and then there are a handful of albums o
-
What to do about not waking after Sonnet Tango USB FW PCI in G4 AGP Graph?
I have bought a used PowerMac G4 AGP Graphics 400 MHz, running OS X 10.3.9, 512 Megs of RAM, 20 GB internal ATA HD, Internal CDRW, Internal ZIP 100, Adaptec SCSI SE card (25 pole). That system was just fine - amazing power for an 8 year old computer!
-
High CPU load on SUP720-3BXL / C6k
Hi, I know it has been discussed many times before, but may I get some new inspiration to solve some problems here. We've some c6509 with SUP720-3BXL. One of routers has a WS-X6704-10G module with DFC. This is the only card installed besides the SUP7
-
App switching problem with Mighty Mouse
Looks like a bug in the Event manager. From the Finder, right-clic (Migghty Mouse) on an Application window that provide contextual menu. The Windows get the focus, but you can't close, minimize or maximize it anymore. You'll have to switch to the fi
-
A question about charging...
When I have my shuffle plugged in long enough for the green light to come on, signifying that it is fully charged I then remove it, but when I plug it back in, the light is orange again, even if it is mere minutes later. Any help would be appreciated