Georaster return all values in array

Hello,
I want to return all values of the raster in a array, to display it in a web page.
Is there a function which return that values in one query ?
Thanks

So far, there isn't a function which returns cell values in an array, but you can call SDO_GEOR.getRasterSubset(*)  to get raster data in a blob, and then using functions defined in the dbms_lob package to get raster data.

Similar Messages

  • Class not returning all Values of Array

    When I send an array with two elements to this class:
    public class DrawingList {
         public String[] dwglist;
         public DrawingList(String[] list) {
              this.dwglist = list;
         public String[] getDwgList() {
              return this.dwglist;
         public static DrawingList getList(String[] list) {
              return new DrawingList(list);
    }It only returns the last element.
    Can some one help me with this issue please.

    This is the class that generates the initial array which contains two elements:
    import java.sql.*;
    import com.ibm.as400.access.*;
    * @author sde
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class DrawingConnectionBaseClass {
         public String nameofdrawingb;
         public String errorStringb;
         public String literalerrorStringb;
         public String[] dwgNoArray;
         public DrawingConnectionBaseClass(String arg0) {
            AS400JDBCDataSource datasource = new AS400JDBCDataSource("gvas400");
            datasource.setUser("drawchg");
            datasource.setPassword("webabc1");
         try
           Connection connection = datasource.getConnection();
           Statement stmt = connection.createStatement();
           String sqla = "select Count(*) As dwgcount from webprddt6.drawmstrp Where dm_drawing_number Like '%" + arg0 + "%'" ;
           String sql = "select * from webprddt6.drawmstrp Where dm_drawing_number Like '%" + arg0 + "%'" ;
           ResultSet rsa = stmt.executeQuery(sqla);
           rsa.next();
           int rowCount = rsa.getInt(1);
           dwgNoArray = new String[rowCount];
           errorStringb = "";
           ResultSet rs = stmt.executeQuery(sql);
           while (rs.next())
                     for (int i = 0; i < rowCount - 1; ++i)
                    dwgNoArray[i] = rs.getString("DM_DRAWING_NUMBER");
               errorStringb = "";
               literalerrorStringb = "NoError";
         catch (SQLException sqle)
              errorStringb = "Warning!!! The Drawing Number you typed is not valid!";
              literalerrorStringb = "Error";
    }This is a servlet that calls the above class and then the DrawingList class to create a bean to be used on a JSP:
    import java.io.IOException;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.Servlet;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import java.sql.*;
    public class DrawingInquiryBaseServlet extends HttpServlet implements Servlet {
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#HttpServlet()
         public DrawingInquiryBaseServlet() {
              super();
         public static String getliteralErrStringb;
         public static String getErrMsgb;
         public static String[] drawingList;
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse arg1)
         protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
              this.doPost(arg0, arg1);
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse arg1)
         protected void doPost(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
              String drawingnumber  = arg0.getParameter("dwgnobase");
              DrawingConnectionBaseClass conn = new DrawingConnectionBaseClass(drawingnumber);
              DrawingList drawingList = DrawingList.getList(conn.dwgNoArray);
              ErrorHandling getErrMsgb = ErrorHandling.getErr(conn.errorStringb);
              getliteralErrStringb = conn.literalerrorStringb;
              HttpSession session = arg0.getSession(true);
              if (getliteralErrStringb.equals("NoError")){
                   session.setAttribute("errorBean", getErrMsgb);
                   session.setAttribute("dwglist", drawingList);
              else{
                   session.setAttribute("errorBean", getErrMsgb);
                   session.setAttribute("dwglist", drawingList);
              RequestDispatcher disp = getServletContext().getRequestDispatcher("/DrawingDisplaybase.jsp");
              disp.forward(arg0, arg1);
    }This is my JSP where only one element is in the list:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM Software Development Platform">
    <META http-equiv="Content-Style-Type" content="text/css">
    <LINK href="theme/Master.css" rel="stylesheet"
         type="text/css">
    <TITLE>DrawingDisplay2.jsp</TITLE>
    </HEAD>
    <BODY>
    <P><IMG border="0" src="Zodiac Z Blue (Hi Res).gif" width="73"
         height="76"><B><B><FONT face="Times New Roman" color="navy" size="+2"> WEBER
    AIRCRAFT LP</FONT></B></B><BR>
    <BR>
    <B><FONT size="+1" face="Times New Roman" color="navy"> Drawing Inquiry
    Data</FONT></B></P>
    <HR>
    <P><B><FONT size="+2" color="red"><jsp:useBean id="errorBean"
         type="com.ibm.drawinginquiry.rational.ErrorHandling" scope="session"></jsp:useBean>
    <jsp:getProperty name="errorBean" property="errMsg" /></FONT></B></P>
    <P>
    Pick a Drawing number from list to see Details<BR>
    <jsp:useBean id="dwglist"
         type="com.ibm.drawinginquiry.rational.DrawingList" scope="session"></jsp:useBean><BR><SELECT size="5" name="dwgList">
    <%
         for (int i=0; i<dwglist.dwglist.length; i++){
              %>
              <option value="<%= i%>"><%= dwglist.dwglist%></option>
              <%
              %>
    </SELECT></P>
    <P><BR>
    <BR>
    <BR>
    </P>
    <FORM action="/DrawingInquiry/GetMainPageServlet"><INPUT type="submit"
         name="anotherDrawing" value="Look Up Another Drawing"></FORM>
    </BODY>
    </HTML>

  • Parameter not returning all values

    I have a crystal report built off an oracle DB.  For one parameter it is not returning all values.  I can display data or the entire table it shows me all values, but when i build a parameter it only shows me through August.  It is a date/time field.

    check the following thread
    [Dynamic Parameter only showing 1000 records when Crystal report is run.;
    regards,
    Raghavendra.G

  • Returns all values if the user leaves the valuve empty ?

    is there a way to return all values if a user leaves lets say, the 'Project_no' valve empty..
    Below is the bit of SQL that I'm trying to get to work..
    and upper(coj.CUSTOMER_PO_NO) like upper(('%&Project_No%'))

    JamesW wrote:
    is there a way to return all values if a user leaves lets say, the 'Project_no' valve empty..
    Below is the bit of SQL that I'm trying to get to work..
    and upper(coj.CUSTOMER_PO_NO) like upper(('%&Project_No%'))And what's not working about it?
    SQL> ed
    Wrote file afiedt.buf
      1* select * from emp where job like '%&job%'
    SQL> /
    Enter value for job: CLERK
    old   1: select * from emp where job like '%&job%'
    new   1: select * from emp where job like '%CLERK%'
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    SQL> /
    Enter value for job:
    old   1: select * from emp where job like '%&job%'
    new   1: select * from emp where job like '%%'
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    14 rows selected.

  • F4IF_INT_TABLE_VALUE_REQUEST - how can I return all values from the line?

    Hi,
    I'm using FM F4IF_INT_TABLE_VALUE_REQUEST to show a pop-up with my internal table values.  The internal table has 3 fields, ATINN, ATZHL and a description field ATWTB.  ATINN and ATZHL are needed to complete the unique table key, however this FM will only return the value of one field in any line I select.
    How can I see all the values in the line I select in the return table?
    My code is as follows:
      DATA: tbl_cawnt LIKE cawnt OCCURS 0,
            wa_cawnt LIKE cawnt,
            BEGIN OF tbl_list OCCURS 0,
              atinn LIKE cawnt-atinn,
              atzhl LIKE cawnt-atzhl,
              atwtb LIKE cawnt-atwtb,
            END OF tbl_list,
            wa_list LIKE tbl_list,
            tbl_return LIKE ddshretval OCCURS 0,
            wa_return LIKE ddshretval,
            tbl_fields LIKE dfies OCCURS 0,
            tbl_dynp LIKE dselc OCCURS 0.
      REFRESH: tbl_list, tbl_cawnt.
      SELECT atinn atzhl atwtb
        FROM cawnt
        INTO CORRESPONDING FIELDS OF TABLE tbl_cawnt
        WHERE spras EQ sy-langu.
      LOOP AT tbl_cawnt INTO wa_cawnt.
        CLEAR wa_list.
        MOVE: wa_cawnt-atwtb TO wa_list-atwtb,
              wa_cawnt-atinn TO wa_list-atinn,
              wa_cawnt-atzhl TO wa_list-atzhl.
        APPEND wa_list TO tbl_list.
      ENDLOOP.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'ATWTB'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          value_org       = 'S'
        TABLES
          value_tab       = tbl_list
          return_tab      = tbl_return
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Thanks!

    Hi,
      Use the structure DYNPFLD_MAPPING
    With this internal table you can easily define that you want to return
    other columns of the hit list in addition to field RETFIELD to the
    screen.
    In this IT you can MAP the screen fields to the serch help screen fields this has three fields
    FLDNAME this is the field anme from the search help
    FLDINH This has to be blank which would be field with the field value that you want to map
    DYFLDNAME THis is the screen field name.
    So here you can get the values for the other fields that you want which are on the search help just populate the name of the fields in FLDNAME.
    Regards,
    Himanshu

  • Select query failing to return all values

    So I've just completed my first batch insert into DocumentDB and ran into the following irregularity while verifying my documents were added correctly.  I am seeing this issue through the Portal Query Explorer and the Python SDK.
    I have found 4 id values that are in my collection, but won't get returned in a Select all type query.  
    Queries I've used to select just that item/document.  These work correctly and return my document.  Therefore, I assume the document is in the collection.
    SELECT * FROM Matches m WHERE m.id = "2997"
    SELECT VALUE m.id FROM Matches m WHERE m.id = "2997"
    However, when doing a broader SELECT query, some ids are not returned.
    SELECT * FROM Matches
    SELECT VALUE m.id FROM Matches m
    Neither of the above queries return the document with id "2997".  I've three other ids where this is the case.
    Am I missing something obvious here, or is there a bug?  I've added all ~991 documents into the collection using the same batch program.
    Edit:  Here's a test program I've drawn up to show this issue (you can take my word for it that the clients are initialised correctly):  https://gist.github.com/Fitzpasd/1dde776b00eacf68b361
    And this prints:
    1
    991
    False
    False
    False
    True

    I also have some issues with pages. When I execute a simple query like:
    SELECT x FROM Root x
    or 
    SELECT s FROM Root x JOIN s IN x.Children
    (The Children array contains more than 100 items)
    And I use the AsDocumentQuery() method in the c# API, iterating through the pages works fine (the continuation token is returned in the request)
    But when I execute the following query:
    SELECT s FROM Root x JOIN s IN x.Children WHERE x.id = "<guid>"
    the continuation token is not returned so I can't get to the next pages.
    Is this related to the same bug ?

  • Dynamic Prompt not returning all values it should

    I am using Crystal Report 2008 CR Developer with service pack 3.1. 
    I have a report that has a SQL command statement.
    Using just the SQL statement, I get all results correctly (all "Events" show up).
    When I use the same report and create a dynamic prompt for the "Events", I get some of the values in the results, but not all of them.
    Also, the Events that I do get back in my results change randomly (one time I get Court Trial, the next time I don't). 
    The u201CEventsu201D field is the 2nd Group in the report.
    I also have a date time parameter in the report.
    The only thing Iu2019ve found so far related to this is the Max Rowset issue.
    I have used the registry fix to set the LOV value to 3000, even though there are only 1644  possible values for that particular field in the database. I changed it for all versions 11, 11.5 & 12.
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Crystal Reports\DatabaseOptions\LOV  "MaxRowsetRecords"="3000"
    My understanding of Dynamic Prompts is that each time the report is run, it first looks at all possible values in that field and return those as values to select in the prompt. For example, if there were 1644 values in the table, it would show 1644 values to select in the parameter to be used in the report. Is that regardless of group level or date parameter or if "Save Data with Report" is selected?
    Any ideas on why my parameters are not pulling the correct list of values to select for use in the report?

    Try connecting to the database directly rather than using a command object.
    Or... purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • GetRowData() returns all values in DataTable instead of particular row

    I have the following code in my backing bean :
    public class FSBean
    { private CoreTable summaryBinding;
    public String searchDetails()
    FS selectedTransactionId =
    (FS) summaryBinding.getRowData();
    public void setSummaryBinding(CoreTable summaryBinding)
    this.summaryBinding = summaryBinding;
    public CoreTable getSummaryBinding()
    return summaryBinding;
    }Then in my JSF I have:
    <h:form>
        <tr:panelHeader styleClass="titleText" text="Results"/>
        <tr:table styleClass="tableBody" emptyText="No Match Found" rows="15"
                    binding="#{fsBean.summaryBinding}" rowBandingInterval="1" value="#{disp}">
            <tr:column align="center" headerText="Roll No">
                <h:commandLink value="#{disp.rollNo}" action="#{fsbean.searchDetails}"/>
            </tr:column>The problem is that when the search returns 2 rows and one of the hyperlink is clicked in the table then in my Logs I see that both the rows called the searchDetails() method. The correct way would be that only the link whose roll number is clicked should be passed to the searchDetails() method.

    gauravs wrote:
    1) Does that mean that a implementation of that sort has never been done using JSF where a particular row is clicked on the summary data table and then the details for that particular row is displayed.It is not impossible using the standard Sun components.
    2) Where can I post this bug ?At the website of the manfacturer of that 'tr' component library you're using.
    At least this behaviour (calling the action for all rows and only returning the first row on getRowData() after click of a certain row) doesn't occur in the h:dataTable component of the standard Sun JSF Mojarra implementation.

  • I need one parameter value to return all values in SSRS

    when clicking on last label , I need data associated with all counties to retrieved , it is working fine when clicking on particular country but I can't figure it out how to do this is with multiple value  
    in my SQL code I am trying to do this 
    where country in(@country)

    There is no need to specify "All countries" in SSRS if you want to select all the countries if you want to render the report. Just pass all the available values and in the "General" tab select
    Allow multiple values which gives you the option to choose all the countries or also one or more countries... Don't forget to specify the "IN" operator in your query... it's a must...
    Good luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles..

  • How to get all values from an interval using select statement

    Hi,
    Is it possible to write a select statement that returns all values from an interval? Interval boundaries are variable.
    something like this:
    select (for x in 1,1024 loop x end loop) from dual
    (this, of course, doesn't work)
    The result in this example should be 1024 rows of numbers from 1 to 1024. These numbers are parameters, so it is not possible to create a table with predefined values.
    Thanks in advance for your help,
    Mia.

    For your simple case, with a lower boundary of 1, you can use:
    SELECT rownum
    FROM all_objects
    WHERE rownum <= 1024For a set of number between say 50 - 100, you can use something like:
    SELECT rownum + (50 - 1)
    FROM all_objects
    WHERE rownum <= (100 - 50 + 1)Note, that all_objects was used only because it generally has a lot of rows. Any table with at least the number of rows in your range will work.
    TTFN
    John

  • Tabular: Row filter on USERNAME() still returns all rows if current user is NOT matched in table??

    I have a table (basically the same setup in the various dynamic security in tabular blogs) where the table contains WindowsUserName stored as domain\username.
    I have a Row Filter on the table: SecurityTable has a filter of =SecurityTable[WindowsUserName]=USERNAME()
    When a user connects to the tabular model AND their name is matched in one of the rows they return JUST the rows with their match.  Which makes sense.
    However, if a user connects and their Windows user name is NOT in a row in that table....they return ALL rows???
    That makes no sense to me.
    It behaves almost as if it is doing a check and if it DOESN'T find a match it just returns all values.
    What am I missing?
    --------------EDIT-----------
    Found the issue: that use was (unknown to me) a domain admin, so... admin rights trump all :)

    Resolved:
    User had admin rights, didn't realize this at the time.

  • How to Print all values stored in an Associative array

    DB version:10gR2
    There can be multiple results(multiple rows) for the below query. So, i'll have to declare the variables v_sid_serial, v_orauser, v_objectname,v_objecttype as associative arrays.
    SELECT l.session_id||','||v.serial# sid_serial, l.ORACLE_USERNAME,o.object_name,o.object_type,
           into v_sid_serial, v_orauser, v_objectname,v_objecttype
    FROM dba_objects o, v$locked_object l, v$session v
    WHERE o.object_id = l.object_id
          and l.SESSION_ID=v.sid;But I want to store the results from the above query in flat file. I want the result set to look like
    SID_SERIAL      ORA_USER               OBJECT_NAME           
    742,32914    SCOTT                        EMP
    873,49832    HR                           EMPLOYEES
    893,9437     mytestschema                 emp_dtls
    .            .How can i print the values in Associative arrays in the above manner so that i can spool the result set to a flat file?
    Edited by: user10373231 on Sep 29, 2008 5:19 AM

    user10373231 wrote:
    is there any way to print all values stored in an Associative arrayPrint to where?
    You could use DBMS_OUTPUT to get the output on the screen within SQL*Plus.
    You could also output (pipe) the data from PL/SQL using a pipelined function that you select from SQL. An example of a pipelined function...
    SQL> CREATE OR REPLACE TYPE myrec AS OBJECT
      2  ( col1   VARCHAR2(10),
      3    col2   VARCHAR2(10)
      4  )
      5  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE TYPE myrectable AS TABLE OF myrec
      2  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE FUNCTION pipedata(p_str IN VARCHAR2) RETURN myrectable PIPELINED IS
      2    v_str VARCHAR2(4000) := REPLACE(REPLACE(p_str, '('),')');
      3    v_obj myrec := myrec(NULL,NULL);
      4  BEGIN
      5    LOOP
      6      EXIT WHEN v_str IS NULL;
      7      v_obj.col1 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
      8      v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
      9      IF INSTR(v_str,',')>0 THEN
    10        v_obj.col2 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
    11        v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
    12      ELSE
    13        v_obj.col2 := v_str;
    14        v_str := NULL;
    15      END IF;
    16      PIPE ROW (v_obj);
    17    END LOOP;
    18    RETURN;
    19  END;
    20  /
    Function created.
    SQL>
    SQL> create table mytab (col1 varchar2(10), col2 varchar2(10));
    Table created.
    SQL>
    SQL> insert into mytab (col1, col2) select col1, col2 from table(pipedata('(1,2),(2,3),(4,5)'));
    3 rows created.
    SQL>
    SQL> select * from mytab;
    COL1       COL2
    1          2
    2          3
    4          5... which you can easily adapt to output whatever data you want e.g. you could loop through your associative array and pipe out the values within it.

  • SSRS 2012: How to get a "Select All" that returns NULL instead of an actual list of all values from a multi-select parameter?

    I have a multi-select parameter that can have a list of thousands of entries. In general, the user will pick a few entries from the list or "Select All". If they check "Select All", I would much prefer that I get a NULL or an empty string
    instead of a list of all values. Is there any way to do that?
    In experimenting with a work-around, I tried putting an "All" label with a null value in the list, but it is ignored (does not display in the drop-down). If I use an empty string for the value, my "All" entry does get displayed, but so
    does "Select All", which is confusing. Is there a way to suppress "Select All"?
    - Mark

    I adapted the following from a workaround posted by JNeo on 4/16/2010 at 11:14 AM at
    http://connect.microsoft.com/SQLServer/feedback/details/249227/multi-value-select-all-parameter-in-reporting-services
    To get a null value instead of the full list of all values when "Select All" is chosen:
    1) Add a multi-value parameter "MyParam" that lists the values to choose.
    2) Add a DataSet "ParamCount" identical to the one used by "MyParam", except that it returns a single column named [Count] that is a COUNT(*) of the same data
    3) Add a parameter "MyParamCount", set it to hidden and internal, then set the default value to 'Get values from a query', choosing "ParamCount" for the Dataset and the one [Count] column for the Value field.
    4) Change the parameter for the main report DataSet so that instead of using [@MyParam], it uses this expression:
    =IIF(Parameters!MyParam.Count =
    Parameters!ParamCount.Value, Nothing, Join(Parameters!MyParam.Value, ","))

  • Return all the column values using the F4IF_INT_TABLE_VALUE_REQUEST

    Hi,
    How to return all the column values using the F4IF_INT_TABLE_VALUE_REQUEST?
    For example : if the row has 3 columns then after selecting the particular row, the RETURN_TAB internal table should contain all the three column values.
    Regards,
    Raghu

    Hi,
       Try the following...
    DATA : it_fields like help_value occurs 1 with header line.
    data: begin of w_vbap,
            vbeln      like vbap-vbeln,    
            posnr      like vbap-posnr,   
            werks      like vbap-werks,  
          end of w_vbap.
    data: i_vbap   like w_vbap   occurs 0 with header line,
             w_fields type help_value,
          i_dfies type table of dfies,
          i_return_tab type table of ddshretval with header line,
          i_field  type dfies.
      select vbeln posnr werks
          from vbap into table i_vbap up to 5 rows.
    if sy-subrc = 0.
       sort i_vbap by vbeln.
    endif.
      clear it_fields[] , it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'VBELN'.
      it_fields-selectflag = c_on.
      append it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'POSNR'.
      it_fields-selectflag = space.
      append it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'WERKS'.
      it_fields-selectflag = space.
      append it_fields.
      loop at it_fields into w_fields.
        i_field-tabname   = w_fields-tabname.
        i_field-fieldname = w_fields-fieldname.
        i_field-keyflag   = w_fields-selectflag.
        append i_field to i_dfies.
      endloop.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield               = 'VBELN'
         window_title           = 'Select'
        tables
          value_tab              = i_vbap
          field_tab                = i_dfies
          return_tab             = i_return_tab
       exceptions
         parameter_error        = 1
         no_values_found        = 2
         others                 = 3
      read table i_return_tab into w_return_tab index 1.
      if sy-subrc = 0.
      endif.
    Regards,
    Srini.

  • Get-NetworkStatistics returns all the values set to zero despite having internet traffic

    Hi
    I'm running Windows Server 2012 R2 and I have a problem with the Get-NetworkStatistics cmdlet: it returns all the parameters with a value of zero eventhough the wireless network adapter is up and running, including having internet access. Furthermore, if
    I double-click on the wireless network adapter, it displays the correct values for bytes sent / received.
    So it seems like the Get-NetworkStatistics cmdlet is unable to read the statistics for the wireless adapter. Any help would be appreciated.
    Thanks

    Hi,
    Is this what you're referring to?
    https://gallery.technet.microsoft.com/scriptcenter/Get-NetworkStatistics-66057d71
    If so, the best way to contact the author is by posting on the QandA tab of the gallery item.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

Maybe you are looking for