Blocking Delivary & Invoice whithout SO

Dear Experts,
How to prevent the user not to raise any Delivary or Invoice without Sales order. We are using SAP Business One 2007B PL 08
Regards,
Srinivas

Hi
IF @OBJECT_TYPE ='15' AND (@TRANSACTION_TYPE ='A' OR @TRANSACTION_TYPE ='U')
BEGIN
          IF NOT EXISTS (SELECT * FROM DLN1 WHERE ISNULL(BASEENTRY,0) <> 0 AND DOCENTRY = @LIST_OF_COLS_VAL_TAB_DEL)
          BEGIN
               IF EXISTS (SELECT * FROM ODLN WHERE DOCTYPE = 'I' AND DOCENTRY = @LIST_OF_COLS_VAL_TAB_DEL)
               BEGIN
                    SELECT  @error = 100001, @errorMSG='Delivery Order should have a base document'
               END
          END
END
IF @OBJECT_TYPE ='13' AND (@TRANSACTION_TYPE ='A' OR @TRANSACTION_TYPE ='U')
     BEGIN
          IF EXISTS (SELECT * FROM INV1 WHERE BASETYPE <> 15 AND DOCENTRY = @LIST_OF_COLS_VAL_TAB_DEL)
          BEGIN
               IF EXISTS (SELECT * FROM OINV WHERE (DOCTYPE = 'I' AND U_OPFT <> 'Support') AND DOCENTRY = @LIST_OF_COLS_VAL_TAB_DEL)
               BEGIN
                    SELECT @error = 100001, @errorMSG='A/R Invoice should have a Delivery Order as Base document'
               END
          END
END
Regards
Edited by: Parminder kaur on Jan 28, 2011 11:36 AM

