cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Devliveries at one Time

Former Member
0 Kudos

Dear Sap Gurus

My Requirement is Mass outbound deliveries are delete at one time. Normally for open deliveries data we will get from Tcode VL06G. What ever data comes in VL06G that is open deliveries that outbound deliveries are need to Delete at one time. Is there any TCode for that or any other process like ABAP programme.

Thanks and Regards

Chandra Mouli A

Edited by: Chandra Mouli on May 25, 2011 3:59 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Using ABAPER we are using a bapi like BAPI_OUTB_DELIVERY_CHANGE

PhaniKalvagunta
Contributor
0 Kudos

Hi,

Goto VKM4 and enter all the relevant delivery document numbers.Execute

Then select all the deliveries and click the push button reject and save.

All these deliveries will get deleted.

Regards,

Phani Prasad

Former Member
0 Kudos

Hi Phani

In VKM4 in where I have to enter the delivery documents.

PhaniKalvagunta
Contributor
0 Kudos

Hi,

You enter the document numbers in the field SD document and enter overall document status as A

Phani Prasad

Former Member
0 Kudos

Hi Phani

I enter the Delivery document numbers in SD Document and I keep over all document status is A but the VKM4 it not executed. Specify which document numbers I need to enter. either Sales order numbers or Delivery numbers.

thanks and regards

Chandra Mouli A

PhaniKalvagunta
Contributor
0 Kudos

Delivery numbers

Former Member
0 Kudos

Hi Phani

If I enter the Delivery document numbers in SD Document category Its fine. after execution then we will click on Reject Button the system is asking reason for rejcection. Supose we enter the reason for rejection that reson for rejection is relating to order. then the delivery number is deleted and also order also short closed. Actually that is not my requirement. Only deliveries should delete.

thanks and regards

chandra mouli A

PhaniKalvagunta
Contributor
0 Kudos

Please write a BDC with the help of your ABAP Consultant to delete deliveries enmass.

Regards,

Phani Prasad

Former Member
0 Kudos

Dear All

Using ABAPER i used BAPI to slove this issue that bapi is BAPI_OUTB_DELIVERY_CHANGE with the below code

selection screen

LIKP_ERDATE Delivery date

LIKP_VBELN Delivery Number

LIKP_LFART Delivery type

W_ERDAT TYPE LIKP-ERDAT,

WA_HDATA LIKE BAPIOBDLVHDRCHG,

WA_HCONT LIKE BAPIOBDLVHDRCTRLCHG,

W_DELIVY LIKE BAPIOBDLVHDRCHG-DELIV_NUMB,

IT_BAPIRET2 LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.

CLEAR: WA_HDATA, WA_HCONT, W_DELIVY, IT_BAPIRET2.

CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'

EXPORTING

HEADER_DATA = WA_HDATA

HEADER_CONTROL = WA_HCONT

DELIVERY = W_DELIVY

TABLES

RETURN = IT_BAPIRET2.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'.

regards

Chandra Mouli A

Edited by: Chandra Mouli on Jun 17, 2011 2:39 PM