Payment records are processed and receipts created for charges paid in advance using API OE_ORDER_PUB.process_order
Hello
I want States to payment are processed and recipes created for prepayments by using OE_ORDER_PUB.process_order. I created the iStore sales order.
Type of payment is "CASH".
I tried the following code:
DECLARE
l_header_rec OE_ORDER_PUB. Header_Rec_Type;
l_line_tbl OE_ORDER_PUB. Line_Tbl_Type;
l_action_request_tbl OE_ORDER_PUB. Request_Tbl_Type;
l_header_adj_tbl OE_ORDER_PUB. Header_Adj_Tbl_Type;
l_line_adj_tbl OE_ORDER_PUB.line_adj_tbl_Type;
l_header_scr_tbl OE_ORDER_PUB. Header_Scredit_Tbl_Type;
l_line_scredit_tbl OE_ORDER_PUB. Line_Scredit_Tbl_Type;
l_request_rec OE_ORDER_PUB. Request_Rec_Type;
l_return_status VARCHAR2 (1000);
l_msg_count NUMBER;
l_msg_data VARCHAR2 (1000);
p_api_version_number NUMBER: = 1.0;
p_init_msg_list VARCHAR2 (10): = FND_API. G_FALSE;
p_return_values VARCHAR2 (10): = FND_API. G_FALSE;
p_action_commit VARCHAR2 (10): = FND_API. G_FALSE;
x_return_status VARCHAR2 (1);
x_msg_count NUMBER;
x_msg_data VARCHAR2 (100);
p_header_rec OE_ORDER_PUB. Header_Rec_Type: = OE_ORDER_PUB. G_MISS_HEADER_REC;
p_old_header_rec OE_ORDER_PUB. Header_Rec_Type: = OE_ORDER_PUB. G_MISS_HEADER_REC;
l_HEADER_PAYMENT_TBL oe_order_pub. Header_Payment_Tbl_Type;
x_HEADER_PAYMENT_TBL oe_order_pub. Header_Payment_Tbl_Type;
l_OLD_HEADER_PAYMENT_TBL oe_order_pub. HEADER_PAYMENT_TBL_type;
x_Header_Payment_val_tbl oe_order_pub. Header_Payment_Val_Tbl_Type;
p_header_val_rec OE_ORDER_PUB. Header_Val_Rec_Type: = OE_ORDER_PUB. G_MISS_HEADER_VAL_REC;
p_old_header_val_rec OE_ORDER_PUB. Header_Val_Rec_Type: = OE_ORDER_PUB. G_MISS_HEADER_VAL_REC;
x_Line_Payment_tbl OE_ORDER_PUB. Line_Payment_Tbl_Type;
x_Line_Payment_val_tbl OE_ORDER_PUB. Line_Payment_Val_Tbl_Type;
p_Header_Adj_tbl OE_ORDER_PUB. Header_Adj_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_TBL;
p_old_Header_Adj_tbl OE_ORDER_PUB. Header_Adj_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_TBL;
p_Header_Adj_val_tbl OE_ORDER_PUB. Header_Adj_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_VAL_TBL;
p_old_Header_Adj_val_tbl OE_ORDER_PUB. Header_Adj_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_VAL_TBL;
p_Header_price_Att_tbl OE_ORDER_PUB. Header_Price_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_PRICE_ATT_TBL;
p_old_Header_Price_Att_tbl OE_ORDER_PUB. Header_Price_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_PRICE_ATT_TBL;
p_Header_Adj_Att_tbl OE_ORDER_PUB. Header_Adj_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_ATT_TBL;
p_old_Header_Adj_Att_tbl OE_ORDER_PUB. Header_Adj_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_ATT_TBL;
p_Header_Adj_Assoc_tbl OE_ORDER_PUB. Header_Adj_Assoc_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_ASSOC_TBL;
p_old_Header_Adj_Assoc_tbl OE_ORDER_PUB. Header_Adj_Assoc_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_ADJ_ASSOC_TBL;
p_Header_Scredit_tbl OE_ORDER_PUB. Header_Scredit_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_SCREDIT_TBL;
p_old_Header_Scredit_tbl OE_ORDER_PUB. Header_Scredit_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_SCREDIT_TBL;
p_Header_Scredit_val_tbl OE_ORDER_PUB. Header_Scredit_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_SCREDIT_VAL_TBL;
p_old_Header_Scredit_val_tbl OE_ORDER_PUB. Header_Scredit_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_HEADER_SCREDIT_VAL_TBL;
p_line_tbl OE_ORDER_PUB. Line_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_TBL;
p_old_line_tbl OE_ORDER_PUB. Line_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_TBL;
p_line_val_tbl OE_ORDER_PUB. Line_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_VAL_TBL;
p_old_line_val_tbl OE_ORDER_PUB. Line_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_VAL_TBL;
p_Line_Adj_tbl OE_ORDER_PUB. Line_Adj_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_TBL;
p_old_Line_Adj_tbl OE_ORDER_PUB. Line_Adj_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_TBL;
p_Line_Adj_val_tbl OE_ORDER_PUB. Line_Adj_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_VAL_TBL;
p_old_Line_Adj_val_tbl OE_ORDER_PUB. Line_Adj_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_VAL_TBL;
p_Line_price_Att_tbl OE_ORDER_PUB. Line_Price_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_PRICE_ATT_TBL;
p_old_Line_Price_Att_tbl OE_ORDER_PUB. Line_Price_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_PRICE_ATT_TBL;
p_Line_Adj_Att_tbl OE_ORDER_PUB. Line_Adj_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_ATT_TBL;
p_old_Line_Adj_Att_tbl OE_ORDER_PUB. Line_Adj_Att_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_ATT_TBL;
p_Line_Adj_Assoc_tbl OE_ORDER_PUB. Line_Adj_Assoc_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_ASSOC_TBL;
p_old_Line_Adj_Assoc_tbl OE_ORDER_PUB. Line_Adj_Assoc_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_ADJ_ASSOC_TBL;
p_Line_Scredit_tbl OE_ORDER_PUB. Line_Scredit_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_SCREDIT_TBL;
p_old_Line_Scredit_tbl OE_ORDER_PUB. Line_Scredit_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_SCREDIT_TBL;
p_Line_Scredit_val_tbl OE_ORDER_PUB. Line_Scredit_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_SCREDIT_VAL_TBL;
p_old_Line_Scredit_val_tbl OE_ORDER_PUB. Line_Scredit_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LINE_SCREDIT_VAL_TBL;
p_Lot_Serial_tbl OE_ORDER_PUB. Lot_Serial_Tbl_Type: = OE_ORDER_PUB. G_MISS_LOT_SERIAL_TBL;
p_old_Lot_Serial_tbl OE_ORDER_PUB. Lot_Serial_Tbl_Type: = OE_ORDER_PUB. G_MISS_LOT_SERIAL_TBL;
p_Lot_Serial_val_tbl OE_ORDER_PUB. Lot_Serial_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LOT_SERIAL_VAL_TBL;
p_old_Lot_Serial_val_tbl OE_ORDER_PUB. Lot_Serial_Val_Tbl_Type: = OE_ORDER_PUB. G_MISS_LOT_SERIAL_VAL_TBL;
p_action_request_tbl OE_ORDER_PUB. Request_Tbl_Type: = OE_ORDER_PUB. G_MISS_REQUEST_TBL;
x_header_val_rec OE_ORDER_PUB. Header_Val_Rec_Type;
x_Header_Adj_tbl OE_ORDER_PUB. Header_Adj_Tbl_Type;
x_Header_Adj_val_tbl OE_ORDER_PUB. Header_Adj_Val_Tbl_Type;
x_Header_price_Att_tbl OE_ORDER_PUB. Header_Price_Att_Tbl_Type;
x_Header_Adj_Att_tbl OE_ORDER_PUB. Header_Adj_Att_Tbl_Type;
x_Header_Adj_Assoc_tbl OE_ORDER_PUB. Header_Adj_Assoc_Tbl_Type;
x_Header_Scredit_tbl OE_ORDER_PUB. Header_Scredit_Tbl_Type;
x_Header_Scredit_val_tbl OE_ORDER_PUB. Header_Scredit_Val_Tbl_Type;
x_line_val_tbl OE_ORDER_PUB. Line_Val_Tbl_Type;
x_Line_Adj_tbl OE_ORDER_PUB. Line_Adj_Tbl_Type;
x_Line_Adj_val_tbl OE_ORDER_PUB. Line_Adj_Val_Tbl_Type;
x_Line_price_Att_tbl OE_ORDER_PUB. Line_Price_Att_Tbl_Type;
x_Line_Adj_Att_tbl OE_ORDER_PUB. Line_Adj_Att_Tbl_Type;
x_Line_Adj_Assoc_tbl OE_ORDER_PUB. Line_Adj_Assoc_Tbl_Type;
x_Line_Scredit_tbl OE_ORDER_PUB. Line_Scredit_Tbl_Type;
x_Line_Scredit_val_tbl OE_ORDER_PUB. Line_Scredit_Val_Tbl_Type;
x_Lot_Serial_tbl OE_ORDER_PUB. Lot_Serial_Tbl_Type;
x_Lot_Serial_val_tbl OE_ORDER_PUB. Lot_Serial_Val_Tbl_Type;
x_action_request_tbl OE_ORDER_PUB. Request_Tbl_Type;
X_DEBUG_FILE VARCHAR2 (500);
l_line_tbl_index NUMBER;
l_msg_index_out NUMBER (10);
BEGIN
dbms_output. Enable (1000000);
oe_debug_pub. DEBUG_ON;
oe_debug_pub. Initialize;
fnd_global.apps_initialize (0,52862,810);
mo_global.init ('HAVE'); Context parameter - Muti-org
MO_GLOBAL.set_policy_context (the of ', 945);
-MO_GLOBAL. INIT('S',null);
OE_DEBUG_PUB. G_FILE: = ";
oe_debug_pub. DEBUG_ON;
oe_debug_pub. Initialize;
X_DEBUG_FILE: = OE_DEBUG_PUB. Set_Debug_Mode ('FILE');
oe_debug_pub. SetDebugLevel (5); -Use 5 for the debug output the most, I warn you there is a lot of data
oe_debug_pub. Add ('NEW DEBUG START');
-It's the UPDATE command line
-l_line_tbl_index: = 1;
-Modified attributes
l_header_rec: = OE_ORDER_PUB. G_MISS_HEADER_REC;
l_header_rec.header_id: = 98393; -order header_id
l_header_rec. Operation: = OE_GLOBALS. G_OPR_UPDATE;
l_Header_Payment_tbl (1): = OE_ORDER_PUB. G_MISS_HEADER_PAYMENT_REC;
l_Header_Payment_tbl (1). PAYMENT_NUMBER: = 1;
l_Header_Payment_tbl (1) .operation: = OE_GLOBALS. G_OPR_DELETE;
l_Header_Payment_tbl (1). PAYMENT_COLLECTION_EVENT: = "PREPAY";
-l_Header_Payment_tbl (1). PAYMENT_TYPE_CODE: = 'CASH '; -"CASH OUT." -to ask TC to inform the appropriate payment type
l_Header_Payment_tbl (1). RECEIPT_METHOD_ID: = 1365; -appropriate received methof
l_Header_Payment_tbl (1) .payment_amount: = 877; -amount of the payment
-l_Header_Payment_tbl (1). PAYMENT_PERCENTAGE: = 100;
-CALL TO ORDER
OE_ORDER_PUB.process_order (p_org_id = > 945,
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_false x_return_status = > l_return_status x_msg_count = > l_msg_count x_msg_data = > l_msg_data
, p_header_rec = > l_header_rec
-, p_line_tbl = > l_line_tbl
-, p_action_request_tbl = > l_action_request_tbl
, p_Header_Payment_tbl = > l_Header_Payment_tbl
-SETTINGS
, x_header_rec = > p_header_rec x_header_val_rec = > x_header_val_rec
, x_Header_Adj_tbl = > x_Header_Adj_tbl x_Header_Adj_val_tbl = > x_Header_Adj_val_tbl, x_Header_price_Att_tbl = > x_Header_price_Att_tbl x_Header_Adj_Att_tbl = > x_Header_Adj_Att_tbl, x_Header_Adj_Assoc_tbl = > x_Header_Adj_Assoc_tbl, x_Header_Scredit_tbl = > x_Header_Scredit_tbl , x_Header_Scredit_val_tbl = > x_Header_Scredit_val_tbl, x_Header_Payment_tbl = > x_Header_Payment_tbl, x_Header_Payment_val_tbl = > x_Header_Payment_val_tbl, x_line_tbl = > p_line_tbl x_line_val_tbl = > x_line_val_tbl x_Line_Adj_tbl = > x_Line_Adj_tbl, x_Line_Adj_val_tbl = > x_Line_Adj_val_tbl , x_Line_price_Att_tbl = > x_Line_price_Att_tbl x_Line_Adj_Att_tbl = > x_Line_Adj_Att_tbl, x_Line_Adj_Assoc_tbl = > x_Line_Adj_Assoc_tbl x_Line_Scredit_tbl = > x_Line_Scredit_tbl, x_Line_Scredit_val_tbl = > x_Line_Scredit_val_tbl, x_Line_Payment_tbl = > x_Line_Payment_tbl , x_Line_Payment_val_tbl = > x_Line_Payment_val_tbl x_Lot_Serial_tbl = >
x_Lot_Serial_tbl, x_Lot_Serial_val_tbl = > x_Lot_Serial_val_tbl x_action_request_tbl = > p_action_request_tbl);
dbms_output.put_line (' OM Debug file: ' | oe_debug_pub.) G_DIR | » /'|| oe_debug_pub. G_FILE);
-Retrieve messages
BECAUSE me in 1... l_msg_count
LOOP
Oe_Msg_Pub.get (p_msg_index = >, p_encoded = > Fnd_Api.G_FALSE, p_data = > l_msg_data p_msg_index_out = > l_msg_index_out);
DBMS_OUTPUT. Put_line ('message is: ' | l_msg_data);
DBMS_OUTPUT. Put_line ('message index is: ' | l_msg_index_out);
END LOOP;
-Check return status
IF l_return_status = FND_API. G_RET_STS_SUCCESS THEN
dbms_output.put_line ("' updated successfully");
ON THE OTHER
dbms_output.put_line ('update Failed');
END IF;
END;
I'm getting ORA-01403: no data available in the package OE_Header_Payment_Util procedure Query_Row error message.
Can someone help me?
Thank you
Aslam
Hi all
I added following line and it works fine.
l_Header_Payment_tbl (1). HEADER_ID: = 98393;
Thank you
Aslam
Tags: Oracle Applications
Similar Questions
-
How to create RMA based on orders placed using api OE_ORDER_PUB
Hello
Can someone help me pls how to create an RMA based on the command using oe_order_pub.process_order APi.
Thank you.Creating the RMA is very similar to creating a command. You must make sure that you have the correct order_type, line_type who is going to be the 'RETURN' (or 'MIXED') configuration category in the definition of transaction type.
The API automatically create a reference on your RMA lines for command lines original, you must pass the following
l_line_tbl (l_line_tbl. COUNTY) .return_reason_code: = 'BACK '; -Compulsory for RMA
l_line_tbl (l_line_tbl. COUNTY) .reference_line_id: = v_ref_line_id; -Original order line_id
l_line_tbl (l_line_tbl. COUNTY) .reference_header_id: = v_ref_header_id; -Original order header_id
l_line_tbl (l_line_tbl. COUNTY) .return_context: = 'ORDER ';
l_line_tbl (l_line_tbl. COUNTY) .return_attribute1: = v_ref_header_id; -Original order header_id
l_line_tbl (l_line_tbl. COUNTY) .return_attribute2: = v_ref_line_id; -Original order line_idOnce the RAM is created, query the order and go to the lines > tab returns. You can see the original order number and line number.
Thank you
Gopal -
I have a strange problem with my RAM supported by installers. When I check the activity monitor, 3 installers are open and they start around 80 MB memory RAM used for about 7 or 8 concerts after 10 minutes. I have to force them to quit, but I don't know what I am closing or why they open in the first place. Applications downloaded on iTunes?
In addition, the Console has opened with the same message several times, but I don't know what that means.
Any help would be appreciated.
Hello
The last is a picture of the Terminal window.
Just because it lists 'Console' does not mean that it has nothing to do with this application.
You have not said why or what you're trying to install so I can't help with that.
You can use the activity monitor to leave their.
After you select an item, use the X in a type of stop sign icon and confirm force quit.
21:36 Thursday; September 15, 2016
iMac 2.5 Ghz i5 2011 (El Capitan)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro (Snow Leopard 10.6.8) 2 GB
Mac OS X (10.6.8).
iPhone and iPad (2) -
61 records are saved and applied.
Hello
When I update the value in form then it shows "61 records are saved and applied." but in fact I update only value.help me thanks in advance.
SarahHi Sarah!
If you have items with the validation list set to Yes property
and this lovs have a column mapping property to another basetable-item in your building
may what the status is changed after the request too, if no matching record is found in the lov.Concerning
-
Should I reinstall everything to use a computer for a paid subscription after using it for a trial under a different account? Programs say "start trial" or 'trial ended' or 'buy' next to them even after I signed with my membership and then download them.
Hello Marcella.
You don't have to re - install your applications. Just activate your creative license cloud by the signature of the creative application of cloud and then reconnect.
Please see the help for the following document:
Sign out, sign in | Creative cloud desktop application
Kind regards
Sheena
-
Why my Muse formatting does not disappear when I open the site in DW CS6? I need to change the PayPal shopping cart code to account for my shipping options. I exported the Muse test in a folder and then created a new Site in DW with the help of this file, so all CSS should be there, but I don't see on the page about the elements without formatting, any stop to the left. Thank you!
PS: Muse will be the most impressive program ever when they fix these bugs or drop because not every user will be paying through the nose for Business Catalyst. Grrrrrrrrr.
Best approach would be not to use the PayPal widget and instead copy and paste the PayPal code embedded in an object > object to insert the HTML in Muse. This way you can edit the HTML code to embed PayPal code from Muse and without having to modify the exported code.
-
Swapping the left and right panels for screen active left hand using the pen.
I use a computer with a screen of active pen. It's the perfect way to work with focal lightroom edits. I prefer this over the mouse or Wacom tablet. However, I'm left-handed. This creates a problem. With the adjustment on the right panel, when you move the sliders your hand covers the major part of the image. Just a problem that I have to use a mouse to adjust the sliders. Once I drew what I need on the image I put the pen down and pick up the mouse, is not ideal. The solution is to be able to swap the positions of the panels so that the adjustment panel is on the left. 10% of the population is left-handed. It is even higher among creative. It would be very difficult for left-handed people. Is this possible?
Thank you
-Gerry
Please add your vote and view detailed in the official feedback forum Adobe: Lightroom : swap panels for left-handed people. Community customer Photoshop family. The developers of Adobe products actively monitor this forum, but rarely participate here.
-
Scoring and data collection for the Simple Flash game using Actionscript 2
Hello all-
First of all, let me say that I am not very well or well informed when it comes to actionscript...
I could really use some help with a problem I encountered.
My company has developed a very simple type "Whack-a-Mole" game for a social media campaign.
See here: http://www.hereforyoueverystep.com/social/game.html
Our customer request now that we add a rating system so that we can offer a price for the best 3 scores.
What I need, is to link the number of "hits" on a partition and allow the user to enter their e-mail address at the end of the game connected to the score they achieve.
It was developed in Actionscript 2, because of a tutorial that was followed.
If anyone can give me some advice or offer to edit my files directly, I would be very grateful.
Thank you!
Create a variable (for example, note), initialize it (to zero) and increment when a Mole is stubborn.
Then, you create a database on the server that stores the best scores. You must use the flash LoadVars class to update and extract high scores and you will need to use the script to write in your database server-side.
-
Creative cloud for students - paid in advance, but still in test mode
I paid for the first month of subscription for one year for students three days ago, Illustrator still works in trial mode and says that the subscription cannot be found.
Transaction is complete - I can see it in my account options. I also added my school email while ordering the creative suite for students.
I wonder how long does take to confirm that I am a student?
Or is it another problem?
Thank you.
Hi vojta % 20holik,.
Please follow the steps below:
- Please check if you have installed browser security extensions, please disable them. (For example: AD BLOCK, Advisor to Mcafee website, toolbar of internet security etc.)
- Disable the firewall of your machine, see OS x: about the application firewall - Apple support Windows Firewall enable or disable - Windows help -
- Turn off the firewall of the security program installed on the computer Internet.
- In Mac: Go to: Apple icon > system preferences > Security & Privacy > General > "allow applications downloaded on" change this anywhere (to make these changes click the padlock in the corner at the bottom left of this window and enter your computer password)
Force Quit/end task the sub process in the same sequence as shown below of Activity Monitor Task Manager: see, use the monitor activity on your Mac - Apple Supportopened the Task Manager
- Creative cloud
- Basic timing & sync to basic support
- CC library & process CCX
- Adobe Common Desktop
- Adobe update daemon
- Broker CIB Adobe
- After that, everything that said adobe on it do a force quit for her
Adobe trial and purchased applications are same, if your application shows that they are running as trial then please visit the link below: ( make sure you use the same Adobe ID / Email ID that you used to purchase the subscription )
Connect and disconnect activate Cloud Creative applications
If it does not help him follow the link below
Adobe Creative Cloud apps back in test mode after 2015 set CC to update
Let us know if that helps.
-
How to cancel CC student and teacher edition a year, paid in advance?
I need help. How can I cancel it?
Im trying but no luck
Hello
Please contact support by calling/chat for cancellation requests and billing queries:
* Be sure to stay connected with your Adobe ID before accessing the link above *.
You can also check the help below document:
https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html
Please go through the Adobe - General conditions of subscription as well.
Kind regards
Sheena
-
Create an event of reconciliation delayed using API
Hello
The future was created in the test of IOM recon using the API?You must just supplement the later date:
>
long createReconciliationEvent (java.util.Map poData, pbFinishEvent boolean, psObjectName java.lang.String, java.sql.Date futureDate) throws Thor.API.Exceptions.tcAPIException, Thor.API.Exceptions.tcObjectNotFoundException, tcAPIExceptionCreates a future event to day of atonement for the object specified in the future.
>-Kevin
-
Error trying to create a sales order using oe_order_pub.process_order
Hi all
I am creating a sales order using api oe_order_pub.process_order...
This is the procedure that I had written.
CREATE OR REPLACE PROCEDURE TEST_PROC
AS
x_return_status VARCHAR2 (250);
x_msg_count NUMBER;
x_msg_data VARCHAR2 (250);
F varchar2 (2000);
-out parameters
x_header_rec OE_Order_PUB. Header_Rec_Type;
x_header_val_rec OE_Order_PUB. Header_Val_Rec_Type;
x_Header_Adj_tbl OE_Order_PUB. Header_Adj_Tbl_Type;
x_Header_Adj_val_tbl OE_Order_PUB. Header_Adj_Val_Tbl_Type;
x_Header_price_Att_tbl OE_Order_PUB. Header_Price_Att_Tbl_Type;
x_Header_Adj_Att_tbl OE_Order_PUB. Header_Adj_Att_Tbl_Type;
x_Header_Adj_Assoc_tbl OE_Order_PUB. Header_Adj_Assoc_Tbl_Type;
x_Header_Scredit_tbl OE_Order_PUB. Header_Scredit_Tbl_Type;
x_Header_Scredit_val_tbl OE_Order_PUB. Header_Scredit_Val_Tbl_Type;
x_line_tbl OE_Order_PUB. Line_Tbl_Type;
x_line_val_tbl OE_Order_PUB. Line_Val_Tbl_Type;
x_Line_Adj_tbl OE_Order_PUB. Line_Adj_Tbl_Type;
x_Line_Adj_val_tbl OE_Order_PUB. Line_Adj_Val_Tbl_Type;
x_Line_price_Att_tbl OE_Order_PUB. Line_Price_Att_Tbl_Type;
x_Line_Adj_Att_tbl OE_Order_PUB. Line_Adj_Att_Tbl_Type;
x_Line_Adj_Assoc_tbl OE_Order_PUB. Line_Adj_Assoc_Tbl_Type;
x_Line_Scredit_tbl OE_Order_PUB. Line_Scredit_Tbl_Type;
x_Line_Scredit_val_tbl OE_Order_PUB. Line_Scredit_Val_Tbl_Type;
x_Lot_Serial_tbl OE_Order_PUB. Lot_Serial_Tbl_Type;
x_Lot_Serial_val_tbl OE_Order_PUB. Lot_Serial_Val_Tbl_Type;
x_action_request_tbl OE_Order_PUB. Request_Tbl_Type;
-settings
l_header_rec OE_Order_PUB. Header_Rec_Type;
t_line_tbl OE_ORDER_PUB. Line_Tbl_Type;
BEGIN
Apps.mo_global.set_org_context(204,,'ONT');
l_header_rec: = OE_ORDER_PUB. G_MISS_HEADER_REC;
l_header_rec.ORG_ID: = 204;
l_header_rec. ORDER_TYPE_ID: = 1437;
l_header_rec. SOLD_TO_ORG_ID: = 1290;
l_header_rec. SHIP_TO_ORG_ID: = 1425;
l_header_rec. INVOICE_TO_ORG_ID: = 1424;
l_header_rec. PRICE_LIST_ID: = 1000;
l_header_rec.salesrep_id: = 1006;
l_header_rec. ORDER_CATEGORY_CODE: = "MIXED";
l_header_rec. VERSION_NUMBER: = 0;
l_header_rec. OPEN_FLAG: = 'Y ';
l_header_rec. BOOKED_FLAG: = 'Y ';
l_header_rec. PRICING_DATE: = sysdate;
l_header_rec. TRANSACTIONAL_CURR_CODE: = "USD";
l_header_rec.created_by: = FND_GLOBAL. USER_ID;
l_header_rec. CREATION_DATE: = sysdate;
l_header_rec. LAST_UPDATED_BY: = FND_GLOBAL. USER_ID;
l_header_rec. LAST_UPDATE_DATE: = sysdate;
l_header_rec.attribute1: = '250';
l_header_rec. Operation: = "CRΘER";
t_line_tbl (1): = OE_ORDER_PUB. G_MISS_LINE_REC; -check
t_line_tbl (1) .inventory_item_id: = 193742;
t_line_tbl (1) .ordered_quantity: = 1;
t_line_tbl (1) .operation: = "CRΘER";
oe_debug_pub. Initialize;
-oe_debug_pub. SetDebugLevel (1);
OE_MSG_PUB. INITIALIZE();
OE_Order_PUB. Process_Order
(- p_org_id = > 204,
-p_operating_unit = > "Ontario."
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 = > x_return_status,
x_msg_count = > x_msg_count,
x_msg_data = > x_msg_data,
p_header_rec = > l_header_rec,
p_old_header_rec = > OE_Order_PUB. G_MISS_HEADER_REC,
p_header_val_rec = > OE_Order_PUB. G_MISS_HEADER_VAL_REC,
p_old_header_val_rec = > OE_Order_PUB. G_MISS_HEADER_VAL_REC,
p_Header_Adj_tbl = > OE_Order_PUB. G_MISS_HEADER_ADJ_TBL,
p_old_Header_Adj_tbl = > OE_Order_PUB. G_MISS_HEADER_ADJ_TBL,
p_Header_Adj_val_tbl = > OE_Order_PUB. G_MISS_HEADER_ADJ_VAL_TBL,
p_old_Header_Adj_val_tbl = > OE_Order_PUB. G_MISS_HEADER_ADJ_VAL_TBL,
p_Header_price_Att_tbl = > OE_Order_PUB. G_MISS_HEADER_PRICE_ATT_TBL,
p_old_Header_Price_Att_tbl = > OE_Order_PUB. G_MISS_HEADER_PRICE_ATT_TBL,
p_Header_Adj_Att_tbl = > OE_Order_PUB. G_MISS_HEADER_ADJ_ATT_TBL,
p_old_Header_Adj_Att_tbl = > OE_Order_PUB. G_MISS_HEADER_ADJ_ATT_TBL,
p_Header_Adj_Assoc_tbl = > OE_Order_PUB. G_MISS_HEADER_ADJ_ASSOC_TBL,
p_old_Header_Adj_Assoc_tbl = > OE_Order_PUB. G_MISS_HEADER_ADJ_ASSOC_TBL,
p_Header_Scredit_tbl = > OE_Order_PUB. G_MISS_HEADER_SCREDIT_TBL,
p_old_Header_Scredit_tbl = > OE_Order_PUB. G_MISS_HEADER_SCREDIT_TBL,
p_Header_Scredit_val_tbl = > OE_Order_PUB. G_MISS_HEADER_SCREDIT_VAL_TBL,
p_old_Header_Scredit_val_tbl = > OE_Order_PUB. G_MISS_HEADER_SCREDIT_VAL_TBL,
p_line_tbl = > t_line_tbl,
p_old_line_tbl = > OE_Order_PUB. G_MISS_LINE_TBL,
p_line_val_tbl = > OE_Order_PUB. G_MISS_LINE_VAL_TBL,
p_old_line_val_tbl = > OE_Order_PUB. G_MISS_LINE_VAL_TBL,
p_Line_Adj_tbl = > OE_Order_PUB. G_MISS_LINE_ADJ_TBL,
p_old_Line_Adj_tbl = > OE_Order_PUB. G_MISS_LINE_ADJ_TBL,
p_Line_Adj_val_tbl = > OE_Order_PUB. G_MISS_LINE_ADJ_VAL_TBL,
p_old_Line_Adj_val_tbl = > OE_Order_PUB. G_MISS_LINE_ADJ_VAL_TBL,
p_Line_price_Att_tbl = > OE_Order_PUB. G_MISS_LINE_PRICE_ATT_TBL,
p_old_Line_Price_Att_tbl = > OE_Order_PUB. G_MISS_LINE_PRICE_ATT_TBL,
p_Line_Adj_Att_tbl = > OE_Order_PUB. G_MISS_LINE_ADJ_ATT_TBL,
p_old_Line_Adj_Att_tbl = > OE_Order_PUB. G_MISS_LINE_ADJ_ATT_TBL,
p_Line_Adj_Assoc_tbl = > OE_Order_PUB. G_MISS_LINE_ADJ_ASSOC_TBL,
p_old_Line_Adj_Assoc_tbl = > OE_Order_PUB. G_MISS_LINE_ADJ_ASSOC_TBL,
p_Line_Scredit_tbl = > OE_Order_PUB. G_MISS_LINE_SCREDIT_TBL,
p_old_Line_Scredit_tbl = > OE_Order_PUB. G_MISS_LINE_SCREDIT_TBL,
p_Line_Scredit_val_tbl = > OE_Order_PUB. G_MISS_LINE_SCREDIT_VAL_TBL,
p_old_Line_Scredit_val_tbl = > OE_Order_PUB. G_MISS_LINE_SCREDIT_VAL_TBL,
p_Lot_Serial_tbl = > OE_Order_PUB. G_MISS_LOT_SERIAL_TBL,
p_old_Lot_Serial_tbl = > OE_Order_PUB. G_MISS_LOT_SERIAL_TBL,
p_Lot_Serial_val_tbl = > OE_Order_PUB. G_MISS_LOT_SERIAL_VAL_TBL,
p_old_Lot_Serial_val_tbl = > OE_Order_PUB. G_MISS_LOT_SERIAL_VAL_TBL,
p_action_request_tbl = > OE_Order_PUB. G_MISS_REQUEST_TBL,
x_header_rec = > x_header_rec,
x_header_val_rec = > x_header_val_rec,
x_Header_Adj_tbl = > x_Header_Adj_tbl,
x_Header_Adj_val_tbl = > x_Header_Adj_val_tbl,
x_Header_price_Att_tbl = > x_Header_price_Att_tbl,
x_Header_Adj_Att_tbl = > x_Header_Adj_Att_tbl,
x_Header_Adj_Assoc_tbl = > x_Header_Adj_Assoc_tbl,
x_Header_Scredit_tbl = > x_Header_Scredit_tbl,
x_Header_Scredit_val_tbl = > x_Header_Scredit_val_tbl,
x_line_tbl = > x_line_tbl,
x_line_val_tbl = > x_line_val_tbl,
x_Line_Adj_tbl = > x_Line_Adj_tbl,
x_Line_Adj_val_tbl = > x_Line_Adj_val_tbl,
x_Line_price_Att_tbl = > x_Line_price_Att_tbl,
x_Line_Adj_Att_tbl = > x_Line_Adj_Att_tbl,
x_Line_Adj_Assoc_tbl = > x_Line_Adj_Assoc_tbl,
x_Line_Scredit_tbl = > x_Line_Scredit_tbl,
x_Line_Scredit_val_tbl = > x_Line_Scredit_val_tbl,
x_Lot_Serial_tbl = > x_Lot_Serial_tbl,
x_Lot_Serial_val_tbl = > x_Lot_Serial_val_tbl,
x_action_request_tbl = > x_action_request_tbl,
--For bug 3390458
p_rtrim_data = > 'n',.
p_validate_desc_flex = > 'Y' - bug4343612
);
COMMIT;
If x_msg_count > 0 then
for l_index loop 1.x_msg_count
x_msg_data: = oe_msg_pub.get (p_msg_index = > l_index p_encoded = > F);
PRINT ('x_msg_data: ' | x_msg_data);
end loop;
end if;
-Check return status
If x_return_status = FND_API. G_RET_STS_SUCCESS then
Print ('success');
on the other
Print ('failure');
end if;
PRINT ('x_return_status: ' | x_return_status);
PRINT ('x_msg_count: ' | x_msg_count);
PRINT ('x_msg_data: ' | x_msg_data);
PRINT ('x_header_val_rec: ' | x_header_val_rec.accounting_rule);
PRINT ('x_header_rec header_id: ' | x_header_rec.header_id);
PRINT ('x_header_rec order_number: ' | x_header_rec.order_number);
PRINT ('x_header_rec ship_to_org_id: ' | x_header_rec.ship_to_org_id);
PRINT ('x_header_rec payment_term_id: ' | x_header_rec.payment_term_id);
PRINT ('x_header_rec order_source_id: ' | x_header_rec.order_source_id);
PRINT ('x_header_rec order_type_id: ' | x_header_rec.order_type_id);
PRINT ('x_header_rec price_list_id: ' | x_header_rec.price_list_id);
PRINT ('x_header_rec invoicing_rule_id: ' | x_header_rec.invoicing_rule_id);
PRINT ('x_header_rec accounting_rule_id: ' | x_header_rec.accounting_rule_id);
PRINT ('x_header_rec org_id: ' | x_header_rec.org_id);
PRINT ('x_header_rec sold_to_org_id: ' | x_header_rec.sold_to_org_id);
PRINT ('x_header_rec invoice_to_org_id: ' | x_header_rec.invoice_to_org_id);
PRINT ('x_header_rec salesrep_id: ' | x_header_rec.salesrep_id);
PRINT ('x_header_rec invoice_to_org_id: ' | x_header_rec.invoice_to_org_id);
PRINT (' operation x_header_rec: ' | x_header_rec.) Operation);
PRINT ('x_header_rec transactional_curr_code: ' | x_header_rec.transactional_curr_code);
PRINT ('x_header_rec orig_sys_document_ref: ' | x_header_rec.orig_sys_document_ref);
PRINT ('x_header_rec request_date: ' | x_header_rec.request_date);
PRINT ('x_header_rec conversion_rate_date: ' | x_header_rec.conversion_rate_date);
PRINT ('x_header_rec last_update_date: ' | x_header_rec.last_update_date);
PRINT ('x_header_rec ordered_date: ' | x_header_rec.ordered_date);
PRINT (' creation_date x_header_rec: ' | x_header_rec.) CREATION_DATE);
PRINT ('x_header_rec created_by: ' | x_header_rec.created_by);
END;
/
It is throwing the following error message.
SQL > exec TEST_PROC;
x_msg_data: ORA-01403: no data available in the package OE_ORDER_WF_UTIL procedure
Create_HdrWorkItem
x_msg_data: Exception defined by the user in the package OE_ORDER_WF_UTIL procedure
Start_HdrProcess
failure
x_return_status: U
x_msg_count: 2
x_msg_data: Exception defined by the user in the package OE_ORDER_WF_UTIL procedure
Start_HdrProcess
x_header_val_rec: immediately
header_id x_header_rec: 156408
x_header_rec order_number: 64097
x_header_rec ship_to_org_id: 1425
x_header_rec payment_term_id: 4
x_header_rec order_source_id: 0
x_header_rec order_type_id: 1437
x_header_rec price_list_id: 1000
x_header_rec invoicing_rule_id:-2
x_header_rec accounting_rule_id: 1
x_header_rec org_id: 204
x_header_rec sold_to_org_id: 1290
x_header_rec invoice_to_org_id: 1424
x_header_rec salesrep_id: 1006
x_header_rec invoice_to_org_id: 1424
x_header_rec operation: CREATE
x_header_rec transactional_curr_code: USD
x_header_rec orig_sys_document_ref: OE_ORDER_HEADERS_ALL156408
x_header_rec request_date: 2 April 09
x_header_rec conversion_rate_date:
x_header_rec last_update_date: 2 April 09
x_header_rec ordered_date: 2 April 09
x_header_rec creation_date: 2 April 09
x_header_rec created_by: 13615
Any help on this would be appreciated.
I use R12...Just pass this to your table action query...
l_request_tbl (1) .entity_code: = OE_GLOBALS. G_ENTITY_HEADER;
l_request_tbl (1) .request_type: = OE_GLOBALS. G_BOOK_ORDER;And if you use the booking process deferred in your order header workflow, perform only the workflow back to the ground process engine type OM Order Header item and deferred process, Yes.
Thank you
Claire -
Report to the payroll process and reports
Hi all
I have a requirement in which I need to run the payroll for 4 different operating units and then about 20 reports to be run. Now, the user must run payroll 4 times and run these concurrent requests (about 20). I created a set of report and clubbed all reports and its working fine. But the only problem here is that the user must enter the settings for all of the reports even if the setting is the same for all reports with additional elements in some reports. I want to give the user the flexibility to enter the date only, which is a dynamic parameter and all other parameters will be static as this date should be used in all reports.
How can I do this?
Concerning
RahmanI assume you are using sets of request to submit concurrent programs in order. To share settings between concurrent programs. Follow the procedure below. I take an example of sharing of the selected parameters of Consolidation between the salary demands run and prepaid expenses.
1 define a set request with first floor as payroll run and second stage as expenses paid in advance.
2. in the window of stadiums, select the simultaneous payroll program run and click on queries to launch to scene queries window.
3. click on the settings button to launch the window of query parameters.
4. against the setting of the value of Consolidation enter a value (say, X_CONSOLIDATION_SET) as a shared parameter. Note that even if a LOV is attached to it, it does no validation. Then enter any free text (here X_CONSOLIDATION_SET). Make sure the show check box is checked.
5. close the window of query parameters and stage requests window after saving it.
6 now select the concurrent payments program in stages window and click queries, and then the settings button to launch the application settings window.
7. against the Consolidation of the defined parameter, select the value of the shared parameter that was entered in the previous step (i.e. X_CONSOLIDATION_SET) from the LOV. You can uncheck the show to hide this setting. Save the record.So now the user can see that a single parameter for the game of Consolidation, and then this value is passed to the other simultaneous program also.
I hope this helps.
Kind regards
Sharath -
Some of function boxes are elongated and may not reach the OK box
original title: Windows Vista - Control Panel customization to enlarge the font size. Some of function boxes are elongated and may not reach the OK box
Using Windows Vista. I used the customization Panel control to enlarge the font size. I discovered that some boxes, like Adobe Reader Print and function, in effect, the Personaization (to reduce the font size to original size) require a click OK. But the box frame with large font size, is elongated until I can't get the OK. How to get to the OK or reduce the size of the police without the OK?
Simply press enter instead of OK.
-
I have 9, 1 pages in PDF files that are accessible and the need to combine them into 1 PDF file. I tried adding, adding and the combine process of PDF files. The file created does not take my changes. The file created is partially accessible, but I have to re - the problems that I had fixed in the unique files. I need suggestions on what else can be done, if any. Using Acrobat pro XI.
By habit, I tend to combine PDF files in the Page pane by right-clicking thumbnails then 'Insert of Pages'-> 'From File'. For me, this preserves the tags of these two documents, although the tags may have to be moved to the correct location (if I remember correctly the tags for inserted pages are put at the end of the tag structure, regardless of where the pages are inserted), if I put the tags in the document to insert into a container as a Section tag It makes the process easier. Travel set of tags in the right place is the only re-fixing that I remember having to do. What behavior you encounter?
a 'C' student
Maybe you are looking for
-
Need Switchable Graphics for Windows 8 after upgrade?
Hey guys,. I see several issues where people lose their switchable graphics after upgrade to Windows 8. Now, the only drivers graphic switchable which must be downloaded for future needs on the site of the factory which should be HP. Now, is the firs
-
lost broadband on my HP Pavilion 15
Hello, my HP Pavilion 15 Notebook PC (ENERGY STAR) works very well until yesterday when I lost my broadband connection. It is said there is a problem with my network card or modem, but it works on a wi - fi connection (connected via my modem) and my
-
Mixture of software Blackberry blackBerry for Z3
Dear all, Introduction of the Blackberry mixture is a very good decision. With, I hope that we can access our balckberry devices completely. But why is that it is limited to the Passport only. I am tired with Z3 it did not work. Z3 is also a recent i
-
Consider the Certification of Sites Webcenter
people of Hai,I would like to webcenter sites certification in the coming days. If someone writes this before review it please suggest me what are the vital information, we should do & so as to prepare before going to the real exam.Share your experie
-
Oracle DB for MS SQL Server through ODBC SSL
Is it possible to connect an Oracle 11.2 box to a box of MS SQL Server with SSL ODBC?If not; then with 12 c?If this isn't the case, SSL, the two would also be compatible with another form of encryption? AMT perhaps?The side of MS SQL Server might be