Picking status change in Outbound delivery

Hi All,
I have to create a start condition in PPF actions, whihc is nothing but BADI... whihc will trigger when the Pcikinf status is changed....
I have these threee condtions:
Action will be triggered by outbound delivery order status change:
1.     Picking planned status at header level changed after warehouse order creation/cancellation  (corresponds to Focus2 status      0 u2013 Forecast);:
u2022     from u201CNot startedu201D to u201CCompletedu201D and back from u201CNot startedu201D to u201CPartially completedu201D and back ;
u2022     from u201CPartially completedu201D to u201CCompletedu201D and back;
2.     Picking status changed at header level after execution each of warehouse order in drop location (corresponds to Focus2 status      1 - BeginPicked);
u2022     from u201CNot startedu201D to u201CPartially completedu201D and back;
3.     Picking status changed at header level after execution of last warehouse order in drop location (corresponds to Focus2 status      2 - Picked):
u2022     from u201CNot startedu201D to u201CCompletedu201D and back;
u2022     from u201CPartially completedu201D to u201CCompletedu201D and back;
any help????
I want to know how can i code this??

Hi,
In the BADI, you can get reference to Delivey Object
lo_dlv_ppf TYPE REF TO /scdl/cl_dlv_ppf.
lo_prd                TYPE REF TO /scwm/cl_dlv_management_prd.
get delivery reference
  lo_dlv_ppf ?= io_context->appl.
Get the attributes DOCID, the find the status of the documents accordingly.
Now get the instance of the Delivery management:
lo_prd = /scwm/cl_dlv_management_prd=>get_instance( ).
Then read Delivery header and items using the below method based on DOCID:
APPEND is_docid TO lt_docid.
  ls_include_data-HEAD_PARTYLOC  = abap_true.
  ls_include_data-HEAD_DATE      = abap_true.
  ls_include_data-HEAD_TRANSPORT = abap_true.
  ls_include_data-ITEM_DATE      = abap_true.
  ls_read_options-data_retrival_only = abap_true.
  ls_read_options-mix_in_object_instances = abap_true.
CALL METHOD lo_prd->query
        EXPORTING
          it_docid        = lt_docid
          iv_doccat       = is_docid-doccat
          is_read_options = ls_read_options
          is_include_data = ls_include_data
        IMPORTING
          et_headers      = lt_whr_headers
          et_items        = lt_whr_items.
You can find header status in lt_wr_headers.
Or based on DOCID, get status from table /SCDL/DB_STATUS.
Hope that helps
Vinod.

