Invoice with 24 hours diff

Dear Members,
  I want a query to display the invoice information with the date difference of 24 hours.
If i post the invoice today my query has to display the invoice details only on tomorrow with 24 hours diff.
Any one can help me in this regard.
With Regards,
G.Shankar Ganesh.

select * from oinv
where
dateadd(minute, convert(integer, right(doctime,2))
+
convert(integer, left(doctime, len(doctime) - 2)) * 60, docdate) <= getdate()-1

Similar Messages

  • Printing Four tax Invoice with three diff tax field

    Hi Experts,
    I am preparing PLD for tax invoice the customer. He have to print the four copy of same Invoice with four diff. Tax field..
    Like 1st Copy will be "Original For buyers"  2nd will be "Duplicate for Transporter" 3rd Will be "Triplicate for Assessment" and 4th Will Quadruplicate for Extra"
    Please Reply ASAP.
    Thanks in Advance
    Binod Sharama

    Hi,
    You can handle different tax code in one invoice.
    In PLD at header just type all the options like Original, Duplicate, Triplicate etc.,
    Just take printout with carbon copy or invdividually and leave the relevant one strike the other on each copy.
    Hope this will help you,
    Regards,
    Venkatesan G.

  • How to create excise invoice with refer to Delivery Note

    Hi SAP Expert,
    I am doing STOCK Transport process from factory to depot and hitting error while creating excise invoice in Factory.
    From SAP help on Creating Excise Invoice, it said :
    From the SAP Easy Access screen, choose Indirect Taxes ® Sales/Outbound Movements ® Excise Invoice ® For Sales Order ® Outgoing Excise Invoice Create/Change/Display ® …
    If you want to create the excise invoice with reference to a pro forma excise invoice or commercial invoice, choose Excise Invoice ® Create.
    If you want to create the excise invoice with reference to a delivery note, choose Exc. inv. for delivery ® Create.
    Enter the number of the reference document.
    - When i created the excise invoice with reference to a STO Delivery Note, i am getting error : " For delivery 800050092 no document of type JEX exist "
    - I already setup the config to assign Delivery Type NL to billing type JEXP.
    I was doing the steps as below :
    1. ME21N u2013 Create Stock Transport Order
    2. VL10B u2013 Create Outbound Delivery w.r.t. STO
    3. J1IIN u2013 Create Outgoing Excise Invoice w.r.t. Delivery Note
    - Anything that i am missing ?

    Hi Guru,
    Thanks for your reply. It is my typo error. I have maintained the delivery type NL to billing type JEX, instead of JEXP
    I am getting error :
    For delivery 800050092 no document of type JEX exist
    Message no. 8I320
    Diagnosis
    The excise reference document defined does not exist for the delivery.
    Procedure
    Create the excise reference document before running the excise posting transaction.
    - What is it means by create the excise reference document before running the excise posting transaction ? Do I need to create Pro-forma invoice prior to execute transaction J1IIN ?
    I did not check the selection for ": Excise Inv during Billing " in my Excise Group maintainance.

  • Error while posting A/R Downpayment Invoice with Excisable Tax Code.

    While posting A/R Dowpayment Invoice with Excisable Tax Code error of "Unbalanced Transaction" appears. This error does not occur while posting A/R Downpayment Invoices with Non-Excisable Tax Codes.
    Kindly provide a solution for the same.

    SAP Note Number: 1179405
    Error -5002 when trying to copy a document with Sales BOM
    In order to create the delivery via the DI, you need to set the oDoc.Lines.BaseLine value to the LineNum value from the RDR1 table (in the above example you should enter the value 2).
    we set oDoc.Lines.BaseLine=0 before starting the lines loop. This has resolved the issue.
    This note was really helpful and it was found in another query.
    You can also refer to this. https://forums.sdn.sap.com/click.jspa?searchID=19070513&messageID=6178079
    Thanks.
    Edited by: Sadanand Manda on Nov 24, 2008 12:16 PM

  • Reg: How to capture the Excise Invoice with respect to Inbound delivery

    Hi All,
    Please give the process follow for capturing the excise invoice with respect to inbound delivery.
    Thanks & Regards
    Siva

    Hi Siva,
    Please check this link
    CIN with Example..?
    Regards,
    Bijoy Kumar

  • "Invoice History Report "show wrong balance for supplier invoice with USD

    Invoice History Report show wrong balance for supplier invoice with USD Currency
    After I run this report i see in the last of this report there is difference between the supplier total
    USD (Currency ) and the open Balance USD , it is decreased the open balance
    for supplier with 2300 USD with out any reasons
    bellow is some data copy of the report
    ======================================================
    Supplier Site Total: SAR 34,700.00
    Supplier Site Total: USD 39,000.00
    Supplier Total: SAR 34,700.00
    Supplier Total: USD 39,000.00
    Open Balance: SAR 34,700.00
    Open Balance: USD 36,700.00
    *** End of Report ***
    ==============================================
    please advise me from where can this differenc ( 39000 - 36,700=2300 )COMMING
    or it is bug in this report , becuase i compare this report with other report in account payable like
    -supplier open balance letter
    -invoice register report
    -invoice aging report
    all this report give me the amount for supplier USD =39000
    BUT AGIN FROM WHERE THE SYSTEM DECREASED THE AMOUNT TO 36,700
    thanks

    Can you try running Create Accounting For payments just before you run the Invoice History Report and re-check .
    Thanks

  • Closing an invoice with an open payment

    Hello,
    Can anyone help in getting me started on how to close an invoice with an open payment?.  I have a requirement to find the open payments for an invoice and close the invoice programmatically.
    Thanks.
    -Richard.

    Dear Richard,
    Generally, we will close the invoices when we do payment on the invoices by function 'Incoming Payments' and 'Outgoing Payments' under 'Banking' in B1.
    Could you explain what mean 'open payment'?
    How to create the 'open payment'?
    Best Regards
    Jane Jing
    SAP Business One Forums Team

  • Any option to get the list of Invoice with respect to Sales Area

    Dear All,
    Is there any option to check the list of Invoices with respect to the Sales area.
    Because, in VF05, we are getting the list either for a Payer or a Material.
    I want to see the list of Invoices for a Sales area. I mean, it should be similar to VA05, where we can get the list of Sales Orders even without providing the Customer and Material information.
    Reagrds,
    Mullairaja

    HI
    Use the T code VF05N and select the option Bill documents in Fi
    Here you can get the list of invoices
    Try with MC+2
    regards
    Prashanth
    Edited by: Prashanth@SD on Nov 11, 2010 9:44 AM

  • Import invoice with status as Approval not Required

    Hi All,
    Can any one give the way to import an invoice with payables open interface import status as Approval not required.
    Thank you in advance.
    Raj.

    midimidi,
    > So to be clear...if the AS is on the main timeline,
    import statements
    > are not needed, and if the AS is external and imported,
    import
    > statements are needed.
    That's a general rule of thumb, but not 100% applicable.
    > Are there any other exceptions to that, or does that go
    for all AS3
    > classes?
    There are exceptions, and the easiest way to find them is to
    leave out
    your import statements and plug away ... sooner or later,
    you'll get a
    compiler error, and then you'll know. :)
    >> It did strike me *** odd though, an imported .as
    file uses the same
    >> publish settings as code on the timeline. So why
    treat them differently?
    FLA files have publish settings, but AS files don't. They're
    just text
    files. I hear what you're saying ... they end up getting
    compiled along
    with / into the some FLA anyway -- and that FLA does have
    classpaths
    listed -- but those same AS files might be compiled in Flex
    Builder 2 or
    some 3rd party compiler. It would probably make good sense to
    require the
    import statement for inline FLA code, but not everyone is a
    hardcore
    programmer, and Adobe knows it. Nothing is *hurt* by using
    import in FLAs,
    but for folks who just want to do light programming, the
    convenience of not
    having to use it is nice.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Clearing between customer and vendor invoice with F110 transaction

    Hello,
    I have an issue related to the functionalities of the transaction F110.
    I'd like to clear the vendor invoice with the custome invoice.
    Customer and vendor records are linked properly and the flag 'Clrg with Cust.' is set on vendor and 'Clearing with Vendor' is set on customer.
    Both the invoice are in USD and the amount in document currency of the vendor invoice is > of the amount in document currency of the customer invoice.
    I entered in both the invoice the same payment method (outgoing payment method).
    The error that I can see in the proposal log is related to the customer invoice and is:
    Payment method selection for items due now to the amount of USD          500,00
    Due items with currency USD, pmnt method  - items total is > 0
    ..none of the payment methods defined can be used for these items
    information re. vendor xxxxxxxx / customer yyyyyyy / paying company code TS01 ...
    .. payment not possible because of reported error
    According to the log of the proposal the vendor invoice can be paid.
    If I click on display proposal and double click on the customer invoice (with red light) I can read the note:
    No pymt possible because items with a debit
    Following the settings of the payment method used:
    Payment method in the country
    - Payment method for outgoing payment selected
    - Bank transf. selected
    - allowed for personal payment flagged
    - Bank details flagged
    - Document type for payment XX
    - clearing document type XX
    - Use classic payment medium program selected
    Currency allowed: This table is empty (will mean that all currencies are permitted)
    Payment method in company code
    Minimum amount: 0,01
    Maximum amount: 9.999.999.999,99
    Distribution amnt: 0,00
    Single paymentfor marked item selected
    Foreign business partner allowed selected
    foreign currency allowed selected
    Cust/vend bank abroad allowed? selected
    Bank selection control "No optimization" selected
    Can you please help me to understand the error?
    I'm afraid it is a problem with the bank but I don't understand why the payment of the vendor invoice is allowed and the customer invoice not.
    Thank you very much in advance
    Kind R

    Hello,
    I have an issue related to the functionalities of the transaction F110.
    I'd like to clear the vendor invoice with the custome invoice.
    Customer and vendor records are linked properly and the flag 'Clrg with Cust.' is set on vendor and 'Clearing with Vendor' is set on customer.
    Both the invoice are in USD and the amount in document currency of the vendor invoice is > of the amount in document currency of the customer invoice.
    I entered in both the invoices the same payment method (outgoing payment method).
    The error that I can see in the proposal log is related to the customer invoice and is:
    Payment method selection for items due now to the amount of USD          500,00
    Due items with currency USD, pmnt method  - items total is > 0
    ..none of the payment methods defined can be used for these items
    information re. vendor xxxxxxxx / customer yyyyyyy / paying company code TS01 ...
    .. payment not possible because of reported error
    According to the log of the proposal the vendor invoice can be paid.
    If I click on display proposal and double click on the customer invoice (with red light) I can read the note:
    No pymt possible because items with a debit bal.still exist; see job log
    Following the settings of the payment method used:
    Payment method in the country
    - Payment method for outgoing payment selected
    - Bank transf. selected
    - allowed for personal payment flagged
    - Bank details flagged
    - Document type for payment XX
    - clearing document type XX
    - Use classic payment medium program selected
    Currency allowed: This table is empty (will mean that all currencies are permitted)
    Payment method in company codeMinimum amount: 0,01
    Maximum amount: 9.999.999.999,99
    Distribution amnt: 0,00
    Single paymentfor marked item selected
    Foreign business partner allowed selected
    foreign currency allowed selected
    Cust/vend bank abroad allowed? selected
    Bank selection control "No optimization" selected
    Can you please help me to understand the error?
    I'm afraid it is a problem with the bank but I don't understand why the payment of the vendor invoice is allowed and the customer invoice not.
    Thank you very much in advance
    Kind Regards
    Emanuela

  • Excise Invoice with reference to Commercial Invoice

    Hello Experts
    My client has third party software. In SD- Order to Invoice cycle is done in that software.
    After Invoice is created the data is interfaced and Invoice is received in SAP.
    Now my doubt is that will it be possible to create the excise invoice with reference to this commercial invoice.and if so, what should I assign in config- Assign Del types to Invoice Types.
    Please advice.
    Best Regards
    Raghu

    Hi
        Your scenario is not very clear to me although i am trying to attempt for the solution. Generally F2 invoice will take care of commercial *** excise invoice requirement. If material is excisable & attracts commercial taxes like CST or VAT you can geit through F2 invoice. You can have print programme developed for the invoicing where heading print will be like "Commercial *** excise invoice".

  • Excise invoice with zero values

    Hi  SAP Gurus,
    In CIN, when I created excise invoice with Tcode J1IIN with reference to invoice, I found zero values. When I checked the pricing conditions tab in Billing, I observed that condition types JEXT and JECT are having zero values. Why the system is not picking the values for these condition types, though condition records are being maintained.? In my pricing procedure there is no UTXJ conditon type. Should I maintain the condition records for UTXJ though it is not in our pricing procedure?, since UTXJ is  link between tax procedure, pricing procedure and tax code. I expect guidance in this regard..
    Thanks in advance
    Raksha.

    Hi Raksha
    UTXJ is the only condition which brings the tax code in the document, please add utxj and then check it will definately work. I am not replying in detail so if u want any other clarification please reply back.
    Best regards
    Vineet Baweja

  • Creating a Invoice with reference to another invoice with new pricing proce

    Hi People,
    I want to raise a supplimentary excise invoice for the differential price.
    I want to do it by raising a supplimentary commercial invoice with reference to the old invoice but with a new pricing procedure assigned to it.later on raise the supplimentary excise invoice with Tcode j1iin wrt the new commercial invoice.
    Although i have done all the necessary configurations such as determination of new pricing procedure, Doc pricing Procedure and changing the pricing type at the copy control settings of the item category to "B".
    i am unable to get the new pricing procedure when i am creating the supplimentary commercial invoice.
    Can u people suggest me in this regard

    Dear Nagabhushan
    Normally for price difference, there is an order type RK for "Invoice Correction Request" which should be created in reference to F2 billing document.  Based on this, you can issue credit memo (document type G2). 
    This being the case, you cannot create supplimentary invoice with reference to original invoice.  Moreover, for all excise related adjustments, you should not use j1iin.  You should run j1ih - Other adj.
    thanks
    G. Lakshmipathi

  • Proforma Invoice with reference to schedule Line

    Dear Experts,
    Whenever we create proforma invoice related to sales order, the system will copy every thing from sales order and same thing will be reflecting in proforma Invoice. If I want to create a proforma Invoice only for partial, can I do it.  Because we dont have any option to change the billing qty in vf01 or vf02. Is it possible to  change the qty in proforma invoice.
    Regards,
    Reji

    Hello Friend,
    If you want to have Pro forma Invoice with partial quanties then you need to have Billing Plan assigned to your Sales Order.
    But if the Proforma invoice with respect to Delivery then you can change the quantity for the same if in the order for the relevant item category if you maintain for Relevance for billing as K (Delivery-related invoices for partial quantity).
    Then in billing you can manually go and change the quantity.

  • ERP invoice with reference to SRM Basic Contract?

    Hi
    In SAP SRM you can create a shopping cart or a PO with reference to a SRM Basic Contract by setting the item number to 0 like: 4700000107/0
    But with the new Ehp1 SAP states that ERP invoices can be created with reference to a SRM central contract (via SRM_SERVICE_PROC_1). But can you create the invoice with reference to contract item 0?
    The idea is to have the non PO related invoices registrered on the basic contract in SRM along with the PO's. A basic contract can't be copied to ERP, as there is no lines on it, but is the ERP contract copy needed for this scenario?
    So two questions:
    - is the ERP contract copy from SRM needed to use the Ehp1 functionality of creating invoices with reference to a SRM contract?
    - can the ERP invoice be created with reference to a basic SRM contract by giving the contract item as 0 or in another way?
    BR
    Jacob

    Hello,
    With SRM 70 EHP1 you can create ERP invoice against your SRM Central Contract distributed to ERP.
    To enable this you need to do few settings in ERP, for the same you can refer to the config guides available at Service market place for SRM701 releases.
    Configuring Contract Handling for Invoices : You use this procedure to configure contract handling for invoices in the SAP ERP system. You have activated the Procurement - SRM Integration 2 (LOG_MM_P2PSE_2) business function in the SAP ERP system.
    Steps :
    1. In Customizing for SAP ERP, perform the activity under :  Materials Management -- Logistics Invoice Verification -- Incoming Invoice -- Activate Direct Posting to Contracts , to allow direct references to contracts when creating invoices and parking documents.
    2. In Customizing for SAP ERP, perform the activity under : Materials Management -- Logistics Invoice Verification -- Invoice Block -- Set Tolerance Limits , to set the tolerance key for contracts (PC: Price variance for contract).
    The feature is termed as Invoice Reconciliation here.
    Best Regards,
    Rahul

Maybe you are looking for