Restricting Creation of invoice

Hi friends
Creation of SO is required without PO number to continue with other activities like production, delivery. But how can we restrict the user from creation of invoice if PO number is not maintained in Sales Order PO field.
Please help me in this regard
Regards
Venkat

First of all, there is no  incompletion log for billing.  So what you can do is that you can add this logic in your existing routine assigned in VTFL.  Alternatively, you can try with billing exit USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)
thanks
G. Lakshmipathi

Similar Messages

  • Account determination error - in creation of invoice

    Hello experts,
    i have an error in creation of invoice, after( pgi post goods issue)
    will you please help me out to solve this error.
    thanks & Regards,
    yogesh raina

    hello sir,
    After going throuth this path it shows no gl account in account determination chart
    as below
    Condition type     Message     Description
      ZPR0                                  123     Access KOFI not carried out (initialized field)
    Access     Message     Description
    10     123     Access KOFI not carried out (initialized field)
    20     121     No G/L account found in Account determination type KOFI
    30     123     Access KOFI not carried out (initialized field)
    40     121     No G/L account found in Account determination type KOFI
    50     121     No G/L account found in Account determination type KOFI
    60     123     Access KOFI not carried out (initialized field)

  • Creation of invoicing plan while creating the PO using BAPI_PO_CREATE1

    Hi, basically I'm creating a PO using BAPI_PO_CREATE1 and then creating Invoicing plan thru ME22 using BDC.
    Could anyone please help me if there is any possibility of creation of invoicing plan while creating the PO itself using BAPI_PO_CREATE1.
    thanks in advance.

    Hi,
    Have you tried filling up the invoicing plan related tables of the bapi ?
    *"      INVPLANHEADER STRUCTURE  BAPI_INVOICE_PLAN_HEADER OPTIONAL
    *"      INVPLANHEADERX STRUCTURE  BAPI_INVOICE_PLAN_HEADERX OPTIONAL
    *"      INVPLANITEM STRUCTURE  BAPI_INVOICE_PLAN_ITEM OPTIONAL
    *"      INVPLANITEMX STRUCTURE  BAPI_INVOICE_PLAN_ITEMX OPTIONAL
    Regards.

  • Restrict creation of sales order for specific customer

    Hello All,
    I want to restrict creation of sales order (of particular sales order type) for specific customer, please let me know how can I do it.
    Your early reply will be highly appreciated.
    Thanks & Regards,
    Mahavir

    HI
    As per My knowledge it is not possible in Standard SAP , you need to go with Enhancement
    Go to SE38 : MV45AFZB, User Exit: USEREXIT_CHECK_VBAK
    Regards,
    Prasanna

  • Baseline date in Accounting document changed after creation of Invoice List

    Hi all,
    1) User Requirement:-
    Creation of Invoice document(using VF01), Transfer u201CGoods Issue Dateu201D to FI accounting as a Baseline date instead of Invoice creation date.
    To meet the above requirement I did enhancement name: SDVFX008 user exit: EXIT_SAPLV60B_008.
    Its working fine and transfered goods issue date to Accounting(as baseline date) insted of  invoice date.
    2) Problem:-
    After Creation of Invoice List (VF21) system again overwriting baseline date iwith invoice list date.
    Does anyone know how to Stop overwriting baseline date in accounting while creation of invoice list.
    Thanks & Regards
    Sudheer

    Hi Valerie,
    do you recall the User Exit?
    Thanks

  • How identify closed accounting period to restrict creation of billing document in sap

    Hi Experts,
    I have a requirement to identify the  closed  periods in sap based on this we need to restrict the creation of billing document .
    Actually we are working for  Brazil  client, there we have notafiscal   which created along with billing document.we are maintaining  periods monthly basis.
    When the periods are closed  accounting document not created and billing document is created  this is working fine . But over scenario along with billing document notafiscal number is also created which  is causing the problem. This notafiscal should not be created without a accounting  document.
    so my client wants to restrict creation of billing document also when these monthly periods are closed.
    Please suggest me a solution.
    Regards
    Ravi

    Helllo Ravinder,
    To check if a period is closed using the FM FI_PERIOD_CHECK.
    First calculate the period of the FI document date.
    DATA: GJAHR LIKE BKPF-GJAHR,
           MONAT LIKE BKPF-MONAT,
           POPER LIKE T009B-POPER.
    CALL FUNCTION 'FI_PERIOD_DETERMINE'
           EXPORTING
                I_BUDAT        = I_BUDAT
                I_BUKRS        = I_BUKRS
    *          I_PERIV        = ' '
    *          I_GJAHR        = 0000
    *          I_MONAT        = 00
    *          X_XMO16        = ' '
           IMPORTING
                E_GJAHR        = GJAHR
                E_MONAT        = MONAT
    *          e_poper        = 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.
    MOVE MONAT TO POPER.
            CALL FUNCTION 'FI_PERIOD_CHECK'
                 EXPORTING
                      I_BUKRS          =  I_BUKRS
    *                I_OPVAR          = ' '
                      I_GJAHR          =  I_GJAHR
                      I_KOART          = '+'
    *                i_konto          =
                      I_MONAT          = POPER
                 EXCEPTIONS
                      ERROR_PERIOD     = 1
                      ERROR_PERIOD_ACC = 2
                      OTHERS           = 3.
    ENDIF.
    Tutorial ABAP How to check that posting date belongs to closed period - ABAP Development - SCN Wiki
    I hope you help.

  • Enhancement pt /badi/exit to restrict Creation/edition of Note txt (STXH)

    Hi All,
    I am trying to restrict creation/edition of Note(text) in PA30 for qualification(infotype 024) . The BADI(HRBAS00INFTY) which triggers  when the qualification is changed ,  is NOT  having any data in old_image and New_image when Notes are changed .
    Any info on how to restrict enhancement point /badi/exit for this will be very helpful .
    Thank you in advance 
    Brajesh .

    No user exits or badis are available to control the transactions or master data long texts. It is only available for SO10 texts (Standard Text). I have read this somewhere in the SAP Notes.

  • SD Billing - Avoid Cancellation Creation if Invoice has not been posted yet

    Dear all,
    I have noticed this problem in my company system.
    Problem descripion:
    - you creates an invoice and the system doesn't post it for any reason
    - then you create the cancel of the invoice, BEFORE forcing the posting of the invoice
    --> user creates Cancel, Cancel is not posted as well.
    --> from now it is impossible to post both invoices: if you try to post the Invoice after the cancel creation, the VF02 recongnise that a CANCEL exists and do not allow for the posting
    --> standard VFX3 doesn't signal this kind of not posted documents situation.
    Ok, The right procedure for thes user should be: create invoice, if not posted then try to understand why not posted, and not CANCEL it.
    But in this case VFK3 was not able to detect the invoice was not posted: it was not in the list.
    So the 2 ways must be:
    1) one possibility could be undestand in VFX3 could be enhanced: I checked in OSS but I didn't find anything.
    2) other possibility: add a further check in interface between SD and FI in order to check if original invoice is not posted to FI and in this case block the cancel creation, as instead standard SAP does.
    Could you please give me an idea on how it would be better proceed?
    Thank You very much.
    Raffaella

    Dear,
    thank you for your feedback.
    in VOFA the flag is not ticked.
    The problem was that In VFX3 no data were found for the specified document (with all "Inclomplete Due To" check box  flagged), even if invoice and relative cancel were already created, but not posted.
    When we tryied to to post them, via VF02 for example, the system didn't warned anything specific and, doing the posting via debug, we discovered that the posting was stopped because VBRK-RFBSK = E = "Billing Document Cancelled".
    So, forcing via debug that value = ' ', because of the urgency of Finance Office, we could invoice it and then do the same for its cancel.
    So at the moment it is not possible for me to reproduce the error in the system.
    The only workaround I can imagine, is to find a way to avoid cancel creation if invoice is not posted yet.
    Do you think this is feasible way?
    Thank You veyr much for your suggestions.
    KR
    Raffaella
    Edited by: Raffaella Sacchetto on Nov 29, 2010 3:43 PM

  • Restrict multiple Proforma invoice from order

    Hello All,
    Our customer wants to restrict multiple proforma invoice from sales order.I have written a logic in copy requirement routine.Its working when there is already created invoice from order .But if i try to create invoice first time from order then system doesn't allow me to create invoice and giving message "No billing document were generated ".
    Could anybody help.
    Regards,
    Sachin

    Hi,
    Restrict multiple Proforma invoices
    Thanks & regards.

  • Is there a way to stop creation of invoice that refers delivery items with

    Dear Friends
    I have items in delivery with qty 0 ( this is required for IDOC processing )
    The Invoice was also created with 0 qty  with refrerence to the Delivery,
    is there a way to stop creation of invoice that refers delivery items with zero qty.
    Rgds
    Ravi

    Hi,
    Check the copy control settings in t.code VTFL.
    Go to item details. Check the field routine assigned in copying requirements.
    Copy this routine in t.code VOFM and add further logic to check quantity is not equal to zero, then this new routine in the copying requirements field. Check with ABAP'er.
    Regards,

  • Restrict Creation of Cost Elements

    Hi All,
    I have a situation in which I have to restrict creation of Cost Elements for some of my P&L GL accounts. Is there any way I can restrict them. Any help would be appreciated.
    Thanks
    MKR

    Hi MKR,
    I would recommend not to have any validations for this.. This is the heart of the whole system and needs to be maintained in a very disciplined way
    If you put hard stops for such things, people will never understand the relevance of things and slowly the mind set evolves like "Unless the system gives a hard stop, any thing and every thing can be done"...  So, they go on creating nuisance in the system till the system stops them
    Moreover, there is no logic by which you can control this even if you try for an ABAP check... If you do still, it will propose probs in future...
    Provide the authorization for creating/changing cost elements to one single person who understands the system well and have a central control...
    Regards
    Ajay M

  • How can we restrict creation of enquiry VA01 plant wise

    How can we restrict creation of enquiry VA01 plant wise
    Pradeep

    Hi Pradeep,
    You can restrict through the user exit.
    MV45AFZZ ( MOVE_FIELD_TO_VBAP).
    Check the entered plant here and the user name.
    Make a custo table with plant and user name combination.
    Make a select query to check with the custom table entries.
    If it fails , give an error message and exit from the screen.
    Hope this helps.
    Regards,
    Deepak Kori

  • BADI for restrict creation of business transaction independently

    Hello Experts,
    I have a requirement where I need to check if the Business activity (say any 'Z' transaction) has a opportunity follow-up document then only that business transaction need to be executed else should give the error that "Z transaction need to be created through opportunity only and can not be created individually".
    I found one BADI CRM_ORDERADM_H_BADI where I can check for the condition but the issue is that as soon as I entered to CRMD_ORDER this BADI gets triggered where I need to trigger this BADI only when the user is trying to create the 'Z' business transaction individually.
    Any Suggestion will be highly appreciated.
    Thanks in Advance & Best Regards,
    Deepak Gupta

    Deepak, there is a parameter called CRM_MODE and this has the following values depending upon the transaction context:
    A - Create
    B - Change
    C - Display and
    D - Delete
    Now, in the same BAdI, since you are restricting the creation of the activity, check the CRM_MODE for the Activity, if it is A, then, call the function module CRM_ORDER_READ with the GUID of the activity and extract only the document flow ET_DOC_FLOW. Check this export table and see if the parent is an opportunity (BUS2000111). If your condition is not met, add an Error message in the transaction.

  • EA-FIN New Depreciation - How to restrict creation of 'new intervals' ?

    Hi Everyone,
    We have turned on the EA-FIN Business Function Extension and are wondering if there is a way to restrict the creation of new intervals using company codes.  We have three companies in our SAP system and want only one of them to be able to create new intervals.  Is there a standard way to do this or only be development?  All ideas are welcome!
    So far we tried to search if there is an Authority Object, which could be used to apply this restriction with no luck.  Could it be done using Validations?
    Thanks in advance,
    Erne

    why would you want this? intervals are just a technical item...  so long as the numbers are correct and the calculation is logical to follow, why would you care?
    you can probably achieve this by:
    1 - immediately blocking every asset record so that no other postings can be made
    2 - not allowing any time-dependent changes to occur. this might be possible via authorization or you could remove the time intervals button via a simple screen modification
    but I don't understand why this is wanted.

  • Restrict creation of inspection lot for certain work centers

    Hi
    My client needs to restrict the creation of inspection lot at certain work centers although QM is active for all material processed in these work centers.
    I am using the  function module 'EXIT_SAPLQAAT_002' of QAAT0001 for this purpose. Z04 inspection type ( with Post to insp stock) is maintained for all these material.
    A different Z table is there , where material-work center combination is maintained for which no inspection lot is required.
    Logic provided so that system searches Material-Work center from production order then compares it with the Material-Work center combination with the maintained Z Table.If both found same then no inspection lot will be generated.
    But an error message (Change the inspection stock of material XXXXXX in QM only) appears for all those material while doing confirmation in CO11N . Hence system does not allow to complete confirmation for those material where QM is active.
    Please suggest if i am using the correct Exit or any further improvement is required.
    Thanks and regards
    D Mohanty

    Hi
    Actually the issue is resolved now.The problem was with coding where we were using Table-AFRU for reading prod order details.But AFRU does not consider fresh orders for which it was replaced with AFKO.
    Also the Z table must be maintained as Plant-Material-Work center combination prior to go for any order confirmation.
    Thank you all who have gone through the post , hope this will help those who have to map the same scenario at their end.
    Regards
    D Mohanty

Maybe you are looking for