Similar Messages

  • How to block an invoice if the value of a post is zero?

    Hello,
    In the rules of copy we use the field " Pricing type " with the value " C = Copy manual pricing elements and redetermine the others ".
    The order is complete and the price of the post is not equal to zero.
    During the invoicing the system makes a new search for the prices in the tables of conditions.
    If the condition does not exist in the date of invoice the post takes the zero value.
    How to block an invoice if the value of a post is zero?
    There is no incompleteness procedure for the invoice.
    The value of the post is the result of several conditions and we cannot make them obligatory.
    Who already has to meet this problem with the recalcul of the price in the invoicing?
    Best regards
    Frédéric Blaise
    e-Kenz S.A.
    Luxembourg

    Hi,
    It is not the total invoice which is equal to zero but only one post.
    As I explained it at first the problem is the following one:
    In the rules of copy we use the field " Pricing type " with the value " C = Copy manual pricing elements and redetermine the others ".
    he order is complete and the price of the post is not equal to zero.
    +During the invoicing the system makes a new search for the prices in the tables of conditions.
    If the condition does not exist in the date of invoice the post takes the zero value.
    I look for a solution to block the creation of the invoice if a post only is equal to zero after the updating of the prices.
    Thanks
    Frédéric

  • Automatic Blocking of Invoices

    Hi All,
    Most of us are aware of the MRBR transaction that is used to unblock invoices.  We run ours nightly.
    Is there a similar transaction that can automatically block invoices if they do not match after entry?
    Our reason for this is as follows:
    User raises a PO for 10 off some materials.
    User receives the goods and posts a GR
    The invoice arrives and our AP department enter it onto SAP, of course it does not block because it matches three ways.
    The user returns 5 off the items back to the supplier because, they are faulty, over ordered or some other user type reason.
    We would now like the invoice to block until the supplier sends in a Credit note or replacement goods arrive.
    Currently our system pays the invoice at the due date.
    The business problem here is that if the supplier forgets to send the credit note, (oh yes they do), the invoice has been paid and there is no leverage to get the supplier to send the credit.
    We have also had instances where users thought that if they reduce the PO price after the Invoice and GR have been entered this would block the invoice for payment.  Obviously this also does not happen.
    If there were a blocking transaction, these invoices could be blocked for payment until the three way match was once more achieved.
    Sugestions for solutions to this business problem please?
    Regards
    Allen Brooks

    Hi
    This can be very well solved with introdcution to work for Invoice. How you should make your MIRO transaction is as soon as invoice is raised, it should be blocked with work flow trigger. It should go to User who raises the PO and his manager for Approval. Once approved Invoice should be in released status. Then Finance team can run payment run for the released invoices.
    Or other option is AP should create invoice with parked option. Upon confirmation from GR person he should release the invoice. Here actually manual intervention is there as AP will have to receive communication from GR person. This should be done through some sort of communication or mail.
    May be for big customer may not be useful.
    Hope this helps.

  • Is there any report to view" the blocked Vendor Invoices along with the Pay

    Dear Gurus,
    Is there any report to view" the blocked Vendor Invoices along with the Payment Date". Please Let me know.
    Balaji

    I think you can solve this issue with a Query.
    Fernando.

  • Blocking vendor invoice in F110

    I am trying to block invoices that should not be paid in F110. When I go to edit proposal , and select the invoice, and click on change, then choose the payment block A or * , the system gives the message that "block key A (or whichever block key I choose)  cannot be set in payment proposal. I thought we could block the invoice in edit proposal.
    Can someone please guide me how to overcome this issue.

    Hi,
    SAP has a solution for the same Just follow the below path,
    In SPRO-- Financial Accounting -Accts Rec And Payable-Bus Transaction-Outgoing payment-Auto Out Paymt-Payment Proposal Processing-Check Payment Block Reasons Default.
    In the above path There are columns saying Block Indicator -Description-Change in Pymt Proposal-
    Select the block reason put a tick in the 3rd Column change in pymt proposal and you can select the pymt block in the Pymt Proposal
    Cheers!!!
    Rahul

  • DO GR reversal blocks the invoice again

    Hi Gurus ,
    Suppose PO is a 3 way match , GRIV is not checked.
    1.PO is created with qty 100 (price 1 EUR each) ,
    2. Invoice is one for 100 qty , but it will be qty blocked as GR has not been done
    3. GR is done for 100 qty - > this will unblock the invoice posted in step 2
    4. Now suppose GR is reversed after some days , will the invoice become blocked again ? If not , why ? this would mean that invoices can still get paid without GR posted for them .Is there any way we can block the invoice again if GR is reversed ?

    Hi ,
    Please follow below link:
    IR should not post if GR reversal (MBST) exists
    it might help you.
    Regards
    Nisha

  • MIRO - How to block all invoices from a certain vendor?

    Hi,
    I would like to block alll invoices from a certain vendor. In XK02 (change vendor) --> company code data --> payment transactions, I have tried a A and a * and a M in the field 'Payment Block', but it doens't make any difference.
    If I receive an invoice via MIRO with regards to a goods receipt it will never block the invoice if the IR = GR. The purpose is that for certain vendors invoices will always be blocked so that the procurement has to release this via MRBR.
    Any idea how to obtain this?
    Thanks a lot,
    Peter

    Dear Peter,
    I  would do the following to solve your requirement:
    Create Z-table ZVENDOR_BLOCK  with one field of type LIFNR. There I would maintain every supplier which you want his invoices to be blocked.
    Then I would customize a new Reason for Blocking invoice: (example: "X: Vendor Invoice Blocked by Default")
    Then I would implement BADI MRM_PAYMENT_TERMS   and there put the logic to determine if the particular invoice should be blocked.
    example code:
    --- fill all export-parameter always start with this -
      e_zfbdt = i_rbkpv-zfbdt.
      e_zbd1t = i_rbkpv-zbd1t.
      e_zbd1p = i_rbkpv-zbd1p.
      e_zbd2t = i_rbkpv-zbd2t.
      e_zbd2p = i_rbkpv-zbd2p.
      e_zbd3t = i_rbkpv-zbd3t.
      e_zlspr = i_rbkpv-zlspr. "Bloqueo de Factura
    data: v_lifnr type lifnr.
    select single lifnr
            into v_lifnr
            from ZVENDOR_BLOCK
            where lifnr eq i_rbkpv-lifnr.
          if sy-subrc = 0.
             e_zlspr = 'X'.
           endif.
    Best Regards,
    SL

  • Automatic Blocking of invoice

    It is learnt that during AP invoice verification if there is a discrepancy with qty or price beyond the allowed tolerance limit, SAP systematically blocks the invoice.
    Please tell me with what document viz. PO or GR, system checks the qty/value of the invoice document to determine this discrepancy.

    An invoice can be blocked for payment due to one of the following reasons:
    - Variance in an Invoice Item
    - Amount of an Invoice Item
    - Stochastic Block
    - Manual Block
    Please refer to the document to understand the concepts, you might find this useful!
    http://help.sap.com/erp2005_ehp_04/helpdata/en/a8/b99f58452b11d189430000e829fbbd/frameset.htm
    Thanks,
    Reetesh

  • Block Vendor Invoice payment & Block Vendor Invoice

    Dear Colleagues,
    How can Vendor Invoice payment be blocked using  F-53 / F- 58 ? any config. req ?
    I know that at F110 level payment can be blocked if in the Vendor Master , payment block is ticked.
    How Vendor invoice be blocked at FB60 level ? any config. req ?
    Thnks
    Vinod

    Hi Vinod
    If you want to block all invoices for a particular vendor, please use the option payment block in the vendor master data. By using one payment block method, you would be able to block all the invoices for that vendor.
    If you want to block some invoices for a vendor or a group of vendors, please create a new payment term and in the details, please give a default payment block method in the master and also tick the box for it. Everytime you create invoices and you want to block it, please use the payment term creat for this purpose.
    Please let me know if you need any further information on this. Please do award points if fond useful.
    Karthik

  • Blocking an Invoice for Tolerence Key BR (Percenatge OPUn variance)

    Hi Gurus,
    I am testing a new scenario in Invoice Tolerence Limits. I need to create a scenario for Invoice getting blocked due to tolerence key "BR". I am able to block the invoices but i am not sure that it is getting blocked due to the tolerence key BR (Percenatge OPUn variance)
    Could anybody can throw some light on how to find that it is getting blocked for BR or please tell me how to test this scenario.
    Thanks in Advance.
    with Regards,
    Saakithyan

    BR: Percentage OPUn variance (IR before GR)
    The system calculates the percentage variance between the following ratios:
    1) quantity invoiced in order price quantity units / quantity invoiced in order units  (invoice value/inv qty)
    2) quantity ordered in order price quantity units /quantity ordered in order units.  (or value/ord qty)
    The system compares the variance with the upper and lower percentage tolerance limits.
    check if the above condn is satisfied.
    Regards,
    Bala

  • Blocking of Invoice when material is in quality

    Hi Experts
    I understand that invoice can be blocked for payment if the material is in quality (without usage decision) by Qm control key 0007 maintenance in material master. Kindly inform whether the block gets removed automatically once the usage decision is made or we have to manually remove the block in invoice each time for payment release.
    Thanks in advance
    Regards
    Arvind

    Hi Jurgen
    Thanks for your reply. My query was cleared.
    regards
    arvind

  • Blocking the invoice

    hi all,
    i want to block the invoices for payment ,which are not cleared by quality inspection.
    in spro is there any settings available for the same.
    Kindly guide me.
    Regards,
    velu

    Hi
    InQuality managemnt for the Control keys we can make the settings
    SPRO-> IMG-> Quality Management-> QM in Logistics-> QM in Procurement-> Define Control Keys
    In the Control key flag the Block Invoic checkbox.
    Thanks & Regards
    Kishore

  • Set Up Material Block for Invoice Verification

    Hi,
    Please share your experience for customization setting under General settings for material management "Set Up Material Block for Invoice Verification".
    When should we use " Material is bloked at first read" and "Material is blocked when invoice is posted".
    Does it improve MIRO transaction performance if we chnage the setting from " Material is bloked at first read" to "Material is blocked when invoice is posted"?
    Thanks & Regards,
    AG

    Hi,
    Set Up Material Block for Invoice Verification
    Use: -
       In this step, you specify at what point materials are blocked in Invoice Verification:
       o   During the allocation phase, all materials present in the invoice are blocked.
       o   During simulation or posting, materials whose stocks are to be changed are blocked and are read again.
       o   Materials whose stocks are to be changed, are blocked and are read again when you post.
       When you post directly to a material, the given material is blocked immediately in all settings.
    Standard settings: -
    In the standard system, materials are blocked during the allocation phase.
    It is suggested to block materials during allocation phase itself, so that user has not to enter all the details and then get block error at the time of Simulation or Posting. Also it improves the performance since all these transactions need not to be carried out and system informs initially that materials are blocked.
    Also refer SAPNote 210828 - Material blocks in logistics invoice verification

  • Billing block for invoices and credit notes on Sold-tou00B4s level

    Hi All
    can we have billing block for invoices and credit notes on Sold-to´s level.
    please advice.
    Thanks
    Tushar

    Hi
    The bellow way at document level.
    One more way to maintian the billing block in the functionality of sales document types in VOV8
    In VOV8 , Maintain proper value in billing block field.
    So that , when you create the order or credit memo request system automatically pick the billing block.
    Once remove the block of billling then only system allow to create the billing or credit memo.
    Thanks,
    KP
    Edited by: phanik2503 on Mar 2, 2010 6:46 AM

  • Blanket PO Process: How to block (Ok) invoice Documents  for payment

    Hi,
    There is a requirement to block the invoices created through Miro even if the Blanket PO value and Validity is honoured.
    The user wants to release all the invoices through MRBR which also meets the PO value limit and validity limit.
    The Invoice blocking for PO value and Validity  exceeding is working fine.
    I have explored OMR6 but failed to see this kind of invoice blocking for Blanket Po' s.
    Regards,
    Abhilash

    Hi
    To Block Framework Order PO Invoice if exceeded.- Set up a tolerance key "LA" in the transaction OMR6 for your company code, but this limit checkdoes not work with parked invoices.
    Check the note : 134976
    Regards
    Anand

Maybe you are looking for