Pick Release Batch generation

Hi All,
I want to automate the whole process of Pick Release->Ship Confirm
For this I need to call the APIs. But I am not sure about which APIs I need to call.
However I plan to first Create the Batch_id (WSH_PICKING_BATCHES_GRP.Create_Batch) for particular Order, then using this batch id I will call pick release API(wsh_pick_list.release_batch). But here I am not getting how to generate the batch_id. Kindly help, if other ways then also suggest.
Thanks
Sachin.

The flow is this..
wsh_picking_batches_pub.create_batch creates a row in the wsh_picking_batches. This gives batch_id created in this table. If you pass the value, you can pass using the sequence mentioned earlier. If not it generates the batch_id on its own using the same sequence.
wsh_picking_batches_pub.release_batch creates a move order (creates records in mtl_txn_request_headers and mtl_txn_request_lines and if you choose auto allocate mtl_material_transactions_temp). This also creates a delivery if you wish when the parameter (a column in the table wsh_picking_batches) says autocreate delivery. If you want to manually allocate and not part of the release_batch you can use inv_pick_release_pub.
Now the order line is ready to be pick confirmed. You pick confirm using inv_pick_wave_pick_confirm_pub.
You can automate all these steps just in release batch API if the item does not have any inventory controls and assigning the ship confirm rule to the the batch.
If not you can you use wsh_deliveries_pub to ship confirm the order line.
Thanks
Nagamohan

