Need to pass condition values in header of billing...by using bapi

Dear Gurus,
I am creating invoice for delivery by using bapi
BAPI_BILLINGDOC_CREATEMULTIPLE.. ....in this i need to update some condition values in header level..when i am passing those condition values in CONDITIONDATAIN its updating for each individual line item of any invoice and sum of line items of condition values in header...but i need to update only in header and dont wnat to update in item level..
please help me in this..am very much thankful to you if you can help me
Thanks in advance
Regards,
Rajesh

Ok, after continuing to search the internet I finally found the extra piece that I was missing that gave me the results I needed. The new expression looks like this:
=runningvalue(Sum(Max(IIF(LEFT(Fields!JobNum.Value,1)="S" AND Fields!Week1STol.Value<>0, CDBL(Fields!Week1STol.Value), 0),"JobItem"),"JobItem"),SUM, "JobItem")
In this I wrapped the original expression of Max in both a Sum and a runningvalue both at the JobItem level to get this rollup value. Now when I open the grouping I get the correct running value at each level.
What this really gives to me is a running total at each of four groupings, even with a "max" value at the detail level. This also allows me to total a max value inline on the report, without needing a hidden row, or report footer.
Thank you to everyone who looked at this, I hope it helps someone else. If this answer is not clear enough, please don't hesitate to add to the comments and I will try to clarify.
Thank you, Chad

