Deleting delivery document
Hi guys,
In production system the end user has canceled the invoice and then he tried to reverse the PGI but the system is showing some error Cancellation date 05.05.2007 is before the goods issue date 30.05.2007. the thing is by mistake he mentioned the goods movement date as 30.05.2007. Now how can i cancel the PGI .kindly give some inputs regarding this.
thanks in advance
Sitaramaraju.P
In order to delete the delivery doc,
1. Invoice cancellation :VF11, this can be done if accounting document is not generated. If accounting document is generated already then first reverse accounting doc (FI settings are required for this) then Invoice cancellation should be done.
2. Reverse PGI : VL09 ,i,e picking =0
3. Delete sales orders.
Hope it clarifies ur query.
Please Reward Points.
Similar Messages
-
Can the deleted delivery document make live
Dear Friends,
Pl tell me how to make the deleted delivery document live.
Case: User has deleted the delivery doucument after doing the excise invoice (of STO). Now they cannot cancel the exice invoice.
Regds,
SreehariHi ,
If this a prforma invoice you can goto vf02 then billing docs and complete the invoive the invoice aotumatically cancel.
If u r problem has solve reward points.
VM -
Hi gurus,
How can I find "deleted" delivery documents from SAP?
Regards,
PrasseeWhat to put if the document is sales order or billing doc in Change doc object field
Change doc. object LIEFERUNG
and one more whether to put doc no. in Object value field or document no. field as stated by u . Object value Enter your delivery Nr here if Avaialable
you will get the all the deleted deliveries and details such as who has deleted ,when. etc.
Once delete one delivery and enter in Object Value field you will get the record.
and check what you are getting in Appl.Obj Change???
If that field is unique then you can get the deleted delivery documents.or check other field which is unique to deleted delivery doc and you will get the required list
Regards
Jitesh
Regards
Jitesh -
Delete delivery document, use: BAPI_OUTB_DELIVERY_CHANGE
hi friends,
I want to delete a delivery document. I think BAPI_OUTB_DELIVERY_CHANGE will be useful for my purpose but I cannot find any field indicating the operation type like 'U'pdate, 'D'elete etc.
is it the right bapi function or should i use a different one?
thanks,
- ferudunI have tried this way but nothing has happened. The return table was containing a row with error E VL 302 and empty message texts. (Delevery document doesn't exist)
header_control-dlv_del = 'X'.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
EXPORTING
HEADER_DATA = header_data
HEADER_CONTROL = header_control
DELIVERY = delivery_no
TABLES
RETURN = return.
I see the delivery document from VL03 tcode.
what is wrong? what data should i supply?
thanks,
- ferudun
Message was edited by:
Ferudun ATAKAN -
Deleted delivery and inspection lot tracking
dear all,
i have an issue please guide me
the senario is
At my client , there is a delivery happening in vl01n i will pick the required quanity and send the lot to the QM for final doc audit then after the QC is passed it will released from the QM then i will do the Post Goods Issue .
the problem is here in the client i have created a delivery document and i have picked the quantity and issued for the final doc audit report , during that time the goods which have been picked will be in the Scheduled for delivery .
Now if the quality check fails for( final doc auidit ( ie for pallletization ) or some nails and packing is not done properaly ) it has to go for rework for the final doc auidit .
If the quantity is rejected and gone for rework. i will have to delete the delivery document and create a fresh delivery doccument .
because only if i delete the delivery document what ever the quanity is there in the Scheduled for delivery will be moved backed to the Bonded store .
and then only it is possible for the goods to be picked and send for QC and after QC pass PGI will be done
My problem is is there any connection can be done from the deleted delivery document and the fresh delivery document
so that
i can able to track the inspection lot generated in the both the deliveries i.e ( the deleted one and the fresh delivery document for which the PGI is done )
Based on this i can create a zreport for the QCheck , becasue the client wants to have a link between the inspection lots generated between the two delivery documents and based on that they wanted to track the inspection lotHi
regarding the link between two delivery documents , as you are deleting the delivery the delivery document is not there in any table so you wont get the link even in the document flow table. or delivery table .
So its not feasible to generate link.
I would suggest a different approach ,pl investigate more before you go ahead,
You can have seperate storage locations one with internal QC ,Other FG store and third final dispatch or BSR store.
When material is transferred from production to quallity store a inspection lot is generated .once it is cleared QM will have stocks in FG store .Materials in FG store should be availble for final audit and only material which is approved in all respects in transferred to BSR store from where it is immediately dispatched. so QM and other departments can always access the stock in QM for internal inspection , rework an dfinal dispatch through store location instead of delivery tracking.
I hope this helps
regards
Mandar -
Find ref.doc.of a deleted delivery
Hello Experts,
I would like to ask how can I find the reference documents of an already deleted delivery?
I mean how can I find for ex.the sales order document number which was related to an already deleted delivery?
I would like to mention that I know the deleted delivery number & I want to know for ex.with which sales order number was related at the flow before deletion.
If you could please be so kind and inform me also about the relevant tables & fields which gives this information.
Great thanks in advance.!!!
Kind Regards
GeorgeHi,
As far as my knowledge goes, you will not be able to find out the sales order number by using a deleted delivery document number. The reason is, when you delete the delivery, the reference will be deleted from VBFA table which stores the details of document flow. As there is no reference maintained, you will not be able to retrive the data.
However, you can try to get the sales order number if you know
a. Customer PO number for which the sales order is created (VA02 / 03)
b. Sold to party + Material combination (VA05)
Hope this helps.
Thanks
Mukund S -
MD04 archive delivery document
Hello Guru,
i have question, in MD04 why it still possible to see the archive/deleted delivery document? even when we do double click this delivery document the system tells us "it is not more found in database".
how this happen? please explain me the reason for this.
thanksHello,
It should not happen in this way.
Check the orignal document against which you had created delivery like sales order or purchase order. Try to display the document from there.
If it is deleted, the order qty should be open once again. Create another delivery in it's place and recheck stock requirement list.
If it still exist, check if there is any note for such an inconsistany.
Regards, -
Get the item storage loaction of deleted delivery(DO)
Hi All,
Is there anyway to find the storage location for items of deleted delievry order ?
Thanks in advance.
Regards,
TNRHi
I think, you can NOT retrive the deleted Delivery document to see the storage location of the item.
One way to find is , check whether storage location specified for the item in the Sales order (if you have not deleted the Sales order yet. In standard, storage location is not determined in the Sales order).
Another way is to see the assignment of storage location determination (Assign picking location) in IMG.
Find out the Shipping point for the item, Plant and Storage condition from the material master data from the "Storage 1" view.
See the assignment , what is the Storage location to be determined for this combination of Plant , Shipping point and Storage condition.
Edited by: pradyumna on Sep 19, 2009 12:04 PM -
To view the reference sales document of a deleted delivery
Is there a table in SAP where I can see the reference sales document of a deleted delivery?
Or is there a way that I can see the reference sales document of a deleted delivery.I dont think it is possible to track sale order reference for a deleted delivery through standard tcode. Of course, you can see the deleted delivery details in MB51.
thanks
G. Lakshmipathi -
Disable Deletion in Delivery Document
Hi All,
I want to prevent Delivery Document to be Deleted by User, how can I disable the Delete Option in Delivery Document? At the moment I cannot create a Transaction Variant for it
Any help will be appreciatedDear Imran
Ask your basis team to access TCode PFCG, input all the required datas and execute. Once they input the required datas and proceeding further at one stage, against each transaction code, you can see a tab with Activities with numeric value 01, 02, 03 etc.,
Here you have to untick 02 for VL02N for that particular user.
thanks
G. Lakshmipathi -
Authorization Control for Delivery Document Deletion
Hi experts,
I know there's way to control the deletion of Sales Document through V_VBAK_AAT and V_VBAK_VKO.
However, how can I control the deletion of Delivery Document (in t-code VL02N)?
Thanks in advance.
ChinHi,
if you can't find a standard authorization object using standard tools such as SU24 and ST01 then there is a BADI LE_SHP_DELIVERY_PROC with method CHANGE_FCODE_ATTRIBUTES. This method is called whenever screen is displayed and can be used to exclude menu items e.g. Delete Delivery. So you can create a custom authorization object which will be used to control access to delete function.
Cheers -
Report of cancelled Delivery Document, Billing Document & Shipment Document
Hi,
How can I get list of cancelled Delivery Document, Billing Document & Shipment Document.
Regards,
VKHi,
Good Day,
Cancelled Delivery will available in Table CDPOS
Pass below parameter
OBJECTCLAS LIEFERUNG
OBJECTID Delivery Number
TABNAME LIKP
CHNGIND D
Cancelled Invoice available in Table VBRK Pass Below Parameter
FKSTO = 'X'
Shipment Document Once you delete i don't thinks will get the details.
May we can use Userexist and maintain customized table to track the deleted shipment number.
Best Regards,
KSK -
How 2 creat report for displaying the details of a Delivery Document using
how to create report for displaying the details of a Delivery Document using the tables LIKP, LIPS
thank you
regards,
jagrut bharatkumar shukla
points will be rewardedHI
I AM GIVING YOU MY DELIVERY DOCUMENT CODE...MODIFY IT ACCORDING TO YOUR REQUIREMENT
*& Report ZDELIVERY *
report zdelivery message-id z9bhu .
types: begin of t_likp,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
* LFDAT TYPE LIKP-LFDAT, "Delevery Date
* WAERK TYPE LIKP-WAERK, "Currency
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
end of t_likp.
types: begin of t_lips,
vbeln type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr,
* MEINS TYPE LIPS-MEINS, "Base Unit of Measure
vgbel type lips-vgbel, "Doc no of the reference document
end of t_lips.
types: begin of t_vbpa,
vbeln type vbpa-vbeln, "SD DocumenT Number
posnr type vbpa-posnr, "Item number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
end of t_vbpa.
types: begin of t_kna1,
kunnr type kna1-kunnr, "Customer Number 1
name1 type kna1-name1, "Name 1
ort01 type kna1-ort01, "City
adrnr type kna1-adrnr, "Address
end of t_kna1.
types: begin of t_li_vbpa,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
* LFDAT TYPE LIKP-LFDAT, "Delevery Date
* WAERK TYPE LIKP-WAERK, "Currency
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
vbeln1 type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr, "Net Price
* MEINS TYPE LIPS-MEINS, "Base Unit of Measure
vgbel type lips-vgbel, "Doc no of the reference document
vbeln3 type vbpa-vbeln, "SD DocumenT Number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
end of t_li_vbpa.
types: begin of t_final,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
vbeln1 type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr, "Net Price
vgbel type lips-vgbel, "Doc no of the reference document
vbeln3 type vbpa-vbeln, "SD DocumenT Number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
name1 type kna1-name1, "Name 1
ort01 type kna1-ort01, "City
adrnr1 type kna1-adrnr, "Address
name2 type kna1-name1, "Name 1
ort02 type kna1-ort01, "City
adrnr2 type kna1-adrnr, "Address
name3 type kna1-name1, "Name 1
ort03 type kna1-ort01, "City
adrnr3 type kna1-adrnr, "Address
end of t_final.
* D A T A D E C L A R A T I O N
*&*********Internal Table Declaration****************&*
data: it_likp type standard table of t_likp.
data: it_lips type standard table of t_lips.
data: it_vbpa type standard table of t_vbpa.
data: it_kna1 type standard table of t_kna1.
data: it_li_vbpa type standard table of t_li_vbpa.
data: it_li_vbpa_temp type standard table of t_li_vbpa.
data: it_final type standard table of t_final.
*&*********Work Area Declaration********************&*
data: wa_likp type t_likp.
data: wa_lips type t_lips.
data: wa_vbpa type t_vbpa.
data: wa_kna1 type t_kna1.
data: wa_li_vbpa type t_li_vbpa.
data: wa_li_vbpa_temp type t_li_vbpa.
data: wa_final type t_final.
*&*********Data Declaration************************&*
data: d_vbeln type likp-vbeln.
data: flag type i value 0.
* S E L E C T I O N S C R E E N D E C L A R A T I O N
selection-screen begin of block block2 with frame title text-001.
select-options: s_vbeln for d_vbeln obligatory. "Delivery no
selection-screen end of block block2.
* A T S E L E C T I O N - S C R E E N E V E N T S
*AT SELECTION-SCREEN.
*PERFORM VALIDATE_DATA.
* S T A R T O F S E L E C T I O N E V E N T S
start-of-selection.
perform fetch_data.
perform merge_data_kna1.
*INCLUDE Z9BT_SH_***4_FORMS.
call function 'OPEN_FORM'
exporting
* APPLICATION = 'TX'
* ARCHIVE_INDEX =
* ARCHIVE_PARAMS =
device = 'PRINTER'
* DIALOG = 'X'
* FORM = ' '
language = sy-langu
* OPTIONS =
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJECT =
* RAW_DATA_INTERFACE = '*'
* SPONUMIV =
* IMPORTING
* LANGUAGE =
* NEW_ARCHIVE_PARAMS =
* RESULT =
exceptions
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
mail_options = 6
archive_error = 7
invalid_fax_number = 8
more_params_needed_in_batch = 9
spool_error = 10
codepage = 11
others = 12
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
sort it_final by vbeln.
loop at it_final into wa_final.
call function 'START_FORM'
exporting
* ARCHIVE_INDEX =
form = 'Z9BT_DELIVERY'
language = sy-langu
* STARTPAGE = ' '
* PROGRAM = ' '
* MAIL_APPL_OBJECT =
* IMPORTING
* LANGUAGE =
exceptions
form = 1
format = 2
unended = 3
unopened = 4
unused = 5
spool_error = 6
codepage = 7
others = 8
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'WRITE_FORM'
exporting
element = 'ITEM_LIST'
function = 'SET'
type = 'BODY'
window = 'MAIN'
* IMPORTING
* PENDING_LINES =
* EXCEPTIONS
* ELEMENT = 1
* FUNCTION = 2
* TYPE = 3
* UNOPENED = 4
* UNSTARTED = 5
* WINDOW = 6
* BAD_PAGEFORMAT_FOR_PRINT = 7
* SPOOL_ERROR = 8
* CODEPAGE = 9
* OTHERS = 10
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'END_FORM'
* IMPORTING
* RESULT =
exceptions
unopened = 1
bad_pageformat_for_print = 2
spool_error = 3
codepage = 4
others = 5
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endloop.
call function 'CLOSE_FORM'
* IMPORTING
* RESULT =
* RDI_RESULT =
* TABLES
* OTFDATA =
exceptions
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
others = 6
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*& Form VALIDATE_DATA
* text
* --> p1 text
* <-- p2 text
form validate_data .
select single vbeln into wa_likp-vbeln
from likp where vbeln in s_vbeln.
append wa_likp to it_likp.
if sy-subrc <> 0.
flag = 1.
endif.
endform. " VALIDATE_DATA
*& Form FETCH_DATA
* text
* --> p1 text
* <-- p2 text
form fetch_data .
select a~vbeln
a~erdat
a~kunnr
a~kunag
a~traty
b~vbeln
b~posnr
b~matnr
b~arktx
b~lfimg
b~netpr
b~vgbel
c~vbeln
c~parvw
c~kunnr
into table it_li_vbpa
from likp as a
left outer join lips as b on a~vbeln = b~vbeln
inner join vbpa as c on b~vgbel = c~vbeln
where a~vbeln in s_vbeln and
c~parvw = 'RE'.
endform. " FETCH_DATA
*& Form MERGE_DATA_KNA1
* text
* --> p1 text
* <-- p2 text
form merge_data_kna1 .
if it_li_vbpa[] is not initial.
it_li_vbpa_temp[] = it_li_vbpa[].
sort it_li_vbpa_temp by kunnr.
delete adjacent duplicates from it_li_vbpa_temp comparing kunnr.
loop at it_li_vbpa into wa_li_vbpa.
read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
wa_li_vbpa-kunag.
if sy-subrc <> 0.
wa_li_vbpa_temp = wa_li_vbpa.
append wa_li_vbpa_temp to it_li_vbpa_temp.
endif.
read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
wa_li_vbpa-kunnrb.
if sy-subrc <> 0.
wa_li_vbpa_temp = wa_li_vbpa.
append wa_li_vbpa_temp to it_li_vbpa_temp.
endif.
endloop.
endif.
if it_li_vbpa_temp[] is not initial.
select kunnr
name1
ort01
adrnr into table it_kna1 from kna1
for all entries in it_li_vbpa_temp
where kunnr = it_li_vbpa_temp-kunnr.
endif.
loop at it_li_vbpa into wa_li_vbpa .
wa_final-vbeln = wa_li_vbpa-vbeln.
wa_final-erdat = wa_li_vbpa-erdat.
*it_final-LFART = it_li_vbpa-LFART.
wa_final-kunnr = wa_li_vbpa-kunnr.
wa_final-kunag = wa_li_vbpa-kunag.
*it_final-VSTEL = it_li_vbpa-VSTEL.
wa_final-traty = wa_li_vbpa-traty.
wa_final-vbeln1 = wa_li_vbpa-vbeln.
wa_final-posnr = wa_li_vbpa-posnr.
wa_final-matnr = wa_li_vbpa-matnr.
wa_final-arktx = wa_li_vbpa-arktx.
wa_final-lfimg = wa_li_vbpa-lfimg.
wa_final-netpr = wa_li_vbpa-netpr.
*wa_final-GEWEI = it_li_vbpa-GEWEI.
*it_final-VOLUM = it_li_vbpa-VOLUM.
*it_final-VOLEH = it_li_vbpa-VOLEH.
wa_final-vgbel = wa_li_vbpa-vgbel.
wa_final-vbeln3 = wa_li_vbpa-vbeln.
*wa_final-PARVW = wa_li_vbpa-PARVW.
wa_final-kunnrb = wa_li_vbpa-kunnrb.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnr.
if sy-subrc = 0.
wa_final-name1 = wa_kna1-name1.
wa_final-ort01 = wa_kna1-ort01.
wa_final-adrnr1 = wa_kna1-adrnr.
endif.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunag.
if sy-subrc = 0.
wa_final-name2 = wa_kna1-name1.
wa_final-ort02 = wa_kna1-ort01.
wa_final-adrnr2 = wa_kna1-adrnr.
endif.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnrb.
if sy-subrc = 0.
wa_final-name3 = wa_kna1-name1.
wa_final-ort03 = wa_kna1-ort01.
wa_final-adrnr3 = wa_kna1-adrnr.
endif.
append wa_final to it_final.
clear wa_final.
endloop.
endform. -
For a stock transfer invoice, dellivery document cancelled without cancelling the excise invoice. Is there any solution to prevent from cancelling the delivery document without cancelling the excise invoice
Hi,
I think you can still cancel the excise document.
However, if you need a check here, you need to put the same through a user exit at Delivery change/delete level. Take help of an ABAPer for the same.
Regards,
Peeyoosh. -
Delivery document flow show as a Archived,
Dear Experts,
My some of delivery document show in document flow as a archived, I want to know, Why delivery document archived,
I also want to not list of archived delivery document,
Can anybody give me t.code for list of delivery document archived,
Regards:
HappyHi,
Are these delivery actually archived by archiving job? Is there any subsequent document after the delivery?
Technically, if an delivery doesn't exist in LIKP table, but it exist in VBFA table, it will show "archived" in document flow.
As of why the delivery doesn't exist in LIKP, there could be two possibilities:
- it's deleted by archiving job.
- for unknown reason, it's gone.
To know why it's gone, it's necessary to reproduce the issue. If you can reproduce, please raise a message to SAP support.
What you need to do:
- If this delivery is really archived by your archivng job, you should also archive the preceding sales document.
- If this delivery is not supposed to be archived, but misisng, you need ot delete this dummy entry from VBFA table, and then recreate delivery.
To get a list of this kind of archived document, there is no standard report or transaction to do that. You need to write your own report to do that. As mentioned above, technically, if delivery exist in VBFA but doesn't exist in LIKP, it will be displayed like that. You may selecting VBFA and LIKP tables to get your list.
Regards,
Harry
Maybe you are looking for
-
How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application? The "Reopen all windows from last session" is unselectable.
-
How do I embed fonts in TextArea?
I was going to use a TextField with a UIScrollBar but godaddy disables UIScrollBar so I'm using a TextArea for my output. So far I'm able to disable text input, load htmlText and use the TextFormat class but I can't figure how to embed a font in it.
-
Filtering XML data by first letter
I have an XMLList of plant data. I know how to display a subset of data based on matching (thanks, Tracy): _plantsA = _myPlants.(@plantName == "Abelia"); or _cheapPlants = _myPlants.(@price<=5); But what's the syntax for matching plants whose name BE
-
Flash CS5 F1 window doesn't open at all
Hi, We've just purchased several Adobe web premium suits and encountered a serious problem with flash cs5- We can't open the help window - and we can't click F1 to get immediate actionscipt helps & references like before (in CS3 for example) I should
-
Report generation from oracle database
I need help in generating a report and the data needs to be populated from the oracle database Thanks, Balaji