Similar Messages

  • R12.1.3 - Pick release for batches completing in error during upgrade

    Hi,
    We are upgrading from 11.5.9 to 12.1.3.  Pick release for batches fails with the following error message in log file.
    The delivery lines given in the log file all have sub-inventory restricted items. We don't use WMS.
    Any help/pointers greatly appreciated!
    Scenario:
    =======
    Batch pick release performed for sub-inventory "A". The program "Pick Selection List Generation" fails with the following error message.
    Items on the failed delivery lines are sub-inventory restricted and assigned to sub-inventories "B", "C" & "D".
    Error Message:
    ============
    Could not Create Move Order Line for Delivery Detail XXXXX
    Delete Line 9.990000000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000E+125
    Error occurred in Inv_Pick_Release_Pub.Pick_Release
    ORA-22160: element at index [32] does not exist in Package INV_Pick_Release_PUB
    Procedure Pick_Release
    Unexpected error from INV_Pick_Release_Pub.Pick_Release. Exiting
    SQLCODE: 1 SQLERRM: User-Defined Exception
    Exception occurred in WSH_PICK_LIST.Release_Batch_Sub
    Error occurred in Release_Batch_Sub
    SQLCODE: 1 SQLERRM: User-Defined Exception
    Exception occurred in WSH_PICK_LIST
    Thanks,
    Renganayaki S

    Please see if the following docs help.
    Pick Release Error: 'Could not Create Move Order Line for Delivery Detail'. (Doc ID 748927.1)
    Cannot Pick Release Non-Inventory OPM Items In R12 (Doc ID 1481238.1)
    Pick Slip Report Complete With Null Value After Release Sales Order (Doc ID 1362175.1)
    If none of the above helps, you may log a SR.
    Thanks,
    Hussein

  • I want to Pick Release in 11.5.9 through API , What API I can Used?

    Hi.expert
    I want to Pick Release through API in 11.5.9, What API I can Used?

    You need to apply patch 3438823 which provides the Pick Release Public API to create and release a picking batch and also provides the functionality to allow picking criteria of groups of items based on Item category and category sets and also provision is provided to "exclude/include only" ShipSets/SMCs in a batch.
    Check Note: 435444.1 - WSH_PICKING_BATCHES_PUB Package for Pick Release Public API does not Exist in Release 11.5.9
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=435444.1

  • Pick Release SRS

    I need to perform Pick Release via SRS or a batch mode. There is a specific requirement to Pick Release 5 days before Scheduled Ship Date of the Sales Order Line.
    How can i do this function? There is no such parameter while defining Pick Release Rules and there are many Pick Release Rules (at least 10) defined in the system.
    Thanks
    Pankaj

    Hi,
    You may use this solution as a last option.
    1. Create a picking rule with TO_SCHEDULED_SHIP_DATE, say upto 26th.
    2.i.e. all orders to be shipped upto 5 days from today.
    3. Write a small conc. prog. to update the picking rule daily to move this date to date +1.
    Regards,
    Srini
    null

  • How to use Pick Release Rule  while doing pick relase from API.

    Hi All,
    I need to Pick Release the Order based on pick release rule through and API. I am using WSH_DELIVERY_PUB to do Pick release/confirm.
    I did not find any parameter in the API which allows to use Picking rules for Pick Release.
    Is there any way we can do the PICK RELEASE using Picking Rule through APIs.
    Any information on this will be appreciated.
    Thanks
    Sreenivasa Gurani.

    Hi Srini,
    You need to use WSH_PICK_LIST.RELEASE_BATCH API, this one has two parameters
    1. p_batch_id -- Get it from WSH_DELIVERY_DETAILS tables
    2. p_log_level -- Not requires
    Or
    By Using this API you create the Batch
    WSH_PICKING_BATCHES_PUB.CREATE_BATCH -- This API Returns Batch id
    use this batch_id for WSH_PICK_LIST.RELEASE_BATCH
    Thanks
    Reddy

  • Sales Order not getting Pick Release and getting BACKORDERED

    Hi Gurus,
    There is an order in oracle production. When user try to Pick Release this order the order is not getting picked instead it is getting backordered. The line quantities are available and it is also not in hold. I also see the log files of ‘Pick Slip Generation report’, but it shows no error message. Do you have any idea on this?
    Thanks,
    SamD

    Are the quantities in a reservable subinventory?
    If you go to material workbench, does the quantity show as available to reserve?
    Did you specify a subinventory in the release process?
    Does the sales order line have a subinventory on it?
    Check if your onhand is in staging subinventory?
    Check older threads on this issue such as http://kr.forums.oracle.com/forums/thread.jspa?threadID=603998
    Sandeep Gandhi

  • URG: ORACLE ERROR 6502 IN FDPSTP IN PICK SELECTION LIST GENERATION

    Dear All,
    I'm on 11.5.7 on Linux.
    My problem is with WSHPSGL: Pick Selection List Generation that ends with error when launched from transactions form.
    The program end with the following error:
    Oracle Shipping: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    WSHPSGL module: Pick Selection List Generation
    Current system time is 14-NOV-2002 11:26:13
    **Starts**14-NOV-2002 11:26:14
    ORACLE error 6502 in FDPSTP
    Cause: FDPSTP failed due to ORA-06502: PL/SQL: numeric or value error:
    character to number conversion error
    ORA-06512: at line 1
    If we launch the report trough OM Superuser - Shipping - Release Sales Orders -
    Release Sales Orders, there's no error.
    Has anyone have this kind of error? How can we solve it?
    Any help would be greatly appreciated.
    Thanks in advance
    FG

    EBS is 11.5.10.2
    OS is OEL 5.3.
    It was running fine until yesterday.But its giving error today.
    error log shows exception in Release_Batch_SRS procedure.
    exact code is ---
    ++++++++++++++++++++++++
    IF G_CONC_REQ = FND_API.G_TRUE THEN
    l_ret_code := FND_CONCURRENT.SET_COMPLETION_STATUS('ERROR','');
    errbuf := 'Exception occurred in Release_Batch_SRS';
    retcode := '2';
    END IF;
    ++++++++++++++++++++++
    Thanks,
    Rakesh

  • API to pick release a sales order

    Hi All,
    I have a requirement of picke releasing a sales Order from back-end.
    I have the order in the booked status, In my pick release program I am calling the program to generated the batch id by calling the package WSH_PICKING_BATCHES_PKG.Insert_Row(), and then release the batch by calling
    WSH_PICK_LIST.release_batch(), but the order is not pick release.
    I found out that WSH_PICKING_BATCHES_PKG.Insert_Row(), generates a batch id but it is not inserting data into the table WSH_PICKING_BATCHES, I dont know why. Can anyone help in this regard as to where the problem might or what other API's if they exist can be used to pick release the order.
    Any method of pick releasing suggested will be highly appreciated.
    I am in 11.5.9 and we dont have the patch 3438823 applied in our system.
    Thanks
    Ashwini

    we are using these 2 APIs, it works.
    apps.wsh_picking_batches_pub.create_batch
    and
    apps.wsh_picking_batches_pub.release_Batch

  • Pick Release

    a)What is the significance of Pick Releasing from the Release Sales Orders Window compared to the shipping executions form?If I mention the source shipping subinventory in both the RSO form as well as at the Master Item level, which one takes precedence?
    b)If I do pick rls using the Shipping Trx form, which is the source subinventory considered by the system?
    Thx.

    By using the Pick releasing form you'll be able to batch-release orders. Meaning that you'll create one move order and a delivery_id for the range of SO you release. I personally use the Shipping execution form to release single lines that got backordered or by another reason did not get released from the form. The subinventory will be defined in you Picking rule but when you release the SO from the shipping execution form, I beileve, it'll allocate the qty to transactables subinventories in alphabetic order.
    Hope this helps.
    CC

  • Pick selection list generation - srs

    EBS R12
    OS Linux
    I am submitted the program "pick selection list generation - srs", by using the fnd_submit API, this is supposed to pick the Sales Order and Release the Sales Order.
    Program is getting completed successfully, but is not picking the Sales Order.
    Can any body tell me the required setups for using this program.
    Regards,
    PK

    Hi PK,
    Try the following..I think for some last options.
    1. Subinventory specified as release criteria, and the order lines do not have a subinventory specified.
    2. A specific sales order is entered, and the scheduled ship date or request date ranges are outside the dates specified in the order. For example, order 12345 was entered and booked with scheduled ship date of Nov 1, 2009; and when pick releasing this order, a scheduled ship date range of Oct 1 2009 through October 31 2009 was specified.
    3. Shipping warehouse specified on the Pick Release form is not the same as the shipping warehouse specified on the order.
    Thanks
    -Arif.

  • R12 Order Management Setup and API for Pick Release

    Hi All,
    I am doing pick release using Release Sales Order form of Order Management of Oracle Apps R12. Pick Release process is going fine , but the the status of lines are not getting updated. If we explicitly do reservations before pick release and then do pick release from Release Sales Order form, line status is being updated as pick released. If we do pick release from Shipping Transactions Form, then there is no need of explicit item reservations. Please suggest me, is there any setup steps to be done, so that i will tell the functional guys to do it.
    Also I am executing the WSH_PICKING_BATCHES API for create batch and release batch, the same thing i.e the pick release process is working fine but the line status is not getting updated.
    Is Release Sales Order form and Shipping Transactions Form uses different API's to do the pick release?.
    If we have to do explicit Item Reservations, what is the API used?
    Thanks and Regards,
    Mahesh
    Edited by: magu on May 1, 2009 11:59 AM

    I figured out the problem. In Release Sales Order Form, we have to uncheck the Prior Reservations Only check box, so that the items will be first reserved and then pick release.
    Thanks and Regards,
    Mahesh

  • Submit Pick Release Document Set

    Hi All,
    I want to submit the pick release document set as concurrent request(If document set has 2 reports defined, it has to submit 2 concurrent reqiests). Can I know the API please and also sample code if any.
    Thanks and Regards,
    Mahesh

    Hi,
    I want to run Pick slip report(Reports concerned with pick release). I am not getting any errors. I am able to submit the concurrent request. The document set has shipping exceptions report also. In that report i am getting request_id parameter as -99 even though i am passing the request id. I want to know which request id i need to pass. I am passing Pick Selection List generation concurrent program request id.
    Thanks and Regards,
    Mahesh

  • Pick Release single line in a sales order

    Hi All,
    I want to pick release a single line from a sales order i.e if i have a sales order which has 3 lines and i want to pick release first line using Release Sales Order form of OM R12. I am giving the delivery detail id in Release Sales Order form, it is creating the concurrent request but it is not pick released. Please suggest what are the other parameters that has to be given so that i can pick release a single line of a sales order.
    Thanks and Regards,
    Mahesh

    Hi,
    Sorry for late reply. You have to use WSH_DELIVERY_DETAILS_GRP.delivery_detail_action.
    Script is as follows.
    DECLARE
    cursor lcu_det is
    SELECT released_status,
    organization_id,
    container_flag,
    source_code,
    lpn_id,
    CUSTOMER_ID,
    INVENTORY_ITEM_ID,
    SHIP_FROM_LOCATION_ID,
    SHIP_TO_LOCATION_ID,
    INTMED_SHIP_TO_LOCATION_ID,
    DATE_REQUESTED,
    DATE_SCHEDULED,
    SHIP_METHOD_CODE,
    CARRIER_ID,
    shipping_control,
    party_id,
    line_direction,
    source_line_id,
    move_order_line_id
    FROM wsh_delivery_details
    WHERE delivery_detail_id = 4369052;
    l_rec_attr_tab WSH_GLBL_VAR_STRCT_GRP.Delivery_Details_Attr_Tbl_Type;
    lr_action_prms WSH_GLBL_VAR_STRCT_GRP.dd_action_parameters_rec_type;
    lr_dummy_defaults WSH_GLBL_VAR_STRCT_GRP.dd_default_parameters_rec_type;
    v_msg_index_out NUMBER;
    x_msg_count NUMBER(10);
    x_return_status VARCHAR2(10);
    x_msg_data VARCHAR2(4000);
    x_action_out_rec WSH_GLBL_VAR_STRCT_GRP.dd_action_out_rec_type;
    BEGIN
    FND_GLOBAL.apps_initialize(1788,50577,660);
    lr_action_prms.caller := 'WSH_PUB';
    lr_action_prms.action_code := 'PICK-RELEASE';
    l_rec_attr_tab(1).delivery_detail_id := 4369052;
    open lcu_det;
    fetch lcU_det into
    l_rec_attr_tab(1).released_status,
    l_rec_attr_tab(1).organization_id,
    l_rec_attr_tab(1).container_flag,
    l_rec_attr_tab(1).source_code,
    l_rec_attr_tab(1).lpn_id,
    l_rec_attr_tab(1).CUSTOMER_ID,
    l_rec_attr_tab(1).INVENTORY_ITEM_ID,
    l_rec_attr_tab(1).SHIP_FROM_LOCATION_ID,
    l_rec_attr_tab(1).SHIP_TO_LOCATION_ID,
    l_rec_attr_tab(1).INTMED_SHIP_TO_LOCATION_ID,
    l_rec_attr_tab(1).DATE_REQUESTED,
    l_rec_attr_tab(1).DATE_SCHEDULED,
    l_rec_attr_tab(1).SHIP_METHOD_CODE,
    l_rec_attr_tab(1).CARRIER_ID,
    l_rec_attr_tab(1).shipping_control,
    l_rec_attr_tab(1).party_id,
    l_rec_attr_tab(1).line_direction,
    l_rec_attr_tab(1).source_line_id,
    l_rec_attr_tab(1).move_order_line_id;
    close lcu_det;
    WSH_DELIVERY_DETAILS_GRP.Delivery_Detail_Action(
    p_api_version_number => 1.0
    ,p_init_msg_list => FND_API.G_FALSE
    ,p_commit => FND_API.G_TRUE
    ,x_return_status => x_return_status
    ,x_msg_count => x_msg_count
    ,x_msg_data => x_msg_data
    ,p_rec_attr_tab => l_rec_attr_tab
    ,p_action_prms => lr_action_prms
    ,x_defaults => lr_dummy_defaults
    ,x_action_out_rec => x_action_out_rec);
    IF x_msg_count > 0 THEN
    FND_MSG_PUB.get (
    p_msg_index => 1
    ,p_encoded => 'T'
    ,p_data => x_msg_data
    ,p_msg_index_out => v_msg_index_out);
    IF x_return_status = 'S'
    THEN
    DBMS_OUTPUT.PUT_LINE(x_msg_data);
    END IF;
    END IF;
    END;
    Thanks and Regards,
    Mahesh

  • Pick Release 11.0.3

    Hi,
    We are getting error in the log while submitting concurrent request in release sales order form pick release as below and in pick slip we are getting 'no data found' message.
    Here is the error in the pick release log file
    WSH_UNSUPPORTED_ARG IN DOC printer BPA Bar Code Font Downloader
    Error in WSH_DOC_SETS.Print_Document_Sets
    &Document in your Document Set has an argument, printer, which is not supported
    by the Document Set Submission API. Please rename the argument. (DOCUMENT=BPA Bar Code Font Downloader)
    Error-wshpimn: Error in WSH_PR_PICKING_SESSION.Launch_Doc_Set
    Error in launching document set.
    Here is the error in the pick slip log file
    REP-1897: Error in column 5 of line 11 of printer definition file /export/oracle/appltop/PRD/fnd/11.0.28/reports/HPLBPA:
    Non-numeric user-defined printer codes are not supported.
    Can anyone help me out?
    Thanks for your help.
    Prasad.

    Hi Prasad,
    I am also getting the same error while running a custom report,since i made some changes in.prt file.
    If u get a soultion for this ,Please post here.

  • How to DIsable Partial Pick Release in Sales Order Pick Release

    Hi Everyone,
    A Basic doubt.
    In Sales Order Pick Release, supposing I want to pick only if the entire requested quantity is available.
    I would rather have the Order Backordered than to pick partially.
    How to enable this.(similar to what we have in the COmponent Pick Release in WIP)
    regards,
    Karthi Sankar!

    Hi Karthi,
    To prevent a partial Pick Release:
    1. Make each of the sales order lines a Ship Set
    On the Sales Order, Lines, Shipping tab
    Scroll to the right for Ship Set column
    Enter a Ship Set number.
    2. In Shipping Parameters, Pick Release tab, check the box for Enforce Ship Sets and Ship Models
    Note: - Each Sales Order line should have a unique ship set number -
    Unless you want some of the lines to ship together.
    If that is the case, then the lines that need to ship together should have same set numbers
    Thanks & Regards,
    Srinivasulu Vakati

Maybe you are looking for