Urgent: OE_ORDER_PUB API Error
Hi all,
When I tried to create Sales orders using OE_ORDER_PUB api,
it throws this error,
FLEX-NULL SEGMENT
Values have not been entered for one or more required segments.
This is my piece of code I am using for order creation,
vReturnStatus VARCHAR2(1);
vMsgCount NUMBER;
v_index NUMBER;
vMsgData VARCHAR2(2000);
v_HeaderRec OE_ORDER_PUB.Header_Rec_Type;
v_RequestTbl OE_ORDER_PUB.Request_Tbl_Type;
v_lineTbl OE_ORDER_PUB.Line_Tbl_Type;
v_header_rec OE_ORDER_PUB.Header_Rec_Type;
v_header_val_rec OE_ORDER_PUB.Header_Val_Rec_Type;
v_Header_Adj_tbl OE_ORDER_PUB.Header_Adj_Tbl_Type;
v_Header_Adj_val_tbl OE_ORDER_PUB.Header_Adj_Val_Tbl_Type;
v_Header_price_Att_tbl OE_ORDER_PUB.Header_Price_Att_Tbl_Type;
v_Header_Adj_Att_tbl OE_ORDER_PUB.Header_Adj_Att_Tbl_Type;
v_Header_Adj_Assoc_tbl OE_ORDER_PUB.Header_Adj_Assoc_Tbl_Type;
v_Header_Scredit_tbl OE_ORDER_PUB.Header_Scredit_Tbl_Type;
v_Header_Scredit_val_tbl OE_ORDER_PUB.Header_Scredit_Val_Tbl_Type;
v_line_tbl OE_ORDER_PUB.Line_Tbl_Type;
v_line_val_tbl OE_ORDER_PUB.Line_Val_Tbl_Type;
v_Line_Adj_tbl OE_ORDER_PUB.Line_Adj_Tbl_Type;
v_Line_Adj_val_tbl OE_ORDER_PUB.Line_Adj_Val_Tbl_Type;
v_Line_price_Att_tbl OE_ORDER_PUB.Line_Price_Att_Tbl_Type;
v_Line_Adj_Att_tbl OE_ORDER_PUB.Line_Adj_Att_Tbl_Type;
v_Line_Adj_Assoc_tbl OE_ORDER_PUB.Line_Adj_Assoc_Tbl_Type;
v_Line_Scredit_tbl OE_ORDER_PUB.Line_Scredit_Tbl_Type;
v_Line_Scredit_val_tbl OE_ORDER_PUB.Line_Scredit_Val_Tbl_Type;
v_Lot_Serial_tbl OE_ORDER_PUB.Lot_Serial_Tbl_Type;
v_Lot_Serial_val_tbl OE_ORDER_PUB.Lot_Serial_Val_Tbl_Type;
v_action_request_tbl OE_ORDER_PUB.Request_Tbl_Type;
l_user number := 2604; -- USER
l_resp number := 21623; -- RESPONSIBLILTY
l_appl number := 660; -- ORDER MANAGEMENT
begin
--fnd_client_info.set_org_context('101');
fnd_global.apps_initialize(l_user, l_resp, l_appl);
Setting up header record --
---Intializing record to missing
v_HeaderRec := OE_ORDER_PUB.G_MISS_HEADER_REC;
----Required Attributes----
v_HeaderRec.Order_Type_ID := 1007 ; --1413;
v_HeaderRec.Sold_to_Org_ID := 168239;
v_HeaderRec.price_list_id := 7026;
v_HeaderRec.freight_terms_code := NULL;
-- v_HeaderRec.Cust_PO_Number := '055611';
v_HeaderRec.Operation := OE_GLOBALS.G_OPR_CREATE;
---- Intializing record to missing
v_lineTbl(1) := OE_ORDER_PUB.G_MISS_LINE_REC;
----Required Attributes----
v_lineTbl(1).Inventory_item_id := 3085;
v_lineTbl(1).Ordered_Quantity := 1;
v_lineTbl(1).Operation := OE_GLOBALS.G_OPR_CREATE;
OE_ORDER_PUB.PROCESS_ORDER ( p_api_version_number => 1.0
, p_init_msg_list => FND_API.G_TRUE
, p_return_values => FND_API.G_TRUE
, p_action_commit => FND_API.G_TRUE
, x_return_status => vReturnStatus
, x_msg_count => vMsgCount
, x_msg_data => vMsgData
, p_header_rec => v_HeaderRec
, p_line_tbl => v_lineTbl
, p_action_request_tbl => v_RequestTbl
, x_header_rec => v_Header_Rec
, x_header_val_rec => v_Header_Val_Rec
, x_Header_Adj_tbl => v_Header_Adj_Tbl
, x_Header_Adj_val_tbl => v_Header_Adj_Val_Tbl
, x_Header_price_Att_tbl => v_Header_Price_Att_Tbl
, x_Header_Adj_Att_tbl => v_Header_Adj_Att_Tbl
, x_Header_Adj_Assoc_tbl => v_Header_Adj_Assoc_Tbl
, x_Header_Scredit_tbl => v_Header_Scredit_Tbl
, x_Header_Scredit_val_tbl => v_Header_Scredit_Val_Tbl
, x_line_tbl => v_Line_Tbl
, x_line_val_tbl => v_Line_Val_Tbl
, x_Line_Adj_tbl => v_Line_Adj_Tbl
, x_Line_Adj_val_tbl => v_Line_Adj_Val_Tbl
, x_Line_price_Att_tbl => v_Line_Price_Att_Tbl
, x_Line_Adj_Att_tbl => v_Line_Adj_Att_Tbl
, x_Line_Adj_Assoc_tbl => v_Line_Adj_Assoc_Tbl
, x_Line_Scredit_tbl => v_Line_Scredit_Tbl
, x_Line_Scredit_val_tbl => v_Line_Scredit_Val_Tbl
, x_Lot_Serial_tbl => v_Lot_Serial_Tbl
, x_Lot_Serial_val_tbl => v_Lot_Serial_Val_Tbl
, x_action_request_tbl => v_action_request_tbl
IF vReturnStatus <> 'S' THEN
FOR v_Index IN 1..vMsgCount
LOOP
FND_FILE.PUT_LINE(FND_FILE.LOG,' '||' Order Creation FAILED!!!!!!!');
vMsgData := OE_MSG_PUB.GET(p_msg_index => v_index,
p_encoded => 'F');
FND_FILE.PUT_LINE(FND_FILE.LOG,' '||vMsgData);
--dbms_output.put_line ( vMsgData);
END LOOP;
ELSE
FND_FILE.PUT_LINE(FND_FILE.LOG,' '||' Order Creation SUCCESS!!!!!!! ' ||v_Header_Rec.Order_number);
END IF;
Any help on this is highly appreciated.
Thanks
Chandra
We dont need to initialize everything.
I got the solution, we need to initialize only the required and required DFF segments if anything is configured. No need to initialize optional columns, which will be initialized by the API itself.
Similar Messages
-
DI API error while adding AP Invoice (Using serial Nos.)
Hi,
Im getting the following DI API error when adding an AP Invoice which has serial numbers and i cant seem to find any logical fault in the code.
" [PCH1.WhsCode][line: 4] , 'This entry already exists in the following tables (ODBC -2035) "
If anybody has encountered this error and found a solution kindly let me know.Hi Vivek,
Are you trying to add same document number, serial number or so on?
"entry exist " means like "duplicate key problem", I guess.
Basically, whscode column in PCH1 table allows duplicating.
So, I think serial number is duplicated among same item code.
Hope this useful for you.
Regards,
Hyunil Choi. -
I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a HP ENVY Phoenix, fully loaded, 1 1/2 years old.
Nevermind I fixed it. Thank you.
-
What to do if message: [Win32 API error 126 ("Dasangegebene Modul wurde nicht gefunden") when calling ::LoadLibrary from getFunction] apears
What to do if message: [Win32 API error 126 ("Dasangegebene Modul wurde nicht gefunden") when calling ::LoadLibrary from getFunction] apears
-
Hi,
I transported webi documents + universe from a development server (BI 4.1. SP2) to a test server (same release). I can open the documents with the WEBI rich client, but I am unable to open them with the launch pad (error ...opendocument' api. (error err_wis_30270)).
Does anyone have a clue where there could be a difference in the settings that cause this behaviour?
Thanks,
Sandra.Can you check this KB?
1684675
- An internal error occurred while calling 'openDocument' API. (Error:
ERR_WIS_302070) while opening WebIntelligence reports in SAP BO BI 4.0. -
Hello, Need your help please !!!
I have installed BO Enterprise XI 3.1 SP3 on window 2003 which IBM DataStage have been installed on it.
There are no problem when :
- Creating connection using essbase hypersion 9 and creating universe in Universe Designer (Ok)
- Checking validity of the universe (Ok)
- Create and run report in webbi rich clien (Ok)
The problem is when I tried to create report and run query in Web Intelligence Java Panel Report, I got this Error "A database error occured. The database error text is: Essbase API Error (1030723): . (WIS 10901)".
Can someone help me to solve this problem, please?
Regards
SofianHi Stratos,
I have installed Essbase Client Version 11. I have installed the same in my laptop and I didn't got this problem, the different only i haven't installed DataStage in my laptop.
Regards
Sofian -
Hello, Need your help please !!!
I have installed BO Enterprise XI 3.1 SP3 on window 2003 which IBM DataStage have been installed on it.
There are no problem when :
- Creating connection using essbase hypersion 9 and creating universe in Universe Designer (Ok)
- Checking validity of the universe (Ok)
- Create and run report in webbi rich clien (Ok)
The problem is when I tried to create report and run query in Web Intelligence Java Panel Report, I got this Error "A database error occured. The database error text is: Essbase API Error (1030723): . (WIS 10901)".
Can someone help me to solve this problem, please?
Regards
SofianHi Stratos,
I have installed Essbase Client Version 11. I have installed the same in my laptop and I didn't got this problem, the different only i haven't installed DataStage in my laptop.
Regards
Sofian -
API Error: table does not exists
Hello every one,
I have a procedure to load the learning management data history through API. I get error that the table or view does not exists which I don't know why.
Here is my procedure:
CREATE OR REPLACE PROCEDURE OLM_CLASS_HISTORY
AUTHID CURRENT_USER AS
lv_BOOKING_ID NUMBER;
lv_BOOKING_STATUS_TYPE_ID NUMBER;
lv_EVENT_ID NUMBER;
lv_PERSON_ID NUMBER;
lv_DATE_BOOKING_PLACED DATE;
lv_OBJECT_VERSION_NUMBER NUMBER;
lv_FINANCE_LINE_ID NUMBER;
CURSOR C1 IS
SELECT OLM_NUMBER,
OLM_DATE_OF_CLASS,
OLM_CLASS
FROM OLM_HISTORY_CLASS;
BEGIN
FOR C1_REC IN C1
LOOP
begin
select PAF.PERSON_ID INTO lv_PERSON_ID
from PER.PER_ALL_PEOPLE_F PAF
where PAF.EMPLOYEE_NUMBER= C1_REC.OLM_NUMBER
and to_date (C1_REC.OLM_DATE_OF_CLASS, 'DD-Mon-YY HH24:MI:SS ')
between to_date(paf.effective_start_date, 'DD-Mon-YY HH24:MI:SS')
and to_date (paf.effective_end_date, 'DD-Mon-YY HH24:MI:SS');
exception
WHEN OTHERS THEN
DECLARE
error_code NUMBER :=SQLCODE;
error_msg varchar2 (200) :=SUBSTR(SQLERRM,1,200);
BEGIN
DBMS_OUTPUT.PUT_LINE('.');
DBMS_OUTPUT.PUT_LINE('PID Error: ' || error_code || ' - ' || error_msg);
DBMS_OUTPUT.PUT_LINE('.');
END;
END;
lv_DATE_BOOKING_PLACED:= C1_REC.OLM_DATE_OF_CLASS;
BEGIN
SELECT DISTINCT AOET.EVENT_ID INTO lv_EVENT_ID
FROM APPS_APPLMGR.ota_events_tl AOET
WHERE
AOET.TITLE = C1_REC.OLM_CLASS;
exception
WHEN OTHERS THEN
DECLARE
error_code NUMBER :=SQLCODE;
error_msg varchar2 (200) :=SUBSTR(SQLERRM,1,200);
BEGIN
DBMS_OUTPUT.PUT_LINE('.');
DBMS_OUTPUT.PUT_LINE('EID Error: ' || error_code || ' - ' || error_msg);
DBMS_OUTPUT.PUT_LINE('.');
END;
END;
dbms_output.put_line('Event id:'||lv_event_id);
dbms_output.put_line('Person id:'||lv_person_id);
dbms_output.put_line('Booking date:'||lv_date_booking_placed);
dbms_output.put_line('Ovn:'||lv_object_version_number);
dbms_output.put_line('Finance line id:'||lv_finance_line_id);
BEGIN
APPS_APPLMGR.OTA_DELEGATE_BOOKING_API.CREATE_DELEGATE_BOOKING (P_VALIDATE => FALSE,
P_EFFECTIVE_DATE => trunc(sysdate),
P_BOOKING_ID => lv_BOOKING_ID,
P_BOOKING_STATUS_TYPE_ID => '1016',
p_delegate_person_id => lv_PERSON_ID,
p_contact_id => NULL,
P_BUSINESS_GROUP_ID => '0',
P_EVENT_ID => lv_EVENT_ID,
P_DATE_BOOKING_PLACED => lv_DATE_BOOKING_PLACED,
P_INTERNAL_BOOKING_FLAG => 'Y',
p_number_of_places => '1',
P_OBJECT_VERSION_NUMBER => lv_OBJECT_VERSION_NUMBER,
P_SUCCESSFUL_ATTENDANCE_FLAG => 'Y',
P_FINANCE_LINE_ID => lv_FINANCE_LINE_ID);
exception
WHEN OTHERS THEN
DECLARE
error_code NUMBER :=SQLCODE;
error_msg varchar2 (200) :=SUBSTR(SQLERRM,1,200);
BEGIN
DBMS_OUTPUT.PUT_LINE('.');
DBMS_OUTPUT.PUT_LINE('API Error: ' || error_code || ' - ' || error_msg);
DBMS_OUTPUT.PUT_LINE('.');
END;
END;
END LOOP;
COMMIT;
--rollback;
END;
and now when I run this procedure,I am getting this error:
PID Error: 100 - ORA-01403: no data found
Event id:5684
Person id:12530
Booking date:14-DEC-11 00:00:00
Ovn:
Finance line id:
API Error: -942 - ORA-00942: table or view does not exist
I don't know if it is API which is making problem or my code. Please advice.
Thanks,You are creating the procedure in which schema.
does this user has permission to access the objects specified in the code.
the issue must be with your code not the ebs api -
I am unable to open my Red Box account. I get the message "unknown API error."
I switched to Fire Fox because of slowness and other issues with Internet Explorer. Fire Fox is much better, with one exception. I can't open my Red Box account. I get a message that states "unknown API error." Red Box says the problem is related to the fact that they have new software. However, I can still pull up Red Box in Explorer.
What extensions do you have installed? To get a full list, do the following:
In order to be able to find the correct solution to your problem, we require some more non-personal information from you. Please do the following:
*Click the Firefox button at the top left, then click the ''Help'' menu and select ''Troubleshooting information'' from the submenu. If you don't have a Firefox button, click the Help menu at the top and select ''Troubleshooting information'' from the menu.
Now, a new tab containing your troubleshooting information should open.
*At the top of the page, you should see a button that says "Copy all to clipboard''. Click it.
*Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.
If you need further information about the Troubleshooting information page, please read the article [[Using the Troubleshooting Information page]].
Thanks in advance for your help! -
Where can I get a list of Adobe Connect API error messages?
We have a test that will try to connect to an invalid Adobe Connect site and confirms that we get an appropriate error message back. Last week, the error was "The remote name could not be resolved: test.com". Now the error is "Unable to connect to the remote server". Is there a list of Adobe Connect API errors and where would I check to see if they are changed/updated?
Thanks,
KevinAssuming that you did a default installation, you can click Start-->Programs-->National Instruments-->FieldPoint 3.0-->FieldPoint Help. There is a category called Errors and Warning Codes. Under that category is two subcategories; FieldPoint Specific Error Codes and General Error codes. These two sub-categories should list most error codes that you will see.
Regards,
Aaron -
Hi Team,
Please help me in resolving the below error message.
One of my user is experiencing this when trying to run a report.
"An internal error occured while calling u2018getBlobu2019 API. (error: ERR_WIS_30270)". I have checked the previous discussion on the same, But I could not get it. Could some one help me as what I can do to resolve this.
Thanks in Advance
MmviharHi George Pertea,
Appreciate your prompt response.
I found a simple solution for this.
This error message occurs when the TOMCAT server memory exceeds more than 1.3 gb. Hence, restart the TOMCAT server would resolve this issue.
Here are the steps in detail.
1. Log into each server through either citrix, remote desktop or mstsc from run command.
2. Click on task Manager.
3. Click on process, if you find TOMCAT memory is more than 1.3 gb, come back to CCM and stop tomcat server.
4. Wait for 20 seconds and then start tomcat server. Check all the remaining servers and do the same
This resolved the issue.
Thanks & Regards
Mmvihar -
OIM GTC connector_OIM API Error
I have created a GTC in OIM. I am able to provision and revoke the resource in my base machine.
I have one task e.g. Change First Name and corresponding First Name Updated runs on completion of Change First Name.
If I am a Officer 1, I can run the task successfully.
If I am Officer 2, I am getting error as"OIM API error encontered".
In WAS logs I am getting IT Resource with key 0 not found.
If you guys have encountered the same situation then please respond.I think one problem I am having is that I was using the java that shipped with RedHat. I am now using the java that is shipped with the SOA Suite. I am still getting an error, but it's a little different.
[oracle@oimserver scripts]$ which java
/app/oracle/soa/jdk/bin/java
[oracle@oimserver scripts]$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
[oracle@oimserver scripts]$ ./SSH.sh
java.lang.NullPointerException
at java.io.File.<init>(File.java:194)
at com.thortech.xl.integration.telnetssh.tests.SSHProvisioningTest.setSshProperties(Unknown Source)
at com.thortech.xl.integration.telnetssh.tests.SSHProvisioningTest.main(Unknown Source) -
ADI0052E: TSM API Error: ANS1311E (RC11) Server out of data storage space
Hello guys,
I have a problem with the backup on MaxDB. It always fails with the following error message
ADI0052E: TSM API Error: ANS1311E (RC11) Server out of data storage space
Has anyone faced this problem before? Any solution how could this be solved?
Thanks for your help.
Regards,
DanHi Dan,
Check the TSM server and make sure the primary storage pool that is defined
as your copy destination for the management class you are using is not full
and or you have not run out of scratch tapes. In either case a storage pool
has filled up and cannot migrate data causing the RC11. This is usually what
an RC11 Server out of data storage space means.
I am sharing configuration for Oracle database. You can check similar configuration for MaxDB database.
when i defined the node in my tsm server :
REG NODE hostname_oracle password maxnummp=2, it was defined in standard storage pool, i moved it in other storage.
Hope this is useful.
Regards,
Deepak Kori -
The message is Win32 API error 2 ("The system cannot find the file specified") when calling ShellExecuteExW from AgWorkplace.shellExecute. However the export works. What is happening and how do I get rid of the error message?
Near the bottom of the Export Daialog, in the "Post-Processing" section make sure that the "After Export" box is not empty (which is invalid and causes the export operation to trip up). Use the drop-down to select a valid choice such as "Do Nothing".
-
Oracle 6i Repository Internal API Error 25012
I am running into an RME-00020 Internal API error when I try to fire up designer and do anything. I followed the standard install on a windows 2000 Pro laptop, installed the repository and ran into this. The Oracle error is ORA-00600 and the internal error is 25012. I must have missed something. I have wiped and reinstalled the repository, but continue to get this error. Any avenues you can push me down would be greatly appreciated.
I'm running Oracle 9i on the laptop and have installed the repository on this platform. I downloaded Oracle 6i and am trying to use these together. I installed both in seperate Oracle Home directories as specified. The database is working just fine with another db, as I'm designing and installing that db with ERStudio version 5. I'm running on a Dell Inspiron 8000 with 512M of memory and 20Gigs of disk.
Thanks for any help and insight you can give!Hi
I am experiencing the same error while trying to user Oracle Designer 10g I am new to Designer.I trying to create a user before I do a design capture and it is giveing me the error:
Message
RME-00020: Internal API error - ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Cause
The API has detected an internal inconsistency.
Action
Check the detail of the associated Oracle Server error message
(ORA-xxxxx) and resolve it.
Message
RME-00011: Operation 'close' on ACTIVITY has failed
Cause
An API operation request has failed for some reason.
Action
Examine other reported errors for specific details.
Message
RME-00222: Failed to dispatch operation to Repository
Cause
Requested operation failed because of other errors.
Action
Examine other reported errors for specific details.
Message
RME-00224: Failed to close activity
Cause
Could not close ('commit') an activity.
Action
Examine other reported errors for specific details.
Can you help please?
Maybe you are looking for
-
Pictures not being displayed on twitter
Certain pictures on twitter are not being displayed on firefox but work fine in internet explorer an example page is http://pic.twitter.com/flmKKGz8 with firefox there is no piture just the message, when looked at in internet explorer the big pucture
-
On my ac Book Air I have opened it up and te Log In screen is showing but so is the Spinning Rainbow Ball which willl not go away. How do I get rid of it so that I can log in?
-
New service order type...
hi all, i copied a new service order type from sm02 (customer service). i am creating a new service order and confirming for activity. but activity cost is not appeared on service order. what will be the reason? (when i use sm02 with the same data, t
-
No bootable device... can't open Mac OS X or anything in fact! Help!
got a new iMac and just used bootcamp to make a partition. It was made successfully. but then i quit and didn't continue to install Windows. After a shower, i guess my iMac went to sleep, but i couldn't wake it up using my apple keyboard or trackpa
-
Two images on a page, want to number each image. How?
Page layout with two images on a page, other pages have one image. I want to have a number associated with each image. I tried page numbering to no avail. How do I have a sequence number for each image? I further complicate this; I will make many