Duplicate rows on Query with journal entries and AP documents

Hi Experts,
I ahve the below query allowing me to have some information from journal entries and retrieve some other from AP docuements and PO.
The thing is the query duplicates rows because the AP docuements have several rows but i don t know how to do to remove them (i guess this has to do with JOIN function...)
SELECT
T2.[GroupMask] as 'Account Family',
T2.[FatherNum] as 'Parent Account',
T2.[AcctCode] AS 'Account Code',
T2.[AcctName] AS 'Account Name',
T0.[TaxDate] AS 'Document Date',
T0.[Number] AS 'Number',
T0.[DocSeries] AS 'Document Series',
T0.[BaseRef] AS 'Base Reference',
T0.[TransId] AS 'Transaction Number',
T0.[Ref2] AS 'Reference 2',
T1.[ContraAct] AS 'Offset Account',
T4.[BaseRef] AS 'PO code',
T1.[Project] AS 'Project Code',
T1.[ProfitCode] AS 'Distribution Rule',
T1.[OcrCode2] AS 'Costing Code 2',
T1.[OcrCode3] AS 'Costing Code 3',
T1.[OcrCode4] AS 'Costing Code 4',
(T1.[SYSdeb]-T1.[SYSCred])  AS 'Total Amount EUR',
(T1.[FCDebit]- T1.[FCCredit]) AS 'Total Amount (FC)',
T5.[DocTotalSy] AS 'PO Amount (EUR)'
FROM  [dbo].[OJDT] T0 
INNER  JOIN [dbo].[JDT1] T1  ON  T1.[TransId] = T0.[TransId]  
INNER  JOIN [dbo].[OACT] T2  ON  T2.[AcctCode] = T1.[Account]  AND T2.[AcctCode] = T1.[Account]  
INNER JOIN [dbo].[OPCH] T3 ON T3.[DocNum] = T0.[BaseRef]
INNER JOIN [dbo].[PCH1] T4 ON T3.[DocEntry] = T4.[DocEntry]
LEFT JOIN [dbo].[OPOR] T5 ON T5.[DocNum] = T4.[BaseRef]
WHERE
(T2.[AcctCode] > (N'599999' ) ) AND  (T2.[AcctCode] < (N'799999' ) )
AND (T0.[TaxDate]>= [%0] ) AND (T0.[TaxDate]<= [%1])

Try This
SELECT T2.[GroupMask] AS 'Account Family',
   T2.[FatherNum] AS 'Parent Account',
   T2.[AcctCode] AS 'Account Code',
   T2.[AcctName] AS 'Account Name',
   T0.[TaxDate] AS 'Document Date',
   T0.[Number] AS 'Number',
   T0.[DocSeries] AS 'Document Series',
   T0.[BaseRef] AS 'Base Reference',
   T0.[TransId] AS 'Transaction Number',
   T0.[Ref2] AS 'Reference 2',
   T1.[ContraAct] AS 'Offset Account',
   T4.[BaseRef] AS 'PO code',
   T1.[Project] AS 'Project Code',
   T1.[ProfitCode] AS 'Distribution Rule',
   T1.[OcrCode2] AS 'Costing Code 2',
   T1.[OcrCode3] AS 'Costing Code 3',
   T1.[OcrCode4] AS 'Costing Code 4',
   sum(T1.[SYSdeb]-T1.[SYSCred]) AS 'Total Amount EUR',
   sum(T1.[FCDebit]- T1.[FCCredit]) AS 'Total Amount (FC)',
   T6.[DocTotalSy] AS 'PO Amount (EUR)'
FROM OJDT T0
INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId
INNER JOIN OACT T2 ON T1.Account = T2.AcctCode
INNER JOIN OPCH T3 ON T0.TransId = T3.TransId
INNER JOIN PCH1 T4 ON T3.DocEntry = T4.DocEntry
INNER JOIN POR1 T5 ON T4.[BaseEntry] = T5.[DocEntry]
AND T4.[BaseLine] = T5.[LineNum]
INNER JOIN OPOR T6 ON T5.DocEntry = T6.DocEntry
GROUP BY T2.[GroupMask],
   T2.[FatherNum],
   T2.[AcctCode],
   T2.[AcctName],
   T0.[TaxDate],
   T0.[Number],
   T0.[DocSeries],
   T0.[BaseRef],
   T0.[TransId],
   T0.[Ref2],
   T1.[ContraAct],
   T4.[BaseRef],
   T1.[Project],
   T1.[ProfitCode],
   T1.[OcrCode2],
   T1.[OcrCode3],
   T1.[OcrCode4],
   T6.[DocTotalSy]
