Sequence query at A/R invoice

Dear All
At our clinet place they have different branches which has to track doc series branchwise and no should start from 1 for all branches,these can be mapped through using sequence option.
Now the problem is while generating outstanding report and general ledger report the sequence name and no should appear,so kinldy suggest the best ASAP
Regards
M Auditya
NBS I Ltd

Dear Auditya,
I believe you need to create customized reports for this purpose.  There are no out-of-the-box solution for you.  Please stop using ASAP in your posting.  It is not proper on the forum.
Thanks,
Gordon

Similar Messages

  • Query to View AR Invoices, receipt amounts by project

    Hi,
    I would like as SQL query to display AR invoices and the receipt date and amount against that invoice for a givin project.
    Thanks

    Hi Sophia,
    Go to AR, on the tool bar Help > Diagnostics > Examine > Block - System, Field- Last Query, Value - Is ur output.
    Regards
    Raghavender K

  • Any SQL can be query out why AP invoice cannot be select in AR/AP Netting

    Dear All,
    as the subject, is there any SQL can be query out why AP invoice cannot be select in AR/AP Netting in R12?
    For example, invoice A, assume can be select during the AP/AR Netting Batch created. but failed, so i want to use a SQL to query out or diagnostic why this invoice cannot be selected.
    Regards
    Terry

    Dear All,
    as the subject, is there any SQL can be query out why AP invoice cannot be select in AR/AP Netting in R12?
    For example, invoice A, assume can be select during the AP/AR Netting Batch created. but failed, so i want to use a SQL to query out or diagnostic why this invoice cannot be selected.
    Regards
    Terry

  • A query report of sales invoices

    Hello everyone
    I need help with writing a query report of sales invoices with items of the item code, last buy price, sale price, customer's name ..
    But the report will not be true unless it will show credits invoices' total of sold items.
    I'd be happy for help in this report ..
    Thank you!

    Hi Meital,
    Try this,
    SELECT *
    FROM(
    SELECT T0.[DocNum], T0.CardCode AS 'Customer Code',
    T0.CardName AS 'Customer Name', T1.[ItemCode] AS 'Item Code',
    T1.[Dscription] AS 'Item Description', T1.[Quantity] AS 'Sales Qty',
    T2.[LastPurPrc] AS 'Last Buy Price', T1.[LineTotal]
    FROM OINV T0 
    INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
    UNION ALL
    SELECT T0.[DocNum], T0.CardCode AS 'Customer Code',
    T0.CardName AS 'Customer Name', T1.[ItemCode] AS 'Item Code',
    T1.[Dscription] AS 'Item Description', T1.[Quantity] AS 'Sales Qty',
    T2.[LastPurPrc] AS 'Last Buy Price', T1.[LineTotal]
    FROM ORIN T0 
    INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN OITM T2 ON T1.ItemCode = T2.ItemCode)MM
    Regards,
    Madhan.

  • SQL Query for full paid invoices and payed out credit notes

    Hi alltogether,
    I have some problems with a sql query.
    I want to export all closed (full paid) invoices and credit notes in a table with the paid date.
    The problem is that I have several internal reconciliations for one invoice or credit note.
    So with my current query I get all these dates in the result but only for invoices, not for credit notes.
    I only need the last internal reconciliation date as payment date for all invoices and credit notes where the open amount is 0.
    In SAP B1 the finance team has service invoices and credit notes imported out of an ERP system.
    These documents are marked with an 'Y" in the coloumn "U_I_Imported" in the table "OINV" or "ORIN".
    SELECT
    OINV.DocTotal - OINV.PaidToDate as Offen, OINV.NumAtCard, OINV.U_I_Imported, ORCT.DocDate as 'Zahlungsdatum'
    SELECT
    OINV.DocTotal - OINV.PaidToDate as Offen, OINV.NumAtCard, OINV.U_I_Imported, ORCT.DocDate as 'Zahlungsdatum'
    FROM
    OJDT inner join
    ORCT on OJDT.BaseRef = ORCT.DocNum inner join
    RCT2 on ORCT.DocNum = RCT2.DocNum inner join
    OINV on RCT2.BaseAbs = OINV.DocEntry
    where
    OINV.DocTotal - OINV.PaidToDate = 0 and  OINV.U_I_Imported = 'Y'
    group by
    OINV.NumatCard, OINV.DocTotal - OINV.PaidToDate, OINV.U_I_Imported, ORCT.DocDate
    order by
    ORCT.DocDate
    I hope you can help me.
    Kind regards,
    Max

    The solution for my problem:
    select
    OINV.DocTotal - OINV.PaidToDate as 'Offen', OINV.CardCode as 'Kundennummer', OINV.NumAtCard as 'DIAMOD Rechnungsnummer', OINV.DocNum as 'Dokumentennummer',  max(ORCT.DocDate) as 'Zahlungsdatum', case when ORCT.DocCurr = (select MainCurncy from OADM) then RCT2.DcntSum else RCT2.DcntSumFC end as 'SkontoRechnungswährung',
        RCT2.DcntSum as 'SkontoFirmenwährung'
    from
        JDT1 inner join
        OJDT on JDT1.TransId = OJDT.TransId inner join
        ORCT on OJDT.BaseRef = ORCT.DocNum inner join
        RCT2 on ORCT.DocNum = RCT2.DocNum inner join
        OINV on RCT2.BaseAbs = OINV.DocEntry
    where
    JDT1.TransType in ('24') and
    OINV.U_I_Imported = 'Y' and
    OINV.DocTotal - OINV.PaidToDate = 0
    group by
    OINV.NumAtCard, OINV.DocNum, OINV.CardCode, OINV.DocTotal - OINV.PaidToDate, ORCT.DocCurr, RCT2.DcntSum, RCT2.DcntSumFC
    union all
    select
    OINV.DocTotal - OINV.PaidToDate as Offen, OINV.CardCode as 'Kundennummer', OINV.NumAtCard as 'DIAMOD Rechnungsnummer', OINV.DocNum as 'Dokumentennummer',  max(OITR.ReconDate) as 'Zahlungsdatum',
        0.0 as 'SkontoRechnungswährung',
        0.0 as 'SkontoFirmenwährung'
    from
    OITR inner join
    ITR1 on OITR.ReconNum = ITR1.ReconNum inner join
    OINV on ITR1.SrcObjAbs = OINV.DocEntry
    where
    OINV.DocTotal - OINV.PaidToDate = 0 and ITR1.SrcObjTyp = 13 and OINV.U_I_Imported = 'Y'
    group by
    OINV.NumatCard, OINV.DocNum, OINV.CardCode, OINV.DocTotal - OINV.PaidToDate
    union all
    select
    ORIN.DocTotal - ORIN.PaidToDate as Offen, ORIN.CardCode as 'Kundennummer', ORIN.NumAtCard as 'DIAMOD Rechnungsnummer', ORIN.DocNum as 'Dokumentennummer',  max(OITR.ReconDate) as 'Zahlungsdatum',
        0.0 as 'SkontoRechnungswährung',
        0.0 as 'SkontoFirmenwährung'
    from
    OITR inner join
    ITR1 on OITR.ReconNum = ITR1.ReconNum inner join
    ORIN on ITR1.SrcObjAbs = ORIN.DocEntry
    where
    ORIN.DocTotal - ORIN.PaidToDate = 0 and ITR1.SrcObjTyp = 14 and ORIN.U_I_Imported = 'Y'
    group by
    ORIN.NumatCard, ORIN.DocNum, ORIN.CardCode, ORIN.DocTotal - ORIN.PaidToDate

  • Query For OutGoing Excise Invoice

    Hi Experts,
    I need to run areport for  OutGoingExcise Invoice.
    So pls give me a query to capture all the taxes related to that invoices like BED,EDCess,HECess. and VAT.
    Thanx in Advance,
    Regards,
    Vamsi.

    Hi Guys...
    Below is the query i used to run the report for OutGoing Excise Invoice.
    I need some modifications in this query.
    We are having two branches Branch1 and Branch2.
    While running the query we need to pay Excise duty for both the branches seperately,So i need to run a report for branchwise.
    So pls give me some solution.
    SELECT M.DocNum AS 'INV No. #', M.DocDate as 'Date', M.CardName as 'Customer Name',
    (Select Sum(LineTotal) FROM OEI1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',
    (SELECT Avg(TaxRate) FROM OEI4 where statype=-90 and DocEntry=M.DocEntry) as 'ED %',
           (SELECT Sum(TaxSum) FROM OEI4 where statype=-90 and DocEntry=M.DocEntry) as 'ED (Rs.)',
    (SELECT Avg(TaxRate) FROM OEI4 where statype=-60 and DocEntry=M.DocEntry) as 'EDCS %',
           (SELECT Sum(TaxSum) FROM OEI4 where statype=-60 and DocEntry=M.DocEntry) as 'EDCS (Rs.)',
    (SELECT Avg(TaxRate) FROM OEI4 where statype=-55 and DocEntry=M.DocEntry) as 'HECS %',
           (SELECT Sum(TaxSum) FROM OEI4 where statype=-55 and DocEntry=M.DocEntry) as 'HECS (Rs.)',
    M.WTSum AS 'TDS (Rs.)',
    M.DocTotal as 'Total (Rs.)'
    FROM OOEI M LEFT OUTER JOIN OEI1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN OEI4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
    LEFT OUTER JOIN OEI5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN OEI3 Q ON M.DocEntry = Q.DocEntry
    WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]')  AND
    GROUP BY
    M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal
    ORDER BY
    M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal
    Regards,
    Vamsi.

  • Query on Procurement and Invoice Verification for Purchase Scheme by Vendor

    Dears,
    This is K.Hari Hara Ganesh.
    I have a query.
    Scenario
    Vendor commits us if the Purchasing Qty is 200 Kgs for a Material, then 10 Kgs will be given Free of Cost.  If it is lesser than 200, no free.
    Once received, my Stock should be updated for 210 Kgs, wheras I have to pay the Vendor for 200 Kgs.
    How this scenario is handled in SAP ?
    If anybody can give me Step by Step creation till Configuration, Master Maintenance, PO, GR, Invoice Verification and Payment by explanation or screen shots, it will be helpful for me.
    Thanks in Advance.
    Regards,
    K.Hari Hara Ganesh

    Dear Nisha,
    Thank you very much for the immediate response.
    You have asked me to create 2 line items. 
    Still I have some doubts
    1. Is it possible to create the same Material as 2 line items, first line with 200 Kgs and the second line with 10 Kgs for the same Material.
    2. Also, my Purchase Tolerance is 2 %, which means for the PO Qty 200 Kgs, I should not accept more than 204 Kgs (200 + 4)
    3. Since the 10 Kgs is the scheme given by the Vendor, my system should accept 210 Kgs, irrespective of my Purchase Toleranace.
    I will be very happy, if I receive the solution for this scenario too.
    Thanks in Advance.
    Regards,
    K.Hari Hara Ganesh

  • Select Query for smart form-invoice

    Hi Folks,
    I have to fetch the following fields as per the requirement for desiging a invoice smartform.I had copied lb_bill_invoice smartform into z format.
    Can anyone here please give me the select query for the same.
    fields to fetched are as follows:-
    1.vbrp-arktx,
    2.vbrp-fkimg,
    3.konv-kbetr with respect to vbrk-knumv
    4.konv-kwert.
    And also what all I have to give in format interface and global definitions of the smartform.
    please help  me in this regard.
    Points will be given.
    K.Kiran.

    Hi,
    declare the variables V_arktx(40) and v_Qty like vbrp-fkimp  and other varaibles for Kbetr, kwert, knumv on the global definitions.
    select  single arktx fkimg into (v_arktx, v_qty) from vbrp
    where vbeln = LBBIL_IT_REFPURORD-BIL_NUMBER.
    select single knumv into v_knumv from vbrk where where vbeln = LBBIL_IT_REFPURORD-BIL_NUMBER.
    this select has to fire in the item level and in the loop.
    so have to write in the correct place.
    select kbetr kwert into (v_kbetr, v_kwert) from konv
    where where knumv = v_knumv and kposn = LBBIL_IT_REFPURORD-ITM_NUMBER.
    regards,
    anji

  • Query to find AP Invoices which are posted to GL

    Hi,
    I wanted to find the AP invoices which are posted to GL, any help with the query please?
    Thanks,
    Genoo

    Hi;
    For your issue i suggest close your thread here as changing thread status to answered and move it to : All Places > Developer > English > E-Business Suite > Financials >         Discussions
    Regard
    Helios

  • Get data through query all non validated invoices and unaccounted invoices

    Hi expert,
    I could not find flag in ap_invoices_all to find such invoice which are not accounted yet or such invoices which are not validated.
    please tell me column name used for both condition or give me query to find such records.
    Thanks

    Hi,
    If it's 11i, you can do this by linking with ap_invoice_distribution table . Checking match_staus_flag for validation and accounting date for accounted invoices ..
    Regards
    Muthu

  • Query to display sales invoice number by sales order number

    Hi,
    Welcome you post on the forum.
    You may check this first:
    http://wiki.sdn.sap.com/wiki/display/B1/SAPB1SQLD-SLLapsedDaysOrdertoDeliveriesOrderDetailsVer3
    Thanks,
    Gordon

    I've read the article and strugled and other articles for this but I haven't achieved the goal - I can display list of SO and linked Deliveries and linked A/R Invoices and A/R Memos but basing on date and client changes within the query itself.
    The current goal is to have a query to ask for GP code and ask for DocDate to get list of Sales Order document numbers and A/R Invoices document numbers and A/R Credit Memos document numbers.
    The ideal result would be to get final quantities of products from all further existing data with possibility to use it in Excel's (office 2007-2010) SQL native client basing on SO document number parameter.
    Maybe it is not possible?
    Any help would be appreciated.
    Thank you,
    Tomasz

  • Query of A/R Invoices with cost

    Hi experts,
    I need to do a query of line items from invoice where appears the cost of this item. The valuation method is FIFO.
    Can anybody help me?

    Thnaks Gordon,
    What I need is the cost of the item. An example:
    I create an entry of 2 unit of the item A for 120u20AC per unit
    I create an AR invoice of this item A for 200u20AC per unit.
    The query I need is
    Colum A: Item A
    Colum B: 200
    Colum C: 120
    Benefit: 80

  • - Query to Join AR Invoice & AR Credit Memo table -

    Dear All,
    I've a query which shows the sales figure monthly in a year (eg: from Jan - Dec). And my issue is how can i join the RIN1 (credit memo table) with the INV1 (invoice table) so the sales figure will be more accurate. Please advise.
    Cheers,
    serene

    Dear Serene,
    Yes, the first line is the sum of invoices and
    next line is the sum of Credit memos.
    Here is the modified query for month wise
    SELECT DISTINCT T0.CardCode [Customer],
    T1.CARDNAME [NAME], (SELECT ISNULL(SUM(I.DocTotal),0)
    FROM INV1 I1 INNER JOIN OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Day(I.DocDate) = Day(GetDate())
    AND Month(I1.DocDate) = Month(GetDate()) AND
    Year(I1.DocDate) = Year(GetDate())) [Daily - Today],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1
    INNER JOIN OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 1
    AND Year(I1.DocDate) = Year(GetDate())) [Jan],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND
    Month(I.DocDate) =2 AND Year(I1.DocDate) = Year(GetDate())) [Feb],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 3 AND
    Year(I1.DocDate) = Year(GetDate())) [Mar],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) =4
    AND Year(I1.DocDate) = Year(GetDate())) [Apr],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 5
    AND Year(I1.DocDate) = Year(GetDate())) [May],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 6
    AND Year(I1.DocDate) = Year(GetDate())) [Jun],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) =7
    AND Year(I1.DocDate) = Year(GetDate())) [Jul],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 8
    AND Year(I1.DocDate) = Year(GetDate())) [Aug],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 9
    AND Year(I1.DocDate) = Year(GetDate())) [Sep],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 10
    AND Year(I1.DocDate) = Year(GetDate())) [Oct],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 11
    AND Year(I1.DocDate) = Year(GetDate())) [Nov],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry
    WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 12
    AND Year(I1.DocDate) = Year(GetDate())) [Dec],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
    OINV I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND (Month(I.DocDate) >=4) AND
    Year(I.DocDate) = Year(GetDate())) [Yearly - Current Year]
    FROM dbo.OINV T0 LEFT OUTER JOIN OCRD T1
    ON T1.CARDCODE=T0.CARDCODE GROUP By T0.CardCode,
    T1.CARDNAME
    union SELECT DISTINCT T0.CardCode [Customer],
    T1.CARDNAME [NAME],
    (SELECT ISNULL(SUM(I.DocTotal),0) FROM rin1 I1 INNER JOIN
    orin I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Day(I.DocDate) = Day(GetDate()) AND
    Month(I1.DocDate) = Month(GetDate()) AND
    Year(I1.DocDate) = Year(GetDate())) [Daily - Today],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =1 AND Year(I1.DocDate) = Year(GetDate())) [Jan],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN OrIN I ON
    I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =2 AND Year(I1.DocDate) = Year(GetDate())) [Feb],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =3 AND Year(I1.DocDate) = Year(GetDate())) [Mar],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =4 AND Year(I1.DocDate) = Year(GetDate())) [Apr],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =5 AND Year(I1.DocDate) = Year(GetDate())) [May],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =6 AND Year(I1.DocDate) = Year(GetDate())) [Jun],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =7 AND Year(I1.DocDate) = Year(GetDate())) [Jul],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =8 AND Year(I1.DocDate) = Year(GetDate())) [Aug],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =9 AND Year(I1.DocDate) = Year(GetDate())) [Sep],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =10 AND Year(I1.DocDate) = Year(GetDate())) [Oct],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =11 AND Year(I1.DocDate) = Year(GetDate())) [Nov],
    (SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
    OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND Month(I.DocDate) =12 AND Year(I1.DocDate) = Year(GetDate())) [Dec],
    (SELECT ISNULL(SUM(I.DocTotal * -1),0) FROM INV1 I1 INNER JOIN
    orin I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
    AND (Month(I.DocDate) >=4) and Year(I.DocDate) = Year(GetDate())) [Yearly - Current Year]
    FROM dbo.Orin T0 LEFT OUTER JOIN OCRD T1 ON
    T1.CARDCODE=T0.CARDCODE GROUP By T0.CardCode, T1.CARDNAME
    Regards,
    Bala
    Edited by: Balakumar Viswa on Apr 28, 2009 3:17 PM

  • Approval query to not allow invoicing if no freight entered

    Hi, I have the following query which generates an "internal error" message but then does not trigger the approval process.
    select Distinct 'True' From OINV T0  INNER JOIN INV3 T1 ON  T0.DocEntry = T1.DocEntry WHERE T0.OINV.U_Ship = 'Prepaid & Billed' and T1.[LineTotal] is Null and CardCode = $[ORDR.CardCode]
    If someone is copying a delivery to an invoice and the there is no freight amount in the freight field when there should be, then I don't want the delivery to become an invoice until that freight amount is filled in. Is there a better way to accomplish this. If not, please help me fix my query. Thanks!

    Please try this
    select Distinct 'True' From OINV T0 INNER JOIN INV3 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.U_Ship = 'Prepaid & Billed' and T1.LineTotal is Null and CardCode = $[ORDR.CardCode]
    You dont need the use of the table name with the alias you've already entered (T0.OINV.U_Ship)
    I kindly suggest the use of the transactionNotification, i think it may work better

  • Shift sequence query in PP work center

    Dear All,
    I am having one problem while maintaining shift sequence in work center. I have maintain all config settings in OP4A shift 1 shift 2 shift 3 but when I create work center and select shift sequence, it is only taking shift 1 and not all 3 shift for all 7 days.
    Can anyone tell me the solution?
    Thanks in advance.
    Regards,
    Max

    Dear Santosh,
    Thanks for the valuable inputs.
    I have created following sequence in OP4A.
    1, Create a Group eg. CB
    2.Create a shift definitions like SHIFT1,SHIFT2,SHIFT2, START/END DATE, START/FINISH TIME OF SHIFTS, NO BREAKS ARE THERE and assign it to group.
    3. Define individual shifts SEQUENCE DAYWISE wrt to groupo.
    4..Assign grouping in capacity header of work center.
    5.Now go to add interval option and create a new version of capcity which contains desired shift sequence from the shift group assigned.
    7. assign proper valid froma and valid to dates.
    8. In capacity header screena ssign the newly created capcity vesrion as active vesrion.
    BUT STILL i WILL ABLE TO MAINTAIN ONLY FIRST SHIFT SEQUENCE FOR ALL 7 DAYS.
    SYSTEM IS NOT SHOWING 2ND AND 3RD SHIFT.
    PLEASE HELP ME OUT.
    THANKS
    MAX

Maybe you are looking for

  • Budget Commitment Report - S_ALR_87013558

    We have an issue with the Budget Commitment Report S_ALR_8701355 as explained below. Org Structure: A* Projects are separate small Projects to track Capital and Operating Expenses But all the Capital Purchases are done only through C* WBS. And accord

  • [suggestion] display # of new posts in profile

    Sometimes I will go into my profile to find my recently posted messages, rather than go sift through the forum or search. It makes it easier to find and click a topic you know you recently posted(especially if it was a question you had). However, som

  • Rounding up currency -  $2.9309 - $2.94???

    Having trouble rounding up dollar amount. Where do i look? Is it possible within the formula? Thanks Chad

  • IDL to JAVA - problem with enum, const assignment

    Hi, I have a problem with compile IDL to JAVA. I want to compile foo.idl to java by command: idlj foo.idl foo.idl:     enum color {       blue,       red,       green,       yelow     const color DEFAULT_COLOR = blue;But I get errors: foo.idl (line 8

  • TimesTen synchronize with OLTP-compressed table

    Hi, We are looking at potentially using TimesTen as a frontend data store for our Oracle database. Database is at version 11.2.0.3, and many tables in the databases are OLTP-compressed (Advanced Compression). Is synchronizing with compressed table su