Block cancelling the cleared billing documents

Hi Friends,
Currently system is allowing to cancel the cleared billing document and business does want to do that, for example when F2 billing type document is cancelled then it is generating S1 type cancelled document.
I think I can prevent this by config ( in VOFA for billing type F2 under section cancellation>Copying requirements> assign 29.
And I need to do it for all billing types,
Now my queries are:
Do I need to do any config for cancelled billing type (S1)  as well ?
Is there complication for doing that?
Whether I would be able to cancel the uncleared billing document in this way?
Or just I can proceed what I mentioned above.
Regards
Ashu

So I do need to assign 29 in only billing document type F2;
is there any change required for cancelled billing document type (S1)?
Yes only in F2. Not in S1.
So if accounting document of billing type is showing as
cleared then only system will not allow to cancel it.
Will it allow to cancel the billing document if accounting
document ( of type F2) is showing as not cleared?
Yes that will allow you to do so.
Say, due some price change, you want to cancel an invoice with cleared accounting doc and you are using 29 in routine. Then in that case take use of Invoice correction request / credit memo request / debit memo request based on your business requirement.
Thanks & Regards
JP

Similar Messages

  • Block cancellation/creation of billing document on CLOSED posting period

    Hi Experts,
    Currently, user is allowed to cancel/create backdated billing document where period already closed, but it does not release to accounting automatically, due to the period has been closed.
    When account user found out that the accounting document is missing for the billing document, they have to re-open the period and manual release it to accounting, in order to generate the accounting document.
    Therefore, we need the billing document to be blocked for cancellation/creation on CLOSED posting period.
      Is there any settings in stardard SAP to block cancellation/creation of billing document on CLOSED posting period?
    would appreciate your inputs.
    Thanks and Regards,
    N.C.Reddy

    Hi ,
    We have blocked cancellation/ creation of billing document through below  user exit. Below is the progran code also.
    ***INCLUDE RV60AFZC.
    FORM USEREXIT_NUMBER_RANGE_INV_DATE USING US_RANGE_INTERN.
    Example: Number range from TVFK like in standard
    US_RANGE_INTERN = TVFK-NUMKI.
    *{   INSERT         KPDK904773                                        1
    *Block creation or cancellation of billing doc in closed period
    DATA : gv_gjahr TYPE bkpf-gjahr,
           gv_monat TYPE bkpf-monat,
           gv_poper TYPE t009b-poper,
           gv_bukrs TYPE t001-bukrs,
           lv_gjahr TYPE t001b-frye1,
           lv_monat TYPE t001b-frpe1,
           gv_oper  TYPE t001b-frpe1.
      CLEAR : gv_gjahr, gv_monat, gv_poper, gv_bukrs.
      gv_bukrs = vbrk-bukrs.
    IF NOT likp-wadat_ist IS INITIAL.
    *- First determine the Period of the Actual GI date.
      CALL FUNCTION 'FI_PERIOD_DETERMINE'
        EXPORTING
          i_budat              = likp-wadat_ist
          i_bukrs              = gv_bukrs
       IMPORTING
         E_GJAHR              = gv_gjahr
         E_MONAT              = gv_monat
         E_POPER              = gv_poper
       EXCEPTIONS
         FISCAL_YEAR          = 1
         PERIOD               = 2
         PERIOD_VERSION       = 3
         POSTING_PERIOD       = 4
         SPECIAL_PERIOD       = 5
         VERSION              = 6
         POSTING_DATE         = 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.
          ELSE.
            CLEAR : lv_gjahr, lv_monat.
            lv_gjahr = gv_gjahr.
            lv_monat = gv_monat.
    *- Once period is determine check whether Period is open or not for 'D' - Customer Account
            CALL FUNCTION 'FI_PERIOD_CHECK'
              EXPORTING
                I_BUKRS                = gv_bukrs
                i_gjahr                = lv_gjahr
                i_koart                = 'D'
                i_monat                = lv_monat
             IMPORTING
               E_OPER                 = gv_oper
             EXCEPTIONS
               ERROR_PERIOD           = 1
               ERROR_PERIOD_ACC       = 2
               INVALID_INPUT          = 3
               OTHERS                 = 4.
              IF sy-subrc <> 0.
               MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ELSE.
    *- Once period is determine check whether Period is open or not for 'S' - All G/L Accounts
                CALL FUNCTION 'FI_PERIOD_CHECK'
                EXPORTING
                  I_BUKRS                = gv_bukrs
                  i_gjahr                = lv_gjahr
                  i_koart                = 'S'
                  i_monat                = lv_monat
               IMPORTING
                 E_OPER                 = gv_oper
               EXCEPTIONS
                 ERROR_PERIOD           = 1
                 ERROR_PERIOD_ACC       = 2
                 INVALID_INPUT          = 3
                 OTHERS                 = 4.
                IF sy-subrc <> 0.
                  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
               ENDIF.
             ENDIF.
         ENDIF.
    ENDIF.
    *- Check Billing Date period is closed or not
    IF kom-fkdat is not initial.
      clear : gv_gjahr, gv_monat, gv_poper.
    *- First determine the Period of the Actual GI date.
      CALL FUNCTION 'FI_PERIOD_DETERMINE'
        EXPORTING
          i_budat              = kom-fkdat
          i_bukrs              = gv_bukrs
       IMPORTING
         E_GJAHR              = gv_gjahr
         E_MONAT              = gv_monat
         E_POPER              = gv_poper
       EXCEPTIONS
         FISCAL_YEAR          = 1
         PERIOD               = 2
         PERIOD_VERSION       = 3
         POSTING_PERIOD       = 4
         SPECIAL_PERIOD       = 5
         VERSION              = 6
         POSTING_DATE         = 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.
          ELSE.
            CLEAR : lv_gjahr, lv_monat.
            lv_gjahr = gv_gjahr.
            lv_monat = gv_monat.
    *- Once period is determine check whether Period is open or not for 'D' - Customer Account
            CALL FUNCTION 'FI_PERIOD_CHECK'
              EXPORTING
                I_BUKRS                = gv_bukrs
                i_gjahr                = lv_gjahr
                i_koart                = 'D'
                i_monat                = lv_monat
             IMPORTING
               E_OPER                 = gv_oper
             EXCEPTIONS
               ERROR_PERIOD           = 1
               ERROR_PERIOD_ACC       = 2
               INVALID_INPUT          = 3
               OTHERS                 = 4.
              IF sy-subrc <> 0.
               MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ELSE.
    *- Once period is determine check whether Period is open or not for 'S' - All G/L Accounts
                CALL FUNCTION 'FI_PERIOD_CHECK'
                EXPORTING
                  I_BUKRS                = gv_bukrs
                  i_gjahr                = lv_gjahr
                  i_koart                = 'S'
                  i_monat                = lv_monat
               IMPORTING
                 E_OPER                 = gv_oper
               EXCEPTIONS
                 ERROR_PERIOD           = 1
                 ERROR_PERIOD_ACC       = 2
                 INVALID_INPUT          = 3
                 OTHERS                 = 4.
                IF sy-subrc <> 0.
                  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
               ELSE.
                IF kom-fkdat4(2) <> likp-wadat_ist4(2).
                ENDIF.
               ENDIF.
             ENDIF.
         ENDIF.
    ENDIF.
    *}   INSERT
    ENDFORM.
          FORM USEREXIT_FILL_VBRK_VBRP                                  *
          This userexit can be used to fill fields in VBRK and VBRP     *
          Be aware, that at this time the work areas KUAGV KURGV        *
          KUWEV and KUREV are not filled.                               *
          This form is called from FORM VBRK_VBRP_FUELLEN.              *
    FORM USEREXIT_FILL_VBRK_VBRP.
    Example: change Tax country
    VBRK-LANDTX = T001-LAND1.
    ENDFORM.
    *eject

  • Issue When cancel the SD-Billing Document

    Hi,
    When i cancel the billing document It should debit the Sales account with posting key 40 & credit the Customer Account with posting key 12 (Reverse invoice).
    But in my case it is debiting the Sales account with Posting key 40 and Credit the customer with posting key 11(Credit memo) which is wrong posting key in this case.
    Kindly advice me how to correct this wrong posting key issue and how can i fix this with correct posting key 12 instead of 11?
    Kindly help me and give some inputs.
    Thanks
    Supriya

    Dear Supriya
    Go to OB40 and double click on the required Transaction.  Place your mouse on the G/L Account and click on top "Posting Key".   Check what is maintained there.
    thanks
    G. Lakshmipathi

  • Error Message for the cancellation of paid billing document

    Hi,
    Can i create and error message for the cancellation of paid billing document? If yes, how can i create such.
    Overview:
    Accounting document is created upon creation of billing document. Upon payment, document cleared is the accounting document created. There are instances wherein accounting document was already cleared but our user is still able to reversed billing document. Now, i want to create an error message or user exist wherein, when a user will not be able to reverse the billing document if the accounting document attached to this billing document is already paid.
    Thank you and best regards.
    Rachelle

    Hi Rachel,
    You can make use of the exit (Include) MV45AFZZ. The corresponding form routine is FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
    In this exit, For the given billing document ( which is going to be cancelled ), pick up the accouting document from BSEG tables.
    For this accouting document, Pass this to BSAD Table ( Customer clleared items) 
    If BSEG-BELNR = BSAD-BELNR and
      BSEG-Acc.Year = BSAD-Acc,year )..
    Then throw a error message and EXIT.
    So for all the cleared docments , user can not cancel the invoices.
    Regards,
    Sai

  • Double Cancellation of a Billing Document

    Dear all,
    I am facing a challenging problem (at least it is challenging to me), I had created an billing with no SO, just with the Article Document. I used VF02 to cancel the billing document by selecting each line item and then cancel item, because it doesn't allow me to use VF11 to cancel. (I don't know why). It was working fine and I had already cancelled more than 20 billing documents using this method. However, I made a mistake by cancelling a billing document twice.
    A billing document 5001366372 was original created and planned to be cancelled. I open the VF02, enter the 5001366372 then enter, select the line item and then click cancel item. After that I saved the document, a cancel billing document had been created - 5400002606. However, I accidentally re-do the process and the system allows me to delete such billing document (5001366372) again, with another cancel billing 5400002607. From my understanding, the billing document cannot be deleted again once it had been deleted, I don't know why I can delete this twice. This is one of my question.
    But the more important question is, I need to delete the second cancel billing document (5400002607) but I can't. I tried to use VF11 to cancel, but the system stopped me with an error message "Cancellation document 5400002607 cannot be cancelled". Of course I have tried the other one 5400002606 with the same result. I also tried to change the document in VF02 but failed. I just want to cancel or delete such billing document in anyway it can (along with the corresponding accounting document). Can anyone have any idea on this issue?
    *to summarize: *
    T-Code__Action _____ Doc #________Result Doc #
    VF02____Cancel item__5001366372___5400002606
    VF02____Cancel item__5001366372___5400002607
    Both Cancellation reference to the same billing document
    5400002606 & 5400002607 --> 5001366372
    Cannot Cancel by VF11
    Thanks and regards,
    Mandy

    Hi Mandy,
    The response "Cancellation document cannot be cancelled " is expected one. You can cancel an invoice document either in VF02 or in VF11. However once the cancellation document is created, you cannot cancel the cancellation document. You only have to create a debit memo to reconcile this difference.
    The cancellation document types are S1 or S2 depending on the scenario. These documents cannot be reversed. This is the expected behaviour of the system

  • Creation of DMR and CMR from the archived billing document in EHP3 system

    Hi all
    I read somewhere that one of the functionality in EHP3 is we can create sales document like debit memo request and credit memo request from the archived billing document. I am working on EHP3 system only but i am not able to create the sales document. the system throws an error that billing document doesnt exist
    If any one of you have worked on such functionality kindly suggest me why its not happening here also let me know Is ther any customization required for the execution of this functionality in spro.

    > If any one of you have worked on such functionality kindly suggest me why its not happening here also let me know Is ther any customization required for the execution of this functionality in spro.
    I suggest you open that question in an SD forum together with the support package you run and if you have an industry solution or any business function sets activated or not.
    Markus

  • Creation of sales document (DMR, CMR) from the archived billing document

    Hi all
    I read somewhere that one of the functionality in EHP3 is we can create sales document like debit memo request and credit memo request from the archived billing document. I am working on EHP3 system only but i am not able to create the sales document. the system throws an error that billing document doesnt exist
    If any one of you have worked on such functionality kindly suggest me why its not happening here also let me know Is ther any customization required for the execution of this functionality in spro.

    hi,
    the help says:
    You can use this business function to further optimize your electronic Sales and Billing Processes.
    Electronic data archiving regulations result in a high volume of data for sales documents and require invoices to be archived at an early stage. You can integrate archived billing documents in your business processes more easily. Since you still have electronic access to archived invoices during the sales process, you can manage archiving without delay and execute further sales processes electronically.
    You can more efficiently use the rebate agreements from SAP ERP for your marketing activities. In particular, customers who use SAP CRM (Trade Promotion Management) with a large volume of data for campaigns, target groups, and product segments can define a custom-made logic for their rebate determination and thus avoid potential database problems.
    Integration
    To implement the logic for rebate processing in SAP ERP, you use the Enhancements for Rebate Processing Business Add-In (BAdI). For more information, see the Implementation Guide (IMG) under  Sales and Distribution  Billing  Rebate Processing  Business Add-Ins (BAdIs)  Enhancements for Rebate Processing .
    Prerequisites
    You have activated the Logistics: S&D Simplification (SD_01) business function.
    Features
    You can integrate archived billing documents in your business processes as follows:
    Create sales documents with reference to archived billing documents, such as credit memo and debit memo requests.
    Display archived billing documents.
    When you do either of these steps, the system first looks for the invoice in the database and then in the archive.
    For the sales employee, the processing steps are identical, regardless of where the sales document is stored. As soon as the sales employee processes an archived billing document, they see the relevant information in the message line as well as in the title of the function.
    For rebate processing, you can store your company's check logic in the interface of the Business Add-In (BAdI) Enhancements for Rebate Processing.
    So check if you have activated the business function.
    I hope this helps.
    Balazs

  • To Generate the invoices (billing document) in t-code VF02 to DIRs in DMS

    Hi All,
    I have requirement is to generate the invoices (billing document) in t-code VF02 to DIRs in DMS or print list using ArchiveLink every night in batch program.
    Did anybody worked on similar scenerios, please let me know.
    Regards
    MM

    Hi Manish (and everyone).
    Were you able to find the solution to this?
    I am in a similar situation - trying to generate invoices from an ArchiveLink document.
    All setup pertaining to ArchiveLink is already in place.  What I need to do now is access the document from the content repository and start from there.
    Any input will be greatly appreciated.
    And of course, points will be rewarded.
    Many thanks!

  • Refernce between MIRO document and the customer billing document

    Hi,
    We have aa requirment in the third party business process. Is there any referce table between the Miro document and the customer billing document in case of third party business process other than sale orders.
    Is there any other way where i can know that for this billing document this is my MIRO document number in case of third party business process. For the reportin purpose we need the information is there any table or any function module which satisfies the above requirement.
    Thanks in advance.
    Sunil

    Hi,
    As per my best knowledge there's no direct connection between "MIRO document" and billing document.
    - the logistics invoice(s) (MIRO document) is (are) connected to the PO in table EKBE (PO no. in EBELN, Invoice no. in BELNR where BEWTP="Q")
    - PO and SO are connected in table VBFA (SO no. in VBELV, PO no. in VBELN where VBTYP_N="V")
    - SO and billing documents are connected in table VBFA (SO. no. in VBELV, Billing doc. no. in VBELN where VBTYP_N="M")
    Maybe there are other solutions too.
    Regards,
    Csaba

  • Cancellation of cleared bill of exchange document

    One of our end-user wants to cancel some bill of exchange documents that were posted. These documents were cleared too
    My question that we want to cancel (reverse the cleared documents) how it is possible?
    using the Tcode FBRA i have the message "Document includes already cleared items - reversal not possible"
    the problem that we have about 300 document
    thanks for the support

    Hi,
    SWWL - Deletes work items 
    SWW_SARA - Archive work items
    And if you want to delete the WF then follow the given instructions:-
    You must first open the workflow. You do not have to do anything with it, but it must have been opened prior to deletion. 
    You can select multiple workflows at once, then hit the execute button. From there, just hit escape to go to the next one. 
    Please visit the given below links also
    FI workflow for single step transaction F.80
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4af16453d11d189430000e829fbbd/content.htm
    Thanks
    R.K

  • Cleared Billing Documents

    Hi
    I want to check all those billing documents that have been cleared. How can I retrieve all such cleared billing docs.
    One procedure I tried using is: Getting BELNR from VBRK and checking if it exists in BSAD. Is it a correct way? or do we have any other ways of finding the same. Pls help.
    THanks
    Shakir

    Hi,
    You can check using t-code FBl1N.
    At selection screen, in line item selection.. choose cleared items,and pass the selection criteria whatever you want to enter through dynamic selection.
    Please reward if useful.
    Thanks & Regards
    Swati

  • User-Exit to cancel a Sales Billing Document

    Hello,
    When we try to cancel a Billing Document is there an indication field that specifies that the billing document is to be cancelled or we only can figure it out by the Billing Document type specified for the cancellation.
    Thanks,
    Alam.

    Hi
    If a bill is cancelled the field VBRK-FKSTO is setted to X.
    U can find the number of the bill cancelled in the field VBRK-SFAKN in the bill cancelling.
    Max

  • How to print the invoice(Billing document) using program RSNAST00

    Hi,
      I want to print the invoice using the program RSNAST00,
    but when i fill in selection screen with the following details,
    Output Application : V3
    Object Key : Billing Document Number
    Output Type : ZPFM
    Transmission Medium : 1
    But it is throwing an Information Message "0 outputs were processed in total (0 successfully,0 incorrectly)
    So please guide me, what are settings i have to do and what abap code i have to write to overcome this error.
    Regards,
    Shasiraj.C

    Hi,
      As you told I am using the function module RV_MESSAGE_DIALOG in my program when I directly execute my program its not printing invoice,but when i keep the break point and execute a pop up comes in which i click on the PRINT button that time it is printing the invoice.
    But I dont want to click on Print button manually, my code should automatically take care of printing also.
    Can guide me in this issue.
    Regards,
    Shasiraj.C

  • Billing date for a purchase order in the corresponding billing document

    Hello,
    for a purchase order I need to select the billing date in the bill which corresponds to the purchase order. There is a posting date in the order history but I am not sure that this date is identical with the billing date in the purchase order. Any suggestions? Thanks.
    Regards, Lars.

    I guess you are talking about due date for a billing document.
    There's an FM Determine_Due_date for that. before that you'll have to use FM FI_DOCUMENT_READ with I_AWTYP as VBRK and I_AWREF as Billing Document Number. You will get T_BSEG entry.
      CALL FUNCTION 'FI_DOCUMENT_READ'
       EXPORTING
         i_awtyp           = 'VBRK'
         i_awref           = po_vbeln
       TABLES
         t_bseg            = i_bseg
      SORT i_bseg BY vbeln.
    READ TABLE i_bseg WITH KEY vbeln = 'Billing Document Number'.
      IF sy-subrc IS INITIAL.
        MOVE-CORRESPONDING i_bseg TO wa_faede.
        CALL FUNCTION 'DETERMINE_DUE_DATE'
             EXPORTING
                  i_faede                    = wa_faede
             IMPORTING
                  e_faede                    = wa_faede
             EXCEPTIONS
                  account_type_not_supported = 1
                  OTHERS                     = 2.
    This wa_faede will have due date in one of its fields.
    Hey do reward points if this post is helpful.

  • Error msg shown while cancelling the GR - Material Document

    Hi All,
    While trying to cancell the GR for an Asset / Material the following error msg shown:
    Balance for transaction type group 10 negative for the area 01
    Message no. AA629
    Asset affected: 000000107102-0000
    Diagnosis
    With the transaction entered, the balance for the transactions in group 10 in area 01 will be negative in this fiscal year. However, the balance of transaction type group 10, according to its definition, must be positive in each fiscal year.
    System Response
    The system rejects this posting.
    Procedure
    Check the transaction type, the amount and the fiscal year in your posting. If you want to post a credit memo to an acquisition from the previous year, then use a transaction type for a retirement. If necessary, you can change balance rules after talking with your SAP consultant.
    Can any one help what is the reason and how to find out the error.
    Regards
    SS

    Hello,
    Please refer SAP notes
    160699
    48886
    Please also search SAP market place with message number., if these notes not suitable for you.
    Regards,
    Ravi

Maybe you are looking for