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

Tags: Oracle Applications

Similar Questions

  • 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

  • price is not calculated by process sales order API

    All, I am trying to create a sales order by using the API to process control.
    For some reason, its settlement not online price accordingly I am not able to book.
    I'm defining the price indicator to calculate 'Y '. The price is not filled yet.

    Here is the code for the line:

    l_in_line_tbl (1): = oe_order_pub.g_miss_line_rec;
    l_in_line_tbl (1) .inventory_item_id: = '162744';
    l_in_line_tbl (1) .ordered_quantity: = 1;
    l_in_line_tbl (1) .ship_from_org_id: = 207;
    l_in_line_tbl (1) .orig_sys_document_ref: = "NB_HEADER_2";
    l_in_line_tbl (1) .orig_sys_line_ref: = "NB_LINE_2";
    l_in_line_tbl (1) .operation: = oe_globals.g_opr_create;
    l_in_line_tbl (1) .calculate_price_flag: = 'Y ';

    It works fine when I create manually!
    Can someone please tell me what I'm doing wrong?

    Published by: 918553 on October 23, 2012 14:18

    Date of arrival:

    (1) if there is already a list of prices to be missing in the configuration of the customer of the Type of transaction parameters. Otherwise, you may need to pass a list of price/list_header_id.
    (2) if the unit of MEASUREMENT on the price list is different than the unit of MEASUREMENT in the article master configured

    Dip

  • Record of inventory of the 'Sales Orders' (INVTVTXN)

    Form INVTVTXN

    The form is made up of 3 fields that are based on the key Flexfield 'Sales Orders'. And in what DB table values remain, in the table "MTL_MATERIAL_TRANSACTIONS" aren't?

    Hello

    Key flexfield belongs to the MTL_SALES_ORDERS table. When you create a "Sales order" type transaction, the transaction is stored in MTL_MATERIAL_TRANSACTIONS with TRANSACTION_SOURCE_ID pointint to MTL_SALES_ORDERS (SALES_ORDER_ID). I hope it helps

    Kind regards.

  • Can we create additional FDF on the sales order screen

    Hi all

    Can we create additional FDF on sale order screen using the customization of the form? Here's the scenario, we used almost all order of the FDF header, so we created a custom table that stores additional information for DFF. We want to show these fields on the customer order form, my question is can we create look FDF ([]) a field similar to the command screen oracle client?

    Thanks in advance.

    Concerning
    KK

    You can explore the possibility of using the FDF context to refuse the attribute fields.

  • 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

  • How can I cancel a sales order line quantity in Axapta

    Hi all

    I use AX 2009. Assume that the command is created with quantity 10 and 10 quantities are picked. Choose list registration is done for the line. How can I cancel 3 quantity for the sales order line. Help, please
    Kind regards
    Ramanantsoa

    Assuming that you problem is Microsoft Dynamics AX, I suggest you repost you question in the forum dedicated to product here:

    http://community.dynamics.com/product/ax/f/33.aspx?ref=php .

    (I'm sorry, but I can't move this thread for you because the two forums are working on separate platforms)

  • customization of the form - sales order lines

    Hi all

    My requirement is to do a column not used as barcode field, during the seizure of the sales order lines, so that the user enters the bar code. The point corresponding system, description code must do this by default.

    The link between the barcode and the article is available & captured the FDF - attribute1 to the master of the order of the day.

    I used columns customer number as bar code and populated the value of the element using the customization of the form. But in the normal client command line all by choosing the item UOM is filled in automatically and by entering the quantity, the price will fill. This is not the case in my case.

    Property:

    Object type: agenda

    Target the object: LINE. ORDERED_ITEM_DSP

    Property name: VALUE

    Value: = sΘlectionner segment1

    of mtl_system_items_b

    where attribut1 = "| ${point. LINE. CUSTOMER_LINE_NUMBER.value} | "

    AND organization_id = "| ${point. LINE. SHIP_FROM_ORG_ID.value} | "

    Thank you and best regards,

    Max

    In OM responsibility, go to components-> cross reference, create a new Cross Reference Type of barcode.

    Click the Assign button.  Add an element and in the value column, put your code bar.  For bar codes, leave the 'Applicable to all associations' checked.

    Now go to the screen and control in the field of the ordered item, type the barcode value that you set up.

    Using tools folder on the command line, you can expose 'Internal Article' and 'Type of item identifier' to see that the type is 'Barcode' and it is mapped correctly your internal inventory item.

    Most of the documents will show the ordinate the question - if all your documents will also show the value of code barcode for this command.

    Here is an article with some screenshots: Johan Louwers Personal Blog "my view on the world".: Oracle EBS cross references

  • Requisition internal & internal sales order process

    I'm doing 'internal sales order' internal requisition. but stuck at the step 6.

    1. create element

    2 assign org. M1, M2

    3 - create on the amount in "M1".

    4. create internal forced.  (Destination is M1, the Source is M2) and approved it.

    5. create "inner order".

    internal 6-import order.

    When RUN step 6 and view the report log, it shows that.

    "
    Cannot perform the action request Book_order

    N ° orders found: 1

    Imported orders No.: 0

    N ° commands failed: 1
    "

    7-

    System-> profile-> user-> MSC administrator: profile 'YES' it works.

  • APPROVALS FOR QUOTE TO SALES ORDER

    Hi Experts,

    I create a sales quote order now the status is "pending internal approval" and the notification goes to everyone who is responsible "Order Management superuser, Vision operations."

    My requirement is here, I have to change that and also notification is send to anyone determined only, how is it possible can you please help me on this issue


    Thank you
    Christ.

    Mail sent to you... Christ
    Check and let me know

    Mahendra

  • Dissatisfied sales order

    Hi-

    Currently according to the standard oracle functionality when I create a "123" 'Standard' command line is in status "pending delivery. Now, I create another command '456' with 'Return' type command and reference of order 123 that comes when I save the 456 order is just give a note currently, are you sure you want to return a dissatisfied client command line. It does not however go back to the order.

    Company wants to stop, what is the best way to stop (personalization/Customization)? or do we all profile option to stop it?

    Thank you

    Hello

    Maybe it's enough system lets return you a sales order line that does not not ship [1074060.1 ID].

    Kind regards
    Luko

  • Internal sales order

    Hi experts
    can need to know I use with the operating unit's internal sales order?

    You create an internal request (IR) to move away from a hardware inventory to other inventory org org.
    Once approved, you run create internal orders demand competing.
    Then, you run the import batch program.
    What creates the order of (ISO) inside sales.
    Then the warehouse source will go and ship the ISO.
    Then the receiving warehouse will receive the IR.

    It's how you use ISO.

  • Progress of mass sales order lines

    Hello

    We are on 11.5.10.2.

    We enter several lines of model on order.
    Create * point, we need to manually move each line.
    Also, for Back 2 Back stopped, users enter about 50-100 lines, selecting and progresses each line individually to the next step are not possible.

    Is there any function in Oracle that can do massive growth in sales order lines i.e. model to create lines * point and advance the status of B2B cycles to the next step


    Thanks in advance!

    Concerning

    You can use Automatic Configuration items to create the star lot items without having to manually advance.

    For consecutive lines, you can use Auto create purchase requisitions.

    These two applications are 'owned' nomenclature. Just add them to your group request.

    Kind regards
    Jon

  • numbering of the Sales Order # pickslip # and number

    where is the sequence maintain sales order # pickslip # and number.

    I have check
    Admin OM-> Configuration-> Documents-> set, I can see the order of numbering is defined here.

    where the definition of numbering for pickslip and #?

    Choose the slip sequences are maintained by Oracle and no definable nor editable via the standard applications.

    Pack the prefix Note slip/D, suffix, separator and start # are maintained under the category of document, you create in your shipping facilities (I guess that's what you mean by #).

    Kind regards
    Jon

  • API for choose to release a reserved sales order

    Hi all

    I am trying to take out a sales order booked using the API below
    1.WSH_PICKING_BATCHES_PKG. Insert_Row
    2.WSH_PICKING_BATCHES_PKG. Submit_Release_Request

    After completion of the line of the program state is changed to "Staged/Pick confirmed", but before deliveries end tab no record is created. That delivery is not created, I was not able to ship confirm this...

    When I am trying to choose replease frontend everything works...

    do I need to use any other API to create deliveries? If so, can anyone tell what this API?

    The Script that I use for the release of choice is as follows...

    CREATE OR REPLACE PROCEDURE TEST_PICK_RELEASE
    AS
    l_rowid varchar2 (20);
    number of l_batch_id;
    number of l_customer_id: = 1290;
    number of l_order_header_id: = 156625;
    number of l_Ship_Set_ID: = NULL;
    number of l_Inventory_Item_Id: = 193742;
    number of l_Order_Type_Id: = 1437;
    number of l_pick_grouping_rule_id: = 1000;
    number of l_pick_sequence_rule_id: = 1000;
    number of l_Organization_Id: = 207;
    number of l_org_id: = 204;
    L_Name varchar2 (20);
    number of l_user_id: = FND_GLOBAL. USER_ID;
    number of l_request_id;
    number of l_req_quantity;
    number of p_userid: = fnd_global.user_id;
    p_Pick_From_Subinventory varchar2 (20): = NULL;
    p_Pick_to_Subinventory varchar2 (20): = NULL;
    number of p_Delivery_id;
    Start
    Apps.mo_global.set_org_context(204,,'ONT');
    WSH_PICKING_BATCHES_PKG. () Insert_Row
    X_Rowid = > l_Rowid,
    X_Batch_Id = > l_batch_id,
    P_Creation_Date = > sysdate,.
    P_Created_By = > p_userid,
    P_Last_Update_Date = > sysdate,.
    P_Last_Updated_By = > p_userid,
    P_Last_Update_Login = > null,
    X_Name = > l_name,.
    P_Backorders_Only_Flag = > 'E ',.
    P_Document_Set_Id = > null,
    P_Existing_Rsvs_Only_Flag = > 'n',.
    P_Shipment_Priority_Code = > null,
    P_Ship_Method_Code = > null,
    P_Customer_Id = > l_Customer_Id,
    P_Order_Header_Id = > l_Order_Header_Id,
    P_Ship_Set_Number = > NULL,-l_Ship_Set_ID.
    P_Inventory_Item_Id = > l_Inventory_Item_Id,
    P_Order_Type_Id = > l_Order_Type_Id,
    P_From_Requested_Date = > null,
    P_To_Requested_Date = > null,
    P_From_Scheduled_Ship_Date = > null,
    P_To_Scheduled_Ship_Date = > null,
    P_Ship_To_Location_Id = > null,
    P_Ship_From_Location_Id = > null,
    P_Trip_Id = > null,
    P_Delivery_Id = > p_Delivery_id,
    P_Include_Planned_Lines = > 'n',.
    P_Pick_Grouping_Rule_Id = > l_pick_grouping_rule_id,
    P_pick_sequence_rule_id = > l_pick_sequence_rule_id,
    P_Autocreate_Delivery_Flag = > 'n',.
    P_Attribute_Category = > null,
    P_Attribute1 = > null,
    P_Attribute2 = > null,
    P_Attribute3 = > null,
    P_Attribute4 = > null,
    P_Attribute5 = > null,
    P_Attribute6 = > null,
    P_Attribute7 = > null,
    P_Attribute8 = > null,
    P_Attribute9 = > null,
    P_Attribute10 = > null,
    P_Attribute11 = > null,
    P_Attribute12 = > null,
    P_Attribute13 = > null,
    P_Attribute14 = > null,
    P_Attribute15 = > null,
    P_Autodetail_Pr_Flag = > 'Y ',.
    P_Carrier_Id = > null,
    P_Trip_Stop_Id = > null,
    P_Default_stage_subinventory = > p_Pick_to_Subinventory,
    P_Default_stage_locator_id = > null,
    P_Pick_from_subinventory = > p_Pick_From_Subinventory,
    P_Pick_from_locator_id = > null,
    P_Auto_pick_confirm_flag = > 'Y ',.
    P_Delivery_Detail_Id = > null,
    P_Project_Id = > null,
    P_Task_Id = > null,
    P_Organization_Id = > l_Organization_Id,
    P_Ship_Confirm_Rule_Id = > NULL,
    P_Autopack_Flag = > 'n',.
    P_Autopack_Level = > 0,
    P_Task_Planning_Flag = > null,
    p_regionID = > null,
    p_zoneId = > null,
    p_categoryID = > null,
    p_categorySetID = > null,
    p_acDelivCriteria = > null,
    p_RelSubinventory = > null,
    p_append_flag = > 'n',.
    p_task_priority = > null,
    p_allocation_method = > 'I ',.
    p_crossdock_criteria_id = > null
    );
    PRINT (L_BATCH_ID);
    l_request_id: = WSH_PICKING_BATCHES_PKG. Submit_Release_Request (l_BATCH_ID, null);
    dbms_output.put_line (l_request_id);
    end TEST_PICK_RELEASE;
    /

    I use R12...

    anyone can focus on this...

    Change this:

    P_Autocreate_Delivery_Flag-online 'n', to

    P_Autocreate_Delivery_Flag => 'Y,'

    BTW, since you are on R12 you can use wsh_picking_batches_pub to create a new batch and release it.

    Thank you
    Claire

Maybe you are looking for