Pick Release using backend API

Hello All ,
I am trying to pick release one sales order using standard API WSH_DELIVERIES_PUB .
I am using the below block.
DECLARE
-- Standard Parameters.
p_api_version NUMBER;
p_init_msg_list VARCHAR2(30);
p_commit VARCHAR2(30);
--Parameters for WSH_DELIVERIES_PUB.Delivery_Action.
p_action_code VARCHAR2(15);
p_delivery_id NUMBER;
p_delivery_name VARCHAR2(30);
p_asg_trip_id NUMBER;
p_asg_trip_name VARCHAR2(30);
p_asg_pickup_stop_id NUMBER;
p_asg_pickup_loc_id NUMBER;
p_asg_pickup_loc_code VARCHAR2(30);
p_asg_pickup_arr_date DATE;
p_asg_pickup_dep_date DATE;
p_asg_dropoff_stop_id NUMBER;
p_asg_dropoff_loc_id NUMBER;
p_asg_dropoff_loc_code VARCHAR2(30);
p_asg_dropoff_arr_date DATE;
p_asg_dropoff_dep_date DATE;
p_sc_action_flag VARCHAR2(10);
p_sc_close_trip_flag VARCHAR2(10);
p_sc_create_bol_flag VARCHAR2(10);
p_sc_stage_del_flag VARCHAR2(10);
p_sc_trip_ship_method VARCHAR2(30);
p_sc_actual_dep_date VARCHAR2(30);
p_sc_report_set_id NUMBER;
p_sc_report_set_name VARCHAR2(60);
p_wv_override_flag VARCHAR2(10);
x_trip_id VARCHAR2(30);
x_trip_name VARCHAR2(30);
-- outparameters
x_return_status VARCHAR2(10);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
x_msg_details VARCHAR2(3000);
x_msg_summary VARCHAR2(3000);
-- Handle exceptions
fail_api EXCEPTION;
BEGIN
-- Initialize return status
x_return_status := WSH_UTIL_CORE.G_RET_STS_SUCCESS;
-- Call this procedure to initialize applications parameters.
FND_GLOBAL.APPS_INITIALIZE(
user_id => 7830
, resp_id => 51460
, resp_appl_id => 660);
-- Values for WSH_DELIVERIES_PUB.delivery_action
p_action_code := 'PICK-RELEASE'; -- Releases Lines related to a delivery
p_delivery_id := 16092; -- delivery ID that action is performed on
-- Call to WSH_DELIVERIES_PUB.Delivery_Action.
WSH_DELIVERIES_PUB.Delivery_Action(
p_api_version_number => 1.0,
p_init_msg_list => P_init_msg_list,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
p_action_code => p_action_code,
p_delivery_id => p_delivery_id,
p_delivery_name => p_delivery_name,
p_asg_trip_id => p_asg_trip_id,
p_asg_trip_name => p_asg_trip_name,
p_asg_pickup_stop_id => p_asg_pickup_stop_id,
p_asg_pickup_loc_id => p_asg_pickup_loc_id,
p_asg_pickup_loc_code => p_asg_pickup_loc_code,
p_asg_pickup_arr_date => p_asg_pickup_arr_date,
p_asg_pickup_dep_date => p_asg_pickup_dep_date,
p_asg_dropoff_stop_id => p_asg_dropoff_stop_id,
p_asg_dropoff_loc_id => p_asg_dropoff_loc_id,
p_asg_dropoff_loc_code => p_asg_dropoff_loc_code,
p_asg_dropoff_arr_date => p_asg_dropoff_arr_date,
p_asg_dropoff_dep_date => p_asg_dropoff_dep_date,
p_sc_action_flag => p_sc_action_flag,
p_sc_close_trip_flag => p_sc_close_trip_flag,
p_sc_create_bol_flag => p_sc_create_bol_flag,
p_sc_stage_del_flag => p_sc_stage_del_flag,
p_sc_trip_ship_method => p_sc_trip_ship_method,
p_sc_actual_dep_date => p_sc_actual_dep_date,
p_sc_report_set_id => p_sc_report_set_id,
p_sc_report_set_name => p_sc_report_set_name,
p_wv_override_flag => p_wv_override_flag,
x_trip_id => x_trip_id,
x_trip_name => x_trip_name);
if (x_return_status <> WSH_UTIL_CORE.G_RET_STS_SUCCESS) then
raise fail_api;
else
dbms_output.put_line('The delivery '||p_delivery_id || ' is successfully pick released');
end if;
EXCEPTION
when fail_api then
WSH_UTIL_CORE.get_messages('Y', x_msg_summary, x_msg_details,x_msg_count);
if x_msg_count > 1 then
x_msg_data := x_msg_summary || x_msg_details;
Dbms_output.put_line('Message Data : '||x_msg_data);
else
x_msg_data := x_msg_summary;
Dbms_output.put_line('Message Data : '||x_msg_data);
end if;
END;
However I am geting the following error.
Message Data : Error: Number of concurrent requests launched successfully: 0. Number of requests that failed: 1.Error: Launching Pick Release failed for Delivery 16092.
I am able to do Pick Release from front end .
Regards,

