ABAP Query - How to display non-zero entries

Hi All,
I have created a simple query having the join of 4 tables.
Now I need to display the output for only non-zero entries of a particular field.
How this can be achieved ?
Please let me know-
1) Either , there are ways to restrict the entries during selection itself(I do not want to give this field in selection screen)
2) Or , Delete the entries having zero value before display.
I debugged the standard report for query and found out the internal table where the
result is stored, but it is not allowing to be used in the coding sections of infoset.
Thanks ,
Neethu

In select add condition field1 NE 0 or SPACE.
Edited by: Shaik Hussain on Nov 30, 2010 1:46 PM

Similar Messages

  • SQ01 ABAP Query - input field contains leading zeros

    Hi,
    I have a ABAP query where some of the values are stored with leading zeros in the table. This means that the user have to enter the leading zeros as well in the selection screen in SQ01 in order to get any output.
    What I would like to do is to restrict the input in the selection screen to allow only the digits without any leading zeros. For example, the user should not enter 000000000602590, but 602590. Also, the output should be without the leading zeros.
    Does anyone know how to do this in the InfoSet?
    Thanks in advance
    Br,
    Lars

    Hi Lars,
    The leading zeroes are appearing because your field is either a Numeric or Packed decimal.
    The leading zeroes can be suppressed if you  assign the packed to a Character field.
    You have option to change the datatype of the field in Infoset.
    Try converting it to equivalent character type.
    Let me know your findings.
    Thanks
    Ajay

  • How to display "Non-Fatal Run-Time Error In Function Panel" dialog?

    I'm learning how to develop an IVI-C specific driver using LabWindows/CVI. When I run my function from its function panel and it returns an error, I would like to display a dialog with both the error code and error message (as opposed to simply returning an error code on the function panel). This would save the user from having to call Prefix_error_message() to translate the error code to its error message. NI-DCPower driver is a good example of this behavior (see attached error dialog). How do I show the "Non-Fatal Run-Time Error In Function Panel" dialog? Any help is greatly appreciated. Thanks!
    Attachments:
    ErrorDialog.png ‏8 KB

    Hi Shawn,
    Thank you for replying to my post. The checkErr is just an error handling macro defined in ivi.h to goto Error: tag when the function returns a non-zero value. I have been using the checkErr macro (as well as viCheckErr and other macros) in my driver.
    Using the same hp34401a specific driver as an example, please allow me to explain my question in more details:
    Let's take the hp34401a_close function as an example. It is a simple function with only a few lines of code:
    When the hp34401a_close function is run from its front panel using an invalid session handle (e.g. "8" in this screen capture):
    You will get three "Non-Fatal Run-Time Error" popup dialogs, one from each of the IVI library functions that it calls: Ivi_LockSession, Ivi_UnlockSession, and Ivi_Dispose. However, there is no "Non-Fatal Run-Time Error" popup dialog from the hp34401a_close itself.
    My IVI-C specific driver is behaving identical to the hp34401a specific driver.
    In comparison, if run niDCPower_close function from its front panel using an invalid session handle (using the same "8" in this screen capture):
    You will only get one "Non-Fatal Run-Time Error In Function Panel" from the niDCPower_close function itself:
    I think the behavior of niDCPower driver is much better than the hp34401a driver. It replaces the three "Non-Fatal Run-Time Error" popup dialogs from the IVI library with a single "Non-Fatal Run-Time Error In Function Panel" popup dialog from the driver function itself. I would like to do the same thing with my driver but have not figured out how to display a "Non-Fatal Run-Time Error In Function Panel" dialog. Thanks in advance for your help!

  • MDX Query - how to display member name not alias

    <p>Hello,</p><p> </p><p>I have a number of mdx queris that i am running through thecommand prompt. The query output is displaying the member aliasinstead of name does anyone know how i can change this.</p><p> </p><p>My query looks like this</p><p> </p><p>SELECT NON EMPTY<br>{[AUM_CBAL]} ON AXIS(0),<br>{[Product].levels(0).members} ON axis(1),<br>{[Calendar].ME20050630} ON axis(2),<br>FROM AUM.Aum</p><p> </p><p>Thanks!!</p><p> </p><p>Ranee</p><p> </p>

    Assuming that you mean essmsh: this is a setting you can change. the command to change is:<BR><BR>alter session set dml_output alias off ;<BR><BR>Not sure if you can change this in EAS<BR><BR>HTH

  • How to display non-URL-based thumbnail images in JTable

    I'm trying to display thumbnail images as a tooltip popup for certain cells in a JTable. The thumbnail images are java image objects that have been retrieved dynamically as the result of a separate process--there is no associated URL. For this reason, I can't use the setToolTipText() method of the JTable.
    My attempts to JTable's createToolTip() method also failed as it seems the ToolTipManager never calls this method for a JTable.
    As a workaround, I've added a MouseMotionListener to the JTable that detects when the mouse is over the desired table cells. However, I'm not sure how to display the popup over the JTable. The only component that I can get to display over the JTable is a JPopupMenu, but I don't want to display a menu--just the image. Can anyone suggest a way to display a small popup image over the table?
    Thanks.

    Thank You Rodney. This explains why my createToolTip() method wasn't being called, but unfortunately I'm no closer to my goal of displaying a true custom tooltip using a non-URL image rather than a text string. If I make a call to setToolTipText(), at any point, the text argument becomes the tooltip and everything I have tried in createToolTip() has no effect. However, as you pointed out, if I don't call setToolTipText(), the table is not registered with the tooltip manager and createToolTip() is never even called.
    To help clarify, I have attached an SSCCE below. Please note that I use a URL image only for testing. In my actual application, the images are available only as Java objects--there are no URLs.
    import javax.swing.*;
    import java.awt.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    public class Test {
        static Object[][] data = {
                {"Cell 0,0", "Cell 0,1"},
                {"Cell 1,0", "Cell 1,1"}};
        static String[] columnNames = {"Column 0", "Column 1"};
        static JFrame frame;
        static String testImageURLName = "http://l.yimg.com/k/omg/us/img/7c/0a/4009_4182164952.jpg";
        static JTable testTable = new JTable(data, columnNames) {
            public JToolTip createToolTip() {
                System.out.println("testTable.createToolTip() called");
                Image testImage = getTestImage();
                // this.setToolTipText("Table ToolTip Text");
                JLabel customTipLabel = new JLabel(new ImageIcon(testImage));
                customTipLabel.setToolTipText("Custom ToolTip Text");
                JToolTip parentTip = super.createToolTip();
                parentTip.setComponent(customTipLabel);
                return parentTip;
        // This image is loaded from a URL only for test purposes!!!
        // Ordinarily, the image object would come from the application
        // and no URL would be available.
        public static Image getTestImage() {
            try {
                URL iconURL = new URL(testImageURLName);
                ImageIcon icon = new ImageIcon(iconURL);
                return icon.getImage();
            catch (MalformedURLException ex) {
                JOptionPane.showMessageDialog(frame,
                        "Set variable \"testImageName\" to a valid file name");
                System.exit(1);
            return null;
        public static void main(String[] args) throws Exception {
            frame = new JFrame("Test Table");
            frame.setSize(300, 100);
            // Set tool tip text so that table is registered w/ tool tip manager
            testTable.setToolTipText("main tooltip");
            frame.getContentPane().add(testTable);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    }

  • How to: Display Specific Xml Entry in AS3

    I have a very simple line of code that i'm trying to modify to display a specific entry in a xml file:
    AS3 Code:
    // The first step is to activate the XML object
    AmbientSettingsXML = new XML();
    With the XML Object now active you must now load an XML foramtted document.
    Any DTD or XLS formatting will be ignored.
    AmbientSettingsXML.onLoad = myLoad;
    AmbientSettingsXML.load("settings.xml");
    // Before proceeding to far into the program, make sure the XML document has loaded
    // Extract information from the XML file
    function myLoad(ok) {
    if (ok == true) {
    trace("ok");
    trace(AmbientSettingsXML);
    The Trace Displays:
    ok
    <?xml version="1.0"?>
    <settings>
    <appearance>
    <event_title>Streaming Demo 1</event_title>
    </appearance>
    </settings>
    So the question is, how do I display the "event_title" entry only? (String)
    Any help is appreciated,
    Thanks!

    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, completeHandler);
    var request:URLRequest = new URLRequest("yourxmlfile.xml");
    loader.load(request);
    function completeHandler(event:Event):void {
    var loader:URLLoader = URLLoader(event.target);
    var xml:XML = XML(loader.data);
    //xml.child("appearance")[0].child("event_title")[0];

  • Display Non-zero values of keyfigures based on a particular value of a cha

    Hi Gurus,
    I would like to display only Non-zero values for keyfigures but only for a particular value of a characteristic. For Ex: We have material Group. For a particular value of material group, i do not want to display the zero stock. But for other material groups it should display zero stock.
    I tried to use conditions, but the problem is it suppresses all the zero values for the keyfigure for material group in general and not for a particular value of the material group.
    Is there is any way that i can go about for this scenario. Pls help.
    thanks & regards,
    PS

    Hi,
    You can very much restrict your KF on particular values of said material group. For example you material group contains the values like "Blades", "Personal Cares", "Disposables" etc... and you want to restrict your KF on "Blades" only, you can do that.
    Just restrict your KF on Material Group and include the values which you want for restrictions. You can also exclude values from restrictions.
    Hope it help you.
    Yogesh.

  • Display Non-zero values of keyfigures based on a particular value of a char

    Hi Gurus,
    I would like to display only Non-zero values for keyfigures but only for a particular value of a characteristic. For Ex: We have material Group. For a particular value of material group, i do not want to display the zero stock. But for other material groups it should display zero stock.
    I tried to use conditions, but the problem is it suppresses all the zero values for the keyfigure for material group in general and not for a particular value of the material group.
    Is there is any way that i can go about for this scenario. Pls help.
    thanks & regards,
    PS

    Hi
    Create a structure in the rows based on selections on material group. Eg.
    Structure
       Mat grp 1 (restricted to material during selection)
       Mat grp 2
    then add a formula in columns using boolean argument
    e.g (exisisting KF >= 1)*1+0
    Then you can use conditions to elimanate zeros on the new KF.
    Hope it helps
    Edited by: Karin van der Merwe on Feb 29, 2008 8:52 AM

  • ABAP Query: How to transport?

    We have created one ABAP query in Development system. In Query we did some changes related to code.
    We want to transport it to Quality system.For this we are running "RSAQR3TR" program in Devp System . through which we are exporting "User Group, Infoset, Query" in same sequesnce, Which is generating request.
    After transporting it to Quality, We are Importing it by running same program.
    User group, Infoset , And Query Layout is getting updated but it is not updating the code which we have added into the query.
    Please advice

    Hi Reddy,
    For the second part of question :
    When you create a abap query SAP generates a program at the background. You can copy that program to a Zprogram and assingn a Tcode to it.( You can add some more features to the report like drilldown etc.. )
    Your technical consultant should be able to help you out on this .
    Regards
    Balaji

  • How to display leading zeros in a report

    Hi folks,
    I am doing a HR report and the users are very much used to seeing a two digit numeric value as the pay scale since their legacy days.
    In BW, I have the Pay Scale defined as a character (2) and it shows the values on the report as follows:
    Pay Scale
    0
    1
    2
    3
    11, etc.
    But the users would like to see 00, 01, 02, 03, 11, etc.
    Under the query properties, display tab, there are four separate options - display zeros, show zeros as, etc. I tried all the options but the pay scale still does not show the leading zeros. I remember seeing a SAP note a while back that talks about this. Does anybody know how to force the leading zeros on the BEx report.
    Thanks.
    Abdul

    Try removing the ALPHA Conversion from info object defintion.

  • How to display non modal dialog box in a Dll call from TestStand implemented in visual c

    Dear Jason F.
    Applications Engineer
    National Instruments
    Hello
    I did the same way you told me
    the non modal dialog appeared and
    system hangs and
    giving the error message
    ""SeqEdit.exe-Application Error
    The instruction at �0x047fc5b0� referenced memory at �0x047fc5b0�. The memory could not be �read� ""
    please solve my problem
    and thanks for yours early response
    you can email me at
    [email protected]

    Hi Mkehret,
    Does your dialog have ActiveX controls on it? If your DLL dialog uses ActiveX controls and is not programmed in a certain manner it can hang because of a conflict in the threading model used by the TestStand Engine that is calling into your DLL and the model that is required by the MFC ActiveX Container. If you are using ActiveX controls in your dialog, you need to make special considerations for the threading model MFC dialogs that use ActiveX controls need in order to work properly. The example under \Examples\MFCActiveXContainerDlg illustrates how to appropriately handle this situation as well as explaining why it is necessary.
    Note: The above example displays the dialog as modal, but this is irrelevant to the problem I am describing.
    Again for information on properly creating a dialog class object and displaying it as non-modal refer to the information on MSDN that I referred you to in this post:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000E98A0000&USEARCHCONTEXT_CATEGORY_0=_8_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_8_&UCATEGORY_S=0
    If your dialog does not use ActiveX controls or after trying the programming method illustrated in the "MFCActiveXContainerDlg" example TestStand still hangs when calling your DLL, try calling your DLL from another environment just to make sure whether the DLL works at all. If the DLL works properly when called by another environment (e.g. VB, VC++, LabVIEW, or CVI), please submit a MINIMAL and REPRODUCEABLE example source project for your DLL for us to look at (please exclude all unnecessary code not required to reproduce the specific problem of displaying the dialog, and include all files necessary to build your dll with any
    specific instructions needed to do so).
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • How to display non-continuous lines in a 2D Line flash chart ?

    Hi
    I am making 2D lines charts. is there a way ig tehre are no data in the table, to not to display points ?
    For example I have a table with this data :
    Date     Value
    01/01/09 2
    02/01/09 7
    03/01/09 4
    05/01/09 3
    06/01/09 2You see in the example anove that there is no data for the day 04/01/09.
    I would like the chart no to display any point for that day and start again for date following. This means displaying a non-continuous line.
    I hope I am clear.
    I tried but had no solutions. Would you have any idea on this ?
    Thank you for your kind help !
    Christian

    Hi Christian
    You're missing a lot of the XML build up from the website.
    You also need to return the string "Missing" for each date that you haven't got.
    Try this to get you started (you'll certainly need to fiddle with it to get it working)...
    DECLARE
       l_xml   VARCHAR2 (32767);
       start_date DATE;
       end_date DATE;
       the_date DATE;
       count_holder VARCHAR2(10);
    BEGIN
       l_xml :=        '<anychart> ';
       l_xml := l_xml||'<settings> ';
       l_xml := l_xml||'<animation enabled="True"/> ';
       l_xml := l_xml||'</settings> ';
       l_xml := l_xml||'<charts> ';
       l_xml := l_xml||'<chart plot_type="Scatter"> ';
       l_xml := l_xml||'<chart_settings> ';
       l_xml := l_xml||'<chart_background> ';
       l_xml := l_xml||'<border color="#990099"/> ';
       l_xml := l_xml||'</chart_background> ';
       l_xml := l_xml||'<title enabled="true"> ';
       l_xml := l_xml||'<text> Something </text> ';
       l_xml := l_xml||'</title> ';
       l_xml := l_xml||'<axes> ';
       l_xml := l_xml||'<x_axis tickmarks_placement="Center"> ';
       l_xml := l_xml||'<title enabled="true"> ';
       l_xml := l_xml||'<text>Date</text> ';
       l_xml := l_xml||'</title> ';
       l_xml := l_xml||'</x_axis> ';
       l_xml := l_xml||'<y_axis> ';
       l_xml := l_xml||'<scale minimum="1" type="Linear"/> ';
       l_xml := l_xml||'<title enabled="true"> ';
       l_xml := l_xml||'<text>Count</text> ';
       l_xml := l_xml||'</title> ';
       l_xml := l_xml||'</y_axis> ';
       l_xml := l_xml||'</axes> ';
       l_xml := l_xml||'</chart_settings> ';
       l_xml := l_xml||'<data_plot_settings default_series_type="Line"> ';
       l_xml := l_xml||'<line_series point_padding="0.2" group_padding="1"> ';
       l_xml := l_xml||'<label_settings enabled="true"> ';
       l_xml := l_xml||'<background enabled="false"/> ';
       l_xml := l_xml||'<font color="Rgb(45,45,45)" bold="true" size="9"> ';
       l_xml := l_xml||'<effects enabled="true"> ';
       l_xml := l_xml||'<glow enabled="true" color="White" opacity="1" blur_x="1.5" blur_y="1.5" strength="3"/> ';
       l_xml := l_xml||'</effects> ';
       l_xml := l_xml||'</font> ';
       l_xml := l_xml||'<format>{%YValue}{numDecimals:0}</format> ';
       l_xml := l_xml||'</label_settings> ';
       l_xml := l_xml||'<tooltip_settings enabled="true"> ';
       l_xml := l_xml||'<format> ';
       l_xml := l_xml||'Something: {%YValue}{numDecimals:0} ';
       l_xml := l_xml||'Date: {%Name} ';
       l_xml := l_xml||'</format> ';
       l_xml := l_xml||'<background> ';
       l_xml := l_xml||'<border type="Solid" color="DarkColor(%Color)"/> ';
       l_xml := l_xml||'</background> ';
       l_xml := l_xml||'<font color="DarkColor(%Color)"/> ';
       l_xml := l_xml||'</tooltip_settings> ';
       l_xml := l_xml||'<marker_settings enabled="true"/> ';
       l_xml := l_xml||'<line_style> ';
       l_xml := l_xml||'<line thickness="3"/> ';
       l_xml := l_xml||'</line_style> ';
       l_xml := l_xml||'</line_series> ';
       l_xml := l_xml||'</data_plot_settings> ';     
       l_xml := l_xml||'<data> '; 
       l_xml := l_xml||'<series name="Count"> ';     
       start_date := TO_DATE('01/01/2009');
       end_date   := TO_DATE('10/01/2009');
       the_date   := start_date;
       WHILE the_date <= end_date
       LOOP
        SELECT DECODE(COUNT(*),0,'Missing',COUNT(*))
        INTO the_count
        FROM evv_stpl
        WHERE date1 = the_date;
        l_xml := l_xml || '<point name = "'|| the_date ||'" y="'|| the_count ||'"/>';
        the_date := the_date + INTERVAL '1' DAY;
       END LOOP;
       l_xml := l_xml ||'</series> ';
       l_xml := l_xml ||'</data> ';
       l_xml := l_xml ||'</chart> ';
       l_xml := l_xml ||'</charts> ';
       l_xml := l_xml ||'</anychart>';
       HTP.p
    <html>
    <head>
    <title>AnyChart Sample</title>
    <script type="text/javascript" language="javascript" src="D:\oracle\product\10.2.0\apache\Apache\Apache\images\flashchart\AnyChart.js"></script>
    <body>
    <div id="chartDiv-1"></div>
        <script type="text/javascript" language="javascript">
        //<![CDATA[
        AnyChart.swfFile = ''D:\oracle\product\10.2.0\apache\Apache\Apache\images\flashchart\AnyChart.js'';
        var chart = new AnyChart();
        chart.width = "800";
        chart.height = "600";
        var data = '''
           || l_xml
           || ''';
        chart.setData(data);
        chart.write("chartDiv-1");
        //]]>
        </script>
    </body>
    </html>
    END;Hopefully you understand what I'm trying to do here, unfortunately I can't try it out myself at the moment.
    Maybe if you get stuck you could post it on apex.oracle.com?
    Cheers
    Ben
    Oops, handled a count of zero incorrectly - amended
    Edited by: Munky on May 7, 2009 1:17 PM

  • In a query, how to display the calendar day and the weekday in the heading

    Hi Experts,
    I am in a situation where I need to have calendar day and the weekday in a heading of a column in a query? we are in BW 3.5.
    Here is an example:
                         04.22.2007
                         Sun
    Branch 001      1,000.00
    Branch 002      2,000.00
    Branch 003      3,000.00
    in my query, this is a restricted key figure with sales qty and calendar day and I have a text variable to show the calendar day. In addition to that, the customer wants weekday as well.
    Not sure how to do this.
    Any help is much appreciated.
    Thanks.
    Jenny.

    Hello ,
          This InfoObject do not maintain the weekday ...so it is difficult to show the Weekday for a date as per the standard way.
              You need to write a Customer exit variable..and you need to use a Function Module : DATE_TO_DAY. This will convert your date to day ie 23.04.2007 = Monday.
          Note: This function module is not available in BW so try to copy this FM from R/3 system.
          I am sure this will solve ur issue:-)
                    --EnjoySAP
    Have a great day!

  • How to display Non Cumulative key figure data

    Hi,
    I want to check if there is any data for a non-cumulative key figure. While i am trying to display the data from cube or Multi provider, it is not showing this field. is there any way to check the data for this field other than using reports.
    Regards,
    Vishnu

    Hi,
    Take Eg: Quantity of valuated stock - 0VALSTCKQTY it is combination of
    Quantity Received into Valuated Stock- 0RECVALSTCK and
    Quantity Issued from Valuated Stock-   0ISSVALSTCK
    In report you can see only  0VALSTCKQTY Keyfigure.
    And the above Two Keyfigures are filling by Routines using Process Keys.
    This is for 0IC_C03 and data you can check in MB5B Tcode in ECC.
    Check;
    Note 745788 - Non-cumulative mgmnt in BW: Verifying and correcting data
    Thanks
    Reddy

  • How to display preceding zero's

    hi,
    In the standard purchase order script i want to display material number including preceding zero's.
    can anyone suggest me the solution?
    regards
    prajwala

    In the standard purchase order script i want to display material number including preceding zero's.
    can anyone suggest me the solution?
    Hi,
    First you can create one Subroutine in Window to Transfer value from and to Subroutine pool program.
    in Subroutine pool program write one routine to Convert the Purchase Order number into you needed requirement. For that You use CONVERT_EXIT_ALPHA_*** Function module or UNPACK command.

Maybe you are looking for

  • AirPlay from iPad - won't play everything

    As an example, I'm using the New York Times app - there is an icon for AirPlay and I can select the AppleTV. However, the content plays on the iPad but not the tv, even though the selection remains AppleTV. Huh? This happens when I play similar (mean

  • Journal tables in SQL Developer Data Modeler

    In my database I use journal tables, which can be generated automatically by Oracle Designer. Now that I'm trying to start using SQL Developer Data Modeler, I can't find how to make journal tables with it. Does anyone know whether Data Modeler suppor

  • How to Change color on control break fields

    I have created a master detail report. I then did a control bread on the three fields below. I would like to change the color of the break to blue instead of the standard black. What settings or method would I use to change the color on the control b

  • Moving selected objects up and down with keyboard is automaticly applying a colour fill.

    Hi, My InDesign is strangely applying a colour fill when i move an objects up or down using the directional arrow in my keyboard. If the colour pallet is open. Nudging an object up makes the pallet disappear on the first press. It then reappears on t

  • How to use Java NIO to implement disk cache for serialized java objects

    Hi, I have a cache (implemented as hahstable etc.) that contains java objects (mostly strings) and swaps objects from runtime memory to the disk and back based on some algorithms. Currently, the reading and writing from the disk is implemented using