Program to change Outbound Delivery Statusses back from 'C' ?

I've looked, but cannot find; is there a SAP program/BAPI that can set back the Outbound Delivery statuses?
For instance VBUK-PKSTA or VBUP-PKSTA EQ 'C'. " Packing status: Completely processed
I'd like to set to 'B' or 'A'.
Thank you and best regards,
Adrian

Step-by-step:
1. We had to write a little abap that updates VBUK-WBSTK for the 'locked' entries.
2. We logged an OSS call with SAP and they sent us ZZRB_VBFA_NO_GI_DOC_5 that updates/deletes entries from VBFA. I'll post the code on request. This report deletes document flow entries for GI in delivery where no material document exsists on database. Afterwards, you have to run the report ZZDELSTA or RVDELSTA to correct the delivery status.
3. Cancel Billing Document with VF11
4. OSS Note #137011 or 506510 refers: We created ZZDELSTA according to this note. We had to comment out the ELSE in the following code snippet to "make it work"
    IF GT_LIKP-VBTYP EQ '7'.
      T180-TRVOG = 'D'.
  ELSE.
    T180-TRVOG = '0'.
    ENDIF.
Best regards,
Adrian

Similar Messages

  • Need help with an SHDB BDC program  for Change outbound delivery(VL02N).

    I have created recording to change outbound delivery(VL02N). Steps are as below-
    For VL02N recording 1st I have click on the header(F8) then dates tab.
    Then insert line (+ button) then it shows 8 transport types.
    I have chosen 7th transport type. In SHDB it shows BDC_CURSOR = '08/07'.
    Then I have created BDC program for this recording, but it's not working,
    because It is changing BDC_CURSOR value every time when we do SHDB or VL02N and in my code I have hard coded BDC_CURSOR = '08/07' . 
    Can anyone tell me how to get this BDC_CURSOR changed value. So that instead of hard coding this value I can select this value every time.
    (FYI      For this Screen name = SAPMSSY0 Screen No = 0120.)
    Thanks.

    I have created recording to change outbound delivery(VL02N). Steps are as below-
    For VL02N recording 1st I have click on the header(F8) then dates tab.
    Then insert line (+ button) then it shows 8 transport types.
    I have chosen 7th transport type. In SHDB it shows BDC_CURSOR = '08/07'.
    Then I have created BDC program for this recording, but it's not working,
    because It is changing BDC_CURSOR value every time when we do SHDB or VL02N and in my code I have hard coded BDC_CURSOR = '08/07' . 
    Can anyone tell me how to get this BDC_CURSOR changed value. So that instead of hard coding this value I can select this value every time.
    (FYI      For this Screen name = SAPMSSY0 Screen No = 0120.)
    Thanks.

  • Create Outbound delivery with QCI from Sale order

    Dear experts!
    Now, I'm getting some issues about searching function to create outbound delivery with QCI from Sale order.
    Note: My sale order have two item (10, 20) and when i create outbound delivery I also want to create QCI for them.
    Help me, Please
    Best regards, Huy.

    What is QCI?

  • Delete or change outbound delivery distributed to EWM.

    Hi gurus,
    I create an outbound delivery in ERP and it is sent to EWM, EWM activates it automaticaly. Then I decide to cancel (delete) the outbound delivery. Altough the status of oubound delivery order is "not started", when i try to change it using VL02N system does not allow to change it. Posts an error message " The delivery was distributed, meaning that processing occurs in another system. The report back has not yet been received.".
    What do you advice me to do.
    Regards.

    Hi,
    Please perform following steps
    Use process Code – “With Quantity Adjustment”. à O001 à  Enter – Quantity. (- Quantity)
    It will adjust the quantity back to Zero.
    Click on  " Outbound Delivery" icon at item level.
    It will create an outbound delivery in EWM and will close/update the Quantity and status in ECC.
    We can create a new delivery against original Sales order again in ECC and will be distributed to EWM.
    You need to click on that button  ( Outbound Delivery) to send a message to ERP. This is a PPF action, start condition is outbound delivery creation. This only happens when you click this button while delivery item has zero qty or post goods issue.
    Saby

  • Changing outbound delivery in EWM does not change the delivery in ERP

    Hello,
    I am working on EWM;
    I create an outbound delivery and it is transferred to EWM. If I reject the outbound delivery request in EWM, system adjust the quantity of delivery for both EWM and ECC.
    But if I activate the delivey the system creates a outbound delivery order(odo). But the problem is that when I change odo the delivery in ERP is not changed.
    Do you have an opinion to about what should i check in the system?
    Best regards.

    As example you can take:
    ex/code: DIFD
    Business Contx TPT
    Exec. Step 02
    Its for inbound delivery, there no record for outbond.
    But i still dont understand the buisnes reason for such process, cose if your customer order 500 PC for example, you warhouse workers simply change his demand and it's not correct, cose you can deliver this open amount later and sales person should decide. You task in EWM use exeption codes and process codes to close ODO or find other bin...
    Like i sad, at the time of good issue adopted amount EWM will send to ERP.
    For delete position from odo use trash button
    pick denal exeption code in WHT conformation.
    Edited by: Andrey Altabaev on Jan 19, 2012 10:11 PM
    Edited by: Andrey Altabaev on Jan 19, 2012 10:13 PM

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

  • 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

  • Sale Order Status Change after delivery of materials from projects

    have ETO sccenario which consists of all modules such as SD,PS.PP etc. Materials will be procured from external vendors & manufactured inhouse through project systems. After delivery of materials from project systems, billing & invoicing will be done at sales level.
    On delivery of materials from projects, sale order status remain open. Request you to look into the matter & suggest about status change of sale order after delivery / billing.
    Regards,
    Ranjan

    Hi,
    In sale order, WBSE is assigned. Delivery of materials are through cns0. then subsequently picking / packing / billing will happen at sales level. Billing is of delivery related. Please suggest to fix the issue.
    Thanks & Regards,
    Biplab Ranjan

  • Dates on Outbound Delivery created automatically from STO PO

    Situation: I am creating outbound deliveries automatically after saving a STO PO.  On my STO IDoc PORDCR101 there is a structure E1BPMEPOSCHEDULE.  In this structure there are 4 fields I am entering dates that I would expect to then be used on my automatically created outbound delivery (all fields are different for the purpose of analysis).  These fields are MS_DATE, LOAD_DATE, TP_DATE, and GI_DATE.  I would assume that these translate to Picking, Loading, Transportation Planning, and Planned Goods Issue dates on the processing tab of the Outbound delivery header.  However, the date that I have entered in my Idoc for the delivery date (the date I want the material to be at the expected destination) is being used for all dates. 
    Question: Can anyone tell me if I am using these dates correctly or if there is a different intended use for these fields?  Also if this is not the intended use, is there a separate input field that can be used to control these dates?
    Thanks in advance.

    These 4 date fields can be seen in your purchase order in the schedule tab at item detail.
    They correspond to the delivery.
    But not the way as you expect. they are not there to tell the delivery what dates the delivery shall take. it is the other way around. When the delivery is created then SAP will update the stock transfer  PO with the dates from the delivery.

  • Badi for create/change outbound delivery

    Hi,
    I want to write a custom code on the create/change of outbound delivery.
    found a badi def: DELIVERY_PUBLISH and method: delivery_publish_after_save.
    I want to know if this is correct place to write my include or any other place?
    Thanks & regards,
    Ravish

    Hi,
    Check SAP Note 415716 - User exits in delivery processing also.
    Regards,
    Eduardo

  • BDC for MIGO for GR OutBound Delivery( A01 & R05 ) from Movement Type 107 to 109

    Hi,
    I am stuck with a very typical situation need all your expertise and advices for a solution.
    We are basically trying to create change the movement type from 107 to 109 through MIGO.
    I have made a BDC recording for MIGO ( because we would like to track each delivery specifically under shipment , I know that there is a BAPI which is there to do this but it works fine if we do the shipment with Purchase Order as input which dont want in that manner )
    Process:
    1. Creating Production Order
    2. Creating Purchase Order
    3. Creating STO
    4. Deliveries
    5. PGI for Deliveries
    6. Shipment for group of outbound Deliveries
    I have created a z program where i am passing shipment number in the selection screen.
    Then it would take all the deliveries for that shipment and pass each delivery to MIGO and process it and change the status from 107 to 109.
    Interesting part here is, the code works absolutely perfect only from my ID. But when I test from other ID it is not executing, so to check where is the problem I have added mess_tab to the CALL TRANSACTION to capture what message is been populated for my ID comparing with others
    Message Captured on Others ID's:
    MSGID: 00
    MSGNR: 344
    MSGV1: SAPLMIGO
    MSGV2: 1300
    Message Captured on MY ID:
    MSGID: MIGO
    MSGNR: 012
    MSGV1: 5000005802
    MSGV2: (empty)
    This is the problem this program is executing only on MY ID, rest all ID's it is not processing.
    We have cross verified with security and basis regarding any authorization issues but nothing came up.
    Please help me what could be the issue ( WHY it is processing successfully for my and WHY NOT for other ID's)
    Below is the main code :
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'                     " Converting Date format to DD/MM/YYYY
         EXPORTING
           DATE_INTERNAL            = sy-datum
         IMPORTING
           DATE_EXTERNAL            = lv_date_external
         EXCEPTIONS
           DATE_INTERNAL_IS_INVALID = 1
           OTHERS                   = 2.
           IF SY-SUBRC <> 0.                                     "#EC NEEDED
    * Implement suitable error handling here
           ENDIF.
    *   Validating input shipment number with database table VTTP
           SELECT VTTP~TKNUM
                  VTTP~TPNUM
                  VTTP~VBELN
             FROM VTTP INNER JOIN VTTK
             ON VTTP~TKNUM = VTTK~TKNUM
             INTO TABLE IT_VTTP
             WHERE VTTK~TKNUM = P_TKNUM
               AND VTTK~STDIS = 'X'.
           IF sy-subrc = 0.
    *   Validating all deliveries having same Delivery type or not
             SELECT * FROM likp INTO TABLE it_likp FOR ALL ENTRIES IN it_vttp WHERE vbeln = it_vttp-vbeln
                                                                                AND vbtyp = 'J'.
             IF sy-subrc = 0.
               CLEAR lv_lines.
               LOOP AT it_likp INTO wa_likp.
                 REFRESH:it_vbfa,BDCDATA.
    *   Validating if Delivery Type = 109 (GR already done), or Delivery Type = 107 (must process for GR )
                 SELECT * FROM vbfa INTO TABLE it_vbfa WHERE vbelv = wa_likp-vbeln
    *                                                AND vbtyp_v = 'J'
                                                         AND bwart = '109'.
                 IF sy-subrc = 0.
                   lv_flag1 = 'X'.
                 ELSE.
                   SELECT * FROM vbfa INTO TABLE it_vbfa WHERE vbelv = wa_likp-vbeln
    *                                                  AND vbtyp_v = 'J'
                                                           AND bwart = '107'.
                   IF sy-subrc NE 0.
                     MESSAGE 'No Deliveries with Movement Type "107" ' TYPE 'I'.
                   ELSE.
                     lv_flag2 = 'X'.
                     lv_lines = lv_lines + 1.
    **  BDC for MIGO
                     perform bdc_dynpro      using 'SAPLMIGO' '0001'.
                     perform bdc_field       using 'BDC_OKCODE'
                                                   '=OK_GO'.
                     perform bdc_field       using 'GODYNPRO-ACTION'
                                                   'A01'.
                     perform bdc_field       using 'GODYNPRO-REFDOC'
                                                   'R05'.
                     perform bdc_field       using 'GODEFAULT_TV-BWART'
                                                   '109'.
                     perform bdc_field       using 'BDC_CURSOR'
                                                   'GODYNPRO-OUTBOUND_DELIVERY'.
                     perform bdc_field       using 'GODYNPRO-OUTBOUND_DELIVERY'
                                                   wa_likp-vbeln. "'80019574'.
                     perform bdc_field       using 'GOHEAD-BLDAT'
                                                   lv_date_external. "'04/29/2015'.
                     perform bdc_field       using 'GOHEAD-BUDAT'
                                                   lv_date_external. "'04/29/2015'.
                     perform bdc_field       using 'GOHEAD-WEVER'
                                                   '1'.
                     perform bdc_dynpro      using 'SAPLMIGO' '0001'.
                     perform bdc_field       using 'BDC_OKCODE'
                                                   '=OK_POST1'.
                     perform bdc_field       using 'GODEFAULT_TV-BWART'
                                                   '109'.
                     perform bdc_field       using 'GOHEAD-BLDAT'
                                                   lv_date_external. "'04/29/2015'.
                     perform bdc_field       using 'GOHEAD-LFSNR'
                                                   wa_likp-vbeln. "'0080019574'.
                     perform bdc_field       using 'GOHEAD-BUDAT'
                                                   lv_date_external. "'04/29/2015'.
                     perform bdc_field       using 'GOHEAD-WEVER'
                                                   '1'.
                     perform bdc_field       using 'GODYNPRO-DETAIL_ZEILE'
                                                   '   1'.
                     perform bdc_field       using 'GOITEM-ERFME'
                                                   'EA'.
                     perform bdc_field       using 'GOITEM-ERFMG'
                                                   '1'.
                     perform bdc_field       using 'GOITEM-LSMNG'
                                                   '1'.
                     perform bdc_field       using 'GOITEM-LSMEH'
                                                   'EA'.
                     perform bdc_field       using 'GOITEM-MIGO_ELIKZ'
                                                   '1'.
                     perform bdc_field       using 'GOITEM-BWART'
                                                   '109'.
                     perform bdc_field       using 'GOITEM-LGOBE'
                                                   'RX Cross-docking'.
                     perform bdc_field       using 'BDC_CURSOR'
                                                   'GODYNPRO-DETAIL_TAKE'.
                     perform bdc_field       using 'GODYNPRO-DETAIL_TAKE'
                                                   'X'.
                     PERFORM bdc_dynpro      USING 'SAPLMIGO' '1300'.
                     PERFORM bdc_field       USING 'BDC_CURSOR'
                                                   'G_TIP_DONT_SHOW_AGAIN'.
                     PERFORM bdc_field       USING 'BDC_OKCODE'
                                                   '=OK_TIP_GO'.
                     PERFORM bdc_field       USING 'G_TIP_DONT_SHOW_AGAIN'
                                                   'X'.
    *& Avoid unncessary screens to populate while processing background.
                     LV_OPTIONS-DISMODE = 'N'.
                     LV_OPTIONS-UPDMODE = 'S'.
                     LV_OPTIONS-NOBINPT = 'X'.
                     CALL TRANSACTION 'MIGO' USING BDCDATA  OPTIONS FROM LV_OPTIONS MESSAGES INTO IT_MESSTAB1 .
                     WAIT UP TO 1 SECONDS.
                     DELETE IT_MESSTAB1 WHERE MSGTYP NE 'E'.
                     IF IT_MESSTAB1[] IS NOT INITIAL.
                       APPEND LINES OF IT_MESSTAB1 TO IT_MESSTAB.
                     ENDIF.
                   ENDIF.
                 ENDIF.
               ENDLOOP.
             ENDIF.
           ELSE.
             MESSAGE 'Shipment Number does not exists Or not Planned' TYPE 'E'.
           ENDIF.
         ELSE.
           MESSAGE 'Please insert Shipment Number' TYPE 'E'.
         ENDIF.
         IF lv_flag1 = 'X' AND lv_flag2 = 'X'.
           MESSAGE 'This shipment is processed with an inconsistent goods receipt' TYPE 'I'.
         ELSEIF lv_flag1 = 'X'.
           MESSAGE 'Shipment already been processed for these deliveries' TYPE 'I'.
         ELSEIF lv_flag2 = 'X'.
           lv_lines1 = lv_lines.
           CONDENSE lv_lines1 NO-GAPS .
           CONCATENATE lv_lines1 'Goods Receipt are posted for the shipment '
                  INTO lv_message SEPARATED BY space.
           MESSAGE  lv_message TYPE 'I'.
         ENDIF.
    * Display Messages from Message TAB.
         DELETE ADJACENT DUPLICATES FROM IT_MESSTAB.
         DATA:lv_msg TYPE string.
         LOOP AT IT_MESSTAB INTO WA_MESSTAB.
           CALL FUNCTION 'FORMAT_MESSAGE'
             EXPORTING
               ID        = WA_MESSTAB-MSGID
               NO        = WA_MESSTAB-MSGNR
               V1        = WA_MESSTAB-MSGV1
               V2        = WA_MESSTAB-MSGV2
               V3        = WA_MESSTAB-MSGV3
               V4        = WA_MESSTAB-MSGV4
             IMPORTING
               MSG       = lv_msg
             EXCEPTIONS
               NOT_FOUND = 1
               OTHERS    = 2.
           IF sy-subrc <> 0.
    * Implement suitable error handling here
           ENDIF.
           WRITE:/ lv_msg.
         ENDLOOP.
    *        Start new screen                                              *
       FORM BDC_DYNPRO USING PROGRAM DYNPRO.                 "#EC PF_NO_TYPE
         CLEAR BDCDATA.
         BDCDATA-PROGRAM  = PROGRAM.
         BDCDATA-DYNPRO   = DYNPRO.
         BDCDATA-DYNBEGIN = 'X'.
         APPEND BDCDATA.
       ENDFORM.
    *        Insert field                                                  *
       FORM BDC_FIELD USING FNAM FVAL.                       "#EC PF_NO_TYPE
         CLEAR BDCDATA.
         BDCDATA-FNAM = FNAM.
         BDCDATA-FVAL = FVAL.
         APPEND BDCDATA.
       ENDFORM.
    Thanks,
    Srini

    Hi Rob,
    Thanks for quick reply.
    I have checked the NOTE : 304122
    But there in the NOTE it says ( " BAPI, BAPI_GOODSMVT_CANCEL, BAPI_GOODSMVT_CREATE, CNTL_ERROR" )
    These BAPI's work perfectly for (purchase order as input type), but here out type is ( A01 & R05 ) we are giving DELIVERY NUMBER as input to MIGO.
    So for this scenario we cannot use those BAPI's mentioned in the NOTE.
    Also as stated earlier in the message interesting part is
    "The code works absolutely perfect only from my ID. But when I test from other ID it is not executing. Code is working exactly as expected ONLY to my ID. When i try to execute the same code from another's ID it is not working"
    So what do you think might be the issue?

  • Auto Create Outbound Delivery and Shipment from IDoc

    Hi Ppl,
    Currently, we have a transport company which handles all our transportation of goods to our customer.
    We develop a project, phase 1 which we automatically sends sales order in form of IDocs to our transport company and they in turn we send us an excel file on how they have group those sales order into shipment using their own criteria of weight, destination, customer etc.
    Now, on our phase 2 of the project, we want the transport company to send us this file in form or IDoc or acceptable file format and which will automatically create outbound deliveries and shipment on how they grouped it.
    This should also be able to change deliveries or shipment if the sales order changes.
    Please how do we go about this?
    Thanks all for your help.

    Hello,
    As far as I know, you need to have a custom IDoc scenario for this. Here is what you can do.
    1. Create a custom IDoc Type to receive Orders.
    2. Create a Custom message Type & Custom Process code along with the Custom Posting Program (FM) for this requirement.
    3. Perform the validations & process the IDocs by using the WS_DELIVERY_UPDATE & WS_DELIVERY_UPDATE_2 for creating Deliveries & BAPI_SHIPMENT_CREATE FM to create the Shipments.
    This being a custom scenario, you'd be required to do some custom development as well in order to meet up with your business needs.
    Hiope this was helpful.
    Regards,
    Venkata Phani Prasad K

  • How do I change my iTunes link back from the US store to theAustralian store?

    I have connected to the US iTunes Store. Can I change the link back to the Australian store?

    Sign out then back in again.

  • How can i change my app store back from usa to netherlands

    I apparently searched for an App that was not in the Dutch store. I got an message asking if I wanted to try in the US Appstore. I chose  OK and was redirected. Now i cannot get back to the Dutch store and any updates to Apps will not load as I am in wrong store. Can anyone help?

    Switching an iTunes Store account to a different country
    http://www.ilounge.com/index.php/articles/comments/switching-an-itunes-store-acc ount-to-a-different-country/
     Cheers, Tom

  • How can I change 'attach a file' back from classic mode to regular mode

    I was having a problem attaching a file (it was the file's fault, not FF) and switched to the 'classic' mode. I prefer the 'regular', previous mode and cannot figure out how to switch it back. I'm hoping when I reopen it it will revert to 'normal', but I would like to go back to the regular mode. I went to the tools (gear) page and flicked the attach section back and forth to the 'show progress bar setting it was originally on but it didn't work. Help?

    Hi Prem,
    You can attach this manually in the document tab of BP. Thats the standard functionality.
    Regards
    Arun Kumar

Maybe you are looking for

  • Why does text box move when I open pages doc on my friend's mac?

    Hi Everyone,   So I have this very vexing problem with pages. I have been trying to collaborate with a friend of mine and everytime the pages document moves from one computer to the other the text boxes move terribly out of place. So for example, I w

  • ICloud Restore from iPhone 4s to new 5.

    I upgraded to iPhone 5 from 4s.  Using iCloud OTA to restore.  It's been 24 hrs and the 5 still says that it's currently being restored and will automatically back up when it is done.  Everything seems to be restored.  Any help?

  • Cannot process container

    Hi all While synchronizing I am getting the following error message and Sync stops. "Cannot process container 45F94C53051619F3E10000000A825320 for unregistered method MI_CONFIG_INFO; ignore container" Had anybody seen this kind of error during sync.

  • Some basics question

    What is the change sequence number? Is this diagram true: redo log buffer -> redo log -> database? i.e the transactions are in the log buffer then goes to the redo log and then it is reflected on the db? What is the usage of the streams pool? thanks

  • I have a new Canon MX432 printer the ipad recognizes it but it won't print.  Any advice?

    I have a new Canon MX432 printer the ipad recognizes it but it won't print.  Any advice?