Hi there,
I need to create custom Pick Release code as part of whole new Shipping Module.
Can you share with me the backend code you have for 'Pick Release'?
I'll appreciate that very much.
And also please let me know the release level of your Oracle Applications.
Thanks.
Bobby

Similar Messages

  • Need API Name for PIck Release and Ship Confirm for WMS Module

    Hi All,
    One if my requirement is that Initially I will create Internal Sales Order and send to the other system (legacy) there they do the shipping then they provide the flat file which contains shipping information. Based on the incoming file I will close the order. Here they are using the WMS to process the pick release and ship confirm.
    Can any one please help me how to do pick release and ship confirm by using an API or Interface in WMS. If knows please provide the name of the API's and flow.
    Thanks,
    Prasanna

    For external orders we have a solution on WMS_DEVICE_CONFIRMATION_PUB api.
    may be you have done pick release using this api in WMS enabled organizations. After pick release
    you can use WSH api to do Ship Confirm.
    Anatoly.

  • 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

  • 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

  • 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 API doesn't update records

    Does anybody has any documentation on how the wsh_deliveries_pub.delivery_action API works.
    The lack of documentation sucks. I am running the following procedure to pick release a delivery...
    wsh_deliveries_pub.delivery_action(
    p_api_version_number => 1.0 ,
    p_init_msg_list => null,
    x_return_status => v_return_status,
    x_msg_count => v_msg_count,
    x_msg_data => v_msg_data,
    p_action_code => 'PICK-RELEASE',
    p_delivery_id => 407,
    p_delivery_name => 407,
    x_trip_id => v_trip_id,
    x_trip_name => v_trip_name
    This returns return_status of 'S', and msg_count of 0.
    When I look at the status of the delivery, which hasn't changed.
    Can somenody tell me if I am doing anything wrong here???
    I really appreciate your help...
    Thanks a ton,
    Venkat

    (Related StackOverflow question: http://stackoverflow.com/questions/28555056/publishing-doesnt-update-the-api-azure-mobile-service)
    Your browser is probably just caching the page. If you can connect to the new endpoints, then they are definitely there. Try using a different browser or running in Incognito or InPrivate mode.

  • 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

  • Include planned line parameter in pick release api

    Hi all,
    During Pick Release API , how can I set the include planned lines parameter (P_INCLUDE_PLANNED_LINES ) to yes .
    Currently it is giving No in WSH debugger report.
    can anyone help me ?
    regards
    sanjay

    Hello Nagamohan,
    Much appreciated.
    But our current process is, we are using the seeded program (wsh_pick_list.release_batch_srs).
    This is doing pick_release for all the items in a order.
    example: we have 100 items. user has to enter in my new form = 35 items....so I will use my API to pick release only 35 instead of 100.
    I did all my research, I am able to create MO header/line, PICK confirm API is ready.
    BUT only concern is: I am not able to populate the table MTL_MATERIAL_TRANSACTIONS_TEMP after (create_batch, MO_header/line,pick_release API).
    Could U please let me know...how can I populate the TEMP table above with valid data....which API does for this.....in MTL_TXN_REQUEST_LINES table I can't see (TXN_SOURCE_ID & TXN_SOURCE_LINE_ID ).
    I am struggling this issue last 2 weeks. Noone answered in this page or in metalink. I am not sure, if many people have faced this type of situation.
    Thanks
    Satya Pal
    [email protected]

  • How to generate single move order for same components amongs different job using component pick release

    Hi all,
           I am new in manufacturing and we want to implement functionality of generating single move order for same component among different job using component pick release. Can any one help in this.
    we are using oracle R 12.1.3 version.
          For example. We create finish good XYZ which is build in WIP item. We create discrete jobs for XYZ suppose JOB1,JOB2,JOB3 multiple job we can create for XYZ item. in these JOB suppose component abc is similar with 5 quantity. so our goal is to generate 1 move order for all three JOBS with 15 quantity of abc component.
    please help me to achieve this goal. Immediate  Reply will be appreciated.
    Thanks & Regards
    user11152750

    PranitSaha
            Thanks For your reply. Can you please tell me in detail how can I group as I am new. How using MRP we can group same component from different job in single move order for delivering that component to shop floor.
    Thank you..

  • 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

  • Pick release without pick confirm

    Hi All,
    I am using wsh_deliveries_pub.delivery_action API to pick release my delivery.How ever it's pick confirming also.
    My requirement is to 'release to warehouse',I dont want to make auto pick confirm as 'Yes'.Here I am giving action_code as PICK-RELEASE'
    Could anyone please help me here how to pick release a delivery by making auto pick confirm as no.Is there any flag i need to set in wsh_deliveries_pub.delivery_action.
    Thanks much in advance.
    Regards,
    Sireesha

    Hi,
    check whether WSH_PICKING_BATCHES_PUB.RELEASE_BATCH can be used (Not Tested)..

  • Can I use external APIs to authenticate users?

    I have been asked to develop a lightswitch application either as desktop client or HTML client. Now I am confused about the authentication
    mechanism in LightSwitch, and it leads a question: Can I authenticate my users from an external website or application?  
    For the HTML client, I have been thinking that whether I could use external APIs like Facebook Login API to authenticate my users? If I could, the code should be JavaScript, then where should I put it, and how can I configure my LS application?
    For the desktop client, same question, if I could identify my users by pulling some user information from an external website, what kind of code/Programming Language shall I use? 

    Hey ConnorTx!
    This is not supported out of the box.
    For in-browser desktop applications, you can hack around this by setting up the social media credentials, then redirecting to your desktop application while passing the self-encrypted credentials.  I explained this workaround in
    this article.
    I don't have enough production experience with HTML apps yet.  However when you use Forms authentication, I suspect you can simply fill in the IPrincipal on the HttpContext.Current, then redirect to your HTML app, and the LightSwitch Forms Auth mechanism
    would pick up your principal as valid credentials.  I wish I had time to show you some code for this, would make a great blog post :/
    Keep rocking LS!
    Jan
    It's your story - time to switch on the innovation.||About me||LightSwitch blog

  • 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

  • How to access an External LDAP on a weblogic server using OPSS APIs.

    Hi,
    Can anyone let me know how I can access an External LDAP configured on a weblogic server using OPSS APIs( or alternative APIs).
    I'm currently using the below snippet and I'm getting only the Users and groups from the DefaultAutheticator on the weblogic server and not the external LDAP Server.
    I've verified the providers, users and groups on the weblogic server console and can see that external LDAP server content is being picked, but my below code does not query them.
    import oracle.security.idm.IMException;
    import oracle.security.idm.IdentityStore;
    import oracle.security.idm.Role;
    import oracle.security.jps.JpsContext;
    import oracle.security.jps.JpsContextFactory;
    import oracle.security.jps.JpsException;
    import oracle.security.jps.service.idstore.IdentityStoreService;
    List<Role> rowData = null;
    JpsContextFactory ctxf = JpsContextFactory.getContextFactory();
    JpsContext ctx = ctxf.getContext();
    IdentityStoreService storeService = ctx.getServiceInstance(IdentityStoreService.class);
    IdentityStore idStore = storeService.getIdmStore();
    rowData = this.getRoles(idStore, "*");
    Any help or pointers are highly appreciated.
    Thanks,
    Bhasker

    Can anyone please provide any suggestions. I trying to google around but still not able to find any solution.
    Thanks,
    Bhasker

  • 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.

Maybe you are looking for

  • My built-in webcam is not working. Macbook not recognizing it?

    Ive had no problems with my built in webcam before but for some reason today and yesterday my Built in Macbook camera is not showing.. No Green light and no camera? Skype, photobooth, Imovie, online sites, Ichat, Nothing Works with my camera, it says

  • CS4 psd file display problem

    For some reason within the last few months a problem with the colors that Photoshop is displaying in the application. The colors are not actually wrong if you check the color picker, it's just how it actually looks when you're working on it. In addit

  • DES decryption

    Hi, If I have a file that is DES encrypted and I know the String key value e.g. "8AE.B(,5". How can I decript the file? Thanks in advance. PS I also need to GUNZIP this afterwards... String x = "8AE.B(,51";                byte[] keyBytes  = x.getByte

  • Integrate LDAP with ALBPM Enterprise

    hi, Did anyone tried to integrate LDAP with ALBPM Enterprise? If using LDAP for creating directory, will it create a new schema in LDAP? If need to make use of existing LDAP schema, how can we do it? Need HELP!!! Thanks

  • Infotype Master Data - TCODE for recording

    Hi HCM Experts, I am just new to HCM and engaged in data conversion template preparation. I will be executing BDC for below info types. I explore few Tcode in HCM and found that infotypes are repeating on other HCM Tcode also. Would seek advise on be