Approval Query for Invoices with Items Onhand below zero.

Dear Experts,
I would like to make an approval procedure applicable on A/R Invoice. 
When ever one of the Invoice items OnHand amount is below ZERO - I need the Approval Procedure to Popup and this way the Produce of the Invoice will be blocked.
Is there any way to write a query on Approval Template for that?
Thanks! 
Regards,
D.Medalion

Hi D.Medalion
Please Follow some step
First Create Approval Stages in Administration ->Approval Procedures->Approval Stages
First -
Administration ->Approval Procedures->Approval Templates->Documents-> Click On A/R Invoice .
Second-   Administration ->Approval Procedures- Approval Templates->Terms->When the Following Applies->Click Tick On Deviation from Commitment  and ration Drop Down Choose Greater or Equal
Thanks & Regard
Khan Imran

Similar Messages

  • Credit note for invoice with item with negative value

    Hi,
    is it possible to create credit note for invoice, where in one line is negative value (its non stock item).
    There exists 2 possibilities:
    negative qty and positive price (its possible create only through SDK, not SBO)
    positive price and negative qty
    for example
    itemcode 123
    qty -1
    price 1000
    How to create credit note from this invoice?
    Thanks a lot for hints.
    Petr

    Hello Petr Verner,
    It's a standard functionality of Business one, that it is impossible to enter a negative amount in an independant credit note or in a credit note based on a invoice with negative amount.
    To solve this issue:
    1.  For the rows with the positive Row Total, create an "independent" Credit Memo (not based on an Invoice).
    2.  For the rows with the negative Row Total, create another Invoice with a positive Row Total opposite to the original negative Row, and reconcile between the two rows manually via Banking => Bank Statements and Reconciliations => Reconciliation.
    Hope the above helps.
    Wilma Wang
    SAP Business One Forums Team

  • Pl.tell a query for non databsae items values as zero

    hai
    i have table like this
    emp_name     date           hours
    xxx          19-12-2007     3
    yyy          20-12-2007     4
    zzz          23-12-2007     3
    i want a query to get the data for 5 days.(ie.19 to 23)
    In that the left two days should be placed as zero in the output.
    please help me.
    thanks

    Something like:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'xxx' as emp_name, to_date('19-12-2007','dd-mm-yyyy') as dt, 3 as hours from dual union all
      2             select 'yyy', to_date('20-12-2007','dd-mm-yyyy'), 4 from dual union all
      3             select 'zzz', to_date('23-12-2007','dd-mm-yyyy'), 3 from dual)
      4  -- END OF TEST DATA
      5  select t.emp_name, d.dt, nvl(t.hours,0) as hours
      6  from t,
      7       (select to_date('19-12-2007','dd-mm-yyyy')+rownum-1 as dt
      8        from dual connect by rownum <= to_date('23-12-2007','dd-mm-yyyy') - to_date('19-12-2007','dd-mm-yyyy') + 1) d
      9  where d.dt = t.dt(+)
    10* order by d.dt
    SQL> /
    EMP DT                       HOURS
    xxx 19/12/2007 00:00:00          3
    yyy 20/12/2007 00:00:00          4
        21/12/2007 00:00:00          0
        22/12/2007 00:00:00          0
    zzz 23/12/2007 00:00:00          3
    SQL>

  • Partial Payment (with invoice reference) for Invoice-based items

    Hi Gurus,
    I'd like to make partial payments to credit memos while "Include partial payment" is activated.  However, if i activate "Include partial payment, partial payments for invoice-based items are no longer possible (partial payment amount is displayed only, and full amount is automatically applied).
    My credit memos were posted via BAPI_ACC_DOCUMENT_POST.  I've read that when using BAPI, invoice reference field is automatically populated with "V".   
    Can you please enlighten me what is SAP's logic behind this.  How does SAP determine invoice-based items?  And is there a workaround so I could still make partial payment while it is activated?  Thank you.
    Regards,

    Hai Dianne,
    Check it once OBA4 & OBA4 t.codes both are Tolerance Group
    Regards
    Madhu I

  • How to create ABAP Query for vendor open items

    HI,
    My client has requested me to create ABAP Query for vendor open items . So that it will be usefull for the users . Could anyone help me with this. I will assign you points.Thanks in advance.

    Hello,
    Use Table BSIK <Open Items of AP > & BSAK <AP Cleared items>......
    For Query you can use SQ01.
    USE BSID & BSAD for AR open/clear items...
    LFA1, LFB1 are vendor master data tables
    This is FYI
    Hope this helps.
    Rgds
    Rajendra

  • Collection query for computers with windows management framework 3.0

    Hi,
    collection query for computers with windows management framework 3.0, but I cant found a way. I cant see that it is in the inventory data for SMS_G_System_ADD_REMOVE_PROGRAMS_64.DisplayName.
    So any way to get computers with windows management framework 3.0?
    /SaiTech

    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SoftwareProduct on SMS_G_System_SoftwareProduct.ResourceId
    = SMS_R_System.ResourceId where SMS_G_System_SoftwareProduct.ProductName like "Windows Management Framework 3.0%"
    That won't work because as mentioned, it doesn't appear in ARP.
    Torsten's suggestion will work or you can resort to software/hardware inventory using the info at
    http://serverfault.com/questions/555100/methods-to-detect-version-of-windows-management-framework
    Jason | http://blog.configmgrftw.com

  • Customer Invoice with item numbers without OM installed.

    Hi
    We would like to know if we want to import customer invoices with items and there is no Order Management module.
    How items would be validated. Can this be done through item validation org and if yes, what setups are required and in which module.
    Regards,
    Ish
    Edited by: user12190893 on Jan 16, 2012 3:22 PM

    Hi,
       I want to create Customer Invoice (DR) with the BAPI BAPI_ACC_DOCUMENT_POST. Can you tell me if you realize this project?
    Best regards

  • Cannot perform rounding for invoices with a currency other than the documen

    Hi all,
    I need some one to help me
    I want to process the incoming payment.
    The AR Invoice is using USD
    In Incoming Payment i want to pay using SGD,
    I already set the BP in all currency
    I also set the Bank account in Bank transfer payment mean in all currency.
    But when i add the document i saw the message like this
    "Cannot perform rounding for invoices with a currency other than the document currency.  [Message 3524-31]"
    What should i do ?
    Thanks in advance
    Regards
    KK

    Hi gordon,
    Thanks for your respon.
    I still do not understand, what you mean.
    I test it in SBO DEMO Au which is the local currency is AUD and the system currency is also AUD.
    Is the any special setting for this issue?
    Or Do i miss the settings in SBO
    My version is 8.81 pl 9
    Thanks in advance

  • Supplier Invoice with Items without Purchasing

    Hi
    We would like to know if we want to import supplier invoices with items and there is no Purchasing module.
    How items would be validated. Can this be done through item validation org and if yes, what setups are required and in which module.
    Regards,
    Ish

    From above cases, first 3 cases is ok and i know how to process with all CIN related things.But i am little confused in the 4th case.
    Whether we need to mention the tax code in PO?
    1. If no, whether we need to add up the tax amount to the material basic price and then raise the PO?
    2. If yes, how the tax amount postings will be done since we will not be posting the excise invoice in j1iex?
    I think u will require the tax code where the excise duty is captured in inventories like JMIP condition types of excise so that it would get added to stock during GR and during invoice u will pay this tax to the vendor.
    As u donot take credit u don't have to capture the excise invoice as .

  • Approval Query for AP Invoices Containing Budget Related GL Account

    Hi Experts,
    I would like to create a approval template for all AP invoices that include a GL account that is related to the budget. Can you please help me with the approval query?
    Thank you!
    Jane

    Hello Gordon Du,
    "B1 approval will only apply to document level. If you want to check line level, only the first line can be subjected to."
    I was thinking to trigger the approval process based on a document (AP invoice) containing relevant cost centres on a line by line basis as entered via one of the enabled dim fields.
    Writing a trigger query for each cost centre effected? This does not appear to be a good solution, what is a better direction. Is there another way? (PO are not yet used via SAPB1)
    Currently my invoices add, but do not trigger the approval process based on my attempts thus far.
    Can the originator manually choose an approval pathway?
    If this is against posting etiquette delete and advise.
    I am a relative newbie to SAP B1, so am happy to be pointed to relevant help files. I arrived via  google searching and arrived here.
    Thankyou.

  • Approval Query for a specific customer group

    Dear Experts,
                 Following is the scenario, customer deals with whole sale and retail customers group. The client wishes to ensure that If the whole sales customer group account balance greater than zero then while making a sales order or invoice it should trigger approval.
    Saravanan

    Hi Saravnan......
    Thy this Approval Query and just put the Group Code for your customer in this group code's inverted comma....
    SELECT Distinct 'TRUE' From OCRD T0 Where T0.Balance>0 and GroupCode=' '
    And T0.CardCode=$[ORDR.CardCode.0]
    If above does not work then use below...
    SELECT Distinct 'TRUE' From OCRD T0 Where T0.Balance>0 and GroupCode=' '
    And T0.CardCode=$[$4.0.0]
    Regards,
    Rahul

  • Approval Query for Receipt from production

    Hi experts,
    I want to define an approval process for receipt from production.
    The condition is below:
    Only if it is " Receipt from production" then the goods receipt document should go to approval of quality.
    If is any unplanned direct goods receipt then system should allow to add it straightly.
    To do so, Please provide me the required query.
    regards
    Ravindran Srinivasan

    Hi Ravindran,
    I once encounter same problem like this. And I found out that, unfortunately, approval procedure can't work on receipt from production document.
    Yes, we all know that receipt from production and inventory goods receipt are actually same object type in SAP B1 and stored in same table. But, try it by yourself in your testing database, even if you apply the approval templates for goods receipt document, and you apply the condition as "always", you won't get prompted for approval if you try to add the receipt from production document.
    However, I said this based on my experience with version prior to 8.81 and 8.82. But somehow I have a strong feeling that this issue still not yet realized by SAP.
    Best Regards,
    Hendry Wijaya

  • Approval Workflow for Invoice

    Hi,
    In our scenario we want only the user with specific role and user Ids to be able to approve the invoices and different approvers for SC AND GRN also based on user ids and roles.
    As a standard I beleive if we create a user as manager of Porg by default this user is used as approving authority for all the docs.Pls correct me.
    Pls let me know how to achieve the same.
    Thanks,
    Manu

    Hi Manu,
    In workflow agent assignment concept is there. first find out the workflow the one which do you want control then go to OOCU t-code and there you can see agen assignmnet .
    Here you can add either user level or specific role users who can approve the SC's or GR's.
    Thanks
    Ravi

  • Query for invoice and distribution detail

    hi 2 all
    anybody have the query for getting invoice with distribution detail in oracle payable r12.
    thanks
    zulqarnain

    select ass.SEGMENT1 vendor_number,
    ass.VENDOR_NAME,
    assa.VENDOR_SITE_CODE VENDOR_SITE,
    aia.INVOICE_NUM,
    aia.INVOICE_DATE,
    aia.INVOICE_AMOUNT,
    aia.INVOICE_TYPE_LOOKUP_CODE,
    gcc.CONCATENATED_SEGMENTS distribution_account ,
    gcc1.CONCATENATED_SEGMENTS liability_account,
    to_char(aia.GL_DATE) GL_DATE,
    AP_INVOICES_PKG.GET_APPROVAL_STATUS( AIa.INVOICE_ID,
    AIa.INVOICE_AMOUNT, AIa.PAYMENT_STATUS_FLAG,
    AIa.INVOICE_TYPE_LOOKUP_CODE) APPROVAL_STATUS_LOOKUP_CODE
    from ap_invoices_all aia,
    ap_suppliers ass,
    ap_supplier_sites_all assa,
    ap_invoice_distributions_all aid,
    gl_code_combinations_kfv gcc,
    gl_code_combinations_kfv gcc1
    where aia.VENDOR_ID = ass.VENDOR_ID
    and assa.VENDOR_SITE_ID = aia.VENDOR_SITE_ID
    and ass.VENDOR_ID = assa.VENDOR_ID
    and aid.INVOICE_ID = aia.INVOICE_ID
    and aid.DIST_CODE_COMBINATION_ID = gcc.CODE_COMBINATION_ID
    and assa.ACCTS_PAY_CODE_COMBINATION_ID = gcc1.CODE_COMBINATION_ID
    --and aia.INVOICE_ID =  81000
    and aia.GL_DATE between '01-JAN-12' and '31-MAR-12'
    order by aia.GL_DATE
    Thanks,
    Atul

  • Make invoice with item level only not by batch level

    Hii
    i made a delivery doc say material 'A' having batch1,batch2,batch3 with different qty .
    exp:(VL03N)
    material a batch1 10ton
    material a batch2 20ton
    material a batch3 30ton
    Now i wanted to club all this qty and do invoice with single item for 'Material A' ,it shouldn't come with batch level wise material .
    so in vf01 it should look like this .
    material a 50 ton .
    Plss suggest what should i do for this cases ?? if poosible for changes in routine vbrk/vbrp in copy control then kindly suggest /
    sourav .

    Hi,
    Is your requirement for printing the invoice or while creating the invoice [VF01] Please confirm.
    regards,
    Chetan