Regards,
Kennedy

Similar Messages

  • Duplicate Journal Entry and system crash

    Hi All,
    Just wondering anyone experience when duplicate the journal entry and change the posting date and system will just hang and follow by crash?
    Please advise.
    Best Regards,
    Foong Yee

    Hi Foong Yee Tai...
    Check with the Following SAP Note...
    1616687 - B1 shuts down when updating amount in Journal Entry
    Regards
    Kennedy

  • NULL Value in Journal Entry and Wrong Tax Summary

    Hi people,
    I need your expert help for a big problem that appens to some customers.
    They run SAP BO 8.8 SP:00 PL:12
    This is the scenario:
    You insert a new documet,  A/R Invoice or A/P Invoice is the same, problem appear in all of them.
    After you insert the document, using SQL Server Management try this Select statment:
    Select * from JDT1 where JDT1.debit is null OR JDT1.credit is null
    A list of record where listed. And, this is the problem, NULL values are all in the VAT Lines in debit or credit colums.
    If you try to make a SUM(debit-credit) you discovery that, 1000,00-null=null
    Consequently, TAX Sumary report, that probably use arithmetic operation like me in SELECT statment,  count a wrong number when null values in DEBIT or CREDIT column in JDT1 for VAT declaration.
    How could I solve? And how i can make invoices store 0 rather than NULL in the VAT Line?
    Thanks in advance for your tips and solutions

    Thaks Neetu for your answer.
    I thinks there is a misurandertanding.
    My problem is not SQL.
    My problem is the SAP TAX Report.
    I used SQL only for check data and discover why SAP raise a wrong TAX Summary report.
    So, my question is: Why invoices write null values in journal entry, and how I can solve the problem that TAX summary report use null value in operations so the results are wrong.
    Thanks,
    Jonny Cortonicchi

  • How do I create a folder or report from a query with a union and parameters

    I have created folders with unions but I am having difficulty coverting a query with a union and parameters.
    The following works great in SQL*Developer without parameters, but I want to change to use parameters for the year and quarter and use it in Discoverer:
    SELECT TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000') FEID,
      AV.FIRM_NAME VENDOR_NAME,
      AV.BIDCLASS CONTRACT_CODES,
      AV.AWAMT AWARD_AMOUNT,
      AV.SOL_MODE FORMAL_INFORMAL,
      AV.CERT BUSINESS_ENTITY,
      AV.ETHNICITY ETHNICTY,
      AV.PO_NUMBER_FORMAT CONTRACT,
      SUM(VP.INVOICE_AMOUNT) AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV,
      CONFIRM.VSTATE_VENDOR_PAYMENTS VP
    WHERE ( ( AV.PO_NUMBER = VP.PO_NUMBER
    AND AV.VENDOR_ID       = VP.VENDOR_ID ) )
    AND (TO_CHAR(VP.PAYMENT_DATE,'Q') = '4')
    AND ( TO_CHAR(VP.PAYMENT_DATE,'YYYY') = '2009' )
    GROUP BY TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000'),
      AV.FIRM_NAME,
      AV.BIDCLASS,
      AV.AWAMT,
      AV.SOL_MODE,
      AV.CERT,
      AV.ETHNICITY,
      AV.PO_NUMBER_FORMAT
      union
    SELECT TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000') FEID,
      AV2.FIRM_NAME VENDOR_NAME,
      AV2.BIDCLASS CONTRACT_CODES,
      AV2.AWAMT AWARD_AMOUNT,
      AV2.SOL_MODE FORMAL_INFORMAL,
      AV2.CERT BUSINESS_ENTITY,
      AV2.ETHNICITY ETHNICTY,
      AV2.PO_NUMBER_FORMAT CONTRACT,
      0 AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV2
    WHERE
    not exists (SELECT 'X'
                  FROM CONFIRM.VSTATE_VENDOR_PAYMENTS VP2
                 WHERE av2.po_number = vp2.po_number
                       AND (TO_CHAR(VP2.PAYMENT_DATE,'Q') = '4')
                       AND ( TO_CHAR(VP2.PAYMENT_DATE,'YYYY') = '2009' ))
    AND (TO_CHAR(AV2.AWDATE,'Q') = '4')
    AND (to_CHAR(AV2.AWDATE,'YYYY') = '2009')
    GROUP BY TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000'),
      AV2.FIRM_NAME,
      AV2.BIDCLASS,
      AV2.AWAMT,
      AV2.SOL_MODE,
      AV2.CERT,
      AV2.ETHNICITY,
      AV2.PO_NUMBER_FORMAT Can someone provide a solution?
    Thank you,
    Robert

    Hi,
    You can take the parameters to the select so that you will be able to create conditions over them.
    Try to use this SQL instead of your and in the discoverer workbook create the conditions and parameters:
    SELECT TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000') FEID,
    AV.FIRM_NAME VENDOR_NAME,
    AV.BIDCLASS CONTRACT_CODES,
    AV.AWAMT AWARD_AMOUNT,
    AV.SOL_MODE FORMAL_INFORMAL,
    AV.CERT BUSINESS_ENTITY,
    AV.ETHNICITY ETHNICTY,
    AV.PO_NUMBER_FORMAT CONTRACT,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    SUM(VP.INVOICE_AMOUNT) AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV,
    CONFIRM.VSTATE_VENDOR_PAYMENTS VP
    WHERE ( ( AV.PO_NUMBER = VP.PO_NUMBER
    AND AV.VENDOR_ID = VP.VENDOR_ID ) )
    --AND (TO_CHAR(VP.PAYMENT_DATE,'Q') = '4')*
    --AND ( TO_CHAR(VP.PAYMENT_DATE,'YYYY') = '2009' )*
    GROUP BY TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000'),
    AV.FIRM_NAME,
    AV.BIDCLASS,
    AV.AWAMT,
    AV.SOL_MODE,
    AV.CERT,
    AV.ETHNICITY,
    AV.PO_NUMBER_FORMAT ,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    union
    SELECT TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000') FEID,
    AV2.FIRM_NAME VENDOR_NAME,
    AV2.BIDCLASS CONTRACT_CODES,
    AV2.AWAMT AWARD_AMOUNT,
    AV2.SOL_MODE FORMAL_INFORMAL,
    AV2.CERT BUSINESS_ENTITY,
    AV2.ETHNICITY ETHNICTY,
    AV2.PO_NUMBER_FORMAT CONTRACT,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    0 AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV2
    WHERE
    not exists (SELECT 'X'
    FROM CONFIRM.VSTATE_VENDOR_PAYMENTS VP2
    WHERE av2.po_number = vp2.po_number
    AND (TO_CHAR(VP2.PAYMENT_DATE,'Q') = TO_CHAR(VP.PAYMENT_DATE,'Q') )
    AND ( TO_CHAR(VP2.PAYMENT_DATE,'YYYY') = TO_CHAR(VP.PAYMENT_DATE,'YYYY') ))
    --AND (TO_CHAR(AV2.AWDATE,'Q') = '4')*
    --AND (to_CHAR(AV2.AWDATE,'YYYY') = '2009')*
    GROUP BY TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000'),
    AV2.FIRM_NAME,
    AV2.BIDCLASS,
    AV2.AWAMT,
    AV2.SOL_MODE,
    AV2.CERT,
    AV2.ETHNICITY,
    AV2.PO_NUMBER_FORMAT,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    Tamir

  • Absolute dynamic select query with dynamic join and where

    Has anyone ever tried creating an absolutely dynamic SELECT query with dynamic Join and Where conditions.
    I have a requirement of creating such a query in an Utility Class, and i have written the code. But its throwing my sysntax errors.
    Please let me know where am I going wrong OR is it really possible to create such a dynamic Query??
        SELECT (FIELDS) INTO TABLE IT_TABLES
          FROM ( (ME->TABLE1)  inner join ( me->table2 )
          on ( on_condition ) )
          WHERE (me->where_fields).
    Ags.

    It worked for me in a following way:
    select * into corresponding fields of table <result_table>
            from (join_string)
            where (l_where).
    Where the contents of join_string were dynamically build using concatenation. So it will be something like
    concatenate ME->TABLE1 'as a INNER JOIN' me->table2 'as b ON (' into join_string separated by space.
    <...>
    add here matching/reference colums, something like
    concatenate 'a~' me->TABLE1_JOIN_COL into temp1.
    concatenate 'b~' me->TABLE2_JOIN_COL into temp2.
    concatenate join_string temp1 '=' temp2 into join_string separated by space.
    <...>
    concatenate join_string ')' into join_string separated by space.
    And then use similar approach for l_where variable.

  • Query with MARA MVKE and MAST

    Hi
      Im trying to create a query with MARA, MVKE and MAST tables. If corresponding records exist in all the 3 tables, I get output. Otherwise, I get the result as 'No data selected'. I tried using left outer join with MAST , tried using MARC also between MARA and MAST but its of no use. Please suggest how I can both get the sales data and BOM details in the output.
    Thanks
    Aparna

    Hi Aparna,
    Goto  SE16 Check in table,
    1.KDST -
    Sales order to BOM link
    2.STKO -
    BOM - header
    3.STPO -
    BOM - item
    And also you create a query and check the out put.

  • HT4767 Installed "Lion" and lost all calendar entries and all documents.  A little assistance pls.

    Installed "Lion" and lost all calendar entries and all documents.  A little assistance pls.

    Installed "Lion" and lost all calendar entries and all documents.  A little assistance pls.

  • Bank statement Nr in journal entry and Payments

    In Notenumber 1374872 (SP 01/PL7) a change has been implemented that the number of the payment run is copied to the remarks of the payment and the journal entry. I think it will be good idea to do the same for the number of the bankstatement in bank stament processing. Hereby the text for the note 1374872. The reason why and the solution are the same.
    Regards,
    ProSigma BV
    Cees Hameete
    Symptom
    To find the number of the payment wizard run in payments and journal entries, bookkeepers currently have to open the journal entry, navigate to the payment document, and then search manually in the executed payment wizard runs to find the correct number.
    Other terms
    Incoming payment; outgoing payment; payment wizard; journal entry
    Reason and Prerequisites
    Functionality description
    Solution
    To improve usability and provide integrated journal remarks information, SAP Business One was changed as follows:
    When an incoming or outgoing payment is generated using the payment wizard, the application adds the payment wizard run number to the "Journal Remarks" field of the payment document and to the "Remarks" field in the journal entry on both header and row level.
    The values in the "Journal Remarks" and "Remarks" field have the following structure:
    Incoming Payments - [Customer Code] - [Payment Wizard Run Number]
    Outgoing Payments - [Vendor Code] - [Payment Wizard Run Number]
    SAP intends to provide a patch or patches in order to solve the problem described.
    The section Reference to Related Notes below will list the specific patches once they become available.
    The corresponding Info file of the patches in SAP Service Marketplace will also show the SAP Note number.
    Be aware that these references can only be set at patch release date.
    SAP will deliver patches only for selected releases at its own discretion, based on the business impact and the complexity of the implementation.

    I completely agree with your proposal.  We have the same problem at the moment.  I hope SAP will implement a solution for this.

  • Stock Posting does not tally with Journal Entry

    Hi Mentors,
    I currently trying to see the cause of a particular issue with the JE being created by Stock Posting.
    After scavenging the forums, I came across SAP Note 1525960.
    Symptom
    On creating Inventory Posting in locked Posting Period, system gives error message 'Period is
    locked for new data [Message 131-107]'. Keep the window open, go to Posting Periods to
    change the Period Status to 'Unlocked', and then click on 'Reconcile' again. Inventory Posting
    is successfully added.
    The Transaction Value in the Inventory Audit Report is correct. However the Debit / Credit
    amounts in the Journal Entry of Inventory Posting are doubled.
    The note was created in 2010, filed under SAP Business One 2007. I tried to replicate it, and it holds true for our system, which is currently 2004B.
    When I tried to explain the SAP note to our accountant, she said that she did not encounter the error message, since she was the one controlling the period.
    So my question is, if there any other factors that could influence the change in the posting of the JE such that the variance being posted in the JE is more than the actual amount(as verified against "Inventory Posting List" and OINM)? 
    Some facts about our Finance department's practices.
    They enter the "Stock Posting" a month later.
    E.G. Stock Posting for Oct2011 Stock Variance
    System Date: Nov 16, 2011
    Stock Posting - Posting Date: Oct 31, 2011
    Thanks in advance!
    Sean

    Hi Sir Gordon,
    I already checked using your suggested query:
    SELECT * from oinm
    WHERE NegInvAdjs != 0
    found in this [thread|Re: Diffe Amount posting in Same document].
    Unfortunately, 2004B does not have the column "NegInvAdjs". The query failed to execute.
    Thank you for the guidance,
    Sean

  • Report Builder 2.0 returning duplicate rows in query designer

    Hi,
    I have a query running off a model, when I explore the data in the model and in a standard sql table it returns one row for each record, which include a unique id for each which is correct.
    When I go into report builder query designer, it shows duplicate rows for each record. I have removed and added fields to try and pin point why and the only reason i can come up with is that it runs fine until I add in a field thats varchar(255) or
    varchar(max). This is when it starts to duplicate the records.
    Can anyone tell me why it does this or point me in the direction of how to stop this. I can't edit the query in text to add DISTINCT so thats not an option.
    Many thanks,
    JJSJ

    OK - I have found a partial answer.   By Googling Report Builder and VARCHAR, I found another post which reported problems with the semantic query builder when the underlying table/view was returning columns of type VARCHAR(MAX).   
    On looking at the length setting for the data column in the DSV,  this reported a length of 2,147,483,647 for this field.   This is very odd because on querying the underlying table the largest length that I can find for this column is 191,086
    (which is far larger than I would have expected - I am investigating this separately).
    However, why should the Report Model think that this field contains such a large value?
    Anyway,  the other post that I found reported that they had solved their problem by converting the field to a VARCHAR (255).    I tried this (by casting the column in my View to VARCHAR(255))  and this resolved the problem
    - no more duplicate rows when adding this field to the query!!!
    I also tried CASTING to TEXT and to VARCHAR(8000).  The former did not resolve the problem; the latter did.
    So I have a workaround but I don't understand why.  
    Can anybody explain why having a VARCHAR(max) column in my entity causes duplicate rows.    
    I suspect it is to do with the fact that for some reason the Report Model seems to think that there is an exceptionally long text string stored in this column in one of the rows but that again is a puzzle.
    Thanks
    Richard

  • Query for Journal Entry as Incoming/Outgoing Payment

    Hi all,
    I need a query that returns all journal entries that are incoming/outgoing payments.
    I have not found anything in the journal entries tables that marks it as a payment.
    thanks,
    Lucas.

    Hi Lucas,
    I am afraid 2 queries could be more meaningful. That might be more convenient:
    Incoming:
    SELECT T0.TransId as [Journal Entry#],
    T0.RefDate as [Posting Date],
    T0.BaseRef as [Incoming Payment #],
    Isnull(T1.AcctName,T0.ShortName) as [GL Account Name/Vendor Code],
    T0.Credit
    from JDT1 T0
    Left JOIN OACT T1 ON T1.AcctCode= T0.ShortName
    where T0.TransType=24 AND
    T0.Credit > 0
    Order By T0.RefDate
    Outgoing:
    SELECT T0.TransId as [Journal Entry#],
    T0.RefDate as [Posting Date],
    T0.BaseRef as [Outgoing Payment #],
    Isnull(T1.AcctName,T0.ShortName) as [GL Account Name/Vendor Code],
    T0.debit
    from JDT1 T0
    Left JOIN OACT T1 ON T1.AcctCode= T0.ShortName
    where T0.TransType=46 AND
    T0.debit > 0
    Order By T0.RefDate
    Thanks,
    Gordon

  • Create  query with top 5 and rest

    Hi,i want to have a query that gives a list in the following format
    customer  - value of orders
    #1            -  20.500
    #2            -  20.100
    #3            -  16.000
    #4            -  15.000
    #5            -  14.000
    Rest         -  49.600
    how can i achieve that in a convenient way  - filters,conditions,exceptions,properties etc - all those new stuff?
    (i am new to BI,so excuse my beginners question,please)

    Hi,i am not sure if it is possible to diaply Value of Rest with standard functionality.Instead you can display Overall result.
    Create a condition TOP N and speify the number as 5. and make sure Suppress Result rows of Customer is set to 'never'.So you will get displayed Top 5 Customers and Overall result.
    if you are saving the result as WorkBook,then add one more Row after Query result to display result  with the Excel formula Overall Result-Top 5.Save the Workbook.

  • Function Module: to get Cash Journal Entries and Balances

    Dear Guru's,
    We need to develop a function module to display cash journal opening balance line item entries and closing balance of specific period.
    we have found document entries through table TCJ_DOCUMENTS or TCJ_POSITIONS now require help to generate opening and closing balances.
    Please help for the solution.
    AAR

    Hi,
    check FM FCJ_GET_DATA_FOR_SCREEN. Next time you can try to figure out by yourself. The program for transaction FBCJ is not that complicated and you can easily find this FM used there.
    Cheers

  • Outgoing Payment with journal Entry

    Hi guys I need your help
    I need to be able to do an outgoing payment based on a journal entry. This is my code but I get this error:
    "Base document card & target document card do not match"
    The journal is based on an incoming payment that was over paid and has a remaining balance.
    Thanks
                oOutPay.DocTypte = SAPbobsCOM.BoRcptTypes.rCustomer;
                oOutPay.CardCode = "CC0001";
               //oOutPay.Invoices.Add();
                oOutPay.Invoices.DocEntry = 106;
                oOutPay.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_JournalEntry;
                oOutPay.TransferAccount = globals.bankTrAccOP;
                oOutPay.TransferSum = 80;
                int lRetCode;
                lRetCode = oOutPay.Add();

    Hi Costas,
    In order to based the payment on Journal Entry,
    You have to set the docline of the Payment to Journal Entry Line which has the same cardcode as your payment card code like this
    oPay.Invoices.DocLine = oJE.Lines.Line_ID
    What I do is I iterate through the Journal Entry to look for the line like this :
    If .Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_JournalEntry _
                                        Or .Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_PaymentAdvice Then
        Dim oJE As SAPbobsCOM.JournalEntries
        oJE = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
        oJE.GetByKey(.Invoices.DocEntry)
        For iLines As Integer = 0 To oJE.Lines.Count - 1
        oJE.Lines.SetCurrentLine(iLines)
        If oJE.Lines.ShortName = .CardCode Then
        'If the line card equal payment card code, then assign the docline id
              oPay.Invoices.DocLine = oJE.Lines.Line_ID
              System.Runtime.InteropServices.Marshal.ReleaseComObject(oJE)
              oJE = Nothing
              Exit For
         End If
        Next
    End If

  • PARK & POST  Journal Entry and auto reversal

    Dear All,
    Our auditors has offered the following changes to be implemented in SAP system.
    1. JE approval: Configure the system functionality to place journal entries in a u201Choldu201D status when entered into the system, then the supervisor/manager review and approval then required to release the journal entry from the u201Choldu201D status and post the entry to the general ledger. The reviewer should not have the ability to initiate a journal entry.
    2. JE reversals:  Utilize the functionality to automatically reverse journal entries, booked in prior month as u201Creversing,u201D when new period is opened.
    3. 3-way match: Utilize the SAP functionality to perform an automated 3-way match process between invoice, purchase order, and goods receiving documentation. If invoices meet the 3-way match criteria based on established variance thresholds, invoices should automatically be approved for payment. If variances are noted, which exceed tolerance thresholds set by Management within the system, work flows should be used within the system to automatically route the invoice for the require approval.
    How this changes can incorporated in the system.
    Do suggest.
    Regards,

    For point 1, there is a functionality in SAP where all parked documents will be blocked and then released by the authorized person. There is a standard workflow for that. You may want to check Make and CHeck Settings for Document Parking. If this doesn't satisfy, then there's a need to create a customized workflow. Plus authorizations must be checked so that the users will not be able to Post but only Park. Note that, there is another functionality in Document posting called "Hold" this one, system doesn't assign any financial document. You can assign any reference/number to the document.
    For point 2, there is a Mass Reversal functionality in SAP called the F.80. For accruals, you may use FBS1 which you can input the reversal date and run F.81 to run the reversal.
    For point 3, it is a standard SAP functionality. You must set tolerance as to qty or price variance and the system automatically blocks the invoice for posting and the authorized person is required to release the approved invoices to remove the block for payment. In SAP, when you enter the PO for a particular invoice, it will give you how much or how many is actually goods received for that particular PO. in that sense you will be able to see whether the invoice is completely billed for the whole PO or not.

Maybe you are looking for

  • I am unable to hear anything on my iphone unless I have it on speaker.

    I am unable to hear my iphone at all unless I have the speaker on.  Has anyone experienced this before?  How did you resolve it?

  • Error in simple Application

    Hi all,     since i am relatively new to this field, i created a simple application which takes in carrid and displays the sflight details...i too have binded the table but whenever i try to test the application it displays the following error_..."Ad

  • Customer - company code extension

    Hi, Below is the scenario for which we are looking for a solution. When a customer is created in the CRM system, the details flow down to ECC using BDOCS/IDOCS. CRM does not have company code details. But we need these in ECC. So when the BDOC is bei

  • Problem with sap start Up datbase

    Dear Experts, As we are using ecc 5.0 on oracle databse and os as Hp-UX .As our development server got down for some reasons and i tried to start up.as it is saying Database is unavailable .as i tried to open database it is up.and i tried to start sa

  • Consuming Webservice in par files

    Dear Experts, I have ccreated a webservice from RFC (BAPI) SAP. This webservice returs a message. Now , I want to show this message in the portal logon page. I have already customised the logon screen, but How should I consume this webservice. Please