cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to delete TransferOrder since the corresponding Delivery is deleted

Former Member
0 Kudos

Hi All,

I have a scenerio here,

The Outbound Delivery is created and then the Transfer Order is created but have not confirmed it (Picking is done in the Warehouse ) .They have deleted the Delivery.Now they are trying to cancel the Transfer Order but since the Delivery is deleted the system is not allowing to cancel the TO. The stock is available in the interimn storage type. since there are open TO's the system is not allowing to do the physical inventory,

Please suggest how to deal this situation.

Thanks in advance.

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

harry_wu
Contributor
0 Kudos

Hi,

First of all, this situation should not occur in standard.

Error VL110 will stop the deletion operation if WM status is B.

To cancel this transfer order, you have to do some change in debugging.

Please set break points in the coding below:

[1]

============================================================================

Include: ML03TF20_LTAK_LESEN


FORM LTAK_LESEN USING VALUE(P_LGNUM) VALUE(P_TANUM).

         SELECT SINGLE * FROM LTAK         <<<<<
          WHERE LGNUM = P_LGNUM 
            AND TANUM = P_TANUM.

Here system read LTAK from database.

Set break point at the SELECT statement. After the SELECT, you need to manually clear field LTAK-VBELN.

============================================================================

[2]

============================================================================

Include ML03TF20_TA_LESEN


         REFRESH tap.

         SELECT * FROM ltap INTO TABLE tap      <<<<
          WHERE lgnum = p_lgnum
            AND tanum = p_tanum
            AND tapos IN tapos
          ORDER BY PRIMARY KEY.

Here system read LTAP from database.

Set break at the SELECT statement. After the SELECT, you need to manually clear TAP-VBELN and TAP-POSNR for all the internal table entries.

============================================================================

You run LT15 and clear LTAK-VBELN, and VBELN,POSNR for all the TAP entries at the breakpoints. Then you can save and cancel the TO.

Edited by: Harry Wu on Jul 27, 2010 3:47 AM

Edited by: Harry Wu on Jul 27, 2010 3:48 AM

Answers (1)

Answers (1)

csaba_szommer
Active Contributor
0 Kudos

I kindly ask you to please try to seacrh on the forum before posting new thread.

Similar problem was raised few days ago, please check it:

Additionally to the things described in the thread:

System should not allow the user to delete a delivery with unconfirmed TO. In my opinion you should search for suitable OSS note how to prevent this in the future. If there's no such note you should contact SAP and they should help on this (prevention).

Correction

Please negelect the first two sentences and the link, I mixed this thing with another one.

Edited by: Csaba Szommer on Jul 27, 2010 8:12 AM

Former Member
0 Kudos

Hello,

May I request you to go through the request once again this is not the same one that is posted. The one which you have referred is for deleting a delivery whereas in my scenerio the Delivery is already deleted and now they wanted to delete the TO. In standard SAP we can configure to delete the delivery irrespective of the picking status, However this problem is already taken care and corrected now the delivery wil not be allowed to be deleted if picking status is B or C.

But my problem is with the TO for which the Delivery is already deleted.

Please suggest the solution with complete understanding of the issue.

Thanks in advance,

harry_wu
Contributor
0 Kudos

HI,

1.

Yes, it's possible to delete delivery when picking status is B/C.

However, it's not possible to delete delivery when WM status (vbup-lvsta) is B.

In you case, if one TO is created, but not confirmed, delivery's WM status should be B. Therefore, it should not be deleted.

2.

How to fix it, please check my reply above.

Regards.

Harry Wu

Edited by: Harry Wu on Jul 27, 2010 10:39 AM

csaba_szommer
Active Contributor
0 Kudos

Hi Kiran,

Please read my message again it is relevant to your problem.

There's a "correction" section in my message (the first link was posted by mistake, it is really not relevant, but new links in my message are relevant).

Please check the links.

You can see that you can solve the problem basically in two ways:

- cponfirm or cancel the TO in debugging mode

- deletion of the records from data tables (LTAK, LTAP; suggesteb by Jurgen)


 In standard SAP we can configure to delete the delivery irrespective of the picking status,

This is not true as per my best knowledge (concerning WM picking). If you can delete the delivery irrepsctive of the picking status you should search for OSS note to correct your problem orif there's no relevant note, you should contact SAP AG.

Regards,

Csaba

Edited by: Csaba Szommer on Jul 27, 2010 10:40 AM

harry_wu
Contributor
0 Kudos

Hi Csaba,

1.

When picking status is C (VBUP-KOSTA) is C, it is possible to delete delivery. Error message VL173 is customizable in OVM1.

2.

Only when WM status is B (VBUP-LVSTA), it's not possible to delete delivery.

csaba_szommer
Active Contributor
0 Kudos

Hi Harry,

Your message is not clear.

No one said a delivery cannot be deleted if the its picking status is "C".

Please read my message again what I said:

KIRAN:

In standard SAP we can configure to delete the delivery irrespective of the picking status,

CSABA

This is not true as per my best knowledge ( concerning WM picking ). If you can delete the delivery irrepsctive of the picking status you should search for OSS note to correct your problem orif there's no relevant note, you should contact SAP AG.

- Can you delete a delivery if its picking status is "B" in case of WM-picking when system works properly? (Y/N)

- Is there connection between WM status and picking status in case of WM picking? (Y/N)

Thanks,

Csaba

Edited by: Csaba Szommer on Jul 27, 2010 10:51 AM

Edited by: Csaba Szommer on Jul 27, 2010 10:52 AM

harry_wu
Contributor
0 Kudos

WM status and picking status is different concept.

1. if WM status is C and picking status is B, it should be possible to delete the delivery.

(delivery quantity 10, create one TO for 5 and confirm it, -> now it's possible to delete).

2. The checking on WM status and picking status is done separately.

It's done here:

Include: FV50PFLP_XLIPS_LOESCHEN_PRUEFE


  if xvbup-kosta ca 'BC'   and
     xvbup-lvsta eq ' '   and          "sonst entscheidet LVS-Status
     xlips-lfimg gt 0.                 "#&rm
    xl_exit = charb.
    clear ct_reasons.                                       "v_n_521409
    ct_reasons-posnr  = xl_posnr.
    ct_reasons-reason = xl_exit.
    ct_reasons-msgty  = 'E'.
    append ct_reasons.                                      "^_n_521409
  endif.

  if xvbup-lvsta eq 'B'.               " in Arbeit
    xl_exit = charc.
    clear ct_reasons.                                       "v_n_521409
    ct_reasons-posnr  = xl_posnr.
    ct_reasons-reason = xl_exit.
    ct_reasons-msgty  = 'E'.
    append ct_reasons.                                      "^_n_521409

For picking stust -> reason will be set to B. -> lead to VL173, which is customizable.

For WM status -> reason will be set to C -> lead to VL110, which is not customizable. It's error.

csaba_szommer
Active Contributor
0 Kudos

Harry,

Thanks for your explanation, however your reply is not to the point.

1) You sent me a message saying to me that delivery can be deleted if picking status is "C".

- Why did you sent that message to me?

- When did I say that a delivery cannot be deleted if picking status is "C"?

- Was my message correct or not?

2) You did not answer my questions asked in my previous post.

Thanks,

Csaba