on 05-25-2011 11:14 AM
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
Using ABAPER we are using a bapi like BAPI_OUTB_DELIVERY_CHANGE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
94 | |
11 | |
9 | |
5 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.