Create Supplier as Employee API Or Interface
hi all ,
i want to know if i can Create Supplier as Employee using API Or Interface , please any one can help me
And what, pray tell, does your question have to do with the upgrade/installation/migration of WLS?
Seems you meant to be in one of the E-Business Suite forums.
John
Similar Messages
-
Unable to create Supplier as Employee using R12 API
Hi,
I am creating supplier as amployee by uing the API and pasting the Annonimus API code and its details below.
declare
x_vendor_site_id NUMBER;
x_return_status VARCHAR2(1);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
l_vendor_rec ap_vendor_pub_pkg.r_vendor_rec_type;
x_vendor_id NUMBER;
X_PARTY_ID NUMBER;
BEGIN
for c in (select employee_id,location_id,party_id,organization_id from
PER_EMPLOYEES_X pex
where not exists
(select 1
from po_vendors
where employee_id=pex.employee_id
and employee_id=1198)
loop
l_vendor_rec.employee_id := c.employee_id;
l_vendor_rec.VENDOR_TYPE_LOOKUP_CODE := 'EMPLOYEE';
--mo_global.set_policy_context('S',c.organization_id);
AP_VENDOR_PUB_PKG.Create_Vendor
( p_api_version => 1,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
p_vendor_rec=> l_vendor_rec,
x_vendor_id => x_vendor_id,
x_party_id => x_party_id
IF x_return_status = apps.FND_API.G_RET_STS_SUCCESS
THEN
commit;
dbms_output.put_line('--------------------------------------');
dbms_output.put_line('Supplier created:'||x_vendor_id);
ELSE
dbms_output.put_line ('Creation of Supplier Failed with the error :'||x_msg_data||' '||FND_MSG_PUB.count_msg);
FOR i IN 1..FND_MSG_PUB.count_msg
LOOP
DBMS_OUTPUT.put_line(FND_MSG_PUB.Get(p_msg_index =>i,p_encoded =>'F'));
end loop;
END IF;
END LOOP;
END;
Error : Am getting the error saying that
"Supplier record cannot be updated.Either the Employee ID/Info is incorrect or the employee associated with this supplier is terminated".
When i checked in the DB this employee is an active employee with us.
Could any one please help me by providing your suggestion on this with Priority.
Looking for your answer soon.
Thanks,
Surya.Hi;
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]
"12: How To Access API References via the Oracle Integration Repository" [ ID 462586.1]
"Oracle Integration Repository Documentation Resources Release 12" [ ID 396116.1]
Pelase also check below:
Api's in EBS
http://forums.oracle.com/forums/thread.jspa?forumID=39&threadID=984534&messageID=3890192#3890192
http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
API
http://forums.oracle.com/forums/thread.jspa?threadID=1038379&tstart=0
List of API
http://forums.oracle.com/forums/message.jspa?messageID=4198097#4198097
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
http://forums.oracle.com/forums/thread.jspa?messageID=2340033
Regard
Helios -
Error while creating Supplier Contact through API
Hi,
I am not able to create supplier contact through an API: ap_vendor_pub_pkg.create_vendor_contact
The return status (x_return_status)from the API is 'U' and x_msg_data is 'FND'.
Please help with your suggestions !
Thanks,
SambitHi Hussein,
Yes the only meesage that is coming in the pot parameter of the API is: 'FND'
The code snippet is as below:
===================================================
fnd_global.apps_initialize(user_id => v_user_id,
resp_id => v_resp_id,
resp_appl_id => v_application_id);
mo_global.set_policy_context(
'S', v_org_id);
v_message := v_message || chr(13) || 'Assigning values for the api ';
v_vendor_contact_rec_type.vendor_site_id := v_vendor_site_id;
v_vendor_contact_rec_type.vendor_id := v_vendor_id;
v_vendor_contact_rec_type.person_first_name := v_first_name;
v_vendor_contact_rec_type.person_last_name := v_last_name;
v_vendor_contact_rec_type.email_address := '[email protected]';
v_vendor_contact_rec_type.org_id := v_org_id;
v_message := v_message || chr(13) ||
'Before calling AP_VENDOR_PUB_PKG.CREATE_VENDOR_CONTACT api ';
BEGIN
ap_vendor_pub_pkg.create_vendor_contact(p_api_version => v_api_version,
p_init_msg_list => fnd_api.g_false,
p_commit => fnd_api.g_false,
p_validation_level => fnd_api.g_valid_level_full,
x_return_status => v_return_status,
x_msg_count => v_msg_count,
x_msg_data => v_msg_data,
p_vendor_contact_rec => v_vendor_contact_rec_type,
x_vendor_contact_id => v_vendor_contact_id,
x_per_party_id => v_per_party_id,
x_rel_party_id => v_rel_party_id,
x_rel_id => v_rel_id,
x_org_contact_id => v_org_contact_id,
x_party_site_id => v_party_site_id);
v_message := v_message || chr(13) ||
'After calling AP_VENDOR_PUB_PKG.CREATE_VENDOR_CONTACT api: '||v_msg_data;
=========================================================================
Output: v_msg_data= FND
Thanks,
Sambit -
API or Interface for Project Type - OeBS
Hi
We have requirement to create Project Type using API or interface.
Could please provide the same or any alternate solution.
Regards
VimalWe have requirement to create Project Type using API or interface.
Could please provide the same or any alternate solution.Please see "Oracle Projects APIs, Client Extensions, and Open Interfaces Reference" -- http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115pjapi.zip
Thanks,
Hussein -
TCA API's to create and update employee vendors
Hi All,
We are doing an upgrade from 11.5.9 to R12 and I am looking for the Trading Community Architecture API's to create and update employee vendors for the HR Interface.
We also need to change to use the Cash Management API's to create and Update Bank Accounts.
Please help.
Thanks in advance
Regards,
SoniaHi Srini,
Can you help me with the API's under Financials Receivables suite -> Trading Community in the Intergration Repository responsibilty? I am looking for the API's to create and update employee vendors
Thanks so much
--Sonia -
API or interface table to create releases for a blanket purchase agreement
Hi
I need to know if Oracle provides a standard API or interface table to create releases for a blanket purchase agreement.
I tried using the release_num field in PO_HEADERS_INTERFACE, PO_LINES_INTERFACE. But this is not working.
I'm able to create the blanket purchase agreement using the open interfaces, but not the releases.
Regards,
AlisterHi Alister,
You can't create a release of a BPA through API, there is no such APIs provided by oracle.
Where as you can create a BPA by using API. You need to dump/poplulate data in PO_headers_interface & PO_Lines_intreface table.. Then use Purchasing Documents Open Interface API to create a BPA.
Regards,
S.P DASH -
Supplier creation using APIs in R12 (Urgent)
Hi All,
I will be working on supplier interface in Payables of R12 version.i would like to use the below APIs
1.AP_VENDOR_PUB_PKG.create_Vendor
2.AP_VENDOR_PUB_PKG.Create_Vendor_Site
3.AP_VENDOR_PUB_PKG.Create_Vendor_Contact
for above APIs what are the mandatory fields/columns to use the suppler creation, suppler site creation and contact details creation.
so that i can ask the client to provide the mandatory fields.
when we use APIs to create suppler what are the tables get effected in R12 version.
I have created supplier from front-end, i have given bank related information. when i query AP_SUPPLIERS Table, i have not see the BANK ACCOUNT related information in AP_SUPPLIERS TABLE. where can i see/find the bank related information for suppliers.
please help me to sort out this issue.
Thanks.Suppliers in R12 are included within the TCA.
Supplier Banks will now be categorized as Parties. You may validate it by checking that the bank information you have loaded into IBY_EXT_BANK_ACCOUNTS would also get loaded into HZ_PARTIES.
Bank address information will be a part of the Party Site.
Bank Site and Location information will have to be loaded into HZ_PATRY_SITES and HZ_LOCATIONS. For that, you will have to use the TCA APIs hz_party_site_v2pub.create_party_site and hz_location_v2pub.create_location
Regards, -
How can I create an IList Employee list based on my Employee class?
I'm trying to create an IList<Employee> list based on my Employee class (below). But this is erroring out. Is my employee class missing anything? How could I make this work?
private void EmployeeList()
IList<Employee> arL = new IList<Employee>(); //<<<<----errors out here
arL.Add(new Employee {Name="Mary",Gender="Female", Age=35});
arL.Add(new Employee { Name = "Bob", Gender = "Male", Age = 40 });
arL.Add(new Employee { Name = "Tom", Gender = "Male", Age = 50 });
var qm = from Employee employee in arL
where employee.Age < 50
select employee;
foreach (var m in arL)
Console.WriteLine(m.ToString());
class Employee
private string name;
private string gender;
private int age;
public string Name
get { return name; }
set { name = value; }
public string Gender
get { return gender; }
set { gender = value; }
public int Age
get {return age;}
set {age = value;}
Rich PIList is an interface, not a class. This means that it can't be instantiated (can't be "newed").
List is a class, so it can be instantiated. It implements the IList interface, which means that it must provide the functionality specified in that interface.
That's what an interface is - a definition of functionality that a class must provide. An interface is often described as a contract that a class must fulfill.
So in the code in your last post, you are saying that arL is an instance of some class that implements the IList interface, and you are then setting it to an instance of the class List. The List class implements the IList interface, so this assignment is
legit. It would also be legit to use any other class that implements IList, such as an array.
Any class that implements IList can have as much extra functionality as whoever wrote it likes, as long as it implements at least the functionality of the interface.
Sometimes you will come across a method in a library over which you have no control and which returns IList rather than list. In such a case you will be forced to do something like...
IList list = SomeMethodOrOther();
So you will have no idea what class list is an instance of, but you will know that it has the functionality of IList. This is about the only circumstance where I would recommend defining a variable as IList rather than List (but it probably won't be long
before there are some replies to this post that disagree). -
Payment_method_lookup_code in supplier conversion using api
The conversion is from 11i to R12. I am working on supplier conversion using API. The AP_VENDOR_PUB_PKG create_vendor or create_vendor_site does not have Payment_method_lookup_code to update into apps. How can i update the Payment_method_lookup_code for a supplier?
Any help will be appreciated.
BhargaviYou could use AP_VENDOR_PUB_PKG.create_vendor_Site and pass the vendor_site_rec fields along with the following addition.
p_vendor_site_rec.ext_payee_rec.default_pmt_method := 'EFT';
This would create the Default Payment Method in IBY_EXTERNAL_PAYEES_ALL.
Hope this helps.
-Geetha K -
Item xref api or interface?
hi,
does anybody know whether there is an api or interface for item cross reference conversion (supplier cross reference, not customer) in R12?
thanks..Hello,
Look at: http://www.oracleappshub.com/oracle-purchasing/oracle-api-availability-purchasing/ sentence What you can't done by this API's
You have sample: How to Receive and Deliver Against RMA Using ROI [ID 339835.1]
Regards,
Luko -
Creating Supplier Bank Accounts and assigning to Supplier.
Hi Team,
Step 1: I have created Suppliers,Sites and contacts.
Step 2: I have created one Supplier Bank and one Supplier Bank Branch.
In HZ_PARTIES I am able to see 3 records outof which one corresponds to Bank record and the other branch record and the other one is the relationship one.
Step 3 : For Account creation and assigning to Supplier level I am using the following API iby_ext_bankacct_pub.create_ext_bank_acct and passing these values,
p_in_acct_rec.bank_id := 62462; (party_id from hz_parties)
p_in_acct_rec.branch_id := 62464; (partyd_id from hz_parties)
p_in_acct_rec.country_code := 'DE';
p_in_acct_rec.bank_account_name := 'AKU BÜROMÖBELMNTAGE';
p_in_acct_rec.bank_account_num := 8707629220;
p_in_acct_rec.acct_owner_party_id := 23267; (party_id from ap_suppliers)
p_in_acct_rec.currency := 'GER';
p_in_acct_rec.object_version_number := '1.0';
p_in_acct_rec.start_date := sysdate;
p_in_acct_rec.foreign_payment_use_flag := 'Y';
p_in_acct_rec.payment_factor_flag := 'N';
iby_ext_bankacct_pub.create_ext_bank_acct
p_api_version => 1.0,
p_init_msg_list => fnd_api.g_true,
p_ext_bank_acct_rec => p_in_acct_rec,
p_association_level => 'S',
p_supplier_site_id => 1376, (getting from ap_suppliers)
p_party_site_id => 16202,
p_org_id => 304,
p_org_type => 'OPERATING_UNIT',
x_acct_id => l_account_id,
x_return_status => v_return_status,
x_msg_count => v_msg_count,
x_msg_data => v_msg_data,
x_response => x_result_rec_type
I am passing the above values to the API.
API is running succesfully.
I am able to check account details in the following table IBY_EXT_BANK_ACCOUNTS
After running the above API records are getting populated in these 3 tables IBY_EXT_BANK_ACCOUNTS, iby_account_owners, IBY_PMT_INSTR_USES_ALL
I am using the following query to cross verify whether the account is created and assigned to Supplier or not,
select s.vendor_name, ss.vendor_site_code,
eb.bank_name, ebb.bank_branch_name, ebb.branch_number,
eba.BANK_ACCOUNT_NUM, eba.BANK_ACCOUNT_NAME
from ap.ap_suppliers s, ap.ap_supplier_sites_all ss,
apps.iby_ext_bank_accounts eba,
apps.iby_account_owners ao, apps.iby_ext_banks_v eb, apps.iby_ext_bank_branches_v ebb
where s.vendor_id = ss.vendor_id
and ao.account_owner_party_id = s.party_id
and eba.ext_bank_account_id = ao.ext_bank_account_id
and eb.bank_party_id = ebb.bank_party_id
and eba.branch_id = ebb.branch_party_id
and eba.bank_id = eb.bank_party_id;
I am able to see the the record after running the above query.
I want the account to be attached to the Supplier level.
If I go to Supplier screen --> and if go to Bank details, I am unable to see the bank account attached to this supplier.Hi,
Did you solved the issue? I have the same task and it works for me. Check if you specify the supplier level in the bank details. Once you specify the association level equal to 'S' you have to choose from the list item - "Supplier level". Here is my code which is same as yours i think...:
set serveroutput on size 1000000;
DECLARE
l_bank_acct_rec apps.iby_ext_bankacct_pub.extbankacct_rec_type;
out_mesg apps.iby_fndcpt_common_pub.result_rec_type;
L_ACCT NUMBER;
l_assign apps.iby_fndcpt_setup_pub.pmtinstrassignment_tbl_type;
l_payee_rec apps.iby_disbursement_setup_pub.payeecontext_rec_type;
l_return_status VARCHAR2 (30);
l_msg_count NUMBER;
l_msg_data VARCHAR2 (3000);
l_msg_dummy VARCHAR2 (3000);
l_output VARCHAR2 (3000);
l_bank_id NUMBER;
l_branch_id NUMBER;
l_bank VARCHAR2 (1000);
l_acct_owner_party_id NUMBER;
l_supplier_site_id NUMBER;
l_party_site_id NUMBER;
--exec_bank_acct EXCEPTION;
l_msg_index NUMBER := 0;
V_RETURN_STATUS varchar2(20);
V_MSG_COUNT number;
v_msg_data varchar2(500);
BEGIN
FND_GLOBAL.APPS_INITIALIZE(1112, 50639, 200);
l_bank_acct_rec.bank_id := 5087; --(party_id from hz_parties)
l_bank_acct_rec.branch_id := 5087; --(partyd_id from hz_parties)
l_bank_acct_rec.country_code := 'BG';
l_bank_acct_rec.bank_account_name := '45623123';
l_bank_acct_rec.bank_account_num := 123145124123;
l_bank_acct_rec.acct_owner_party_id := 183732;-- (party_id from ap_suppliers)
l_bank_acct_rec.currency := 'BGN';
l_bank_acct_rec.object_version_number := '1.0';
l_bank_acct_rec.start_date := sysdate;
--l_bank_acct_rec.foreign_payment_use_flag := 'Y';
--l_bank_acct_rec.payment_factor_flag := 'N';
apps.iby_ext_bankacct_pub.create_ext_bank_acct
(p_api_version => 1.0,
p_init_msg_list => 'F',
p_ext_bank_acct_rec => l_bank_acct_rec,
p_association_level => 'S',
p_supplier_site_id => 3020,
p_party_site_id => 43594,
p_org_id => 81,
p_org_type => 'OPERATING_UNIT',
x_acct_id => l_acct,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data,
x_response => out_mesg
COMMIT;
dbms_output.put_line (l_return_status);
IF l_return_status IN ('E') THEN
dbms_output.put_line (l_msg_count);
FOR i IN 1 .. l_msg_count
LOOP
apps.fnd_msg_pub.get( i, apps.fnd_api.g_false, l_msg_data, l_msg_index );
l_msg_data := l_msg_data || 'Bank Account API Error ';
DBMS_OUTPUT.PUT_LINE( 'Error :- '||l_msg_data);
END LOOP;
dbms_output.put_line (l_msg_data);
end if;
end;
/EBS Version: 12.1.3
DB: 11.1.0.7.0
BR,
Bahchevanov. -
Hiding "Exchange Rates" from "Create Supplier Preview PDF" report in an RFx
Hello experts,
I am wondering if there is a way to hide not only the "Exchange Rates" from the "Create Supplier Preview PDF" but other fields as well. (The Create Supplier Preview PDF can be generated by clicking "Actions" in a created RFx, then launching the PDF from the drop down)
I am very familiar with reporting functionality, query writing, query group setup, and document report setup, however, it is unclear to me how these particular PDFs are generated, are they pulling from an existing query in the system? Are they at all modifiable?
Our client is looking to hide Exchange Rate information for suppliers when they create PDF's from the Action button.Hi
I am afraid what you are looking for is not a report but a toolbar action. You could find the same in Setup-> System Setup->User Interface-> System Toolbar with external ID eso.system.toolbar.document.rfx.RFXDoc ( under Rfx Document Actions->Tools Dropdown->Print Vendor Preview)
I would suggest creating a custom script to achieve desired result.
Regards
Mudit Saini -
What is the query to create supplier site? I have to create 500 suppliers sites for a project, how do i do it? What is the query?
Oracle provides a number of APIs to create such data.
For your task, you can use the supplier api.
See sample code at http://oracleapps88.blogspot.com/2011/09/supplier-supplier-site-creation-using.html
Since you have to create only the sites, you can skip to supplier creation steps in the above website.
Sandeep Gandhi -
EBS:How to create a terminated employee
I want to create a employee with API, but the employee has terminated. So I cannot create it with API hr_employee_api.create_employee.Does have any API to create a terminated employee. Or I have to create the employee first, then terminate it.
Thank you in advanced.
Best Regards,
ShengHi,
This question was asked, and answered correctly, very recently:
How to upload Ex-Employee records
Hope it helps
Regards,
Clive -
Error while creating new projects using api
Hello,
I am having error while creating projects using standard api, PA_PROJECT_PUB.CREATE_PROJECTS. The error I am having is as follow.
Source template ID is invalid.
===
My code is as follow:
SET SERVEROUTPUT ON SIZE 1000000
SET VERIFY OFF
define no=&amg_number
DECLARE
-- Variables used to initialize the session
l_user_id NUMBER;
l_responsibility_id NUMBER;
cursor get_key_members is
select person_id, project_role_type, rownum
from pa_project_players
where project_id = 1;
-- Counter variables
a NUMBER := 0;
m NUMBER := 0;
-- Variables needed for API standard parameters
l_commit VARCHAR2(1) := 'F';
l_init_msg_list VARCHAR2(1) := 'T';
l_api_version_number NUMBER :=1.0;
l_return_status VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
-- Variables used specifically in error message retrieval
l_encoded VARCHAR2(1) := 'F';
l_data VARCHAR2(2000);
l_msg_index NUMBER;
l_msg_index_out NUMBER;
-- Variables needed for Oracle Project specific parameters
-- Input variables
l_pm_product_code VARCHAR2(30);
l_project_in pa_project_pub.project_in_rec_type;
l_key_members pa_project_pub.project_role_tbl_type;
l_class_categories pa_project_pub.class_category_tbl_type;
l_tasks_in pa_project_pub.task_in_tbl_type;
-- Record variables for loading table variables above
l_key_member_rec pa_project_pub.project_role_rec_type;
l_class_category_rec pa_project_pub.class_category_rec_type;
l_task_rec pa_project_pub.task_in_rec_type;
-- Output variables
l_workflow_started VARCHAR2(100);
l_project_out pa_project_pub.project_out_rec_type;
l_tasks_out pa_project_pub.task_out_tbl_type;
-- Exception to call messag handlers if API returns an error.
API_ERROR EXCEPTION;
BEGIN
-- Initialize the session with my user id and Projects, Vision Serves (USA0
-- responsibility:
select user_id into l_user_id
from fnd_user
where user_name = 'SSHAH';
select responsibility_id into l_responsibility_id
from fnd_responsibility_tl
where responsibility_name = 'Projects Implementation Superuser';
pa_interface_utils_pub.set_global_info(
p_api_version_number => l_api_version_number,
p_responsibility_id => l_responsibility_id,
p_user_id => l_user_id,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status);
if l_return_status != 'S' then
raise API_ERROR;
end if;
-- Provide values for input variables
-- L_PM_PRODUCT_CODE: These are stored in pa_lookups and can be defined
-- by the user. In this case we select a pre-defined one.
select lookup_code into l_pm_product_code
from pa_lookups
where lookup_type = 'PM_PRODUCT_CODE'
and meaning = 'Conversion';
-- L_PROJECT_IN: We have to provide values for all required elements
-- of this record (see p 5-13, 5-14 for the definition of the record).
-- Customers will normally select this information from some external
-- source
l_project_in.pm_project_reference := 'AGL-AMG Project &no';
l_project_in.project_name := 'AGL-AMG Project &no';
l_project_in.created_from_project_id := 1;
l_project_in.carrying_out_organization_id := 2864; /*Cons. West*/
l_project_in.project_status_code := 'UNAPPROVED';
l_project_in.start_date := '01-JAN-11';
l_project_in.completion_date := '31-DEC-11';
l_project_in.description := 'Trying Hard';
l_project_in.project_relationship_code := 'Primary';
-- L_KEY_MEMBERS: To load the key member table we load individual
-- key member records and assign them to the key member table. In
-- the example below I am selecting all of the key member setup
-- from an existing project with 4 key members ('EE-Proj-01'):
for km in get_key_members loop
-- Get the next record and load into key members record:
l_key_member_rec.person_id := km.person_id;
l_key_member_rec.project_role_type := km.project_role_type;
-- Assign this record to the table (array)
l_key_members(km.rownum) := l_key_member_rec;
end loop;
-- L_CLASS_CATEGORIES: commented out below should fix the error we get
-- because the template does not have an assigment for the mandatory class
-- 'BAS Test'
l_class_category_rec.class_category := 'Product';
l_class_category_rec.class_code := 'Non-classified';
-- Assign the record to the table (array)
l_class_categories(1) := l_class_category_rec;
-- L_TASKS_IN: We will load in a single task and a subtask providing only
-- the basic fields (see pp. 5-16,5-17,5-18 for the definition of
-- the task record)
l_task_rec.pm_task_reference := '1';
l_task_rec.pa_task_number := '1';
l_task_rec.task_name := 'Construction';
l_task_rec.pm_parent_task_reference := '' ;
l_task_rec.task_description := 'Plant function';
-- Assign the top task to the table.
l_taskS_in(1) := l_task_rec;
-- Assign values for the sub task
l_task_rec.pm_task_reference := '1.1';
l_task_rec.pa_task_number := '1.1';
l_task_rec.task_name := 'Brick laying';
l_task_rec.pm_parent_task_reference := '1' ;
l_task_rec.task_description := 'Plant building';
-- Assign the subtask to the task table.
l_tasks_in(2) := l_task_rec;
-- All inputs are assigned, so call the API:
pa_project_pub.create_project
(p_api_version_number => l_api_version_number,
p_commit => l_commit,
p_init_msg_list => l_init_msg_list,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_workflow_started => l_workflow_started,
p_pm_product_code => l_pm_product_code,
p_project_in => l_project_in,
p_project_out => l_project_out,
p_key_members => l_key_members,
p_class_categories => l_class_categories,
p_tasks_in => l_tasks_in,
p_tasks_out => l_tasks_out);
-- Check the return status, if it is not success, then raise message handling
-- exception.
IF l_return_status != 'S' THEN
dbms_output.put_line('Msg_count: '||to_char(l_msg_count));
dbms_output.put_line('Error: ret status: '||l_return_status);
RAISE API_ERROR;
END IF;
-- perform manual commit since p_commit was set to False.
COMMIT;
--HANDLE EXCEPTIONS
EXCEPTION
WHEN API_ERROR THEN
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
WHEN OTHERS THEN
dbms_output.put_line('Error: '||sqlerrm);
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
END;
===
Msg_count: 1
Error: ret status: E
ERROR: 1: Project: 'AGL-AMG Project 1123'
Source template ID is invalid.
PL/SQL procedure successfully completed.I was using a custom Application, which had a id other then 275 (which belongs to Oracle projects)
Maybe you are looking for
-
How can I display an error_message dialog with an if selection structure?
I have to write an application that reads in a five-digit integer and determines whether or not is a palindrome.If the number is not five digit long, display an error message dialog to the user. When the user dismisses the error dialog, allow the use
-
hi while posting po using miro this error comming: price too high( tol limit exceed 0.00 usd ) could you tell me where i have maintaned tol limt>> regards ss
-
External HDD via eSATA or internal HDD - which is fastest?
I am thinking of putting a fifth HDD in the optical bay of my mac pro. It looks a little bit fiddly to install (brackets, routing cables etc). I also have a Sonnet Tempo E4P SATA card. Is aan external HDD connected vis eSATA as fast as an internal dr
-
Business Connector work with ECC 6.0 or have to switch over to PI - Upgrade
Hi Client want the upgrade their current SAP system from 4.6C to ECC 6.0. Like to know if Business Connector would work with ECC 6.0 or they have to switch over to PI. Please Help Thanks
-
I have a Producer/Consumer program that uses an Event Structure to handle the UI button presses. I want to be able to use the VISA wait on Event to read characters from the RS232 port. So in my Event Structure I created a case for dynamic user even