Similar Messages

  • Update the overall pick status of a outbound delivery  at header level

    Hi Experts
    Is there any way to directly update the outbound delivery ( VL02N) status at header level (VBUK-KOSTK) , OverllPickStatus
    quick response is appreciated
    Thanks
    Satish

    try MV50AFZZ.
    Regards
    Peram

  • User Status Profile for Outbound Delivery in EWM

    Hi Gurus,
    I have the following scenario. We're working with invoice before goods issue. Invoice is created upon user request on transaction /scwm/fd on option "Request Invoice + Save".
    After the invoice Request is sent to ERP we need to block the possibility of deletion of the outbound delivery.
    Send the request to ERP changes system status DIN on outbound delivery header. We've created a custom status profile with just one status (code BS02).
    This status is set when standard "Request Invoice" is set. This works fine. On this custom status, we've marked the option for business transaction "Delete Document" as forbidden. This doesn't work. Even with our custom status active, its still possible to delete outbound delivery.
    The custom status is has the "Outbound Delivery" object type allowed and its assigned to standard "/SCDL/OUT_FD_STANDARD" profile.
    Anyone have any idea what could be the problem?
    Thanks in advace.
    Felipe Tripodi

    Hi Christian,
    Thanks for your reply.
    We've decided to implement badi "Validation for Actions" within delivery due to the lack of time to resolve the issue. This decision was based on note "1833378 - Prevent deletion of outbound delivery with invoice". This note gives you sample code for badi to check ERP billing status before deleting the document. We've adapted the code for our needs and it works great!
    After your reply, i spent a little more time on user status, and found an OSS note that guides you trough some configuration steps on tcode /BOPF/CONF_UI. After applying this setting for business object /SCDL/FDO, the user status also worked fine!
    Best Regards,
    Felipe Tripodi 

  • BOM item qty does not change when header qty changes in Outbound Delivery

    Hi,
    We are using sales BOM and exploding it in Sales Order.  ( Item category of components as TAE )
    I am creating a delivery with reference to  a sales oder ( i have maintained copy controls to copy header and item data). Now when i change BOM header quantity in delivery document system is  not redeterming the components quantity , item quantity of the components does not change.
    Please let me how can i control item qunatity when BOM heade quantity changes in outbound delivery document
    Thanks
    Venkata Rama Reddy.K

    Hello Venkata,
    The components item category is TAE, that means the item category for the header item will be TAQ. Also the pricing will be carried out at the header item level only.
    Now for your query:
    The standard item category controls of TAQ will not have any connection between the header & the item level quantities in the delivery. If you change the quantity of the header item in the sales order, the quantity of the compnenets will be automatically adjusted. But this will not happen in the delivery with the normal settings of TAQ.
    Solution:
    Go to transaction code VOV7 - select TAQ - double click - In the Bill of Material/Configuration section , there is a field "Create Delivery Group" - select "X - Form delivery group with one delivery date".
    Save the settings. Now create a new sales order & then create the delivery & try to change the quantity of the header item, the system will automatically change the quantity of the components. (the system may not change the quantity of the components in the delivery of the old sales order - change it manually)
    With best regards,
    Allabaqsh Patil.
    Idhasoft Ltd.

  • Idoc at status 51, however outbound delivery created

    Hi Gurus,
    We have peculiar issue , where in outbound delivery is getting created through IDoc. The inbound idoc has status 51 however delivery got created.  Any idea how is it possible?.
    Thanks in advance.

    Dear Math,
    Have you got the solution for the above. If you get can you tell me please because even i got the same error message while processing the IDOC
    status 51 after status 53. Outbound delivery is updated but not the sales order.
    can you please help me

  • Accumulate Picking Quantity on an Outbound Delivery with WHSCON IDoc

    Hi Friends:
    I'm working on a Delivery IDoc (Msg Type:WHSCON) posting, where I've to update the Picking quantity on the Outbound Delivery. But the requirement is to accumulate the picking quantity.
    WHSCON IDoc has...
    - E1EDL20 - Header
    - E1EDL18 with qualifier 'PIC'
    - E1EDL24 with Pick quantity
    - E1EDL19 with qualifier 'QUA'
    - E1EDL37 with Packing header
    - E1EDL44 with Item Packing details
    The issue is the IDocs are posting successfully... NOT Accumulating, but replacing the already Picked quantity.
    Requirement example:
    Delivery has 100 EA on Item 900001.
    1st IDoc posted with Pick quanity of 75 EA --> Delivery updated with 75 EA on Item 900001.
    2nd IDoc posted with Pick quanity of 25 EA --> Delivery updated with 25 EA on Item 900001. (Here I want the pick quantity to be accumulated to 100 EA)
    Any quick help on this is greatly appreciated. BTW... we are in ECC 6.0.
    Thanks,
    ML

    Thank you JB for your reply!
    Sorry to say, but I found NO User Exit or Project by name 'ALE00001'. Do you mean "EXIT_SAPLV55K_001"? Appreciate your help!
    And my original intention was to find out any standard way of Accumulate Picking Quantity by switching on a flag on the IDoc or by using any config if there is any.
    Seeking your help!
    Thanks,
    ML.

  • How to change WM Status of an outbound delivery??

    Hi Experts,
    I was trying to do PGI for an outbound delivery for which I created TO and did TO Confirmation.
    After TO Confirmation , both the Picking Status and Overall WM Status was set as C
    I was trying to execute WS_Delivery_Update for PGI.
    After executing the FM,when i checked the outbound delivery in VL03N
    OverallWMStatus changed to B.
    But last night it was C after TO confirmation.
    And now I cant do anything
    When I try to do PGI its stating that "Delivery has not yet been completely processed by WM"
    Please help out??

    Hi Sanjeev,
    After confirming the TO, I was trying to do PGI executing WS_DELIVERY_UPDATE from se37.
    I want to reverse the picking of the outbound delivery whose
    Overll Pick Status C
    Overall WMStatus B

  • Updating or changing the outbound delivery

    Hi
    we have created a outbound delivery in the system, I want to update some of the detials like route, no of packages using a program. is there any FM or BAPI for that. I have tried using the  BAPI_OUTB_DELIVERY_CHANGE to update the route in the delivery. But somehow it is not updating and the BAPI does not give any error message also.
    thanks
    sankar

    you need a program like this example:
    REPORT  ZOUT_DELIVPICK.
    tables:VBFA, LIKP, LIPS.
    DATA : WA_VBKOK LIKE VBKOK.
    parameters vbeln like VBFA-vbeln.
    *select-options: posnr for VBFA-POSNv.
    DATA : I_VBPOK LIKE VBPOK OCCURS 0 WITH HEADER LINE.
    DATA : I_PROT LIKE PROTT OCCURS 0 WITH HEADER LINE.
    data:begin of it_items occurs 0,
           posnr  like vbfa-posnv,
           PIKMG  like VBPOK-PIKMG,
         end of it_items.
    START-OF-SELECTION.
      it_items-posnr = 000010.
      it_items-PIKMG = '1.000'.
      append it_items.
      it_items-posnr = 000020.
      it_items-PIKMG = '2.000'.
      append it_items.
      it_items-posnr = 000040.
      it_items-PIKMG = '3.000'.
      append it_items.
    loop at it_items.
      WA_VBKOK-VBELN_VL = vbeln.
      SELECT SINGLE * FROM LIKP WHERE VBELN = VBELN.
      MOVE-CORRESPONDING LIKP TO WA_VBKOK.
      SELECT SINGLE * FROM VBFA WHERE VBELV = vbeln.
      IF SY-SUBRC = 0.
        WA_VBKOK-VBELN = VBFA-VBELN. " Sales and distribution document
      ENDIF.
    Fill the item level
      I_VBPOK-VBELN_VL = vbeln.
      I_VBPOK-POSNR_VL = it_items-posnr.
      SELECT SINGLE * FROM LIPS WHERE VBELN = vbeln AND
        POSNR = I_VBPOK-POSNR_VL.
      SELECT SINGLE * FROM VBFA WHERE VBELV = I_VBPOK-VBELN_VL AND
      POSNV  = I_VBPOK-POSNR_VL.
      I_VBPOK-vbtyp_n = 'Q'.
      I_VBPOK-meins = 'EA'.
      I_VBPOK-VRKME = 'EA'.
      I_VBPOK-taqui = 'X'.
      I_VBPOK-orpos = 0.
      MOVE-CORRESPONDING LIPS TO I_VBPOK.
      IF SY-SUBRC = 0.
        I_VBPOK-VBELN = VBFA-VBELn. " Sales and distribution document
        I_VBPOK-POSNN = VBFA-POSNn. " Item of an SD document
        I_VBPOK-VBTYP_N = VBFA-VBTYP_N. " Document category
      ENDIF.
      I_VBPOK-PIKMG = it_items-PIKMG.
      I_VBPOK-LFIMG = it_items-PIKMG.
      I_VBPOK-LGMNG = it_items-PIKMG.
      APPEND I_VBPOK.
    endloop.
      CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
        EXPORTING
          VBKOK_WA               = WA_VBKOK
          SYNCHRON               = 'X'
          NO_MESSAGES_UPDATE     = SPACE
         nicht_sperren          = 'X'
         AUFRUFER_T             = 'X'
          IF_ERROR_MESSAGES_SEND = ' '
        TABLES
          VBPOK_TAB              = I_VBPOK
          PROT                   = I_PROT.
      if sy-subrc = 0.
        COMMIT WORK.
        WRITE:/ 'success'.
      else.
        write:/ 'not success'.
      endif.

  • How to change the pick quantity in outbound delivery using bapi

    Hi,
    I am using BAPI_OUTB_DELIVERY_CHANGE for changing the outbound delivery picking quantity but there is no field to change the pick quantity.
    plas advice any BAPI to change pick quantity
    Regards,
    Krishna

    Krishna....have a look in the below threads where there was a similar requirement..
    error while using BAPI_OUTB_DELIVERY_CHANGE
    change outbound delivery

  • Status of Outbound Delivery in case of batch split

    Hi All,
    I have a query regarding the status updation of outbound delivery in case of a batch split.
    I have a delivery with 10 qty of batch managed material and is distributed from ERP to EWM. As per standard SAP, the following 2 options exist to carry out a batch split in EWM
    1. Create batch sub items in the Outbound delivery Order
    2. To adopt quantities pertaining to multiple batches during WT creation from the 'Stock can be removed' tab.
    We are using the second option as per business requirement. The process is working fine if i create & confirm multiple WT's at one shot i.e in this case i created one WT for 5 qty with batch-1 & one more WT for balance 5 qty with batch-2 & confirmed both the tasks. System created 2 batch sub items automatically when WT's are confirmed & the header status of 'picking' got updated as 'completed'.
    However the problem is when i create only 1 WT for partial quantity. For eg. in this case i created onle WT for 5 qty of batch-1 & confirmed the task. System created 1 batch sub item for 5 qty & also updated the 'picking' status in header to completed. My understanding is that since entire delivery quantity is yet to be picked, the picking status at header must be 'partially completed' & not 'completed'.
    I have checked the status profile & have status types DER & DPI active. Does this require any config in the status profile OR Is there any other way in which i can achieve this functionality ( i.e. Header status must be 'partially completed' untill entire delivery quantity is picked.)
    Would be glad if you can share your thoughts on this.
    Regards,
    Smitha Pai.

    Thank you for your kind reply.
    I performed failover to my physical standby and now archives are going on my logical standby from new primary but changes are not getting applied on my logical standby database.
    when i tried to register the logical logfile from new primary on my logical standby i am getting following error.
    SQL> ALTER DATABASE REGISTER LOGICAL LOGFILE 'E:\orcl1\stdb\archives\TESTDBT001S00001.ARC';
    ALTER DATABASE REGISTER LOGICAL LOGFILE 'E:\orcl1\stdb\archives\TESTDBT001S00001.ARC'
    ERROR at line 1:
    ORA-01287: file is from a different database incarnation

  • IDOC - Change outbound delivery in SAP

    Hello ,
    I would like to change the outbound delivery in SAP(with the picked quantity ) using an IDOC triggered from external system .
    Im using SHPCON / DELV / IDOC_INPUT_DELVRY . Im not very sure about the fields that i should use to pass the picked quantity and also not sure whether the message type SHPCON can be used for this . Could someone throw light on this.
    Thanks,
    Jeeva.

    If you want to change the PICK values use SDPICK message.

  • Can outbound delivery pick update be sent from Decentralized WM to ERP?

    (I moved this thread from the ERP -Logistics Materials Management (MM) forum) 
    We are running batch management and DWM/ERP both on ECC 6.0
    I have a request to be able to have the DWM pick information on an outbound delivery reflected as "scheduled for delivery" in the ERP system.  Specifically, i need to show in the ERP system which batches have been already picked on the outbound delivery.
    i've read the documentation on the "subsequent changes to distributed deliveries".  The SHP_OBDLV_CHANGE idoc seems like the right method to pass the "pick quantity" and "batch" from the line item on the delivery.  However, it is not part of the standard IDOC.  Ultimately, i would like to see MMBE in ERP reflect the batches that have been picked on the DN in DWM.
    Has anyone successfully done this?
    Is what I'm proposing even possible?

    Anandha,
    First off, thank you for your comments.  You noted a couple of things that i still have a questions about.
    1.  "Once the delivery is picked (TO created and confirmed) in the DWM system, the delivery confirmation Idoc must trigger to update the ERP system. BAPI SHP_OBDLV_CONFIRM_DECENTRAL should update the ERP system where the PGI is posted."
    Currently, we use the SHP_OBDLV_CONFIRM_DECENTRAL iDOC to send PGI data from DWM to ERP.  Are you saying that I can trigger an "initial" update of the delivery with the "pick" information (batch split, quantity)?  BAPI SHP_OBDLV_CONFIRM_DECENTRAL would be the way I would do that?  Would this BAPI create an iDOC?
    2. "If the batch is changed in the ERP while the IDoc has been to DWM, there could be errors while posting the PGI since the batch number in the ERP system and DWM may not be the same. When the batch number is changed in the DWM system during the picking, we had someone to monitor those Idoc's that failed to update the ERP and had them manually edit the Idoc with the correct batch numbers before saving it."
    Currently, we do not allow changes to the Delivery in ERP once it has distributed to DWM.  Thus, i don't think that we will have the same problems as you have had.  However, in order to enable the Delivery update of pick information in #1, what would be required to allow the Delivery to be modifiable in ERP?
    Thanks again,
    Andy

  • Table of Outbound Delivery picking request no.

    Hi all!
    What table can I see the Picking request no. in Outbound Delivery?
    Thanks!

    Hi,
    VL06O - List Outbound Delivery
    Table you can use for VL06O
    LIKP - SD Document: Delivery Header Data
    LIPS - SD document: Delivery: Item data
    VBUP - Sales Document: Item Status
    Regards,
    Jagadish

  • Urgent-Help needed in FM to update picking quantity in outbound delivery.

    Hi,
    I have to automatically update the delivery and picking quantity for an outbound delivery without doing any post goods issue.Could you please help me with any FM which does this with proper explanation.
    Any help will be greatly appreciated.
    Thanks,
    Sandeep.

    Check with FM : SD_DELIVERY_UPDATE_PICKING
    The above FM will update Picking in delivery
    Check the structure VBPOK ,within structure VBPOKKOMMI(Include structure)
    Field is PIKMG.
    Thanks
    Seshu

  • Error -Adding HL Item (LIPS-UEPOS)  when changing outbound delivery(VL02N)

    Dear SDN members,
    I have a requirement of adding new sub item (LIPS-UEPOS) for a main item  during changing of outbound delivery VL02N .I am using idoc type WHSCON/DELVRY05. I am passing LIPS-UEPOS(say 10) in segment E1EDL24-HIPOS and also matnr , posnr( say 40) in other item fields.
    I am getting error when adding the sub item in main item.( Item 40 does not exist)
    Additional information .I am passing below qualifier.
    E1EDL18- qualifier -CHG
    E1EDL19 – qualifier -CRE
    Any help would be appreciated with  rewarding points.
    Regards,
    Krush

    Hi,
    Why have you pasted Deepak Kumar's program into this forum?
    Regards,
    Nick

Maybe you are looking for

  • Child value is not updated?

    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent         Dim i As Integer         Dim sumdepth As Decimal = 0         Dim oForm As SAPbo

  • RMI-IIOP client - CORBA Server

    I already have a CORBA server in C++ which has already been written. I am trying to develop an RMI-IIOP client which would talk to this CORBA Server. The CORBA server has several interfaces that I would like to use with my RMI-IIOP client. How do I p

  • How to call a javascript function from XSL

    I'd a requirement to take an action each time a page loads I called the javascript function from addLoadEvent() available in javascript. But my reviewer commented that it should be called using XSL as we are using XSLT, What is preferred? To pass fun

  • Can't update my wireless driver !

    hi all my computer is x201i 3249 cbc last 2 weeks my computer suffered from blue screen after counselling i found out that it is due to my wireless driver's not updated http://social.technet.microsoft.com/Forums/en-US/w​7itproperf/thread/781bc689-7bd

  • 5D2 noise and banding worst in B+W

    I have a problem where there is very noticeable banding (+ noise?) in black and white conversions of my CR2 files from my Canon 5Dmk2. I assume I am using the correct terminology here; I might not be; by 'banding' I mean lines on the image, most noti