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.

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

  • 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>

  • XI IDoc complex mapping problem - help needed!

    Hi all,
    I am mapping WPUBON IDoc (sent as IDoc XML file) to WPUBON IDoc in R/3. However, I have a complex mapping requirement that I am trying to use the graphical tool for.
    Source segment structure is such that we have:
    E1WPB01 (header) has one or many E1WPB02 (items) and E1WPB05 (coupons).
    E1WPB02 (items) have one or many E1WPB03 (item conditions).
    So for each IDoc, we can have many items (E1WPB02), each item can have many conditions (E1WPB03) and each IDoc can have many coupons (E1WPB05).
    For each E1WPB05 received, we need to take the value and divide it proportionately in order to add an extra E1WPB03 discount condition segment to each E1WPB02 item (we are a retailer and this will allow us to break down customer coupon discounts across each item in the basket). For example, if we have 2 E1WPB02 items with values $2 and $3 and the coupon is worth $1, item 1 needs a new E1WPB03 segment with a value of $0.40 and item 2 needs one with a value of $0.60.
    This process needs to occur for each E1WPB05 segment (customers could have more than one coupon). No E1WPB05 segments are required in the target IDoc.
    I have tried a few things but really am a bit stuck on where to start.... any ideas anyone?
    Thankyou.
    Stuart Richards

    Stefan,
    Here's some sample source XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <WPUBON01>
       <IDOC>
          <EDI_DC40>
             <TABNAM>EDI_DC40</TABNAM>
             <MANDT>104</MANDT>
             <DOCNUM/>
             <DOCREL>620</DOCREL>
             <DIRECT>2</DIRECT>
             <IDOCTYP>WPUBON01</IDOCTYP>
             <MESTYP>WPUBON</MESTYP>
             <MESCOD>ST6</MESCOD>
             <SNDPOR>WPUX</SNDPOR>
             <SNDPRT>KU</SNDPRT>
             <SNDPRN>0799</SNDPRN>
             <RCVPOR>SAPRD1</RCVPOR>
             <RCVPRT>KU</RCVPRT>
             <RCVPRN>0799</RCVPRN>
             <REFINT>00000000000016</REFINT>
          </EDI_DC40>
          <E1WPB01 SEGMENT="1">
             <POSKREIS>0001</POSKREIS>
             <KASSID>1</KASSID>
             <VORGDATUM>20060107</VORGDATUM>
             <VORGZEIT>134512</VORGZEIT>
             <BONNUMMER>120572</BONNUMMER>
             <KASSIERER>4400</KASSIERER>
             <CSHNAME> </CSHNAME>
             <BELEGWAERS>GBP</BELEGWAERS>
             <E1WPB02 SEGMENT="2">
                <VORGANGART/>
                <QUALARTNR>ARTN</QUALARTNR>
                <ARTNR>000005034394436881</ARTNR>
                <VORZEICHEN>-</VORZEICHEN>
                <MENGE>1</MENGE>
                <REFBONNR> </REFBONNR>
                <E1WPB03 SEGMENT="3">
                   <VORZEICHEN/>
                   <KONDITION>PN10</KONDITION>
                   <KONDVALUE>10.00</KONDVALUE>
                   <CONDID/>
                   <QUALCONDID/>
                </E1WPB03>
             </E1WPB02>
             <E1WPB02 SEGMENT="5">
                <VORGANGART/>
                <QUALARTNR>ARTN</QUALARTNR>
                <ARTNR>000005034394471158</ARTNR>
                <VORZEICHEN>-</VORZEICHEN>
                <MENGE>1</MENGE>
                <REFBONNR> </REFBONNR>
                <E1WPB03 SEGMENT="6">
                   <VORZEICHEN/>
                   <KONDITION>PN10</KONDITION>
                   <KONDVALUE>20.00</KONDVALUE>
                   <CONDID/>
                   <QUALCONDID/>
                </E1WPB03>
             </E1WPB02>
             <E1WPB02 SEGMENT="8">
                <VORGANGART/>
                <QUALARTNR>ARTN</QUALARTNR>
                <ARTNR>000005034394469131</ARTNR>
                <VORZEICHEN>-</VORZEICHEN>
                <MENGE>1</MENGE>
                <REFBONNR> </REFBONNR>
                <E1WPB03 SEGMENT="9">
                   <VORZEICHEN/>
                   <KONDITION>PN10</KONDITION>
                   <KONDVALUE>30.00</KONDVALUE>
                   <CONDID/>
                   <QUALCONDID/>
                </E1WPB03>
             </E1WPB02>
             <E1WPB05 SEGMENT="11">
                <VORZEICHEN>+</VORZEICHEN>
                <RABATTART>PTCS</RABATTART>
                <RABVALUE>6.00</RABVALUE>
             </E1WPB05>
             <E1WPB06 SEGMENT="11">
                <VORZEICHEN>+</VORZEICHEN>
                <ZAHLART>PTCS</ZAHLART>
                <SUMME>10.00</SUMME>
                <KARTENNR/>
                <ZUONR>120572</ZUONR>
             </E1WPB06>
          </E1WPB01>
       </IDOC>
    </WPUBON01>
    So we have one coupon worth $6.00. We have 3 items in the basket worth $10, $20 and $30 respectively. The additional E1WPB03 for each will need to contain $1, $2 and $3 respectively to give:
    <?xml version="1.0" encoding="UTF-8"?>
    <WPUBON01>
       <IDOC>
          <EDI_DC40>
             <TABNAM>EDI_DC40</TABNAM>
             <MANDT>104</MANDT>
             <DOCNUM/>
             <DOCREL>620</DOCREL>
             <DIRECT>2</DIRECT>
             <IDOCTYP>WPUBON01</IDOCTYP>
             <MESTYP>WPUBON</MESTYP>
             <MESCOD>ST6</MESCOD>
             <SNDPOR>WPUX</SNDPOR>
             <SNDPRT>KU</SNDPRT>
             <SNDPRN>0799</SNDPRN>
             <RCVPOR>SAPRD1</RCVPOR>
             <RCVPRT>KU</RCVPRT>
             <RCVPRN>0799</RCVPRN>
             <REFINT>00000000000016</REFINT>
          </EDI_DC40>
          <E1WPB01 SEGMENT="1">
             <POSKREIS>0001</POSKREIS>
             <KASSID>1</KASSID>
             <VORGDATUM>20060107</VORGDATUM>
             <VORGZEIT>134512</VORGZEIT>
             <BONNUMMER>120572</BONNUMMER>
             <KASSIERER>4400</KASSIERER>
             <CSHNAME> </CSHNAME>
             <BELEGWAERS>GBP</BELEGWAERS>
             <E1WPB02 SEGMENT="2">
                <VORGANGART/>
                <QUALARTNR>ARTN</QUALARTNR>
                <ARTNR>000005034394436881</ARTNR>
                <VORZEICHEN>-</VORZEICHEN>
                <MENGE>1</MENGE>
                <REFBONNR> </REFBONNR>
                <E1WPB03 SEGMENT="3">
                   <VORZEICHEN/>
                   <KONDITION>PN10</KONDITION>
                   <KONDVALUE>10.00</KONDVALUE>
                   <CONDID/>
                   <QUALCONDID/>
                </E1WPB03>
    <b>           <E1WPB03 SEGMENT="9">
                   <VORZEICHEN/>
                   <KONDITION>PN10</KONDITION>
                   <KONDVALUE>1.00</KONDVALUE>
                   <CONDID/>
                   <QUALCONDID/>
                </E1WPB03></b>
             </E1WPB02>
             <E1WPB02 SEGMENT="5">
                <VORGANGART/>
                <QUALARTNR>ARTN</QUALARTNR>
                <ARTNR>000005034394471158</ARTNR>
                <VORZEICHEN>-</VORZEICHEN>
                <MENGE>1</MENGE>
                <REFBONNR> </REFBONNR>
                <E1WPB03 SEGMENT="6">
                   <VORZEICHEN/>
                   <KONDITION>PN10</KONDITION>
                   <KONDVALUE>20.00</KONDVALUE>
                   <CONDID/>
                   <QUALCONDID/>
                </E1WPB03>
    <b>           <E1WPB03 SEGMENT="9">
                   <VORZEICHEN/>
                   <KONDITION>PN10</KONDITION>
                   <KONDVALUE>2.00</KONDVALUE>
                   <CONDID/>
                   <QUALCONDID/>
                </E1WPB03></b>
             </E1WPB02>
             <E1WPB02 SEGMENT="8">
                <VORGANGART/>
                <QUALARTNR>ARTN</QUALARTNR>
                <ARTNR>000005034394469131</ARTNR>
                <VORZEICHEN>-</VORZEICHEN>
                <MENGE>1</MENGE>
                <REFBONNR> </REFBONNR>
                <E1WPB03 SEGMENT="9">
                   <VORZEICHEN/>
                   <KONDITION>PN10</KONDITION>
                   <KONDVALUE>30.00</KONDVALUE>
                   <CONDID/>
                   <QUALCONDID/>
                </E1WPB03>
    <b>           <E1WPB03 SEGMENT="9">
                   <VORZEICHEN/>
                   <KONDITION>PN10</KONDITION>
                   <KONDVALUE>3.00</KONDVALUE>
                   <CONDID/>
                   <QUALCONDID/>
                </E1WPB03></b>
             </E1WPB02>
             <E1WPB06 SEGMENT="11">
                <VORZEICHEN>+</VORZEICHEN>
                <ZAHLART>PTCS</ZAHLART>
                <SUMME>10.00</SUMME>
                <KARTENNR/>
                <ZUONR>120572</ZUONR>
             </E1WPB06>
          </E1WPB01>
       </IDOC>
    </WPUBON01>
    The 3 new segments required are highlighted in bold. Note that coupon segment can be repeating but is not required in the target message.
    Cheers

  • 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.
    %>

  • Mapping Problem/ Suggestion needed

    Hi All,
    Purchase Order Header Details are to be sent to target file...
    Only One Unique Document Number should be sent along with the Vendor..
    Say I am getting from Source like this
    DOCNUM                VENDOR
    12356                       ABC LTD
    12356                       ABC LTD
    12357                       XYZ Co
    12589                         SHELL CO
    12589                         SHELL CO
    12589                         SHELL CO
    out put should file be like this
    12356                ABC LTD
    12357                XYZ Co
    12589                 SHELL CO
    My structure is like this
    source -->
    Header    (0....unbounded)
       DOCNUM 
       Vendor
    Target -->
    Supplier (0...unbounded)
       Order
       Vendor
    Please suggest me how to go...
    I have successfully done this with UDF ... but can i do this with standard Functions..
    Thanks and Regards,
    sridhar reddy

    Sridhar,
    <i> Its possible for me to simulate the scenario in mapping editor, if we check the queue we are getting the same o/p as u needed. But if u run the same in the test tab its going weird. I'll tell u the logic , can u please try it let me know if it works for you. Before running in the test tab, display those results in the queue.
    DocNum (Change the context to higher level) <b>></b> Sort <b>></b>SplitByValue(ValueChanged) <b>></b>CollapseContext <b>></b>Supplier
    DocNum --> Order
    Vendor --> Vendor</i>
    <b>Please don't consider the above logic, I did the logic on root node level, will try to solve and let you know.</b>
    Best Regards,
    raj.
    Message was edited by:
            Raj

  • 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

  • Message mapping problem / experts needed / UDF?

    Hello experts,
    I have the following problem in a message mapping:
    Source structure is as follows:
    - Node a (min 1, max 999)
      - Subnode b (min 0, max 999)
      - Each Subnode b has the element "number" (1,1)
    This structure must be mapped to the following target structure:
    - Node c (1,999)
       - Subnode d (0,999)
       - Each subnode d has the following elements:
           - e1
           - e2
           - e3
           - e11
    1 Source node a should create 1 target node c.
    All numbers in all subnodes b of one source node a should be mapped to the e1, e2,...e11 elements of the target structure. As one target node d can only contain up to eleven numbers, there must be several d nodes.
    I have already tried to create a UDF, but it does not work.
    Any experts who would like to share their knowledge?
    Thanks in advance.
    CHRISTOPH
    Edited by: Christoph G. on Apr 23, 2008 10:46 PM

    Hello again,
    meanwhile I have worked hard on it and I have found the solution (just one UDF (queue function) which gets the article numbers as well as constant(targetField). So the UDF covers the creation of the "groups" as well as the mapping of the article numbers.
    It was really interesting and it made me ambitious to find the solution myself I do not have access to the system today, but I will post my solution as far as I have access again. Maybe you still want to search for a solution? It really may be fun, just like some kind of a puzzle game.
    In order to make it more clear, here comes the source and target structure with an example. Let me once more explain it: In the source, there are positions, each with unlimited article numbers. Each position will create a targetPosition. The node "targetPosition" has the subNode "articlenrs" (unbounded). Articlenrs has 11 differnet elements, calles a1, a2, a3, ..., a11. That means, all article numbers from a source postion should be mapped to "groups of 11 target article numbers". Please be aware the there are 11 differnet target fields for article numbers: a1, a2, ... a11.
    I think that' why the solution of  Liang Ji and Rohit Kalugade will not work...
    SOURCE
    <position>
         <articlenr> 123   </articlenr>
         <articlenr> 456   </articlenr>
         <articlenr> 4783 </articlenr>
         <articlenr> 123   </articlenr>
         <articlenr> 456   </articlenr>
         <articlenr> 4783 </articlenr>
         <articlenr> 123   </articlenr>
         <articlenr> 456   </articlenr>
         <articlenr> 4783 </articlenr>
         <articlenr> 123   </articlenr>
         <articlenr> 496   </articlenr>
         <articlenr> 4783 </articlenr>
             . (unbounded)
    </positon>
    <position>
         <articlenr> 543  </articlenr>
         <articlenr> 865  </articlenr>
         <articlenr> 643  </articlenr>
    </positon>
    TARGET
    <targetPosition>
      <articlenrs>
           <a1> 123  </a1>
           <a2> 456  </a2>
           <a3> 4783 </a3>
           <a11> 496 </a11>
      <articlenrs>
      <articlenrs>
           <a1>4783 </a1>
      </articlenrs>
    </targetPosition>
    <targetPosition>
         <articlenrs>
         <a1> 543 </a1>
         <a2> 865 </a2>
         <a3> 643 </a3>
            </articlenrs>
    </targetPosition>
    Thanks,
    Christoph
    Edited by: Christoph G. on Apr 30, 2008 10:20 AM

  • 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

  • Passing Record Values to Obiee Maps

    Hi Users,
    I'm using Obiee10g.
    My Report has following columns: EMPLOYEEID, EMPLOYEE NAME, DEPARTMENT NUMBER, MANAGER, LOCATION, LATITUDE, LONGITUDE
    I Need to pass this values to ESRI Team who will be responisble to Generate maps and design for it.
    They Requested me to send the data.
    Edited by: GRK on Sep 26, 2012 12:45 PM
    Edited by: GRK on Oct 10, 2012 8:24 AM

    Hi Veeravalli,
    I tried to check the links and check the results:
    I created a report with 2 columns.
    went to static - text view (enabled html)
    And, copied the following script:
    <div id="print"></div>
    <div id="obiee_anchor_map"></div>
    <script language="javascript">
    function GetSid(nodeId) {
    var container = document.getElementById(nodeId);
         var sid = null;
         // Code to capture SID
         var x = container;
         do {
              if (x.nodeName == 'TD' || x.nodeName == 'DIV') {
                   sid = x.getAttribute('sid');
                   if (sid != null && sid != '')
                        break;
              x = x.parentNode;
         } while (x != null);
    return sid;
    function GetNqid() {
         var nameEQ = 'nQuireID=';
         var ca = document.cookie.split(';');
              var c = ca;
              while (c.charAt(0)==' ') c = c.substring(1,c.length);
              if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    function PrintInElement(VarToPrint) {
    var myElementField = document.getElementById('print');
    myElementField.innerHTML = myElementField.innerHTML + '<BR>' + VarToPrint;
    var UrlObiee = 'http://' + document.location.host+'/analytics/saw.dll?Go&searchid='+GetSid('obiee_anchor_map')+
    '&format=text&nqid=' + GetNqid();
    PrintInElement(UrlObiee);
    </script>
    It produces: 2 Links (Which are same which indeed has session and nquid) i.e. printing twice:
    http://myname:9704/analytics/saw.dll?Go&searchid=eshv2mmn7sjjko4stfukgrsrv6&format=text&nqid=e41nlbcph6omqbae8cla3mq22hbbsrtsc7df9qizOr07UFe9W00
    Now, when i copy this link to browser:
    I could see, the results and even the java script .
    Actually, i need to send this link to the ESRI team without java script such that it produces the results.
    And, i should not show the link to the users on d/b.
    And, using iframe i need to call the map from them and show on d/b.
    Please, guide me.
    Experts, Guide me.... Thank you.

  • Need to pass values to Internal table in Web dynpro ABAP

    Hi all,
    I need to pass table values for the below FM in web dynpro.
    CALL FUNCTION 'ZFMHR_RWF'
      TABLES
        PB0006        = 
    How do we declare and use Internal tables in WEBDYnpro.
    Regards,
    Vijayakumar S.

    hi,
    u mighnt need to show the internal table value in some table UI in the WebDynpro ABAP. So u can use the method bind_table for the same to bind ur context node with the internal table values.u can declare the internal table in the same  way as u do in the normal ABAP.
      DATA :itab TYPE STANDARD TABLE OF ztable.
    // itab is my internal table which can be of either ztable or standard table type
    now u can use the code wizrd(control+F7) and use the method bind_table .
      DATA: lo_nd_cn_node TYPE REF TO if_wd_context_node,
                lo_el_cn_node   TYPE REF TO if_wd_context_element,
               ls_cn_node        TYPE wd_this->element_cn_node.
    *     navigate from <CONTEXT> to <CN_NODE> via lead selection
      lo_nd_cn_node = wd_context->get_child_node(
      name = wd_this->wdctx_cn_node ).
      lo_nd_cn_node->bind_table( itab ).
    // where cn_node is the context node which is bind to ur table UI and itab is the value which is populated from ur FM
    regards,
    Amit

  • I need to pass values dynamically into schedular

    I need to pass the values into the schedular dynamically like 2 hours ,4 hours ,i minute and soon ...

    Hi,
    If you want the job to be created automatically, you can create a master job which checks every few minutes and creates another job on the fly if needed.
    I don't understand the part about "sending the messages to the admin" but the body of the job can certainly send e-mail or AQ messages.
    Hope this helps,
    Ravi.

  • Passing Char Values to Key figure

    Hi All,
    I have one issue for Inventory cube.
    Every thing is fine with the cube, every thing is fine. since i wanted Last usage date i have enhanced the data source and the date is coming to cube well.
    Since i dont want to put the Date as charecter , i wanted to pass the values of dats(char) to dats(kfg).
    For example : 0APO_DAT this is char date since i need to pass the values to 0GIDATE(kfg). i mapped directly in the transformation level.
    Now the problem is i am getting some dates very well, where ever some cancelled documents(dont know exactly) There the dates are coming as 05/17/4017 instead of 03/09/2009.
    can any one Help me out
    Regards
    Ram
    Edited by: Ram on Mar 10, 2009 10:34 PM

    Ram,
    Could you please check key figure to check what aggregation level it has. It should have Max and make sure that same aggregation level exist in your transformations.
    Regards,
    Pravin

Maybe you are looking for

  • How to get FaceTime on iPhone 4?

    Hello, I reside in India and have an Airtel network connection. However I bought my iPhone 4 about 2 months back from Dubai and it's running the latest iOS 4.3.5 (8L1). Unfortunately, my phone does not have FaceTime option (I have already checked Set

  • Steps for in process inspection

    Hello experts, I am new to QM, I have configured system by reading documents please explain me the  steps to be followed.. I have created a production order Inspection lot is created Confirmation is done what is the next step to be followed I thought

  • Error during the submit process

    I am trying to download an eBook for course, and it does not let me log in with my network username and password. It gives me an "error during the submit process". I have charter internet, and we contacted them to make sure my signal strength was str

  • Returning a whole vector

    I want to print out the objects in vector from a class called repeat in a class called output. Should I have a get method in repeat.Then in my output class have a repeat variable called repeat then say repeat.getVector and then print the items in the

  • Cs5 cd won't install

    just bought the new imac with Lion and for some reason CS5 won't install? I can't get the disk to show up on desktop? Quark 8 doesn't show up either? Help!