Similar Messages

  • I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query parameter to report parameter i need to pass distinct values. How can i resolve this

    I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
    parameter to report parameter i need to pass distinct values. How can i resolve this

    Hi nancharaiah,
    If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
    None
    Specify values
    Get values from a query
    If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
    sample is for your reference:
    Select distinct field_name  from table_name
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Need to pass the value from UI

    Hi!!
    I am using jdeveloper 11.1.1.5
    I had dragged and dropped Three Input Text Boxes in my UI
    I need to pass the values from the UI to my AMImpl Methods
    i.e. In my AMImpl Methods
    vo2.setNamedWhereClauseParam("year",[af:ImputTextBox1]);
    vo2.setNamedWhereClauseParam("period",[af:ImputTextBox2]);
    vo2.setNamedWhereClauseParam("bu",[af:InputTextBox3]);
    vo2.executeQuery();

    The links given by Vinoth and jabr is very usefull for me!!
    Still i m receiving an while i clicked the button
    Cannot convert MEL of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputText
    Cannot convert 201011 of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputText
    Cannot convert 5 of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputTextEdited by: wilhelm wundt on Dec 18, 2011 10:00 PM

  • Need help passing text value as multi/part

    this question, again.
    Hi guys . i have a multipart form that works great. the only problem i am having is passing the value of a text feild to it since getParamater does not work with COS. I have to pass an ID to the servlet. Can anyone give me a hand? the only thing i can get to work is getName() - which doesnt do what i need at all.
    the area in question is this
                    //else if (_part.isParam()) {
                         id = _part.getName();
         out.println(id);
                        //}  here is my entire servlet
    package savedata;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.oreilly.servlet.multipart.MultipartParser;
    import com.oreilly.servlet.multipart.Part;
    import com.oreilly.servlet.multipart.FilePart;
    import com.oreilly.servlet.multipart.ParamPart;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.*;
    public class imageUpdate extends HttpServlet {
        private String fileSavePath;
      public void init(){
          // save uploaded files to a 'data' directory in the web app
          fileSavePath =   getServletContext().getRealPath("/") + "data";
      public void doPost(HttpServletRequest request,
        HttpServletResponse response) throws ServletException,
        java.io.IOException {
        response.setContentType("text/html");
        java.io.PrintWriter out = response.getWriter();
         HttpSession session = request.getSession(true);
        out.println("<html>");
        out.println("<head>");
        out.println("<title>File uploads</title>"); 
        out.println("</head>");
        out.println("<body>");
        out.println("<h2>Here is information about any uploaded files</h2>");
         String id = "";
         String session_ID = session.getId();
         out.println(session_ID);
        try{
            // file limit size of five megabytes
            MultipartParser parser = new MultipartParser(
               request,5 * 1024 * 1024);
            Part _part = null;
              String[] img = new String[10];
              for (int j = 0; j < img.length; j++) {
                   img[j] = "";
              int imgcount = 0;
                while ((_part = parser.readNextPart()) != null) {
                    if (_part.isFile()) {
                        // get some info about the file
                        FilePart fPart = (FilePart) _part;
                        String name = fPart.getFileName();
                        if (name != null) {
                            long fileSize = fPart.writeTo(new java.io.File(fileSavePath));
                            out.println("The user's file path for the file: " +
                            fPart.getFilePath() + "<br>");
                            img[imgcount] = fPart.getFilePath();
                            out.println("The content type of the file: " +
                            fPart.getContentType()+ "<br>");
                            out.println("The file size: " +fileSize+ " bytes<br><br>");
                            //commence with another file, if there is one
                            imgcount++;
                        else {
                            out.println("The user did not upload a file for this part.");
                    //else if (_part.isParam()) {
                         id = _part.getName();
                              out.println(id);
                // outside of while
                insert(img,id);          out.println("</body>");
            out.println("</html>");
            out.close();
        } catch (java.io.IOException ioe){
           //an error-page in the deployment descriptor is
           //mapped to the java.io.IOException
            throw new java.io.IOException(
                "IOException occurred in: " + getClass().getName());
        public void doGet(HttpServletRequest request,
          HttpServletResponse response) throws ServletException,
            java.io.IOException {
            throw new ServletException(
                "GET method used with " + getClass().getName()+
                     ": POST method required.");
    public void insert(String[] img,String id) {
        Connection con = null;
         PreparedStatement prep = null;
         String sql = null;
         ResultSet result;
        try {
          Class.forName("org.gjt.mm.mysql.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://localhost:3306/xxx?user=root&password=");
          if(!con.isClosed())
            System.out.println("Successfully connected to " +
              "MySQL server using TCP/IP...");
                           try
             sql = "UPDATE freehold_form_main SET img1=?, img2=?, img3=?, img4=?, img5=?, img6=?, img7=?, img8=?, img9=?, img10=? WHERE session_id = '"+id+"'";         
              prep = con.prepareStatement(sql);
        //      System.out.println("img.length = " + img.length);
             for (int i = 0; i < img.length; i++) {
                   prep.setString((i + 1), img);
    prep.executeUpdate();
                             System.out.print("HERE IS THE ID:"+id);
    catch(Exception m)
    System.out.print(m.getMessage());
    } catch(Exception e) {
    System.err.println("Exception: " + e.getMessage());
    } finally {
    try {
    if(con != null)
    con.close();
    } catch(SQLException e) {}
    Thank in advance

    this question, again.
    Hi guys . i have a multipart form that works great. the only problem i am having is passing the value of a text feild to it since getParamater does not work with COS. I have to pass an ID to the servlet. Can anyone give me a hand? the only thing i can get to work is getName() - which doesnt do what i need at all.
    the area in question is this
                    //else if (_part.isParam()) {
                         id = _part.getName();
         out.println(id);
                        //}  here is my entire servlet
    package savedata;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.oreilly.servlet.multipart.MultipartParser;
    import com.oreilly.servlet.multipart.Part;
    import com.oreilly.servlet.multipart.FilePart;
    import com.oreilly.servlet.multipart.ParamPart;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.*;
    public class imageUpdate extends HttpServlet {
        private String fileSavePath;
      public void init(){
          // save uploaded files to a 'data' directory in the web app
          fileSavePath =   getServletContext().getRealPath("/") + "data";
      public void doPost(HttpServletRequest request,
        HttpServletResponse response) throws ServletException,
        java.io.IOException {
        response.setContentType("text/html");
        java.io.PrintWriter out = response.getWriter();
         HttpSession session = request.getSession(true);
        out.println("<html>");
        out.println("<head>");
        out.println("<title>File uploads</title>"); 
        out.println("</head>");
        out.println("<body>");
        out.println("<h2>Here is information about any uploaded files</h2>");
         String id = "";
         String session_ID = session.getId();
         out.println(session_ID);
        try{
            // file limit size of five megabytes
            MultipartParser parser = new MultipartParser(
               request,5 * 1024 * 1024);
            Part _part = null;
              String[] img = new String[10];
              for (int j = 0; j < img.length; j++) {
                   img[j] = "";
              int imgcount = 0;
                while ((_part = parser.readNextPart()) != null) {
                    if (_part.isFile()) {
                        // get some info about the file
                        FilePart fPart = (FilePart) _part;
                        String name = fPart.getFileName();
                        if (name != null) {
                            long fileSize = fPart.writeTo(new java.io.File(fileSavePath));
                            out.println("The user's file path for the file: " +
                            fPart.getFilePath() + "<br>");
                            img[imgcount] = fPart.getFilePath();
                            out.println("The content type of the file: " +
                            fPart.getContentType()+ "<br>");
                            out.println("The file size: " +fileSize+ " bytes<br><br>");
                            //commence with another file, if there is one
                            imgcount++;
                        else {
                            out.println("The user did not upload a file for this part.");
                    //else if (_part.isParam()) {
                         id = _part.getName();
                              out.println(id);
                // outside of while
                insert(img,id);          out.println("</body>");
            out.println("</html>");
            out.close();
        } catch (java.io.IOException ioe){
           //an error-page in the deployment descriptor is
           //mapped to the java.io.IOException
            throw new java.io.IOException(
                "IOException occurred in: " + getClass().getName());
        public void doGet(HttpServletRequest request,
          HttpServletResponse response) throws ServletException,
            java.io.IOException {
            throw new ServletException(
                "GET method used with " + getClass().getName()+
                     ": POST method required.");
    public void insert(String[] img,String id) {
        Connection con = null;
         PreparedStatement prep = null;
         String sql = null;
         ResultSet result;
        try {
          Class.forName("org.gjt.mm.mysql.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://localhost:3306/xxx?user=root&password=");
          if(!con.isClosed())
            System.out.println("Successfully connected to " +
              "MySQL server using TCP/IP...");
                           try
             sql = "UPDATE freehold_form_main SET img1=?, img2=?, img3=?, img4=?, img5=?, img6=?, img7=?, img8=?, img9=?, img10=? WHERE session_id = '"+id+"'";         
              prep = con.prepareStatement(sql);
        //      System.out.println("img.length = " + img.length);
             for (int i = 0; i < img.length; i++) {
                   prep.setString((i + 1), img);
    prep.executeUpdate();
                             System.out.print("HERE IS THE ID:"+id);
    catch(Exception m)
    System.out.print(m.getMessage());
    } catch(Exception e) {
    System.err.println("Exception: " + e.getMessage());
    } finally {
    try {
    if(con != null)
    con.close();
    } catch(SQLException e) {}
    Thank in advance

  • Mapping Problem.. I Need to pass Unique value everytime to Target filed.

    Hi All,
    I need to pass some unique value everytime the message processed to the target field.
       Source filed ---> Target Field
    can anyone has the UDF to generate like this.. ?
    I heard that through RFCLookup we can do that.. by maintaing some table and taking 2 parameters one as input and one as output and everytime when the message processes it will add by one to the previous value and pass to the target field.
    I dont know much about these lookups..
    Can anyone through some light on this, how i can solve this issue.??
    Waiting for your answers.
    Thanks&Regards
    Deepthi.

    Hi Liang,
    That's my exact issue.Please let me know when you find the solution.
    Actually i tried with some UDF.. its generating unique values whenever mapping is executed.But when we Reboot the system we found that its reinitializing again from "1".
    So definetly we need to maintain the count in some database and system has to update evytime according to that.
    Iam trying something by calling RFC from UDF and updating the Ztable by incrementing everytime.
    I wil let you know if i find any solution..
    Meanwhile anyone wants to suggest me... Please respond.
    Thanks
    Deepthi.

  • How to pass condition values fom sales order to packing list

    Hi!
    I need to show price amounts on the packing list printout from VL03N based on the condition value from the sales order document. Can anyone suggest how this can be achieved?
    Thanks!
    Cholen

    I think I have found a solution:
    - select vbak-knumv from sales order of delivery then select the condition values from table konv where vbak-knumv = konv-knumv.
    One can filter by kschl (condition type) if only particular amounts based on condition type need to show up.

  • Select list need to pass a value to collect information based on a value on another page

    i have a product-detail.php page that is then sent to a cart.php i have a number of tables that are all joined and show in the statement below. the results are displayed on the detail page
    $var1_rsProduct = "-1";
    if (isset($_GET['productID'])) {
      $var1_rsProduct = $_GET['productID'];
    mysql_select_db($database_beau, $beau);
    $query_rsProduct = sprintf("SELECT * FROM beauAW13_Cat, beauAW13_products, beauAW13_Stock, beauAW13_SizeList WHERE beauAW13_products.catID = beauAW13_Cat.catID AND beauAW13_products.ProductID = beauAW13_Stock.ProductID AND beauAW13_Stock.SizeID = beauAW13_SizeList.SizeID AND beauAW13_products.ProductID = %s AND beauAW13_Stock.Stock != 0 ", GetSQLValueString($var1_rsProduct, "int"));
    $rsProduct = mysql_query($query_rsProduct, $beau) or die(mysql_error());
    $row_rsProduct = mysql_fetch_assoc($rsProduct);
    $totalRows_rsProduct = mysql_num_rows($rsProduct);
    i have a select list that needs to show the sizes.this is shown below
    <select name="select" id="select">
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProduct['StockID']; ?>"><?php echo $row_rsProduct['Size']?></option>
                    <?php
    } while ($row_rsProduct = mysql_fetch_assoc($rsProduct));
      $rows = mysql_num_rows($rsProduct);
      if($rows > 0) {
          mysql_data_seek($rsProduct, 0);
                $row_rsProduct = mysql_fetch_assoc($rsProduct);
    ?>
                  </select>
    it is currently passing the value of <?php echo $row_rsProduct['StockID']; ?>
    which is ok as this is a totally unique number so on the cart page i need to get all the size information from that stockID
    here is an example:-
    i have used a stockID of 355
    on the cart.php the stockID is echoed out as 355 and the size is echoed out as 355 which is what i would expect.
    the stock table looks like this
    StockID | ProductID | SizeID  |  Stock
      355   |    582    |   14    |    5
    so
    ProductID is blue jumper
    Stock id is unique number
    SizeID = 14 = once size
    Stock = 5 in stock
    so i need to in the cart say
    355 = 14 = one size
    i can then echoe out the correct size as one size and not 355
    i really hope someone can help
    thanks

    Thanks for everyone advise. I managed to get it working
    I sent the stockID on;y to the cart page, made a new variable based on the stockID the made a query and got all the information based on the new stockID variable
    <?php
    $newStockID = $XCart_StockID = ${$XCName}["contents"][0][$XCart__i];
    mysql_select_db($database_beau, $beau);
    $query_rsSize = "SELECT * FROM beauAW13_SizeList, beauAW13_Stock WHERE beauAW13_Stock.SizeID = beauAW13_SizeList.SizeID AND beauAW13_Stock.StockID = '$newStockID'";
    $rsSize = mysql_query($query_rsSize, $beau) or die(mysql_error());
    $row_rsSize = mysql_fetch_assoc($rsSize);
    $totalRows_rsSize = mysql_num_rows($rsSize);
                              ?>
    select list
    <option value="<?php echo $row_rsProduct['StockID']; ?>"><?php echo $row_rsProduct['Size']?></option>

  • Passing the values from the graph when we use Navigate to the BI Content

    Hi,
    The following are the problems which we are facing when navigating to the other BI report.
    1)When using the “Navigate to BI content” action the values are not getting passed to the detail report from the graph. Is there any limitation or any alternative to make it work?
    When I click on the Bar graph I need to pass the corresponding period and the dimension (EX: Operating Unit – Vision Services R+D) to the detail report.
    2)I have tried using the “Navigate to Web page” action. I am able to pass the values but the page is getting opened in another window. I want that page to be opened in the same window so that my presentation variable values are not lost.
    3)When I click on the bar graph, I am able to pass the values period and operating unit. But my presentation variable values are lost. I want to retain them.
    Please help me out in achieving this scenario.
    Thanks,
    Chaithanya

    Hi,
    In the column properties give the navigation to other reports from the interaction tab and make a chart with the column and in the dashboard -->edit dashboard-->in the section where the report is placed--->give 'drill in place'.
    Regards
    MuRam
    NOTE: Please mention if this resolved your problem/still facing and close the thread.

  • Need to Pass filename for archived file to FTP adapter using SynchRead

    Hi
    I am archiving the source file which i am reading using an FTP adapter, Operation- SynchRead.
    In my case as the source filename is dynamic( abc_<timestamp>.xml) hence before the SynchRead, I am using a FTP List adapter to get the filename.
    Currently,the archived file is getting name in pattern: encryptedToken_yyyymmdd_hhmmss.(e.g. wQ2c3w7Cj7Y6irWnRKqEu77_jD7kLtj6Uc0QCZIyjC4=_20121122_012453_0305)
    I need to pass the sourceFilename(which i am getting from FTPList adapter) for the archived file also.
    Thanks in advance for the help!
    Regards,
    Achal

    Hi Neeraj,
    While trying the above alternative, i am facing an issue when my source file is a .csv file. The file is getting recreated with the original filename and file content but without header.
    As per the requirement i need the original file to be recreated. The header of .csv file has the field names.
    Please let me know how should i configure my FTP adapter to read the header of the .csv file as well.
    Thanks,
    Achal

  • Pass a value to a form to be used as a label/readonly

    I have a link between a report and an update form. I want to pass the value of a report column to the form to be used as a label. The report column does not exist in the table that the form is based on. How can I do this? I added an item to the form, but that item does not show up in the link details for assignment of a value. Is this a refresh problem?

    How do I get the value (VAC_ID) to the form from the link? When you edit the link you can assign column values to the parameters. How can I get the parameter (VAC_ID) to show up as a parameter when it is not in the record?

  • Need to pass in line charges when cancel order line using API?

    Hi,
    Do we need to pass in line charges (charges, freight cost) when cancel order line using Oe_Order_Pub.Process_Order API?

    I found the answer to my own question:
    Yes it is a supported feature. It is documented on the following page:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApp lication.html#event:invoke
    When you subscribe to the invoke event of the NativeApplication it will subsequently dispatch the event and you read the e.arguments Array object to get the startup arguments passed into the native application.

  • Exclusion item condition value for header condition

    Dear All,
    I explained my problem with example scenerio.
    Sales Order Total Net Amount = 1.500 EUR
    SO Item-10 = Advance Payment Sales = 500 EUR >> for first invoice
    SO Item-20 = Sales from stock with HAWA material - 1 = 300 EUR  >> for second invoice
    SO Item-30 = Sales from stock with HAWA material - 2 = 1.200 EUR >> for second invoice
    SO Header condition > ZAP1 = Advance payment decrease = - 500 EUR
    System divided Advance Payment amount to all items.
    Item-10 = - 125 EUR
    Item-20 = -   75 EUR
    Item-30 =  -300 EUR
    My request is on below;
    Item-10 =      0 EUR
    Item-20 = - 100 EUR
    Item-30 = - 400 EUR
    Is calculation possible with zero value for item-10 ?
    Thanks for your helps.
    Gulay Celik

    Hi Gulay
    System cant divide the advance payment to all items ,System can divide the advance payment for one item  .
    But assign a billing plan at header level and just check , if it works then your requirement can be fulfilled.But generally it is done at item level only 
                            Make the following down payment configurations
    item category group - 0005
    item category - TAO
    for this TAO item category a billing plan 01 (milestone billing plan -01) will be assigned and its billing relevance should be I which is order related billing .
    billing doc type - FAZ
    cancellation billing doc type - FAS
    maintain a condition type AZWR which is down payment settlement , it has requirement as 2 and calc type as 48 acct key as ERL
    Now when you enter a material in line item 10 and go to item data , you can see the billing plan tab.
    now go to billing plan tab and enter the start date and enter the dates on which billing has to be done and then in billing request enter 0009 which is for down payment.once u press enter automatically it all the dates get blocked and billing request by default you get as 1 , that you change it to 4 or 5 . 4 is for down payment at value basis and 5 is for down payment at percentage basis. and beside that there will be a billing type .assign billing doc type as FAZ. to all dates
    check the copying requirements are there at VTFA as 20 and for item category TAO copying requirements 23 is maintained or not
    now do the cycle OR - LF - FAZ (billing doc type)
    Regards
    Srinath

  • Freight condition value at header level for PO

    Hi
    In the PO header freight condition i have given 150RS.
    There are two items in the PO.
    Item1 qty 10 price 10rs/each
    Item2 qty 20 price 20rs/each
    Freight value for item1 is 30rs and unit price of the item is becomg 40rs/each
    Freight value for item1 is 120rs and unit price of the item is becomg 140rs/each
    I want 150rs to be apportioned among the two items like
    30rs for the 1st item
    120rs for the 2nd item
    But the unit price is gettiing increased abnormally.
    PLease suggest how to catter this.
    Regards
    Soumen

    Hi,
    To distribute the price across all the item then for that particular condition type tick the group condition and header condition in
    M/06
    If you tick the group condition then price will be distributed across all the items proportionally.
    Try this and see.
    Raj

  • I need help passing a value to a method.

    Im fairly new to java.
    I have this JSP that i would like to ultimately write it as a servlet. So if any one can help out with this as well, that would be great.
    There's a code snippet at the bottom of my code that looks like this
            String operation = request.getParameter("actionMethod");
         String areaId = request.getParameter("areaId");
         List list = listOrders();I was wondering how i could pass the areaId value to the listOrders. That way i could use that to modify my sql depending on what areaid was selected.
    here's a copy of my code.
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <%@ page import="java.sql.*,java.util.*"%>
    <%@ page import="com.fins.gt.server.*"%>
    <%@ page import="com.fins.gt.util.*"%>
    <%!
         // Eventually needs re-written as a servlet
         Connection getConnection(){
              String url="jdbc:as400://bigblue";
              Connection conn= null;
              try{
                   Class.forName("com.ibm.as400.access.AS400JDBCDriver").newInstance();
                   conn = DriverManager.getConnection(url,"prodtasv","prodtasv");
              }catch(Exception e){
              return conn;
         void closeConnection(Connection conn){
              try{
                   conn.close();
              }catch(Exception e){
         List listOrders(){
            Connection conn = getConnection();
            if(conn==null)
                    return new ArrayList();
            Statement stmt = null;
            ResultSet rs = null;
            List list = new ArrayList();
            try{
                 stmt = conn.createStatement();
                 rs = stmt.executeQuery("SELECT * FROM AIMDATA.DVCR_AREA_LOOKUP");
                 while(rs.next()){
                        Map map = new HashMap();
                        map.put("AREAID",new Long(rs.getLong("AREAID")));                    
                        map.put("SICD",rs.getString("SICD"));
                        map.put("SKCD",rs.getString("SKCD"));
                        map.put("DESCRIPTION",rs.getString("DESCRIPTION"));
                        list.add(map);
                 rs.close();
                 stmt.close();
            }catch(Exception e){
            closeConnection(conn);
            return list;
    %>
    <%
         // GridServerHandler is server side wrapper, you can get all the info posted to server in your Java way instead of JavaScript
         GridServerHandler gridServerHandler=new GridServerHandler(request,response);
         String operation = request.getParameter("actionMethod");
         if("save".equals(operation)){
         }else { //client is retrieving data
              List list = listOrders();
             //get how many records we are sending
              int totalRowNum= list.size();
              gridServerHandler.setTotalRowNum(totalRowNum);
              //if you would like paginal output on server side, you may interested in the following 4 methods
              // gridServerHandler.getStartRowNum() first record no of current page
              // gridServerHandler.getEndRowNum() last record no of current page
              // gridServerHandler.getPageSize() how many records per page holds
              // gridServerHandler.getTotalRowNum() how many records in total
              // we take map as this sample, you need to use gridServerHelp.setData(list,BeanClass.class); to deal with bean
              gridServerHandler.setData(list);
                // gridServerHandler.setException("your exception message");
              //print out JSON string to client
              out.print(gridServerHandler.getLoadResponseText());          
              //you could get the posted data by calling gridServerHandler.getLoadResponseText() and obtain more flexibility, such as chaning contentType or encoding of response.
    %>

    Sorry i uploaded the wrong code and the edit wasn't working for me.
    <%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
    <%@ page import="java.sql.*,java.util.*"%>
    <%@ page import="com.fins.gt.server.*"%>
    <%@ page import="com.fins.gt.util.*"%>
    <%!Connection getConnection() {
              String url = "jdbc:as400://bigblue";
              Connection conn = null;
              try {
                   Class.forName("com.ibm.as400.access.AS400JDBCDriver").newInstance();
                   conn = DriverManager.getConnection(url, "prodtasv", "prodtasv");
              } catch (Exception e) {
              return conn;
         void closeConnection(Connection conn) {
              try {
                   conn.close();
              } catch (Exception e) {
         List listOrders() {
              Connection conn = getConnection();
              if (conn == null)
                   return new ArrayList();
              Statement stmt = null;
              ResultSet rs = null;
              List list = new ArrayList();
              try {
                   stmt = conn.createStatement();
                   rs = stmt
                             .executeQuery("SELECT * FROM AIMDATA.DVCR_DETAIL WHERE AREAID = 1");
                   while (rs.next()) {
                        Map map = new HashMap();
                        map.put("DETAILID", new Long(rs.getLong("DETAILID")));
                        map.put("AREAID", new Long(rs.getLong("AREAID")));
                        map.put("DVCRID", new Long(rs.getLong("DVCRID")));
                        map.put("DEFECTID", new Long(rs.getLong("DEFECTID")));
                        map.put("DESCRIPTION", rs.getString("DESCRIPTION"));
                        map.put("WRNO", new Long(rs.getLong("WRNO")));
                        map.put("WRLINENO", new Long(rs.getLong("WRLINENO")));
                        list.add(map);
                   rs.close();
                   stmt.close();
              } catch (Exception e) {
              closeConnection(conn);
              return list;
         }%>
    <%
         // GridServerHandler is server side wrapper, you can get all the info posted to server in your Java way instead of JavaScript
         GridServerHandler gridServerHandler = new GridServerHandler(
                   request, response);
         String operation = request.getParameter("actionMethod");
         String areaId = request.getParameter("areaId");
         List list = listOrders();
         //get how many records we are sending
         int totalRowNum = list.size();
         gridServerHandler.setTotalRowNum(totalRowNum);
         // we take map as this sample, you need to use gridServerHelp.setData(list,BeanClass.class); to deal with bean
         gridServerHandler.setData(list);
         // gridServerHandler.setException("your exception message");
         //print out JSON string to client
         out.print(gridServerHandler.getLoadResponseText());
         //you could get the posted data by calling gridServerHandler.getLoadResponseText() and obtain more flexibility, such as chaning contentType or encoding of response.
    %>

  • Need to pass field value as input parameter for a task

    I have the following scenario:
    User opens a task from UWL and sees a UI in which a Quote no. is generated, which is saved in the backend. Next time the user comes to this UI(from the same task in his UWL) he should see the Quote no. generated. Also, the data is fetched from backend by calling BAPI which takes the Quote no. as input, which was generated the first time user visited this UI.
    My concern is how can I store this Quote no. in GP, which was generated the first time, so that user sees the data specific to quote no., as relevant for that task.
    Please help.
    Thanks and Regards
    Aanchal

    Hi Srinivasan,
    Thanks for ur quick response.
    I am explaining my issue further.
    User comes to this UI (first time), Quote no. is generated. User fills some other fields( but does not complete whatever he has to) and saves the data to backend. Now user closes the window (task remains in his UWL), but now when he opens the task, he should see the Quote no. which was generated earlier and also data which he saved(by calling BAPI). How can I get this quote no.?
    Can you please explain what you mean by "expose the quote no. at process level"?
    Thanks and Regards
    Aanchal

Maybe you are looking for

  • How do I transfer a site to another member to use?

    How do I transfer a site to another member to use?

  • After latest Firefox update, MOBI plug-in no longer works

    After the recent update to 29.0.1, my plug-in that I used to view MOBI ebook files no longer work. When I click on a file, it brings up the window saying "You have chosen to open blah blah blah MOBI file. What would you like to do?" And when I click

  • What are the settings for automatic service PO?

    What are the settings for automatic service PO?

  • Naming of Assignements

    My editor is making separate incopy files for each chapter. When I placed them into my indesign layout, they have the same name in the assignment window, even though there have different distinct names, chapter 1.icml, chapter2.icml..... Why do they

  • Higher dimension level in OWB 11gr2

    Hi everyone For the first time I am trying to join a cube to a dimension at a level 3 above the lowest level. The cube, dimension etc are all OK and the mapping validates and seems fine. But when I checked the cursor it generated I found that althoug