POs after GRPO -Balance Qty Query

Dear Friends,
Pls. send me query.
Criteria :
In PO:
         QTY   unitPrice    TOTAL
Item1    10       2
Item2    10       2     
Item3    10       2
If GRPO :
Item1    5        2
Item2    6            2     
Item3    7        2
Queries result should be such that.
      QtyBalance
Item1    5               2         10
Item2    4                   2        8
Item3    3                2          6
Regards,
Mahesh.

Hi Mahesh,
Try this,
SELECT      T0.ItemCode, T0.Dscription, SUM(T0.Quantity) AS [Bal Qty]
FROM         (SELECT      T1.ItemCode, T1.Dscription, SUM(T1.Quantity) AS Quantity
                       FROM          OPOR T0 INNER JOIN
                                              POR1 T1 ON T0.DocEntry = T1.DocEntry
                       GROUP BY  T1.ItemCode, T1.Dscription
                       UNION ALL
                       SELECT     T3.ItemCode, T3.Dscription, SUM(T3.Quantity * - 1) AS Quantity
                       FROM         OPDN T2 INNER JOIN
                                             PDN1 T3 ON T2.DocEntry = T3.DocEntry
                       GROUP BY  T3.ItemCode, T3.Dscription) T0
GROUP BY  T0.ItemCode, T0.Dscription
Regards,
Madhan.

