Query linking Check Register with AP invoice

Hi,
was someone be able to create a query where it shows the Check No, Check Date, Vendor Name and alos the AP invoice being paid with the Expense Account being hit on the AP incoice.
Thanks

Try this one:
SELECT T2.CheckNum as 'Check Number', T2.DueDate as 'Check Date' , T1.CardCode 'Vendor Code',
T1.CardName 'Vendor Name', T2.CheckSum as 'Check Amount', T0.DocNum as 'AP Invoice No. Paid',
T4.AcctName as 'EXPense Account'
FROM DBO.OPCH T0 INNER JOIN DBO.OVPM T1 ON T0.ReceiptNum = T1.DocEntry
INNER JOIN DBO.VPM1 T2 ON T1.DocNum = T2.DocNum
INNER JOIN DBO.PCH1 T3 ON T3.DocEntry = T0.DocEntry
INNER JOIN DBO.OACT T4 ON T4.AcctCode = T3.AcctCode
where T0.DocDate >=[%0] and T0.DocDate <=[%1]
Thanks,
Gordon

Similar Messages

  • Is there a way to print the check register with the Text field

    Hi,
    Is there a way to print the check register with the Text field and also each item's Text field?"
    When we enter a invoice we enter a generic text on the Basic Data tab then enter a "+" on each individual line item which in turns defaults to the generic text. Just wanted to know if the check register could draw in the individual line item detail where we can enter text that relates to just that line item. Sort of like the MIR7 draws in the detail for each item.
    Kindly help me in full fill the above requirement.
    Thanks
    Sunitha

    Hi,
    Can any one help me on this issue?
    Thanks
    Sunitha

  • Integration of Check Register with Classic Payment Programs

    Hello,
    I know you can integrate the check register with electronic payments via the payment medium workbench. Is there any way to achieve the same integration using classic payment media programs like RFFOUS_T? Thanks!

    In creating a new format with custom code would I have the developer create the required function modules and assign them in the event modules for payment meduim formats? I guess I am just missing where the custom code integrates with the format.
    I agree the DME is great. I have used it in the past to create various payment formats. I tried originally to create the required file format in the DMEE but failed because I could not get the tree to repeat at the correct levels. The format I am working with is the Citibank Paylink file format for Argentina. It effectively is a three level file
    1. Payment Record
    2. Invoice Records - with sublevels
    3. Legal Invoice Document Records (specific for Argentina)
    The problem I face is that level 2 has dynamic sublevels of data that has to repeat for certain data in the same document. It may be possible but it is currently above my skill level with the DMEE.

  • Check Register with Payment Program RFoedi1

    We are using the payment program RFOEDI1 to for automatic payments using payment method C. This program does not have a place specify the check lot like RFFOUS_C.
    How do we check register created for these payments. I ahve created a check lot with payment.
    Is there any piece of config. to be done.
    Thanks in Advance.
    Vineet

    You can do the following.
    1. Enter transaction F110.
    2. Under parameters tab, enter C as payment method.
    3. Under print out/data medium, use RFFOUS_C and variant
       for that program. Sometimes, your company could be 
       using a customized version of this program.
    Hope this helps

  • Query linked to field with shift+F2 does not retuen 'Arrows'

    Hi
    I have a query that, when run from query manager and variable is input with [%0] does return results including the orange arrow to directly jump to the documents - perfect.
    If I link the query to a field in production order to be called by Shift + F2 and replace variable input with $[OWOR.DocNum], it returns the list correctly, but there are no arrows.
    What do I have to change to get the arrows?
    Thanks
    Franz

    Dear Mr Leu,
    I came up with a query, not sure this is correct for you but I hope it helps. I assumed you want to know what it the result from this calculation:
    sum(t2.onhand - t0.plannedqty + t1.quantity) as 'what is left'
    select distinct (t0.linenum), t3.status, t3.docnum, t0.itemcode, t0.plannedqty as 'production',
    t1.shipdate, t1.quantity as 'sales order',
    t2.onhand as 'onhand', sum(t2.onhand - t0.plannedqty + t1.quantity) as 'what is left'
    from wor1 t0 inner join por1 t1 on t0.itemcode = t1.itemcode
    inner join oitw t2 on t0.itemcode = t2.itemcode
    inner join owor t3 on t0.docentry = t3.docentry
    where
    t1.linestatus = 'o' and
    t3.status <> 'l'
    group by
    t0.linenum, t3.status, t3.docnum, t0.itemcode, t1.shipdate,
    t0.plannedqty, t2.onhand, t1.quantity 
    let me know if it helps you.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Check print with 2 invoice

    hi all,
    can anyone tell me how to print check's manually?
    and also how to allocate discount on an invoice?
    thanks,
    and will assign point for sure.

    Hi,
    Let me explain the config for Discount Allowed.  The same is for Discount received
    step 1: Crete GL account for D/R
    Step 2: IMg-FA-ARAP-Bus Trans-Incoming Pmts - Incoming pnt Global Settings
    a. Define Accounts for Cash discount granted - Give Coa, Save, Give DA  GL Account no, Save
    Step 3: Try testing using F-28 tcode.
    Ensure that while raising incoive, select the proper payment terms so that D/A can be checked
    Regards,
    Sridevi
    <i><b>Award points, if useful</b></i>

  • Link check box with data entry

    Is there a simple way to populate a field based on input in a checkbox?
    For examples, if a box is checked, then place a number in a specified field.

    what is the value that is going in when u check it.. did u debug it.. is the viewRowimps setter and getter getting called.. and is it having the right value set and got.. and ur sure that ur using selectBooleanCheckBox..
    ur binding the checkbox to the transient value right??

  • PO Service not link with AP invoice service

    Currently usiing SBO 2007A, SP-00, PL 49.
    I have 1 PO service. Base on this PO service, I create AP Invoice service.
    The account no. use in PO service is different from account no. use in AP Invoice service. Since account no. have been overwrite in AP Invoice.
    PO service is missing link with AP Invoice.
    When we open again the PO we couldn't find target document.
    Also same when we open AP Invoice, we couldn't find base document, which is actually the PO.
    Only in AP Invoice's remark we can find the PO no.
    Also in the database, in AP Invoice table base document no. is blank.
    Also it cause the PO not automatically close.
    Previous PL, this error not exist.
    Any one can help.
    Thanks in advance,
    Surya

    Hi,
    Please check Note No. : [ 1334491|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1334491] which explains the reported issue.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • How to join GRPO with AP invoice thru query ?

    hi all,
    How to join GRPO with AP invoice in sql query ?
    Jeyakanthan

    Hi Jeyakanthan
    Are you using query in SAP Business One or outside the system? If you select the tables in SAP Business One as OPCH and OPDN then no inner join will appear, as the links sit on the line level. You will need PCH1 and PDN1. The link can be found in both directions, but bear in mind that 1 AP Invoice could be based on more than 1 Goods Receipt PO. For this reason the best approach is to start at the AP Invoice line level and use the BaseType and BaseRef fields to view which lines were pulled from which Goods Receipt PO's.
    Kind regards
    Peter Juby

  • Need help with Query to determine Credit Memos and Invoices

    Hi All
    Thanks for all the help here.
    I need a query to determine any credits or invoices issued within a given period.
    OINV and ORIN with UNION ALL?
    Please advise any help.
    Thank you!

    Hi Daniel,
    Please check below Query.
    SELECT T0.[DocNum] as 'Invice No', T0.[DocDate] as 'Invoice Date', T0.[CardName] as 'Invoiced Customer', T3.[DocNum] as 'Credit Memo No', T3.[DocDate] as 'Credit Mamo Date', T3.[CardName] as 'Credit Memo Customer' FROM OINV T0  LEFT JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry] LEFT JOIN RIN1 T2 ON T2.[BaseEntry] = T1.[DocEntry] AND T2.[BaseLine] =  T1.[LineNum] LEFT JOIN ORIN T3 ON T2.[DocEntry] = T3.[DocEntry] WHERE T0.[DocDate]  >=[%3]  AND   T0.[DocDate] <=[%4]
    Hope this helps
    Regards::::
    Atul Chakraborty

  • Using the checking register template I've made multiple months and I want to total the data, is there a way I can link the sums?

    Same as topic.

    Hi Sandra,
    The Checking register's design assumes all transactions will be recorded on the single Transactions table.
    With a single Transactions table, it's relatively easy to pull a summary by month into separate Accounts Categories tables for each month and to use a separate calculation for the overall totals rather than linking the separate sums together.
    More detail about "I've made multiple months" might be useful to recommending a solution.
    Regards,
    Barry

  • Link check with clearing documents

    I have a situation where, users cleared vendor manually.
    Now when we look at the cleared line item from FBL1N and select the payment to look at the check details, It doesn’t allow me to see check details from there. “It says No check information exist for this line item”
    What should I do in order to link the link the check with that payment so that I can see even check info for line items from FBL1N?

    Hi,
    I am sure you cannot print checks using transaction code F-44. This transaction is used only for clearing the Vendor open items either to a GL Account or debits and credits in a Vendor account.
    I guess, user would have used F-44 and posted the amount to the Bank account or Bank clearing account. This will not update even the check register. May be the check is written manually.
    The solution to resolve this is to reverse the document created using F-44 using transaction code FBRA (reverse and reset) and post a new document using transaction code F-58. This will update the check register as well as tracking of documents clearing for the payment.
    Thanks
    Murali.

  • When do consistency check for a sharepoint content databse : that RBSID in table AllDocStreams registered with RBS is invalid

    Hi
    In my sharepont farm  a web application configured with RBS and its working fine,
    when users upload pdfs the no of files are increased in RBS file system folder,
    but when i run Consistency check  before running RBS maintainer for cleaning garbage dta for this web applications content database , i faced below issue , its saying 
    C:\Program Files\Microsoft SQL Remote Blob Storage 10.50\Maintainer>Microsoft.Da
    ta.SqlRemoteBlobs.Maintainer.exe -ConnectionStringName RBS_2 -Operation Consiste
    ncyCheck -ConsistencyCheckMode c
    Starting Maintainer tasks.
        Starting RBS consistency check with check only.
            The column <RbsId> in table <dbo.AllDocStreams>
             registered with RBS is invalid.
    and also when i  repair consistency checks its saying same message, that RBSID   in table AllDocStreams registered with RBS is invalid.
    and also its recommended to check consistency before cleaning garbage data from content database
    adil

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/e9bda580-b9e7-48c5-b18c-485e016677a1/rbs-maintainer-not-cleanup-files-in-file-system-sharepoint-2010?forum=sharepointadminprevious
    The GC of RBS maintainer just purges BLOBs in SQL Server. And FILESTREAM GC is needed to purge the files in file system.
    http://www.sqlskills.com/BLOGS/PAUL/post/FILESTREAM-garbage-collection.aspx : (FILESTREAM GC)... runs as part of the database checkpoint
    process. This is what causes some confusion - an old FILESTREAM file will not be removed until after it is no longer needed AND a checkpoint runs. 
    Yes, In Simple recovery mode, just run SQL statement:
     CHECKPOINT;
     In  Full recovery mode, two transaction log with CHECKPOINT are needed. Detail in the link above.
    http://blog.avtex.com/2011/05/16/remote-blob-store-rbs-and-sharepoint-2010-part-2/
    If this helped you resolve your issue, please mark it Answered

  • Link Checks for Payment (OCHO) to A/P Invoice (OPCH)

    can someone help me link Checks for Payment to the A/P Invoice tables? 
    FROM OPCH T0 
         INNER JOIN PCH1 T1
              ON T0.DocEntry = T1.DocEntry
         INNER JOIN OACT T2
              ON T1.AcctCode = T2.AcctCode
    WHERE T0.DocDate >= '08/1/11' AND T0.DocDate <= '08/31/11'

    Hi,
    Try this if the same helps your issue :
    select T3.Docnum as 'AP Invoice Number', T1.Docnum as 'Payment Number',
    t0.checknum as 'Check Number',t1.Canceled as 'Payment Canceled Y/N'
    from OCHO t0
    inner join OVPM t1 on t0.PmntNum = t1.Docnum
    inner join VPM2 t2 on t2.docnum = t1.docnum
    inner join OPCH t3 on t3.transid = t2.doctransid
    inner join PCH1 t4 on t3.docentry = t4.docentry
    inner join OACT t5 on t4.Acctcode = t5.Acctcode
    where t1.cardcode = t0.vendorcode
    and T3.DocDate >= '01/1/11' AND T3.DocDate <= '08/31/11'
    I have tried to incorporate the part of your query as well.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Query to link incoming payments with deposit

    hi everyone
    i am looking to develop a query that can link incoming payments with the respective deposit. does anyone have any such query? can you help?
    thanks

    Please use the following.  It shows both check deposits and CC deposits
    SELECT 'CHECK DEPOSIT' [Deposit Type], T0.DEPOSID [Deposit No.], T0.DEPOSDATE [Deposit Date], T0.LOCTOTAL [Desposit Total],
    T2.RCPTNUM [Incoming Payment No.]
    FROM ODPS T0 INNER JOIN DPS1 T1 ON T0.DEPOSNUM = T1.DEPOSITID
    INNER JOIN OCHH T2 ON T2.CHECKKEY = T1.CHECKKEY
    WHERE T0.DEPOSTYPE = 'K'
    UNION ALL
    SELECT 'CREDIT CARD DEPOSIT', T0.DEPOSID, T0.DEPOSDATE, T0.LOCTOTAL, T1.RCTABS
    FROM ODPS T0 INNER JOIN OCRH T1 ON T0.DEPOSNUM = T1.DEPNUM
    WHERE T0.DEPOSTYPE = 'V'
    Best wishes
    Suda

Maybe you are looking for