Cancel multiple invoice documents
Dear All,
when iam cancel single document in vf11 it is cancelled sucessfully,the cancel document date also coming correctly, but my issue is when iam doing cancel multiple invoice documents that time the cancel document date is not taking the latest date, please help me in this issue ...iam using the below code ....
include name:MV60AF0V_VBRK_UNTERLEGEN
FORM VBRK_UNTERLEGEN
ENHANCEMENT 71 ZSD_BILLING_DT_DEF
if sy-tcode = 'VF11'.
data : l_index TYPE sy-tabix,
l_check(1) type c.
select single CHK from ZCONFIG into l_check
where ZCONFIGOB eq 'ALLOWBKINV'.
if sy-subrc eq 0.
if l_check eq 'Y'.
else.
if sy-tcode = 'VF11'.
if ( XVBRK-FKART = 'S1' OR XVBRK-FKART = 'IVS' ) .
XVBRK-FKDAT = sy-datum.
endif.
l_index = XVBRK_TABIX_AKTUELL - 1.
modify xvbrk INDEX l_index.
endif.
endif.
endif.
endif.
Regards
suni
HI,
Have you checked in debug that after entring the documents , is the part of your code triggered ? If yes then check tat in debug why it is not updating the sy-datum. I think the index is giving the problem check in debug you will find the solution .
Regards,
Madhukar Shetty
Similar Messages
-
Error when trying to Cancel an invoice document via MR8M Transaction
Greetings Everyone,
l am having an issue when trying to cancel an invoice document via MR8M transaction. It gives me the following error message;
SYSTEM ERROR: error in routine MRM_DRSEG_CR_CREATE
Message no.M8008
Procedure:
Contact your system administrator.
This invoice was related to a check payment. The check has been voided already and there is no clearing document for the accounting document. So, the item remains open. However when l try to reverse, it display the error message above.
Thanks in advanceread notes 449277 and 750455, your solution is probably there.
-
MIRO cancel an invoice document.
Hi,
what are steps to cancel an Invoice Document posted with MIRO?
Best regardsHi,
Procedure to cancel an invoice document, proceed as follows:
1. Choose Logistics Invoice Verification → Further Processing → Cancel Invoice Document.The initial screen for reversal appears.
2. In the fields Invoice doc. number and Fiscal year, enter the data for the invoice document you want to cancel.
3. In the Reversal reason field, select the reason for cancelling the invoice. This allows you to differentiate between different types of cancellations.
You can display the document to check. Choose Display document to do this. You can look at the items of the document to be cancelled. Return to the initial screen by
choosing Back.
4. Choose Invoice document → Post reversal doc.
Regards
Ankit Patodi -
Clear Multiple invoices document against single payment amount frm customer
Dear Experts,
There is a requirement in the business process like we file multiple invoices to customer account and he pays the amount in single payment. So what we need here is to clear all the invoice document in customer account against that payment.
Please tell is there anyway to achieve it at FI level.
Best Regards
Arun RaiHi,
You can clear them by defining clearing rules in OB74 for customer account type D. You should have your customer posting for collection based on a defined criteria based on some assignment number or something else that you will give in OB74..Based on the criteria that you will specify in OB74 system will match the open item invoices against their payment document and clear them accordingly. e.g you give assignment number ZUONR in OB74 for clearing criteria..It means that all of your invoices should have the same assignment number in Invoices as of the assignment number entered in Collection or payment document. Afterward you can clear customer in F.13 ..
I hope this will help you.
Regards
Edited by: Atif Farooq on Oct 18, 2011 11:38 AM -
Error While canceling a invoice document in MR8M
Dear All,
While canceling a MIRO document in MR8M one error is coming as "Inconsistent temporary document number assignment" Message no. F5726.
This error is coming now in a production server which has been running from last 6 months.
Diagnosis
Temporary document number '$$1' has been assigned to items in company code '1000'. However, the same temporary number ('$$1') is also used for periods '07' and '08'.
System Response
Items with the same values for company code, fiscal year, period, document type and other accounting header data must have the same temporary number in the accounting interface.
Procedure
This is a system error in the calling application.
If the document number assignment is internal, the temporary document number can be copied with its initial value.
If the document number assignment is external, you must follow the rules laid down for the accounting component.
Awaiting suggestions.
Regards
Abhijit DasHi,check note 1376351
-
Delivery number archived but cancellation of invoice document shows open still..
Hi All,
i have a scenario here where delivery number got archived but invoice number got cancelled and it is in open status.
I want to delete that particular cancelled invoice in the system.
How can i do it? Pls suggest..
Thanks,
Pavan.Hi Santosh,
The issue is with user in Production system.I dnt have access for VF02 in P system.
But still,my doubt is we cannot delete the billing document right??
Thanks,
Pavan. -
Price difference account - cancellation of invoice document.
I was doing the MIRO for the delivery cost for a import PO.
As i made a mistake in the entry , i cancelled the doc using MIR8
The document generated is for the reference.
How to knock out this PRD account's value
PK Account Account short text Assignment Tx Amount
21 17050057 Indian Customs - EDI V0 707509
96 26389000 Unappl cstm-CVD 20110321 V0 -144913.5
96 40408808 Price Difference-Oth V0 -142340.5
96 26389000 Unappl cstm-CVD 20110321 V0 -120621
96 40408808 Price Difference-Oth V0 -6635
96 26389000 Unappl cstm-CVD 20110321 V0 -272277.5
96 40408808 Price Difference-Oth V0 -14976.5
96 26389000 Unappl cstm-CVD 20110321 V0 -5445.5
96 40408808 Price Difference-Oth V0 -299.5
Any suggestionsHi Mahendar,
Could you just update what is the message it is giving when you try to save the new invoice. (is it saying problem in accounting interface).
if not goto VF02 and release the billing document to accounting. Then let us know what is the message it is updating. based on the same we can analyse. or in the same VF02 look for the accounting message.
Best Regards
SRI -
Looping over 1 document to fetch multiple invoices using "Appending"
Hi gurus ,
I'm facing a peculiar problem where in , i use the code -
SELECT KUNNR REBZG BUDAT DMBTR gjahr XBLNR HKONT UMSKZ SHKZG AUGGJ REBZJ AUGBL
FROM BSAD
APPENDING CORRESPONDING FIELDS OF TABLE I_BSAD_CL
FOR ALL ENTRIES IN I_BSAD
WHERE kunnr IN s_kunnr
AND bukrs EQ p_bukrs
AND AUGGJ EQ i_bsad-auggj
AND AUGBL EQ I_BSAD-belnr
AND shkzg EQ 'S'
AND ( UMSKZ EQ 'A'
OR UMSKZ EQ 'M'
OR UMSKZ EQ ' ' ).
There are 2 internal tables -
I_BSAD
I_BSAD_CL
I need to fetch multiple Invoice documents (REBZG) from BSAD table and place it in I_BSAD_CL , w.r.t. to the document numbers (BELNR) in I_BSAD internal table.
( There can be a scenario where in there r 5 invoices for 1 document number as well ).
So, to perform the task I use "appending corresponding fields of table" and "for all entries" .
Do u ppl have any other option by which i complete this task ? Because this code takes a while to execute in case of heavy data .
Thanks and Regards ,
Prithvi.
Edited by: Prithvi Sridhar on Jun 26, 2009 1:13 PM>
Rui Pedro Dantas wrote:
> Ok, then it is using the index we want.
> I just noticed that in your original code you have "IN s_kunnr" in the 2nd query, when it should be "= I_BSAD-KUNNR" (after getting each clearing document, you already know the customer for the corresponding cleared document).
>
> Have you changed that along the way?
> Maybe you can post the code you have at this moment?
>
> Anyway, your original question was about making only one query by joining the two tables, and yes, that would be of course possible.
Oh yeah ! I can also use I_BSAD-KUNNR instead of S_KUNNR. I did the same for BUKRS as well.
Here's my fresh code -
SELECT kunnr belnr budat dmbtr augbl rebzg gjahr XBLNR HKONT BUDAT AUGDT UMSKZ SHKZG AUGGJ REBZJ PSWSL BUZEI bukrs
FROM BSAD
INTO CORRESPONDING FIELDS OF TABLE I_BSAD
WHERE kunnr IN s_kunnr
AND bukrs EQ p_bukrs
AND gjahr EQ p_gjahr
AND budat IN s_budat
* AND shkzg EQ 'S'
AND blart EQ 'DZ'
AND ( UMSKZ EQ 'A'
OR UMSKZ EQ 'M'
OR UMSKZ EQ ' ' )
AND HKONT NE '241000'
AND HKONT NE '241010'
AND HKONT NE '241020'.
*MULTIPLE INVOICES(CLEARED)
IF I_BSAD[] IS NOT INITIAL .
SELECT KUNNR BELNR BUDAT gjahr XBLNR HKONT UMSKZ SHKZG AUGGJ REBZJ AUGBL BUZEI
FROM BSAD
INTO CORRESPONDING FIELDS OF TABLE I_BSAD_CL
FOR ALL ENTRIES IN I_BSAD
WHERE kunnr eq i_bsad-kunnr
AND bukrs EQ I_BSAD-bukrs
AND AUGGJ EQ i_bsad-auggj
AND AUGBL EQ I_BSAD-belnr
AND PSWSL EQ I_BSAD-PSWSL
* AND ( GJAHR EQ I_BSAD-AUGGJ OR GJAHR EQ I_BSAD-GJAHR )
* AND BUDAT EQ I_BSAD-AUGDT
* AND AUGDT EQ I_BSAD-BUDAT
AND shkzg EQ 'S'
AND ( UMSKZ EQ 'A'
OR UMSKZ EQ 'M'
OR UMSKZ EQ ' ' ). -
Cancellation of MIRO invoice documents
Hi,
When I cancel an invoice document in MIRo, System gives a message that FI document is to be cancelled manually. What does it mean? Where I should I cancel that document. In F-53, Two line item are shown. How to remove that entry?
Thanks and regards
UmaHi,
Before cancelling your MIRO invoice document, you need to cancel FI document first then only you can cancel MIRO invoice document.
So use FB08 to cancel FI document first then use MR8M to cancel MIRO invoice document.
Hope it helps you.
Regards,
Murali -
Dear all,
I have a condition wherein to cancel the invoice document. I tried to cancel the document using MR8M but since the invoice is created through ERS, system doesn't permit to cancel the document. Subsequently I cannot cancel the material document also since the error PU/IR qty is zero.
Can anyone tell me what should be done and how this has to be handled?
Regards,
M.MI am not sure whether this can help you. Can we think of using a debit memo to the same vendor which may cancel the payments to the vendor?
I don't have the sytem now and hence request you to check it out.
BR
Srinivas -
Hi Gurus,
Good day!
When I try to reverse the document # I'm getting an error message of Invoice document number cannot be processed further.
Please help me regarding with this problem.
Regards,
Virgilio
Message was edited by:
Virgilio PadiosHave you checked the check points mentioned in Message Long text of M8422 - ????. If Error message you r getting is not M8 422, please provide correct number to analyse further..
Message Long Text.
The invoice document XXXXXXXX contains the purchasing document XXXXXXXX, and the item XXXXXXXX. You cannot enter an invoice against this item, or you cannot cancel the invoice document. There can be various reasons for this, for example:
- The PO item is blocked
- The PO item is flagged for deletion
- Another employee is currently processing the PO
- The PO has not yet been released
- The corresponding service entry sheet has been deleted
- For a held invoice for planned delivery costs: the vendor in the held invoice is not the same as the vendor for the condition in the PO or the same as the vendor from the purchase order history entries. This is because the vendor for the condition in the PO has been changed in the meantime. -> In this case, the held document cannot be processed further. You can use report Z_MRM_DELETE_PP from note 501905 to delete the document. -
How to delete one invoice document in FI module!
Hi all,
Does anybody know the T-code to delete a invoice document in FI module.
Thanks in advance!
Best regards,
Wendong FengHi
You can't delete the invoice document. probably you can reverse(cancel) the invoice document using MIRO or MR8M.
Actual deletion can be done only by archiving.
Regards
Mani -
Automatic Clearing of FI invoice on reversal of MM invoice document
Hi Friends,
Once I reverse an Material Invoice Document system gives a message " clear the FI invoice manually". We want that the on cancellation of invoice document the FI document should be automatically cleared at the same time.What is the procedure.
Regards
SurojitHi ,
This is the current procedure which is happening.But the requirement is to clear the document simultaneously at the time of the cancellation of Material document.How can that be done.
Regards
Surojit -
List Invoice documents as per Reference Document(GR,Service Entry sheet)
HI,
I am looking for sap standard tcode which shows a list of Invoice document against Reference Document(GR,Service Entry sheet,PO).
I have checked few tcodes MB5s, MIR4, MIR5 But they not shows REfernece document (As specified in MIRO ie. GR, Service Entry)
In purchase order history it is very difficult to find out against which GR or SErvice entry sheet Invoice has been posted. Suppose against one GR multiple invoice document has been posted then we go though display MIRO and one by one check Reference document specified over there.Hi,
Try with ME80FN T Code, try by changing/adding the fields.
If you are not happy with the report you can create a SAP Query using the table MSEG,MKBF, RSEG, RBKP.
B/regds,
CB -
Cancal invoice document?
Dear Gurus,
In "MR8M" t-code, i have to cancel the invoice document.
But, in this, when i m entering invoice doc, it is showing me in display mode.
how can i cancel and how can i know that this document is being canceled?
pls help..Hi Sahoo,
You can reverse the invoice document in MR8m in 2 ways.
1) Once you enter invoice document number,year and reversal reason, just save it. It will show, document xxx reversed and you have to clear the financial documents manually.
2) Once you enter invoice document number,year and reversal reason, go to menu-invoice document--reverse.It will show, the document is reveresed.
Regards,
Prasath
Maybe you are looking for
-
How do I backup my iphoto library from an external hard drive to an online storage service?
I moved my iPhoto library from my iMac to an external hard drive because I was running low on memory on my computer. I decided I wanted to backup my computer files with an online service since I no longer have the external hard drive as a backup. I
-
Adobe CC Premiere Pro Exporting Excruciatingly Slow... Please Help?
Hi guys, school project due in a few hours, and I've been fighting with premiere pro for close to 15 hours on a 15 minute video. It's pretty basic, a little bit of footage and a few pictures in 1920x1080, but for the life of me this thing will not ex
-
Firefox 10 Adobe Acrobat Plug in 10.0.0.396
-
No receiver found - Scenario works fine in Test in Integration Directory
Hello Everyone, I'm receiving the following in SXMB_MONI when I run my xmlFile to RFC scenaro: ... (10 lines) I have tried the following to remedy this: - CPA Cache Refresh - SXI_CACHE refresh on ABAP - Repository, Runtime, and Directory Cache refr
-
How to Solve Routed Output based on certain field.
Hi, Please help me with this routing development... We have an input strucutre something like this <b><File> <Customer> <Name>John</Name> <Company Info> <Number>101</Number> <Company>Coka Cola</C