Similar Messages

  • To include a new field " Balance Qty" in the VA05

    My requirement is to add a field called "Balance qty" in the VA05 (List of sales order).

    Hi,
    You have a demo for this note in this link with another field: http://sap.ittoolbox.com/groups/technical-functional/sap-log-sd/modifying-oss-message-350068-to-include-po-date-field-304733
    For your requirement, my suggestion is:
    - Search only for sales order with the right status (VBUP-LFSTA or VBUP-WBSTA).
    - After, search in the table VBFA the deliveries for this SO. Be careful with performance, so try note 185530.
    - Newly, check the status for delivery (VBUP-WBSTA if I'm right), and then in the new field you can solve the balance qty.
    Of course, if you don't know ABAP you need an ABAPer.
    I hope this helps you,
    Regards,
    Eduardo

  • POS-Siebel Integration (External Orders Query)

    Hi,
    I have to implement POS and siebel integration for querying and retrieving external orders from Siebel in POS using an out-of-box integration method @
    https://docs.google.com/viewer?url=http%3A%2F%2Fdocs.oracle.com%2Fcd%2FE12517_01%2Fback_office%2Fpdf%2F133%2Fsss-133-imp4.pdf
    After doing all the setup required at both ends, whenever i go to query external order in POS it shows me this message : "The system is currently offline. The orders cannot be retrieved for payment during offline."
    Please advise how to proceed further.
    Also for configuring DefaultConnectorTechnician.xml the mystoreID and pwd are POS admin username and password???
    Thanks in advance,
    Ayush

    Hi,
    Have exposed the web service from Siebel side and also the both Default and retail technician XML files in POS have been updated to proper webservice URI: "http://<Host>:<port>/eai_anon_enu/start.swe?SWEExtSource=SecureWebService&SWEExtCmd=Execute"
    Still the error msg appears stating: The system is offline.
    Do i need to bounce the Oracle Retail POS server before the changes take effect??
    Or is there any more setup that i need to verify in siebel to make sure the webservice respond correctly???
    Regards,
    Ayush

  • Pick List - Released Qty Query

    Hi All,
    i have a scenario here
    SO Details
    Qty - 5.
    ItemsPerUnit - 20
    When come to pick list, the qty as below
    Ordered - 5
    Released - 100
    Picked - 0
    When i pick 1 qty , now the query result show
    Ordered - 5
    Released - 60
    Picked Qty - 40
    SELECT T0.PickQtty AS 'PickedQty', T1.Quantity AS 'OrderedQty', T0.RelQtty AS 'ReleasedQty' from PKL1 T0
    INNER JOIN RDR1 T1
    ON T1.DocEntry = T0.OrderEntry
    where T0.AbsEntry = 6
    After picked 2 qty
    SAP Pick List
    In fact, i just want to get Released Qty in 3 and PickedQty in 2. Which table i can drag these info?

    Hi,
    You can get those field  (T1.[RelQtty], T1.[PickQtty]) from PKL1 table. This is  already mentioned in your query.
    Thanks & Regards,
    Nagarajan

  • J2I6 - Balance Qty in Stock

    Dear Sir`s,
    Will anybody tell me how the Balance Qty in Stock ( 14 th no Column ) in the J2I6 Report (T-Code ) coming ?
    From where system pick the value ?
    I tried to see in MMBE but it is not matching .
    Thanks & Regards ,
    Ganesh

    Hi,
    1. "Manage Item Cost per Warehouse" is not checked?
    2. Moving Average is the valuation method?
    3. You ran the report for especifically warehouse?
    1. no, is checked
    2. no, FIFO
    3. yes, for one warehouse (every item is only in one warehouse anyway)
    I filed it with SAP but unfortunately they did not respond yet. Guess we just have to live with it.

  • Balance qty report

    Hi gurus,
    Is there any report for open sales orders balance qty..
    Regards,
    VSN

    Hello VSN
    you could use report VA05 , to get a list of open sales order. you can get varety of information regarding the open quantity
    you get the order qnt, delivered qnt , status -delivered , partially delivered
    you can check the status from the report and get a overview analysis
    Hope this helps
    Thanks
    akasha

  • I want to allocate balance qty in sql.....

    Please help me…
    I want to allocate balance qty in sql.....
    I have data like below table and expected answer in column EDIT_UP_TO_EXEPECTED_ANS.
    I want to edit data with validation of next process executed qty.
    for example in row 3rd and 4th PROCESS_EXECUTE_QTY is ORDER_VRNO wise is 100 i.e.
    100+0=100 and i want to allocated this qty in 1st and 2nd row i.e. 75,25 i.e. 75+25=100
    because first process CUTTING of jobcard_no J113Y-1004 is 75 and next process done is 100 order_vrno wise
    so i want to allocated 100 in 75,100 i.e. 75,25 total should be next process execute qty i.e. 100
    SLNO
    JOBCARD_NO
    ORDER_VRNO
    PROCESS_CODE
    PROCESS_EXECUTE_QTY
    EDIT_UP_TO_EXPECTED_ANS
    1
    J113Y-1004
    P113Y-56
    CUTTING
    75
    75
    2
    J113Y-1005
    P113Y-56
    CUTTING
    100
    25
    1
    J113Y-1004
    P113Y-56
    DRILLING
    100
    85
    2
    J113Y-1005
    P113Y-56
    DRILLING
    0
    0
    1
    J113Y-1004
    P113Y-56
    PUNCHING
    15
    15
    2
    J113Y-1005
    P113Y-56
    PUNCHING
    0
    0
    1
    J113Y-1004
    P113Y-56
    FORMING
    0
    0
    2
    J113Y-1005
    P113Y-56
    FORMING
    0
    0
    Table script ....
    with t as
    (select 1 SLNO,'J113Y-1004' jobcard_no,'P113Y-56' ORDER_VRNO,'CUTTING' PROCESS_CODE,75 PROCESS_EXECUTE_QTY, 75 EDIT_UP_TO_EXEPECTED_ANS FROM DUAL
    UNION ALL
    select 2 SLNO,'J113Y-1005' jobcard_no,'P113Y-56' ORDER_VRNO,'CUTTING' PROCESS_CODE,100 PROCESS_EXECUTE_QTY, 25 EDIT_UP_TO_EXEPECTED_ANS FROM DUAL
    UNION ALL
    select 1 SLNO,'J113Y-1004' jobcard_no,'P113Y-56' ORDER_VRNO,'DRILLING' PROCESS_CODE,100 PROCESS_EXECUTE_QTY,85 EDIT_UP_TO_EXEPECTED_ANS FROM DUAL
    UNION ALL
      select 2 SLNO,'J113Y-1005' jobcard_no,'P113Y-56' ORDER_VRNO,'DRILLING' PROCESS_CODE,0 PROCESS_EXECUTE_QTY,0  EDIT_UP_TO_EXEPECTED_ANS FROM DUAL
      UNION ALL
      select 1 SLNO,'J113Y-1004' jobcard_no,'P113Y-56' ORDER_VRNO,'PUNCHING' PROCESS_CODE,15 PROCESS_EXECUTE_QTY, 15 EDIT_UP_TO_EXEPECTED_ANS FROM DUAL
      UNION ALL
      select 2 SLNO,'J113Y-1005' jobcard_no,'P113Y-56' ORDER_VRNO,'PUNCHING' PROCESS_CODE,0 PROCESS_EXECUTE_QTY, 0 EDIT_UP_TO_EXEPECTED_ANS FROM DUAL
        UNION ALL
      select 1 SLNO,'J113Y-1004' jobcard_no,'P113Y-56' ORDER_VRNO,'FORMING' PROCESS_CODE,0 PROCESS_EXECUTE_QTY, 0 EDIT_UP_TO_EXEPECTED_ANS FROM DUAL
      UNION ALL
      select 2 SLNO,'J113Y-1005' jobcard_no,'P113Y-56' ORDER_VRNO,'FORMING' PROCESS_CODE,0 PROCESS_EXECUTE_QTY, 0 EDIT_UP_TO_EXEPECTED_ANS FROM DUAL)
    SELECT SLNO,JOBCARD_NO,ORDER_VRNO,PROCESS_CODE,PROCESS_EXECUTE_QTY,EDIT_UP_TO_EXEPECTED_ANS FROM T
    i am using
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    version.
    thanks.

    Just a guess  ( with some data changed and an order column added)
    with t as
    (select 1 SLNO,'J113Y-1004' jobcard_no,'P113Y-56' ORDER_VRNO,'CUTTING' PROCESS_CODE,1 ord,75 PROCESS_EXECUTE_QTY,0 EDIT_UP_TO_EXEPECTED_ANS      FROM DUAL UNION ALL
    select 2,'J113Y-1005','P113Y-56','CUTTING',1,100,0 FROM DUAL UNION ALL
    select 1,'J113Y-1004','P113Y-56','DRILLING',2,85,0 FROM DUAL UNION ALL
    select 2,'J113Y-1005','P113Y-56','DRILLING',2,0,0 FROM DUAL UNION ALL
    select 1,'J113Y-1004','P113Y-56','PUNCHING',3,15,0 FROM DUAL UNION ALL
    select 2,'J113Y-1005','P113Y-56','PUNCHING',3,0,0 FROM DUAL UNION ALL
    select 1,'J113Y-1004','P113Y-56','FORMING',4,0,0 FROM DUAL UNION ALL
    select 2,'J113Y-1005','P113Y-56','FORMING',4,0,0 FROM DUAL
    SLNO
    JOBCARD_NO
    ORDER_VRNO
    PROCESS_CODE
    ORD
    PROCESS_EXECUTE_QTY
    EDIT_UP_TO_EXEPECTED_ANS
    1
    J113Y-1004
    P113Y-56
    CUTTING
    1
    75
    0
    2
    J113Y-1005
    P113Y-56
    CUTTING
    1
    100
    0
    1
    J113Y-1004
    P113Y-56
    DRILLING
    2
    85
    0
    2
    J113Y-1005
    P113Y-56
    DRILLING
    2
    0
    0
    1
    J113Y-1004
    P113Y-56
    PUNCHING
    3
    15
    0
    2
    J113Y-1005
    P113Y-56
    PUNCHING
    3
    0
    0
    1
    J113Y-1004
    P113Y-56
    FORMING
    4
    0
    0
    2
    J113Y-1005
    P113Y-56
    FORMING
    4
    0
    0
    SELECT SLNO,JOBCARD_NO,ORDER_VRNO,PROCESS_CODE,ord,PROCESS_EXECUTE_QTY,
           case when slno = 2
                then PROCESS_EXECUTE_QTY - lag(PROCESS_EXECUTE_QTY ) over (order by ord,slno)
                else PROCESS_EXECUTE_QTY
           end EDIT_UP_TO_EXEPECTED_ANS
      from (SELECT SLNO,JOBCARD_NO,ORDER_VRNO,PROCESS_CODE,ord,
                   case when slno = 2
                        then first_value(process_execute_qty) over (order by ord,slno desc)
                        else PROCESS_EXECUTE_QTY
                   end PROCESS_EXECUTE_QTY,
                   EDIT_UP_TO_EXEPECTED_ANS
              FROM T
    order by ord,slno
    SLNO
    JOBCARD_NO
    ORDER_VRNO
    PROCESS_CODE
    ORD
    PROCESS_EXECUTE_QTY
    EDIT_UP_TO_EXEPECTED_ANS
    1
    J113Y-1004
    P113Y-56
    CUTTING
    1
    75
    75
    2
    J113Y-1005
    P113Y-56
    CUTTING
    1
    100
    25
    1
    J113Y-1004
    P113Y-56
    DRILLING
    2
    85
    85
    2
    J113Y-1005
    P113Y-56
    DRILLING
    2
    100
    15
    1
    J113Y-1004
    P113Y-56
    PUNCHING
    3
    15
    15
    2
    J113Y-1005
    P113Y-56
    PUNCHING
    3
    100
    85
    1
    J113Y-1004
    P113Y-56
    FORMING
    4
    0
    0
    2
    J113Y-1005
    P113Y-56
    FORMING
    4
    100
    100
    Regards
    Etbin

  • Calling BAPI_PO_CHANGE in a loop, correct POs after faulty PO erroring out

    Hello Gurus!
    I have an issue while calling BAPI_PO_CHANGE.
    I'm looping on BAPI_PO_CHANGE with Purchase Orders one by one, and adding articles to the existing POs. It works fine if additional articles are correct
    The issue is, if one PO returns with error from BAPI_PO_CHANGE, because of say '0' quantity or 'Discontinued' status of an  article, the remaining POs after faulty PO error out too. The remaining POs are correct and update correctly if executed separately.
    I'm refreshing all required iTabs and program works fine in case the newly added articles are valid.
    I'm calling BAPI_TRANSACTION_COMMIT in case BAPI returns with successful PO change. In case of faulty BAPI returning with error, I've tried using BAPI_TRANSACTION_ROLLBACK. But it doesn't work.
    Here is the u2018error messageu2019 log:
    Faulty PO:
    Error processing PO: 60045904
    Instance 60045904 of object type PurchaseOrder could not be changed
    Purchase order still contains faulty items
    Status "Discontinued" of article 1000182864 does not allow external procurement
    Enter rate CAD / rate type M for 07/15/2011 in the system settings
    Correct PO but gets erroru2019d out too:
    Error processing PO: 60045909
    Instance 60045909 of object type PurchaseOrder could not be changed
    Enter rate CAD / rate type M for 07/15/2011 in the system settings
    I'd appreciate any help.
    Thank you,
    Farooq

    Hello Anuradha,
    yes, I used the BAPI Commit command but it did not work.
    Kind regards,
    Erkan

  • After I run a query can I get it to return the number of files matched and each individual file name?

    After I run a query can I get it to return the number of files matched and each individual file name?  I am trying to do a data mining routine and this would be helpful. 
    BBANACKI

    Hi bbanacki,
    Please have a look at the following code:
    Define your queries and then:
    oAdvancedQuery.ReturnType=eSearchFile
    oMyDataFinder.Results.MaxCount = iMaxNumberOfReturndElements
    Call oMyDataFinder.Search(oAdvancedQuery)
    Set oMyResults  = oMyDataFinder.Results
    If oMyResults.IsIncomplete Then
      msgbox "The first " & str(oMyResults.Count) & " files found"
    Else
      msgbox str(oMyResults.Count) & "  files found"
    End If
    for iLoop = 1 to oMyResults.Count
      Cell.Text = oMyResults(iLoop).Properties("Name").Value
      Cell.Text = oMyResults(iLoop).Properties("fullpath").Value
    next
    Greetings
    Walter

  • How to see the wait events info. after excute a select query

    Hi
    How to see the wait events info. after execute a select query. Are there any parameter to set for this option?
    And also wanna see the follwing info. in trace file. For this what are the parameters I have to set right?
    SELECT * FROM emp, dept
    WHERE emp.deptno = dept.deptno;
    call   count      cpu    elapsed     disk    query current    rows
    Parse      1     0.16      0.29         3       13       0       0
    Execute    1     0.00      0.00         0        0       0       0
    Fetch      1     0.03      0.26         2        2       4      14
    Misses in library cache during parse: 1
    Parsing user id: (8) SCOTT Regards
    Arpitha

    $ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Apr 20 15:29:33 2011
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> SHOW PARAMETER dump
    NAME                                 TYPE        VALUE
    background_core_dump                 string      partial
    background_dump_dest                 string      /user/oracle/app/oracle/admin/
                                                     orclsb/bdump
    core_dump_dest                       string      /user/oracle/app/oracle/admin/
                                                     orclsb/cdump
    max_dump_file_size                   string      UNLIMITED
    shadow_core_dump                     string      partial
    user_dump_dest                       string      /user/oracle/app/oracle/admin/
                                                     orclsb/udump
    SQL> ALTER SESSION SET EVENTS='10046 trace name context forever, level 12';
    Session altered.
    SQL> SELECT * FROM emp WHERE deptno=20;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
        DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-80        800
            20
          7566 JONES      MANAGER         7839 02-APR-81       2975
            20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000
            20
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
        DEPTNO
          7876 ADAMS      CLERK           7788 23-MAY-87       1100
            20
          7902 FORD       ANALYST         7566 03-DEC-81       3000
            20Now
    $ pwd
    /user/oracle/app/oracle/admin/orclsb/udump
    $ ls -ltr|tail -5
    -rw-r-----   1 oracle   oinstall     622 Apr 20 11:35 orclsb_ora_949.trc
    -rw-r-----   1 oracle   oinstall     651 Apr 20 11:35 orclsb_ora_976.trc
    -rw-r-----   1 oracle   oinstall    1982 Apr 20 11:35 orclsb_ora_977.trc
    -rw-r-----   1 oracle   oinstall    1443 Apr 20 15:29 orclsb_ora_1251.trc
    -rw-r-----   1 oracle   oinstall  279719 Apr 20 15:30 orclsb_ora_1255.trc
    $ tkprof  orclsb_ora_1255.trc  orclsb_ora_1255.txt
    TKPROF: Release 10.2.0.2.0 - Production on Wed Apr 20 15:32:17 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    $ ls -ltr|tail -5
    -rw-r-----   1 oracle   oinstall     651 Apr 20 11:35 orclsb_ora_976.trc
    -rw-r-----   1 oracle   oinstall    1982 Apr 20 11:35 orclsb_ora_977.trc
    -rw-r-----   1 oracle   oinstall    1443 Apr 20 15:29 orclsb_ora_1251.trc
    -rw-r-----   1 oracle   oinstall  279719 Apr 20 15:30 orclsb_ora_1255.trc
    -rw-r--r--   1 oracle   oinstall   26872 Apr 20 15:32 orclsb_ora_1255.txtThis orclsb_ora_1255.txt contains the required information.

  • GL balance sheet query (NW04s)

    I am looking at balance sheet query 0FIGL_VC11_Q0002 for GL cube 0FIGL_V11 and want to know what is the difference between CKF
    <b>balance sheet value</b> = <b>flow value</b> + <b>stock value</b> versus KF <b>cummulative value</b>
    Can someone explain <b>flow value</b> & <b>stock value</b>

    Hi,
    We can Bulit a hierarchy and use it in BW. To built hierarchy you have to sit with Functional people to decide the level and their parts.
    With rgds,
    Anil Kumar Sharma .P

  • Balance Qty for inbound

    Hi All,
    Can we find the inbound  qty balance pending for migo in sap.Is there any table which will store the balance qty of inbound.
    Thanks in advance
    Basu

    Hi experts,
    Please help.

  • Query on a table runs more than 45mins(after stats) and same query runs 19secs(before stats - rebuild)

    Query on a table runs more than 45mins(after stats) and same query runs 19secs(before stats - rebuild) - Not sure what the cause is.
    - Analysed the explain the plan
    - different explain plan used afterr stats gather.
    Any idea what could be the cause with this kind of difference.
    Thank you!

    What is the difference you see in the explain plan ? Where it spends most time. All these needs to be analysed.

  • Difference in closing Balance qty in Inventory Cube and R3 T-code MB5B

    Dear All
    In evaluations of the 0OIC_C03 Infocube and corresponding reports in R/3 with transaction MB5B/MB51 suggest incorrect data extraction. The difference is in the initial stoock uploeaded . I found transaction in the PSA of 2LIS_03_BX which are not there in the MB5B/MB51.When I run the Query I found a certain qty in the Closing Balance but the same can not be traced in MB5B. The closing balances is the differnce in the qty of Mvt. Type 541 and 542. The closing balance is apearing against the calday but not against the posting date. Moreever the closing balance is apearing against Calday 30/07/2008 whereas we have gone live on 01/08/2008 and uploaded the initial stock on 31/08/2008.
    Dinesh Sharma

    Dear All
    In evaluations of the 0OIC_C03 Infocube and corresponding reports in R/3 with transaction MB5B/MB51 suggest incorrect data extraction. The difference is in the initial stoock uploeaded . I found transaction in the PSA of 2LIS_03_BX which are not there in the MB5B/MB51.When I run the Query I found a certain qty in the Closing Balance but the same can not be traced in MB5B. The closing balances is the differnce in the qty of Mvt. Type 541 and 542. The closing balance is apearing against the calday but not against the posting date. Moreever the closing balance is apearing against Calday 30/07/2008 whereas we have gone live on 01/08/2008 and uploaded the initial stock on  31/08/2008.
    Dinesh Sharma

  • GL Trial Balance Report Query with date Effectivity

    We have a requirement to show the GL Trial Balance report with Effective dates as Parameters.
    Current Analysis:
    The Journals get updated with corresponding CCID in GL_BALANCES table when the Journal is posted. GL_BALANCE is SOB specific, if the SOB has month as period then the balances in GL_BALANCES would get updated against the month(period).
    To overcome the period problem, we explored the option of using a View based on GL_JE_HEADERS and GL_JE_LINES for 'Posted' Journal Batches of a SOB. We are checking whether the GL_JE_HEADERS.default_effective_date lies between the :p_from_date and :p_to_date which is sent to the Report as a parameter. The above idea does not return expected data when the custom Trial Balance Report is run.
    Following is the Query we have written for it:
    SELECT cc.segment4 ACCOUNT, bal.code_combination_id,
    bal.begin_balance_dr
    + SUM (NVL (gljel.accounted_dr, 0)) opening_bal_dr,
    bal.begin_balance_cr
    + SUM (NVL (gljel.accounted_cr, 0)) opening_bal_cr,
    ffv.description,
    (SELECT SUM (NVL (gljel.accounted_dr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    --AND gljel.code_combination_id =
    -- bal.code_combination_id
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_dr,
    (SELECT SUM (NVL (gljel.accounted_cr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_cr
    FROM gl_period_statuses per,
    gl_code_combinations cc,
    gl_balances bal,
    gl_je_headers gljeh,
    gl_je_lines gljel,
    fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE cc.chart_of_accounts_id = :p_chart_of_accts_id
    AND bal.currency_code = :p_currency
    AND bal.actual_flag = 'A'
    AND bal.period_name = per.period_name
    AND cc.template_id IS NULL
    AND cc.code_combination_id = bal.code_combination_id
    AND per.set_of_books_id = :p_set_of_books_id
    AND per.application_id = 101
    AND :p_from_date BETWEEN per.start_date AND per.end_date
    AND gljeh.period_name = per.period_name
    AND gljeh.default_effective_date <= :p_from_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'JSWEL_ACCOUNT'
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND cc.summary_flag = ffv.summary_flag
    AND cc.segment4 = ffv.flex_value
    AND gljeh.actual_flag = 'A'
    AND gljel.code_combination_id = bal.code_combination_id
    GROUP BY bal.begin_balance_dr,
    bal.begin_balance_cr,
    cc.segment4,
    ffv.description,
    bal.code_combination_id
    The problem is that not all expected columns are being queried. Kindly advise as appropriate.
    Note: I have also posted this thread on the Financials forum. Posting here to present the query to a larger audience with the expectation that my query would be answered.
    Thanks & Regards
    Sumit

    suggest to create customize TB report.

Maybe you are looking for

  • Multiple condition checking question

    Hi I have a newbie question - if ((temp == null) && (!temp.text.equals(""))) { statement; If temp really is null, would this give a compiler error? or would it simply break after the first condition? Thanks, Mike

  • Help with Spry Menu Bar 2.0 (vers. 1.0) - Placement of customized styles files

    Hello: I would like to congratulate the authors of the new Spry Menu Bar Framework 2.0 (vers. 1.0) -- it has truly been an advance and over the previous generation, and is much more user friendly for those without extensive knowledge of the spry fram

  • Analytic Function help

    TABLE T1(R1_ID,R2,R3) insert into t1 values(63,800,'1/1/2005') insert into t1 values(64,841,'1/1/2005') insert into t1 values(64,862,'1/1/2006') insert into t1 values(64,879,'4/1/2007') insert into t1 values(64,952,'4/1/2008') insert into t1 values(6

  • Freight line item it doesnu2019t show Migo no.& any other references

    Dear SAP Friends, At the time of MIRO for Raw material, When we select Goods services+planned delivery cost tab, then for material system shows Migo no. & reference no. But for Freight line item it doesnu2019t show Migo no.& any other references. For

  • Two different WCS instances, pointing to the same database

    Hi, for some unknown reason that came from the architecture fellows, I need to install 02 instances of WCS pointing to the same database server. I mean, both instances would need to "share" the database. They don't want a cluster schema because they