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

Similar Messages

  • How to get Characteristic Values assigned to the line item of Sales Order?

    Hi,
    I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
    I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
    this fn. mod. giving all the Characters but not the assigned characteristic values.
    Is there any other way to find characteristic values of sales order.
    Thanks,
    vinayak.
    Message was edited by: vinayaga sundaram

    For example, please see this example program.
    It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
    report zrich_0001.
    * Internal Table for Characteristic Data
    data: begin of i_char occurs 0.
            include structure comw.
    data: end of i_char.
    data: xcabn type cabn.
    data: begin of xcawn,
          atwtb type cawnt-atwtb,
          end of xcawn.
    data: xvbap type vbap.
    parameters: p_vbeln type vbap-vbeln,
                p_posnr type vbap-posnr.
    start-of-selection.
      select single * from vbap into xvbap
                 where vbeln = p_vbeln
                   and posnr = p_posnr.
      clear i_char.  refresh i_char.
    * Retrieve Characteristics.
      call function 'CUD0_GET_VAL_FROM_INSTANCE'
           exporting
                instance           = xvbap-cuobj
           tables
                attributes         = i_char
           exceptions
                instance_not_found = 1.
      loop at i_char.
        clear xcabn.
        select single * from cabn into xcabn
                 where atinn = i_char-atinn.
        clear xcawn.
        select single cawnt~atwtb into xcawn
                   from cawn
                     inner join cawnt
                       on cawn~atinn = cawnt~atinn
                      and cawn~atzhl = cawnt~atzhl
                          where cawn~atinn = i_char-atinn
                            and cawn~atwrt = i_char-atwrt.
        write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
      endloop.
    Regards,
    RIch Heilman

  • ASCP should plan production of all lines of a Sales Order in the same IO

    Requirement details:
    1) We are running an ECC plan in OPM environment (Constrained Classic)
    2) There are 20+ manufacturing plants – all are equally capable of manufacturing any item
    3) Sourcing rules define the sequence in which plants should be loaded (first plant X, go to plant Y when capacity in plant X is full. Go to plant Z when capacity in plant Y is full… and so on.)
    4) Sales Orders are entered in a fashion where 1 SO = 1 container.
    5) There are 5-20 lines per sales order (for items A, B, C, D etc). Together, these items constitute a full container load (FCL)
    6) The composition of this FCL will vary from one Sales Order to another (e.g., customer 1 takes items A,B,C; customer 2 takes A,B,D; customer 3 takes A,B,C,D)
    7) To avoid transfers between plants, all lines of one SO should be assigned to same plant for production – even if that means delaying the shipment. The container will be loaded in that plant itself – instead of transferring it to a distribution center.
    As per our understanding, ASCP does not support such a requirement. We attempted the following:
    1) Defined following profiles:
    MSC: Maximum number of planned orders per demand = 1
    MSO: Maximum Demands per Group = 1
    MSO: Maximum Demands per Slice = 1
    2) Defined Demand Priority Rules:
    Schedule Date – 1
    Sales Orders, Forecasts & MDS Entries Priority – 2
    3) If there are 10 SOs with the same Scheduled Ship Date, they were given Planning Priority as 1, 2, 3 … 10
    4) All lines of a sales order were assigned the same ship set.
    With all the above settings, we could not achieve our goal. Any suggestions from the ASCP Gurus?

    Hi Navneet,
    Thank you for your reply. To answer your queries:
    (1) We have a dummy inventory org mentioned as ship-from org in all SOs (calling it 'dummy' - as physically there is no such IO). This is done because the marketing team does not know from which IO material will be shipped (we do not have GOP in scope).
    (2) Sourcing rules mention that a demand in the dummy IO can be met by orgs X, Y, Z etc (each one with 100% allocation, ranks 1, 2, 3 etc). There are no sourcing rules for transfers between X, Y and Z.
    (3) The intent is to fulfill a SO from single org with none of the items internally sourced from other orgs.
    Regards,
    Parikshit

  • MRP RUN for the more than one line item in sales order.

    Hi ,
    In the sales order nuber of line item are , i will have to take MRP RUN for selected line item .
    So plz suggest what development will require?
    Abhay
    Edited by: abhay patil on May 30, 2008 8:52 AM

    HI,
    U can write separate prog. Which will ask sales order no. and from to line item or multiple line item of sale order. Then in loop internally pass the each line item no to MD50 prog. Which will run in background.
    I will give u sample prog. Which I had created for running MRP for all the lines items of given sales order in one go.
    *& Report  ZPRG_PP_001
    REPORT  ZPRG_PP_001.
    tables vbak.
    data: begin of it_vbap occurs 1,
            vbeln  type    vbap-vbeln,
            posnr  type    vbap-posnr,
          end   of it_vbap.
    DATA: P_MODE   TYPE    C.
          Batchinputdata of single transaction
    DATA:   BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.
    selection-screen begin of block b1 with frame title text-001.
      parameters :   p_vbeln  like  vbak-vbeln obligatory.
      selection-screen skip.
      parameters :   p_fore   radiobutton group mode,
                     p_back   radiobutton group mode default 'X'.
    selection-screen end   of block b1.
    at selection-screen.
    Check Sales Order
      if not p_vbeln is initial.
        select single * from vbak
          where vbeln eq p_vbeln.
        if sy-subrc <> 0.
          message e499(sy) with 'Invalid Sales Order no.' p_vbeln.
        endif.
      endif.
    start-of-selecTION.
    Get Sales order items
      select vbeln posnr from vbap
        into table it_vbap
        where vbeln eq p_vbeln.
    Set BDC mode
      if p_back eq 'X'.
        p_mode = 'E'.
      else.
        p_mode = 'A'.
      endif.
    Process MD50 BDC
      LOOP AT IT_VBAP.
        perform bdc_dynpro      using 'SAPMM61X' '0160'.
        perform bdc_field       using 'BDC_CURSOR'  'RM61X-TRMPL'.
        perform bdc_field       using 'BDC_OKCODE'  '/00'.
        perform bdc_field       using 'RM61X-KDAUF'  IT_VBAP-VBELN.
        perform bdc_field       using 'RM61X-KDPOS'  IT_VBAP-POSNR.
        perform bdc_field       using 'RM61X-BANER'  '1'.
        perform bdc_field       using 'RM61X-LIFKZ'  '3'.
        perform bdc_field       using 'RM61X-PLMOD'  '3'.
        perform bdc_field       using 'RM61X-TRMPL'  '1'.
        perform bdc_dynpro      using 'SAPMSSY0' '0120'.
        perform bdc_field       using 'BDC_OKCODE'   '=XBAC'.
        CALL TRANSACTION 'MD50' USING BDCDATA MODE P_MODE.
        CLEAR BDCDATA.
        REFRESH BDCDATA.
      ENDLOOP.
    end-of-selection.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      CLEAR BDCDATA.
      BDCDATA-FNAM = FNAM.
      BDCDATA-FVAL = FVAL.
      APPEND BDCDATA.
    ENDFORM.
    Ajay P. Nikte

  • Want to automate process of adding schedule lines to a sales order

    Hi Experts,
    I want to change the schedule line data in sales order.So I Found a BAPI_SALESORDER_CHANGE.Is it ok if I go with this BAPI or is there some other way?
    Thanks in advance!!!!!!!!!!

    HI
    Yes it's ok, another solution can be to create a BDC program, but it's better and easier to use that BAPI
    Max

  • Adding Schedule lines to a sales order

    Friends,
      We have a requirement to clear the old un-delivered scheduled lines from a sales order and then add new schedule lines from a EXCEL file.  We were able to clear the old by putting in a new location.  Then, when we go to enter the new schedule lines, it clears the location, marks the Fixed date and Qty, and enters the delivery dates and confirmed quantities.  We tried using BAPI_SALESORDER_CHANGE, but the schedule_lines table only has the required quantity so when used it increases the order quantity, which is not good.  Is there any Function module that we can call to insert new schedule lines without increasing the order quantity other than using a BDC?  Thanks!

    Pasted below is the BAPI documentation for this parameter.
    "Check Table for Schedule Lines
    Description
    This parameter completes the following two tasks:
    Controls processing functions with the value in the UPDATEFLAG field (change indicator).
    The following entries are available:
    ' ':   Create new schedule lines
    I:     Create new schedule lines
    U:     Change existing schedule lines
    D:     Delete existing schedule lines
    Controls the field entry with check fields
    If the UPDATEFLAG field has been activated, the system only copies those fields to the data parameter that have been filled with 'X'."
    Nabheet

  • Maximum lines set on Sales Order view

    Hi All,
    This is happening with all sales orders with more than 8 items, where the rest of the items are not seen in the sale order after creation and save. For example 15 different type of material were sold to customer, the billing document view (VF03) showed all 15 line items, the delivery line items showed all 15 lines, but the sales order only showed the first 8 line items. The other last 7 items were not to be seen anywhere on the sales order.
    Is there a maximum view limit on sales orders? Anyone else has had a similar case?
    Thanks
    Sandip

    Hi Balaji,
    I tried to access SE51 but I have no authorization, and even though I maintain user accounts at my company I could not find more details in regards to this Tcode.
    I even tried to find some role associated with it but was unsuccessful.
    Hi Chandrasekhar,
    For the information in VOV8, the Display Range had 'UALL' in the field.
    And wierdly, when I clicked on the Item Overview, all items (15 different types) are shown, but when going back into the Sales Order View for the same order, only the first 8 are shown.
    The main problem here is that when doing a ZRE sales order, as we cannot do 'post goods receipt' for the 9th+n item.
    I appreciate the help.

  • Schedule line date in Sale order for backward sched.

    Dear Experts,
    In my MTO Scenario, I want to Use Backward Scheduling, so as any change in Schedule line dates in Sale order shall take effect at least in planned order Stage, i.e in output of MRP,
    But not happening so..
    I  have customized OPU5 and checked OPU3 as well,
    Please suggest...
    Regards
    Raghu

    HI Mario,
    Thanks for reply,
    I have not worked in this strategy but will try,
    What i found was, in Planned orders detailed scheduling tab, the Scheduling type appeares to be Forward, but when i convert it to Production order it shows backward scheduling.
    This duel behavior is difficult to understand.
    Regards
    Raghu

  • Add Line Item In Sales Order VA01

    HI All,
    I  have new requirement in creation of sales order . Here we have free promotion sales . Here if customer buy one material then he will get some other material as free .In standard sap we can give only one line item as free not more than that .
    Here our requirement is more than one line item . I suggested them maintain all the free materials in one Ztable when ever the original material  will come for  sales order then i have to fetch these materials from ztable  automatically and it should create sales order. I started doing this using user exit  FORM USEREXIT_MOVE_FIELD_TO_VBAP.
    These are the below links i checked in our sdn.
    Adding Line items to sales order on creation using User-Exit in VA01.
    Please give me some idea on this .
    Regards,
    Madhu.

    Hi Asik,
    Thanks for your reply.In my case i can not got for Bom  because the schemes will change for every ten days. I think Bom  creation will fill a lot of data but it wont solve my issue.
    Regards,
    Madhu.

  • How to add 100 line item in sales order at one time

    Hello Guru's
    My requirement is to add 100 line items in sales order at once.
    what can be good approach to overcome this situation.Is there some kind of tool which can be useful?
    Let me know your suggestions
    Thanks a lot in Advance

    Hi,
    do configuration for Proposal Items tab - like -
    then create sales order using with Propose items button - VA01 - then system will accept more than 50 line of materials at a time
    Please Use BAPI -- creation of Sales order
    Thanking you
    Regards
    Mahesh

  • How to make the line items of sales order cannot be deleted.

    Hi All,
    Is there any Enhancement spots or user-exits which make the line items of sales order cannot be deleted if item category is 'TAN'.
    Thanks in Advance,
    Sudhakar Reddy .A

    Hi All,
    If you doesn't want to delete sales order line items then we have write in the Include Program which has mentioned below and in the form .....endform.
    Program Name :  Include MV45AFZB
    _Example:_
    form userexit_check_xvbap_for_delet using us_error
                                              us_exit.
    IF .......
      US_EXIT = CHARX.
    ENDIF.
    endform.

  • To add the line item in Sales Order

    Hi Experts,
    I have to insert  the line item between two line item in sales order dynamically.
    How should i do this.
    any idea??
    Thanks in Advance.

    Hi,
    I guess you are talking about BOM, sub-items or free goods, wherein after you put in one item the other material defined gets added automatically in the sales order.
    That is done with the help of Item Category config by functional person.
    Check here for more info
    [Item Category|Re: Item Category;
    You can also use user exit MV45AFZZ form user_exit_move_to_vbap for a specific logic defined at runtime.
    Regards,
    Amit
    Edited by: Amit Iyer on Aug 26, 2009 10:21 PM

  • Delete the line item in sales order in VA01/VA02 when the quantity is modif

    Hi SAP,
       I have requirement to delete a line item in sales order.Please suggest me to do the same.
      THe scenarios is , we are inserting a free good line item based on some condition and quantity, If the quantity is modified  the free good line item inserted needs to be deleted.
    Waiting for your responce
    Thanks,
        Billa
    Moderator message : Spec dumping is not allowed,search for available information. Thread locked.
    Edited by: Vinod Kumar on Nov 14, 2011 1:54 PM

    Hi,
    Can you also check the SALES LINE.
    Sales line is the combination of SALES ORGANISATION + DISTRIBTION CHANNEL +PLANT.
    Hope it was not maintained.
    Transaction code : OVX6
    PATH:  IMG->ENTERPRISE STRCTRE->ASSIGNMENT>SALES AND DISTRIBTION->ASSIGN SALES ORG- DISTRIBTION-PLANT.
    please revert if the error still exists.
    santosh

  • What user exit can add / delete lines on a sales order?

    Hi experts -
    We are going to be using a 3rd party to give us pricing, so we need to make a call for each line item to get prices.  This may give us free goods, so we will need to add / remove lines from a sales order.
    Any ideas what exit will allow us to do this?
    Thanks,
    Mark

    Hi,
    Try BAPI:
    BAPI_SALESORDER_CHANGE
    Regards,
    Gilberto Li

  • Mrp run on no of line items in sale order

    hi all
    i have a sale order with o line items include.
    i want to run mrp on sale order only (not want to use MD50)
    can i use user exit for this task ? if so please advise which user exit i can use ?
    thanks

    Dear,
    Please refer this link,
    [Mrp run on no of line items in sale order|Re: MD50 issue]
    Regards,
    R.Brahmankar

Maybe you are looking for

  • Stock Snapshot using APD

    Hello all, Overview I have requirement to get monthly snapshot of stock for all Materials, Plants and other characteristic combination. "How to... Inventory guide" mentions about using snapshot ODS and then snapshot cube. Analysis I would like to avo

  • ITunes does not sync music to iPhone 4

    I just installed 10.5 iTunes and got iOS 5 on the phone but when I click "Sync" it goes through all the processes it used to but no music actually gets put on the phone. Yes, all the boxes are checked. No, there are no ! beside the songs in the libra

  • IPhone 4S ipod problem

    Is anyone else having trouble with the iPod feature on the iPhone? The artists and bands aren't in alphabetical order. [IMG]http://img87.imageshack.us/img87/3414/photo1l.png[/IMG] I have some bands that start with a W that are under the letter Y and

  • Cannot open attachment on onenote posted on Sharepoint

    Dear All. I've created OneNote with some PDF, Excel files attached. The problem is user can't open the attachment by double click or cant even see those attached file in SharePoint. Is there a way to let them open it with double click in SharePoint w

  • Creating a customised triangle wave

    Hello, We are using Labview to create a signal to control the motion of a scanning galvo.  We would like to create a triangle wave so that the galvo scans back-and-forth uniformly, but to ensure smooth changes in momentum, we need the "corners" of th