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

Tags: Oracle Applications

Similar Questions

  • Cannot create a sales booked usgin OE_ORDER_PUB.process_order order

    Hi all

    I try to create reserved sales (e) using oe_order_pub.process_order. It was working fine before but now I don't know may be some configuration has been done by the functional cosultant on place, I'm not able to create orders booked, everytime I try to create it, its status is still "draft". And try to book as early as the end of the fron, suite Messages comes in the Notification screen

    Quote could not be reserved. Status code is pending acceptance of the customer. Please see the status window or monitor workflow for more information.

    Quote could not be reserved. Status code is awaiting internal approval. Please see the status window or monitor workflow for more information.

    I'm sure it has in fact with the workflow, but I have now clue how to look.
    Need help, its quite urgent.

    Thank you
    Manish

    Edited by: manisharma 18 January 2009 09:01

    Manish
    It seems that the negotiation workflow assigned to the order type, you use is changed to the approval of a sighting. Check the type parameters.

    Thank you
    Claire

  • create a sales order.

    Hello

    How to create a sales order internal unit of the control unit operating another in order management. As well as the configuration steps.


    Kind regards

    Hari R

    Date of arrival:

    http://www.oracleug.com/user-guide/purchasing-overview/internal-requisitions

  • Can remove us a Promotion SO lines using oe_order_pub.process_order?

    Hello!

    We create SO headers and lines using the oe_order_pub.process_order API. One of the lines may contain an element with a modifier to promote existing, the API automatically adds items to Get to the lines of the SO. Our company requirement must remove/put up-to-date amount some of these lines point to get. I can do this by using oe_order_pub.process_order safely? It won't do anywhere since these lines are point Get a modifier of Promotion?

    Thank you.

    Can I remove a modifier of Promotion Get lines using oe_order_pub.process_order with the operation of table row = OE_GLOBALS. G_OPR_DELETE and was able to book and create movements of AR.

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

  • Error trying to create for iOS Provisioning Profiles (Distribution) .ipa

    Hello, I tried to deploy my application MAF to a .ipa package. I use jDeveloper 12 c. I've already done before for profiles of development and it was working perfectly until yesterday when I tried to create a .ipa with certificate of Distribution. Now, I can't deploy for distribution, or for the development...

    The corresponding configurations for the iOS platforms, I did: I created the profile of Provisioning for Distribution in space subscribers for Apple developers and by signing the identity, I added the certificate corresponding to Distribution applications. I also defined an APP ID, I have configured my CRG - application.XML with the corresponding APPID, well.

    But when I tried to deploy my application to a package I get the below error:

    [11:33:13] successful deployment

    [11:33:13] security copy of related files at the request of the MAF...

    [11:33:13] executed command-line path: / users/MYMAC/jdeveloper/mywork/myMAFApp/deploy/OTROOOOOOOOOOO/temporary_xcode_project /.

    [11:33:13] run command line: xcodebuild-window Oracle_ADFmc_Container_Template archive archivePath - /Users/myMac/jdeveloper/mywork/myMAFApp/deploy/OTROOOOOOOOOOO/Destination_Root/Company.xcarchive - IPHONEOS_DEPLOYMENT_TARGET = TARGETED_DEVICE_FAMILY = 1 7.0 iphoneos sdk, ADD_SETTINGS_BUNDLE 2 = No. PRODUCT_NAME = company CODE_SIGN_IDENTITY = iPhone Distribution: MY COMPANY NAME. (215AST54872)

    [11: 33:15] orders for next generation failed:

    [11: 33:15] command-line execution failed (return code: 65)

    [11: 33:15] undeployment.

    [11: 33:15] - incomplete deployment.

    [11: 33:15] could not build the iOS application pack.

    [11: 33:15] deployment failed due to one or more errors returned by 'xcodebuild.  What follows is a summary of the returned error:

    Command-line execution failed (return code: 65)

    Orders for next generation failed:

    Check dependencies

    (1 failure)

    I don't know what could happen... This happened last week when I was trying to do the same thing and I registered my app in iTunes Connect. I wasn't able to delete the iTunes Connect app so I modified the APPID and since then, I have been able to deploy my application to a package again (certificate for development), but this time I didn't create a new application in iTunes Connect, so I don't know what could be happeing...

    I hope you guys can help me because I'm panicking... I ran out of options...

    I'm sure it's a problem with certifications, because I can deploy to iOS Simulator without any problem.

    Thank you very much!

    Thanks for your advice. I ran the command in the console and I could see the xcodebuild log and I realized that I was not setting good App ID, so I changed it and it worked perfectly.

    Thank you very much for your help!

  • Eception java.lang.error trying to create format XML string

    I am trying to create XML documents without having to build everything manually whenever I want to do this.  I created a XMLFile class to create the document.  When I try to launch my app TestFoo, I get untrapped Exception java.lang.error.  I tried kxml2, using org.w3c.dom, java XML, banging my head against the wall as to why it will not work until I finally just rolled my own simple implementation.  I always get the error!  No details are provided.  There is no stack trace.  I use the emulator 9000 "BOLD" crossing os 4.6.0 eclipse 3.4.1

    Console:

    Starting TestFooStarted TestFoo(154)Exit TestFoo(154)ErrorNo detail messageTestFoo Document  0x171TestFoo XMLFile  0x381TestFoo TestFoo  0x297TestFoo TestFoo main 0x276
    

    TestFoo.java

    import net.rim.device.api.system.Application;
    
    public class TestFoo extends Application {
    
      public static void main(String[] args) {      TestFoo foo = new TestFoo();      foo.enterEventDispatcher();   }
    
      public TestFoo() {        XMLFile xml = new XMLFile("rootNode");        xml.addProperty("myprop", "some value");      System.out.println(xml.toFormattedXMLString());       System.exit(0);   }}
    

    XMLFile.java

    public class XMLFile {   Document document;    public XMLFile(String rootElement) {      document = new Document(rootElement); }
    
      public void addProperty(String pName, String pText) {     Element elm = new Element("property");        elm.addAttribute("name", pName);      elm.setTextContent(pText);        document.appendChild(elm);    }    public String toFormattedXMLString() {     return document.toFormattedXML();    }}
    

    Element.Java

    import java.util.Enumeration;import java.util.Hashtable;import java.util.Vector;
    
    public class Element {   private Vector children;  private String name;  private String textContent;   private Hashtable attributes;
    
      public Element(String name) {     this.children = new Vector();     this.attributes = new Hashtable();        this.name = name; } public void appendChild(Element child) {      this.children.addElement(child);  } public Vector getChildren() {     return children;  } public String getName() {     return name;  } public void setName(String name) {        this.name = name; } public String getTextContent() {      return textContent;   } public void setTextContent(String textContent) {      this.textContent = textContent;   } public Hashtable getAttributes() {        return attributes;    } public boolean hasChildren() {        return (this.children.size() > 0); } public int childrenCount() {      return this.children.size();  } public String getAttributeValue(String name) {        return this.attributes.get(name).toString();  } public void addAttribute(String key, String value) {      this.attributes.put(key, value);  } public void addAttribute(String key, int value) {     addAttribute(key,Integer.toString(value));    } public void addAttribute(String key, long value) {        addAttribute(key,Long.toString(value));   } public void addAttribute(String key, boolean value) {     addAttribute(key, String.valueOf(value)); } public boolean hasAttribute(String name) {        return this.attributes.containsKey(name); } public Element getChild(int position) {       return (Element) this.children.elementAt(position);   } public Enumeration getAttributeKeys() {       return this.attributes.keys();    }}
    

    Document.Java

    import java.util.Enumeration;
    
    public class Document { private static final char _gt = '>';   private static final char _lt = '<';   private static final char _eq = '=';  private static final char _dqt = '"'; private static final char _cl = '/';  private static final char _sp = ' ';  private static final char _tab = '\t';    private static final byte[] _nl = System.getProperty("line.separator").getBytes();
    
      private Element rootNode; private StringBuffer sb;
    
      public Document(String rootName) {        this.rootNode = new Element(rootName);    } public void appendChild(Element child) {      this.rootNode.appendChild(child); } public String toFormattedXML() {      sb = new StringBuffer();      format(this.rootNode,0);      return sb.toString(); }
    
      private void format(Element node, int depth) {        writeOpenTag(node, depth);        for (int i=0;i0;i--) {            sb.append(_tab);      } }    private void writeOpenTag(Element node, int depth) {       indent(depth);        sb.append(_lt);       sb.append(node.getName());        for (Enumeration keys = node.getAttributeKeys();keys.hasMoreElements();) {            String key = keys.nextElement().toString();           sb.append(_sp).append(key);           sb.append(_eq).append(_dqt);          sb.append(node.getAttributeValue(key).toString());            sb.append(_dqt);      }    }    private void writeCloseTag(Element node, int depth) {       if (node.hasChildren()) {         sb.append(_lt).append(node.getName());        } else {          sb.append(_cl);       }     sb.append(_gt).append(_nl);    }}
    

    This line:

    private static final byte[] _nl = System.getProperty("line.separator").getBytes();
    

    is originally a NullPointerException because line.separator is not well supported. The line terminator standard for XML is CR/LF, so you can use:

    private static final byte[] _nl = { '\r', '\n' };
    
  • -2519 error trying to create a PDM file

    I'm trying to create a file of PDM with a code on a 9073 that previously worked. He started giving me an error-2519, so after reading upward, I did a reset of the cRIO - no help, then did a software restart on the cRIO - without help, then did a reformat, reinstall the software on the cRIO - no help. Now what? It works without error if I run the code on a PC instead of the cRIO.


  • Impossible to cancel the order using OE_ORDER_PUB. Process_order. Help, please!

    Hi all

    I use OE_ORDER_PUB. Process_order API to cancel the order (order). The API return status is the success, but the order is not affected. I tried with several levels and with different values but failed to get the required results. Here is the code

    declare
    l_step varchar2 (250);
    l_err_msg varchar2 (1000);
    v varchar2 (1000);
    l_LINE_TBL oe_order_pub. Line_Tbl_Type;
    l_header_rec oe_order_pub. Header_Rec_Type;
    lx_return_status VARCHAR2 (10000);
    lx_msg_count NUMBER;
    lx_msg_data VARCHAR2 (10000);
    lx_header_rec oe_order_pub. Header_Rec_Type;
    lx_header_val_rec oe_order_pub. Header_Val_Rec_Type;
    lx_header_adj_tbl oe_order_pub. Header_Adj_Tbl_Type;
    lx_header_adj_val_tbl oe_order_pub. Header_Adj_Val_Tbl_Type;
    lx_header_price_att_tbl oe_order_pub. Header_Price_Att_Tbl_Type;
    lx_header_adj_att_tbl oe_order_pub. Header_Adj_Att_Tbl_Type;
    lx_header_adj_assoc_tbl oe_order_pub. Header_Adj_Assoc_Tbl_Type;
    lx_header_scredit_tbl oe_order_pub. Header_Scredit_Tbl_Type;
    lx_header_scredit_val_tbl oe_order_pub. Header_Scredit_Val_Tbl_Type;
    lx_Header_Payment_tbl oe_order_pub. Header_Payment_Tbl_Type;
    lx_Header_Payment_val_tbl oe_order_pub. Header_Payment_Val_Tbl_Type;
    lx_line_tbl oe_order_pub. Line_Tbl_Type;
    lx_line_val_tbl oe_order_pub. Line_Val_Tbl_Type;
    lx_Line_Adj_tbl oe_order_pub. Line_Adj_Tbl_Type;
    lx_Line_Adj_val_tbl oe_order_pub. Line_Adj_Val_Tbl_Type;
    lx_Line_price_Att_tbl oe_order_pub. Line_Price_Att_Tbl_Type;
    lx_Line_Adj_Att_tbl oe_order_pub. Line_Adj_Att_Tbl_Type;
    lx_Line_Adj_Assoc_tbl oe_order_pub. Line_Adj_Assoc_Tbl_Type;
    lx_Line_Scredit_tbl oe_order_pub. Line_Scredit_Tbl_Type;
    lx_Line_Scredit_val_tbl oe_order_pub. Line_Scredit_Val_Tbl_Type;
    lx_Line_Payment_tbl oe_order_pub. Line_Payment_Tbl_Type;
    lx_Line_Payment_val_tbl oe_order_pub. Line_Payment_Val_Tbl_Type;
    lx_Lot_Serial_tbl oe_order_pub. Lot_Serial_Tbl_Type;
    lx_Lot_Serial_val_tbl oe_order_pub. Lot_Serial_Val_Tbl_Type;
    lx_action_request_tbl oe_order_pub. Request_Tbl_Type;
    i the number: = 1;

    Cursor ord_det_cur (l_ord_num number) is
    Select * from oe_order_lines_all
    where header_id = (select header_id in the oe_order_headers_all where order_number = l_ord_num);

    BEGIN
    fnd_client_info.set_org_context (101);
    for ord_det_rec loop ord_det_cur (1000809635)
    If I = 1 then
    l_header_rec: = OE_ORDER_PUB. G_MISS_HEADER_REC;
    l_header_rec.flow_status_code: = "CANCELLED";
    l_header_rec.cancelled_flag: = 'Y ';
    l_header_rec.change_reason: = 1;
    l_header_rec.header_id: = ord_det_rec.header_id;
    end if;
    l_line_tbl (i): = OE_ORDER_PUB. G_MISS_LINE_REC;
    l_line_tbl (i) .ordered_quantity: = 0;
    l_line_tbl (i) .header_id: =. ord_det_rec HEADER_ID;
    l_line_tbl (i) .line_id: =. ord_det_rec LINE_ID;
    l_line_tbl (i) .cancelled_quantity: = ord_det_rec.cancelled_quantity;
    l_line_tbl (i) .flow_status_code: = "CANCELLED";
    l_line_tbl (i) .cancelled_flag: = 'Y ';
    l_line_tbl (i) .change_reason: = 1; -"Test"; -"No reason given";
    l_line_tbl (i) .operation: = OE_GLOBALS. G_OPR_UPDATE;

    i: = i + 1;
    end loop;
    dbms_output.put_line ("'start API");
    Apps.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 = > lx_return_status
    , x_msg_count = > lx_msg_count
    , x_msg_data = > lx_msg_data
    , p_header_rec = > l_header_rec
    , p_line_tbl = > l_line_tbl
    , x_header_rec = > lx_header_rec
    , x_header_val_rec = > lx_header_val_rec
    , x_Header_Adj_tbl = > lx_Header_Adj_tbl
    , x_Header_Adj_val_tbl = > lx_Header_Adj_val_tbl
    , x_Header_price_Att_tbl = > lx_Header_price_Att_tbl
    , x_Header_Adj_Att_tbl = > lx_Header_Adj_Att_tbl
    , x_Header_Adj_Assoc_tbl = > lx_Header_Adj_Assoc_tbl
    , x_Header_Scredit_tbl = > lx_Header_Scredit_tbl
    , x_Header_Scredit_val_tbl = > lx_Header_Scredit_val_tbl
    , x_Header_Payment_tbl = > lx_Header_Payment_tbl
    , x_Header_Payment_val_tbl = > lx_Header_Payment_val_tbl
    , x_line_tbl = > lx_line_tbl
    , x_line_val_tbl = > lx_line_val_tbl
    , x_Line_Adj_tbl = > lx_Line_Adj_tbl
    , x_Line_Adj_val_tbl = > lx_Line_Adj_val_tbl
    , x_Line_price_Att_tbl = > lx_Line_price_Att_tbl
    , x_Line_Adj_Att_tbl = > lx_Line_Adj_Att_tbl
    , x_Line_Adj_Assoc_tbl = > lx_Line_Adj_Assoc_tbl
    , x_Line_Scredit_tbl = > lx_Line_Scredit_tbl
    , x_Line_Scredit_val_tbl = > lx_Line_Scredit_val_tbl
    , x_Line_Payment_tbl = > lx_Line_Payment_tbl
    , x_Line_Payment_val_tbl = > lx_Line_Payment_val_tbl
    , x_Lot_Serial_tbl = > lx_Lot_Serial_tbl
    , x_Lot_Serial_val_tbl = > lx_Lot_Serial_val_tbl
    , x_action_request_tbl = > lx_action_request_tbl
    );
    dbms_output.put_line ('lx_return_status -' | lx_return_status);
    IF lx_msg_count > 0
    THEN
    dbms_output.put_line ('Listing mistakes.. .to order number')-;

    FOR l_index in 1... lx_msg_count
    LOOP
    v: = apps.oe_msg_pub.get (p_msg_index = > l_index p_encoded = > apps.fnd_api.g_false);
    dbms_output.put_line ('Listing mistakes.. .to order number-' | v);
    END LOOP;
    END IF;
    end;
    /

    Please help because it's very urgent.

    Another question: can cancel us orders in the State entry? I tried to frontend, it makes the order quantity = 0 but the order status remains in State of the input.

    Thanks in advance
    Himanshu

    Himanshu salvation,

    Instead of using l_line_tbl (i) .change_reason: = 1, in the script, please use l_line_tbl (i) .change_reason: = 'PLANT REQUEST' & test the issue again. Please check metalink Note 746797.1 for the script to cancel the order using this API.

    If the order is in a State of entry, instead of the cancellation of the order, you can remove the command using the same API.
    Please check metalink Note 746809.1 for the script delete using this API sales slip.

    Kind regards
    Jyoti

  • error trying to create PDF via Distiller indd files

    %% [Error: undefined;] OffendingCommand: Ioo fa½1icþt· DOCUMENT p] %.

    %% [Flushing: rest of job (end of file) will be ignored] %%.

    %% [Warning: PostScript error.] No PDF file produced. ] %%

    How to fix a undefined error?

    It looks like what you were doing was trying to run distill directly on a document .indd InDesign file. Who will absolutely not work. Distiller processes only the PostScript (.ps) and Encapsulated PostScript (.eps) files.

    The appropriate method of creating a PDF file from an InDesign document (no matter whether someone else can advise you) is to open the InDesign (.indd file) document in InDesign, and then use the function export, Save as PDF (print), by specifying the name of the destination file (and directory) as well as the appropriate options (generally PDF/X-4 parameters or printing of high quality performance best results for most of the cases).

    -Dov

  • Error trying to create the exe for real-time target

    I have a target program that works well on target in real time, but hangs when I try to create an executable fron, error is:

    An error occurred during the recording of the following file:

    C:\Program NIUninstaller Instruments\LabVIEW 2009\vi.lib\Motion\FunctionBlocks\straightLineMove\nimc.fb.straightLineMove.startStraightLineMove.axis.modeVelocity.0.vi

    Invoke the node in AB_Source_VI.lvclass:Close_Reference.vi-> AB_Build.lvclass:Copy_Files.vi-> AB_Application.lvclass:Copy_Files.vi-> AB_RTEXE.lvclass:Copy_Files.vi-> AB_Build.lvclass:Build.vi-> AB_Application.lvclass:Build.vi-> AB_RTEXE.lvclass:Build.vi-> AB_Build.lvclass:Build_from_Wizard.vi-> AB_UI_Frmwk_Build.lvclass:Build.vi-> AB_UI_FRAMEWORK.vi-> AB_CreateNewWizard_Invoke_CORE.vi-> RTBUIP_CreateNewWizard_Invoke.vi-> RTBUIP_CreateNewWizard_Invoke.vi.ProxyCaller

    Method name: Save target: Instrument

    Visit ni.com/ask support request page to learn more about the resolution of this problem. Use the following as a reference:

    Error 6a held at AB_Source_VI.lvclass:Close_Reference.vi-> AB_Build.lvclass:Copy_Files.vi-> AB_Application.lvclass:Copy_Files.vi-> AB_RTEXE.lvclass:Copy_Files.vi-> AB_Build.lvclass:Build.vi-> AB_Application.lvclass:Build.vi-> AB_RTEXE.lvclass:Build.vi-> AB_Build.lvclass:Build_from_Wizard.vi-> AB_UI_Frmwk_Build.lvclass:Build.vi-> AB_UI_FRAMEWORK.vi-> AB_CreateNewWizard_Invoke_CORE.vi-> RTBUIP_CreateNewWizard_Invoke.vi-> RTBUIP_CreateNewWizard_Invoke.vi.ProxyCaller

    Possible reasons:

    LabVIEW: File generic i/o error.
    =========================
    NOR-488: IO abandoned operation.

    The second was the issue, I found myself actually apply to open with an engineer and he helped me. Thank you very much!

  • Error trying to create multiple linked clones

    Hi all

    I have another question from script to this that attempts to create multiple linked clones.  I get the error message "Wait task: the object has no associated provider.» (see below under the results section).  Just need to know why this happens, but I'm new to PowerCLI.

    SCRIPT;

    $vm = get - VM 'test ' | Get-View

    $clonePrefix = "testclone".

    $numClones = 2

    $concurrentClones = 2

    $cloneFolder = $vm.parent

    $cloneSpec = new-object Vmware.Vim.VirtualMachineCloneSpec

    $cloneSpec.Snapshot = $vm. Snapshot.CurrentSnapshot

    $cloneSpec.Location = new-object Vmware.Vim.VirtualMachineRelocateSpec

    $cloneSpec.Location.DiskMoveType = [Vmware.Vim.VirtualMachineRelocateDiskMoveOptions]: createNewChildDiskBacking

    #To of power on each clone immediately after its creation:

    #$cloneSpec.powerOn = $true

    $i = 1

    While ($i - the $numClones) {}

    $taskViewArray = @)

    foreach ($j in 1.. $concurrentClones) {}

    $taskViewArray += $vm. CloneVM_Task ($clonePrefix, $cloneFolder, $cloneSpec + $i)

    $i ++

    }

    $taskArray = $taskViewArray | Get-VIObjectByVIView

    Wait-job $taskArray

    RESULT;

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI >. \hinomu

    ltipleclones.ps1

    Waiting-task: the object has no associated provider.

    In C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\HinoMultipleCl

    ones.ps1:25 char: 13

    + Wait-Task < < < < $taskArray

    + CategoryInfo: NotSpecified: (:)) [waiting-Task], InvalidOperationE)

    Xception

    + FullyQualifiedErrorId: System.InvalidOperationException, VMware.VimAutom

    ation.ViCore.Cmdlets.Commands.WaitTask

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI >

    You try to mix two different things here.

    The CloneVM_Task call you is a method of the API in the SDK and it returns an SDK task object.

    This task SDK object is not the same object as that returned by the RunAsync switch on several PowerCLI cmdlets.

    The Wait-job cmdlet waits an object returned by the RunAsync switch.

    You can use the task the UpdateProgress method on the object of the SDK in a loop.

    And wait for the news. Condition of the property on the Task SDK object turns into success or error.

  • Error trying to create a data store

    Hello

    I work with ESXi 5.0 on a HP proliant ML350 Tower Server, type G6.

    The server uses a RAID5 array and the standard SmartArray P410i controller.

    I try to create a store of standard data to the server with the file system of type 3, because I need this platform to support different VMS of different platforms.

    The error I get is as follows:

    "It was not correct to specified parameters.
    Vim.host.DiskPartitionInfo.spec

    ' Call 'HostStorageSystem.ComputeDiskPartitionInfo' to object 'storage system' on ESXi '192.168.11.79' failed.

    I installed several files VIB at HP, thinkig maybe it was a driver problem. This has not solved the problems.

    Any help is greatly appreciated!

    Thank you

    Matt

    Basically VMFS5 supports LUNS with up to 64 ~ to. However, there are exceptions, like the P410 controller (the driver). Please take a look at http://kb.vmware.com/kb/2006942 for more details.

    What you can do is to use the ACU (Array Configuration Utility) since the SmartStart CD and spit the RAID5 in 2 logical volumes. The controller BIOS utility does not support this.

    André

  • Error trying to update the model XML using XML Publisher administrator

    Hello people,

    We are on R12.1.3

    I changed a condition in a report and you try to download the new model XML using XML Publisher administrator.

    When I click the button to apply, it is throwing an error "bad request".

    Navigation: XML Publisher Admin > data definitions > query report

    Click on the report name > click 'Update file', in addition to the data model > choose file > click Apply

    I get the below error

    Bad request

    Your browser has requested that this server could not understand.


    Now, I could not download a new model of XML.


    I'm doing something wrong.


    Kind regards

    Kris

    user10163762 wrote:

    Thanks Eugen and Hussein.

    The problem is not with the template.

    It seems to be a problem in this particular case.

    Transferred to another instance.

    However once I run the program, I can't display the output as flashes and disappears from the window of the browser.

    My colleague says, it's to do with the trusted site to download something from the browser.

    Can you please guide me on how to solve this problem?

    http://bit.LY/1k8e2vi

    Thank you

    Hussein

  • 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

Maybe you are looking for