SQL Report ref. Item Groups

Hi Experts
I have a User Defined Field on the face of all Sales Invoices which records the date a Maintenance Contract expires (manually entered by User). All my Maintenance Contracts belong to item groups beginning with "MAIN..."
I want to be able to identify those Invoices raised, where the UDF (u_expiry) has not been populated. My attempt below is giving me invoices which has no product belonging item group begining with Main.
SELECT T2.[DocNum], T2.[CardCode], T2.[CardName]
FROM [dbo].[OITM]  T0 INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod, OINV T2
WHERE T1.[ItmsGrpNam] Like '%%MAIN%%' AND  T2.[U_Expiry] IS NULL
Thanking you in advance.
Derek

Hi
Find the below Query i think this will solve ur problem
SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T1.[ItemCode],
T1.[Dscription], T1.[Quantity], T0.[DocTotal], T3.[ItmsGrpNam]
FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN
OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
WHERE T3.[ItmsGrpNam] ='Main' AND T0.[U_Expiry] IS NULL
cheers
Jenny

Similar Messages

  • Warehouse report in Item group wise

    Dear Experts,
    In Warehouse report i need the breakup in item group wise.
    Now Warehouse report show all item's and item's details. But now i need all group along with that group item details.
    Ex:
    Group 1
    Item A - 50
    Item B - 70
    Item C - 120
    Item N - 100
    Group 2
    Item AA - 50
    Item BB - 70
    Item CC - 120
    Item NN - 100
    Group 2
    Item AA - 50
    Item BB - 70
    Item CC - 120
    Item NN - 100
    How to get this report. any solution
    Thanks and Regards,
    Chandru

    Try the following query as you will not be able to manipulate or change the standard warehouse report to your requirements:
    SELECT T2.[ItmsGrpNam], T0.[WhsCode], MAX(T0.[ItemCode]) AS [ItemCode], MAX(T1.[ItemName]) AS [Item Name], SUM(T0.[OnHand]) AS [OnHand] FROM OITW T0  INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OITB T2 ON T1.ItmsGrpCod = T2.ItmsGrpCod GROUP BY T2.[ItmsGrpNam], T0.[WhsCode] ORDER BY T2.[ItmsGrpNam], T0.[WhsCode]
    Kind regards
    Peter

  • SQL REPORT LIST ITEM DEPEND OTHER ITEM

    i have report sql depend other item list values, but not funtion.
    Select
    column_a, -- (countr)
    null column_b -- (city)
    from table_name_a
    I have list_values lov_city
    select codigo d, id r
    from table_city
    where
    country = ????? --(column_a )
    in Report Attributes display as (query basad name / name_lov)
    how do I link a column in the report to make part where the list of values?
    where
    countre = #column_a# generate error in execution.
    Edited by: Acastano on 3/02/2011 06:41 PM

    lov_city
    Select codigo d, id r
    from table_city
    where country IN (SELECT distinct column_a From table_name_a)
    This may or may not be what you are looking for... I'm not sure i completely understand the question

  • Sql report on item - problem with commas in the string

    I have a simple report that groups all the Job Titles entered on our database.
    I pass the job title to an apex item and then on a second page list the records that match that job title using:
    and ed.ede_job_title = :P35_JOB_TITLE
    If there is a comma in the job title the report returns the records that match the string up to the point the comma appears not the full string.
    So 'Project Manager, Operations' matches all the 'Project Manager' records.
    Also when there is a leading space in the job title the report displays the jobtitle without the leading space.
    Apologies if this is answered elsewhere, I did search.

    Check the actual URL up in the location bar. Your comma may actually be dropping out there, because it isn't encoded such that in value commas can be differentiated from delimiters, so the fields aren't lining up in the URL properly.
    When you go to a page that takes in parameters for assignment in the link, it has 2 fields. The first is the comma separated list of the item names on the page to assign, which wouldn't contain commas in their names. The other field in the URL is a comma separated list of values to be assigned to the previous list. Since these values aren't encoded, the comma in the value is picked up as delimiter and not a part of the value. I have an example I can load up to apex.oracle.com if you need.
    -Richard
    Edited by: rwendel on Aug 13, 2009 11:51 AM

  • Need RG23APART1 report through Item Group Wise

    Hi All..
    The scenario is In the XL reporter add RG23A PART 1 report is only date and Location wise but i need the report through ItemGroup wise so how can i do that...
    Thanks

    Closed my self

  • Hide Particular Item Group from Selection Criteria of Sales Analysis Report

    Hello Experts,
    Is this possible to Hide Particular Item Group from Selection Criteria of Sales Analysis Report?
    I have one Item Group as 'Special Items'.
    Now, when I open  Item wise sales analysis report, I want to hide above mentioned group from selection criteria.
    Thanks in advance.
    Best Regards,
    Pankit Sheth

    Hi,
    1. Not possible to put validation for selection criteria windows.
    2. In standard, I don't think it is possible to hide only one item group.
    3. Alternatively don't give authorization to user for running sales reports. If still need create customized query and ask user run every month.
    Thanks & Regards,
    Nagarajan

  • Items is a region displayed after a sql report region!

    Hello everybody!
    I have 3 regions :
    1/ HTML text region with some items : sequence 10, column1
    2/ SQL report region : sequence 20, column1
    3/ HTML text region with some items : sequence 30, column1
    I have many problems and errors when submitting the page and saving data into tables, I think that htmldb is not getting the correct values corresponding to the correct items.
    If I change the column diplay of the sql report region to "2", or if I change the sequence of the SQL report region to 40, all is ok!!!
    (I am using wwv_flow.g_f10(i) to retreive data from the report).
    Any idea ?

    Hello Raju,
    Ok, My example is more complexe, but I have succed to reproduce the error in a sample example in my oracle htmldb workspace,
    My access info have bee sect to : [email protected]
    You will find the example in application 21275_TEST page 2.
    I have 3 regions, the second is a report sql region in witch I have a popkeyfrom query item.
    My submit button, update a table with a text field (item P2_IT, region1) and a date(item P2_MONTH ,region3).
    You will see that when submitting, you will get an error : not a valid month....
    I have not understand what is being done at save, but I am sure that the value of P2_MONTH is not correctly setted when updating the table!
    Just, changing the sequence of the report region from 10 to 30 resolve the problem,
    but I must have this region between the two others!!!
    Thanks for the help!

  • Passing sql report query field value to hidden item in javascript

    I have sql report which has in each row one html button. Let us say that query SHOULD look like (two columns, to be easy to get the point):
    select 1 SECURITY_ID
      , '<input type="BUTTON" value="Top10" onClick="javascript:Top10Click ('||SECURITY_ID||');" >' BTN
    FROM DUAL;
    function Top10Click (vValue) {
      html_GetElement('P31_PROCESS_VALUE').value = vValue;
      doSubmit('GO_BACK');
    } <br><br>
    where P31_PROCESS_VALUE is hidden item where i want to store value of row where click happened.
    <br><br>
    In every button i want to pass row value "SECURITY_ID" to Top10Click function for each row differently.
    <br><br>
    Problem is that when I place double qoute then js is not working, else js is ok but "SECURITY_ID" is passed as constant not as live SQL value.
    <br><br>
    Any help...THX!
    <br>
    Demo is on oracle:
    http://htmldb.oracle.com/pls/otn/f?p=26216:1
    Workspace entry:
    WK: FUNKY
    UN: [email protected]
    PW: qwertz

    I have tried to unify the solution, so it looks like:
    select 1 SECURITY_ID
      , '<input type="BUTTON" value="Top10" onClick="javascript:Top10Click ('||'&quot_X;'||SECURITY_ID||'&quot_X;'||');"  >' BTN
    FROM DUAL;change '&quot_X;' (remove "_X" part ... so it can be seen in HTML properly!
    THX Denes for great ideas...

  • Item group field in A/p Invoice  jounal Report

    Hi,
    in Financial Reports -> Accounting-> Transaction Journal->
    A/P invoice.
    in this report along with Vendor Details & Tax %, Respective Item Group also should display.
    for this what to do. if i drag any group name from the list, it is repeating.
    how to bring "Item Group" of the perticular item which is a/p invoiced.
    plz help me asap.
    Regards.
    Nagababu

    Add Item group as group in the report.This will avoid repetition on the group name.
    Regards,

  • Group box vs SQL Reporting Services Bookmark box

    <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Hi,</font></p><p style="margin: 0cm 0cm 0pt" class="MsoNormal"><font face="Times New Roman" size="3">My name is Peter Mead. I have started a job where they have a bunch of Reports written using SQL Reporting Services. My job is to convert these reports in to Crystal Reports to be used in an Enterprise Reporting methodology.</font></p><font face="Times New Roman" size="3"> </font> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><font face="Times New Roman" size="3">The first problem I have is that SQL Reporting Services viewer has a Bookmark box down the left hand side. This Bookmark box looks like a Group box but does not function in the same way. SQL Reporting Services designer allows for the creation of any definable bookmark to be placed in this Bookmark box. </font></p><font face="Times New Roman" size="3"> </font> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><font face="Times New Roman" size="3">How can I replicate or emulate this Bookmark box?</font></p><font face="Times New Roman" size="3"> </font> <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Thanks in Advance,</font></p><p style="margin: 0cm 0cm 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Peter Mead</font></p>

    In the grouping dialog, there is an option to create "Specified Groups". This should allow you to emulate that bookmark idea.Â
         - Kathryn Webster (Report Design Consultant)
               Kat&#39;s News: http://diamond.businessobjects.com/blog/279

  • Refresh SQL Report (Submit Page Item)

    I want to add a search field in a SQL Report. I have something like this
    SELECT * FROM emp
    WHERE  emp_no  LIKE  :P1_SEARCH || '%'I want to do the search asynchronous, on keypress. The problem is that a SQL Report doesn't have a "Submit Items:" atribute like a interactive report.
    So after i refresh the report:
    $a_report($x('P1_REPORT_ID').value,'1','10','100');The report is refreshing (the circle icon on top of the screen) but nothing changes cause the :P1_SEARCH doesn't submits.
    How could i submit a page item from JS ?
    King Regards,
    Cearnau Dan
    PS: I'm using APEX 4 and using dynamic actions it's the same like the Javascript call.(still doesn't submits the :P1_SEARCH item)

    Hi Dan,
    I would suggest not to use the undocumented
    $a_report($x('P1_REPORT_ID').value,'1','10','100');It's very likely that it will be changed in APEX 4.1
    Dan.Cearnau wrote:
    PS: I'm using APEX 4 and using dynamic actions it's the same like the Javascript call.(still doesn't submits the :P1_SEARCH item)That's true, but have a look at Anthony's blog posting http://anthonyrayner.blogspot.com/2010/07/report-filtering-with-apex-40-dynamic.html which explains a workaround to pass the new values for a classic report as well.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How To Use a Hidden Page Item within an SQL Report Query without Submitting

    Hi,
    Using: Oracle ApEx 3.0.1
    I have an sql report region that contains a hidden page item as part of the "where clause". My problem is, based on a value entered by the user, I need to assign this value enetered to my hidden item, so that it can be used within the where condition of my sql but this would need to be done without actually submitting the form.
    At the moment, I can set the value via an on-demand process but my SQL is still not returing any values as the hidden page item within the query is not set (as page has not been submitted).
    Can anybody please assist as I am not sure how to do this and whether in actual fact, this is possible to do, without having submitted the page.
    Thanks.
    Tony.
    Edited by: Tony F. on Nov 12, 2011 1:39 AM

    You can set a session value using a dummy ajax call e.g:
    Add the following to the 'Function and Global Variable Declaration' region
    function f_set_item(pThis){
      var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',1);
      get.add('P1_ID',pThis.value)
      gReturn = get.get();
      get = null;
    }Where P1_ID is the session value to be set. Then call the function in the usual way e.g.
    javascript:f_set_item(this);
    I hope that helps
    Shunt

  • Commitment item group not displayed as level node when generate report FM

    Hi all,
    We created commitment item group or funds centre group through tcode i.e FM_SETS_FIPEX1. We create group with lower node such as hierarchy.
    However when we generate the standard report with the commitment item group or funds centre group, we find no hierarchies as commitment item/funds centre group figure. Just flat, no hierarchies, no level node.
    How to make it displayed as commitment item/fundcentre group ?
    It maintained on drilldown report or something else?
    Dewi

    Dewi,
    For report painter reports you can create groups using transaction FMRP_CI_SET_HIER - Create Group Hierarchy from Master Data Hierarchy or create sets using GS01, with them you can view the reports with the master data hierarchy.
    Regards
    César

  • Query to generate a report for incoming pending payments as per Item Group!

    Dear All,
    I need a Query to generate a report for incoming pending payments through Item Group.
    Please provide me the same.
    Thanks in advance..........................
    Edited by: Param Deshwal on Nov 22, 2011 7:11 AM

    Hi
         try this
    SELECT T0.[DocNum] as 'Invoice Number', T0.[DocDate] as 'Invoice Date', T0.[CardName], T0.[DocTotal] as 'Invoice Amount', T0.[PaidToDate] as 'Paid Amount',(T0.[DocTotal]-T0.[PaidToDate]) as 'Pending Amount',T3.[ItmsGrpnam] FROM OINV T0 Inner join inv1 t1 on t0.docentry=t1.docentry inner join oitm t2 on t2.itemcode=t1.itemcode inner join oitb t3 on t3.[ItmsGrpcod]=t2.[ItmsGrpcod] where T3.[ItmsGrpnam]=[%0] 
    Regards,
    sudhir B.
    Edited by: B.sudhir on Nov 22, 2011 7:28 AM

  • SQL code to display Group Header in Reports

    Please provide the sample sql module to use group headers in reports.
    Even after reading the Extensibility guide, I am not able to write code with proper syntax.
    I think all the below 3 parameters has to be used to show group header in Reports.
    "oracle.sysman.eml.ip.render.elem.TableRender.columnGroupHeader"n
    "oracle.sysman.eml.ip.render.elem.TableRender.columnGroupStart Col"n
    "oracle.sysman.eml.ip.render.elem.TableRender.columnGroupEndCol"n.
    I am not sure whether in a single call to mgmt_ip_param_value_record function in Reports, all 3 parameters has to be called.
    Please help.

    You will have to create a new mgmt_ip_param_value_record for each one of those.
    I assume it will look something like this:
    l_param_values(1) := MGMT_IP_PARAM_VALUE_RECORD(
    'oracle.sysman.eml.ip.render.elem.TableRender.columnGroupHeader1',
    'My New Group');
    l_param_values(2) := MGMT_IP_PARAM_VALUE_RECORD(
    'oracle.sysman.eml.ip.render.elem.TableRender.columnGroupStartCol1',
    'start column');
    l_param_values(3) := MGMT_IP_PARAM_VALUE_RECORD(
    'oracle.sysman.eml.ip.render.elem.TableRender.columnGroupEndCol1',
    'end column');
    Where "start column" and "end column" would be names of columns already in your table.

Maybe you are looking for

  • Hope someone can help - Lightroom not working...at all...nothing....

    I have tried installing about 20 or so times now and still cant get any thing at all when i launch the application - its likek it freezes. Something somewhere is missing or corrupt in my mac or the dowmload i downloaded and here's really hoping someo

  • Need help for cenvat reversal

    Hi Friends, Need help for cenvat reversal. Reversed MIRO by MR8M & MIGO by 102 movement but not able to post & cancel cenvat by J1IEX. In table J_1IEXCHDR status = "P" and J1I5 does not update for document of 102 movement because reversal document of

  • HT3368 I have problem with publishing presentation to YouTube

    I have problem with login - always get back "User Login Failed. Please enter a valid account and password". I am 100% sure both is correct. What is wrong?

  • Virtualising a 2008 Server to DR site

    Hope someone has an easy answer to this...! I have a Windows 2008 SP2 server (physical) that houses a critical SQL database and Apache Server. What I want to do is have another server at a DR site with Server 2012 r2 preferably and have a Virtual mac

  • Can't install JDK 5.0 on Windows

    I'm trying to install Java 5.0 on my Windows NT Workstation 4.0 box, but I can't get the installer to work. If I try the combined Netbeans 4.0 beta 2 and JDK 5.0 installer, it installs Netbeans fine, but then stops and complains that there "may have