Maybe you are looking for

  • Java Ping

    I am trying to write a simple Java ping utility. I found some example code on the internet butcan't seem to get it to work. Anyone have any suggestions.... import java.io.*; import java.net.*; public class PingTest { public static void main(String[]

  • Using HTMLDB_APPLICATION.G_F01 in a stored procedure

    I have a page with pl/sql function returning sql query report. The query works fine and produces a report with check boxes. The query looks like this: SELECT HTMLDB_ITEM.CHECKBOX(1,material_code) export, material_code, COUNT(*) AS letters FROM du_mat

  • Itunes/iphone interaction

    I would really like to be able to manage the music on my iphone differently than itunes allows me to. I have been managing which tracks go on my phone by un-checking the songs I can do without. But this means the tracks won't play in itunes either. I

  • Any difference in the 3G interface with iTunes V8?

    Just wondering if there was any significant difference in the way iTunes 8 interfaces with the iPhone 3G?

  • WS-C3560X-24 needs to be connected with another WS-C3560X-24 core layer 3 sitch.

    I got new task moving WS-3560X24 port layer 3 core switch from one branch to be moved  to my  branch and connect WS3560 layer 3 core switch my site network. Both core switch has got 3-4 cisco 2960 switch underneath and lots of vlan offcourse. I am t