About COPA value fieds assignment-- pls help

Dear gurus,
we use COPA in project, SD create a condition type in pricing list, i will create a value fields and assign this condition type to the value fields.
and also we used incoming and actual in COPA. (different record type) . when i tested the new config, i found that:
in incoming sales order, i can get the data for the new value fields from SD condition type, but for the actual sales order which has billed, this field is empty.
this is the first time i meet this case.  i feel a littele confused.
so pls help! your value point will be appreciated!
thanks
Ivan

hi Shammi,
thanks for your quickly response.
in SD partner function we use sales rep, but we never refer to the SBU.
so i still confused, could you explain more details.
thanks & regards
IVAN

Similar Messages

  • COPA - Value Field - Assignment to a G/L account

    Dear All,
    Could anyone kindly let us know what the relationship between the COPA value fields and G/L.???
    (We do not use Sales and Distrubution module in our company)
    Thank you Very much
    Gayani
    Moderator: Please, search SDN

    Hi,
    The configuration part looks to be ok !!  But just check the G/L account you have mentioned, the second one which does get booked, see if it configured in a way to accept the value returned by the condition.
    Check in the order item conditions,  the value returned by the z condition not getting booked.
    Hope it helps.
    Thanks & Regards
    Sadhu Kishore

  • Purchase Category segment1 value expired! Pls help

    Hi all,
    I wanted to know where do we end date the Segment1 Flexfield component in Purchasing Categories which comes up in PO Entry form.
    Also I want to know the setup areas on the same field.
    Actually one of the segment1 in that valueset is expired and is not allowing user to enter the value in the PO Entry form. So our plan is to re-enable that category segment1.
    Pls advise.
    Thanks
    Abhilash
    Message was edited by: AbhilashK

    Hi Abhilash,
    EBS related questions should be posted in workspace:
    https://forums.oracle.com/community/developer/english/e-business_suite
    For EBS General discussion, which will be suitable for all the EBS related queries despite of Functional, Technical and etc you may use:
    https://forums.oracle.com/community/developer/english/e-business_suite/ebs_general_discussion
    I pointed out this to you as I saw a question before by you respect to EBS in this workspace which is of wrong category unfortunately. So please use the above workspace for EBS related queries, and just tagging would not be sufficient.
    Thanks &
    Best Regards,

  • Passing values to BAPI's - pls help

    Hi,
    I have some datas in z-table, I want to pass that datas to IW31 tr-code. I collected all BAPI's and I need help about How to call and Pass the values through BAPI. Pls help me.....
    Thanks in Advance,
    Sunil

    Hi!
    It is an easy working one for me... Depending on your customizing, please change the hardcoded parts, like order type, and so on...
    *& Report Z_BAPI_ALM_ORDER_MAINTAIN_TEST *
    REPORT z_bapi_alm_order_maintain_test.
    DATA: it_methods LIKE STANDARD TABLE OF bapi_alm_order_method,
    wa_methods LIKE LINE OF it_methods.
    DATA: it_header LIKE STANDARD TABLE OF bapi_alm_order_headers_i,
    wa_header LIKE LINE OF it_header.
    DATA: it_operation LIKE STANDARD TABLE OF bapi_alm_order_operation,
    wa_operation LIKE LINE OF it_operation.
    DATA: it_text LIKE STANDARD TABLE OF bapi_alm_text,
    wa_text LIKE LINE OF it_text.
    DATA: et_numbers LIKE STANDARD TABLE OF bapi_alm_numbers,
    wa_numbers LIKE LINE OF et_numbers.
    DATA: gt_return LIKE STANDARD TABLE OF bapiret2.
    START-OF-SELECTION.
    METHODS SECTION
    MOVE '1' TO wa_methods-REFNUMBER.
    MOVE 'HEADER' TO wa_methods-objecttype.
    MOVE 'CREATE' TO wa_methods-method.
    MOVE '%00000000001' TO wa_methods-objectkey.
    INSERT wa_methods INTO TABLE it_methods.
    MOVE '1' TO wa_methods-REFNUMBER.
    MOVE 'OPERATION' TO wa_methods-objecttype.
    MOVE 'CREATE' TO wa_methods-method.
    MOVE '%000000000010010' TO wa_methods-objectkey.
    INSERT wa_methods INTO TABLE it_methods.
    MOVE '1' TO wa_methods-REFNUMBER.
    MOVE '' TO wa_methods-objecttype.
    MOVE 'SAVE' TO wa_methods-method.
    MOVE '%00000000001' TO wa_methods-objectkey.
    INSERT wa_methods INTO TABLE it_methods.
    HEADER SECTION
    MOVE '%00000000001' TO wa_header-orderid.
    MOVE 'D210' TO wa_header-order_type.
    MOVE '2000' TO wa_header-planplant.
    MOVE '19' TO wa_header-mn_wk_ctr.
    MOVE '2000' TO wa_header-plant.
    MOVE 'CUV-SZV-CSUR-ATEM-I...' TO wa_header-funct_loc.
    MOVE '' TO wa_header-equipment.
    MOVE '' TO wa_header-material.
    MOVE 'SAMPLE TEXT HEADER' TO wa_header-short_text.
    INSERT wa_header INTO TABLE it_header.
    OPERATION SECTION
    MOVE '10' TO wa_operation-activity.
    MOVE '' TO wa_operation-sub_activity.
    MOVE '' TO wa_operation-standard_text_key.
    MOVE 'SAMPLE TEXT OPERATION' TO wa_operation-description.
    MOVE '' TO wa_operation-vendor_no.
    MOVE 3 TO wa_operation-quantity.
    MOVE 'KG' TO wa_operation-base_uom.
    INSERT wa_operation INTO TABLE it_operation.
    REFRESH et_numbers.
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
    TABLES
    it_methods = it_methods
    it_header = it_header
    IT_HEADER_UP =
    IT_HEADER_SRV =
    IT_HEADER_SRV_UP =
    IT_USERSTATUS =
    IT_PARTNER =
    IT_PARTNER_UP =
    it_operation = it_operation
    IT_OPERATION_UP =
    IT_RELATION =
    IT_RELATION_UP =
    IT_COMPONENT =
    IT_COMPONENT_UP =
    IT_TEXT = it_text
    IT_TEXT_LINES =
    EXTENSION_IN =
    RETURN = gt_return
    et_numbers = et_numbers
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    CHECK GT_RETURN FOR POSSIBLE FAILURES
    Regards
    Tamá

  • Query-Automatic assignment of Record type to Book of Business-Pls help me

    I have a query about Automatic assignment of record in Book of Business.
    Using 5 record types & 50 regions as a part of Book of Business. You can say 50 sub-books.
    I want to assign these 5 record type to particular Book when to create & modify.
    Eg. When I create new account it should be automatically assigned to Book 1 & later I modify this account for reassignment to new user then it should be automatically added to the new user’s book.
    I need to create workflow for this as Assign to book criteria for both when new record saved & when modified record saved.
    I have tried this & its working; however problem is with the creation of two many workflows.
    50 region (Books) x 5 record types * 2 - Create/modify flow = 500 workflows for one country!
    If I am right then I can assign 1 record type with action as create or modify in 1 book only.
    How to reduce these no. of workflows?
    Pls help me out in this regard.
    Regards
    Mangesh

    Mangesh,
    I am sorry to tell you that there is no quick answer to this but i will say that maybe you need to rethink your book structure and their requirements here.
    I have 4 types and 7 regions so you need to create books to allocate all these on create and also modify. Customers have raised concerns with this to Oracle and they are looking into it but they are along way from completing this. Sorry to spoil your day but i would strongly ask you to consider your books structure before you complete this.
    Otherwise if you are using webservices you could assisgn the book when the record is piped into the CRM and then you only need to complete the modify workflows.

  • Pls help me: about log in

    Dear all,
    I have a created a dynamic page (PHP and mysql) with log in
    (server vehaviour) page. and after user had enter their username
    and password, if succeed they go to new page. in this new page ,
    they can submit news. and my big problem is (sorry iam new bie) how
    i can get their username in this new page that they had entered in
    log in page, i want to search id_user in tabel1( field: id_user,
    username, password) with their username and after got it , i want
    to insert this id_user into table2 (filed: id_user, no_news,
    date_news, news ). I hope my explaination will be understood. tks 4
    any help....

    I don't need the code, you do. :O) Read the instructions
    below. Replace
    the parts of the code that are bad with parts of the code
    thar are good.
    Let's look at the tutorial/post, posted below in it's
    entirety from
    http://friendsofed.infopop.net/2/OpenTopic?a=tpc&s=989094322&f=8033053165&m=324102421&r=32 4102421#324102421.
    1. Log In User needs changes in two places, plus the removal
    of three
    lines. Find the following lines of code
    $GLOBALS['PrevUrl'] = $accesscheck;
    session_register('PrevUrl');Replace them with
    $_SESSION['PrevUrl'] = $accesscheck;2. Then find
    $GLOBALS['MM_Username'] = $loginUsername;
    $GLOBALS['MM_UserGroup'] = $loginStrGroup;Change them to
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;
    3. Finally, DELETE the following lines
    //register the session variables
    session_register("MM_Username");
    session_register("MM_UserGroup");That's it. You're done with
    your Login
    form. You know need to replace a few lines in your logout,
    but we'll wait
    on
    that.===========================Article========================I
    have
    discovered there is a serious bug with the Dreamweaver MX
    2004 User
    Authentication server behaviors when used in conjunction with
    PHP5.
    Basically, the problem is that the DW server behaviors use
    obsolete code
    that appears to work with PHP4, but breaks once deployed on
    PHP5 (with
    register_globals set to the default off setting).
    I have notified Macromedia of the problem, and they have
    logged it as a high
    severity bug, but have given no indication as to when a patch
    will be
    issued. Fortunately, the solution is easily fixed by hand.
    The server
    behaviors affected are Log In User and Log Out User.
    Log In User needs changes in two places, plus the removal of
    three lines.
    Find the following lines of code
    $GLOBALS['PrevUrl'] = $accesscheck;
    session_register('PrevUrl');Replace them with
    $_SESSION['PrevUrl'] = $accesscheck;Then find
    $GLOBALS['MM_Username'] = $loginUsername;
    $GLOBALS['MM_UserGroup'] = $loginStrGroup;Change them to
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;Finally, DELETE
    the following
    lines
    //register the session variables
    session_register("MM_Username");
    session_register("MM_UserGroup");
    In Log Out User, locate these two lines
    session_unregister('MM_Username');
    session_unregister('MM_UserGroup');Replace them with
    unset($_SESSION['MM_Username']);
    unset($_SESSION['MM_UserGroup']);
    NOTE: There is NO need to do this if you are still using
    PHP4, and not
    experiencing any difficulties with User Authentication.
    However, it does
    affect the instructions for Chapters 14 and 15 of Foundation
    Dreamweaver MX
    2004 for anyone switching to PHP5.
    David Powers
    Co-author: Foundation Dreamweaver MX 2004
    "jangade" <[email protected]> wrote in
    message
    news:[email protected]...
    > Sorry, i still don't understand about that tutorial, can
    u explain me more
    > detail pls ( i am using php triad: php 4, mysql 1.3 and
    apache 1.3 ). i
    > give u
    > the code :
    >
    > login page code:
    > <?php require_once('Connections/koneksi.php'); ?>
    > <?php
    > // *** Validate request to login to this site.
    > session_start();
    >
    > $loginFormAction = $_SERVER['PHP_SELF'];
    > if (isset($accesscheck)) {
    > $GLOBALS['PrevUrl'] = $accesscheck;
    > session_register('PrevUrl');
    > }
    > login page :
    >
    > if (isset($_POST['pemakai'])) {
    > $loginUsername=$_POST['pemakai'];
    > $password=$_POST['sandi'];
    > $MM_fldUserAuthorization = "";
    > $MM_redirectLoginSuccess = "sukses_login.php";
    > $MM_redirectLoginFailed = "tmbhdtteknisi.php";
    > $MM_redirecttoReferrer = false;
    > mysql_select_db($database_koneksi, $koneksi);
    >
    > $LoginRS__query=sprintf("SELECT username, password FROM
    tblteknisi WHERE
    > username='%s' AND password='%s'",
    > get_magic_quotes_gpc() ? $loginUsername :
    addslashes($loginUsername),
    > get_magic_quotes_gpc() ? $password :
    addslashes($password));
    >
    > $LoginRS = mysql_query($LoginRS__query, $koneksi) or
    die(mysql_error());
    > $loginFoundUser = mysql_num_rows($LoginRS);
    > if ($loginFoundUser) {
    > $loginStrGroup = "";
    >
    > //declare two session variables and assign them
    > $GLOBALS['MM_Username'] = $loginUsername;
    > $GLOBALS['MM_UserGroup'] = $loginStrGroup;
    >
    > //register the session variables
    > session_register("MM_Username");
    > session_register("MM_UserGroup");
    >
    > if (isset($_SESSION['PrevUrl']) && false) {
    > $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
    > }
    > header("Location: " . $MM_redirectLoginSuccess );
    > }
    > else {
    > header("Location: ". $MM_redirectLoginFailed );
    > }
    > }
    > ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
    4.01//EN"
    > "
    http://www.w3.org/TR/html4/strict.dtd">
    > <html>
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > <title>Selamat Datang</title>
    > .......
    >
    >
    >
    > and new page :
    > <?php
    > //initialize the session
    > session_start();
    >
    > // ** Logout the current user. **
    > $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    > if ((isset($_SERVER['QUERY_STRING'])) &&
    ($_SERVER['QUERY_STRING'] !=
    > "")){
    > $logoutAction .="&".
    htmlentities($_SERVER['QUERY_STRING']);
    > }
    >
    > if ((isset($_GET['doLogout']))
    &&($_GET['doLogout']=="true")){
    > //to fully log out a visitor we need to clear the
    session varialbles
    > session_unregister('MM_Username');
    > session_unregister('MM_UserGroup');
    >
    > $logoutGoTo = "index.php";
    > if ($logoutGoTo) {
    > header("Location: $logoutGoTo");
    > exit;
    > }
    > }
    > ?>
    > <?php
    > session_start();
    > $MM_authorizedUsers = "";
    > $MM_donotCheckaccess = "true";
    >
    > // *** Restrict Access To Page: Grant or deny access to
    this page
    > function isAuthorized($strUsers, $strGroups, $UserName,
    $UserGroup) {
    > // For security, start by assuming the visitor is NOT
    authorized.
    > $isValid = False;
    >
    > // When a visitor has logged into this site, the Session
    variable
    > MM_Username set equal to their username.
    > // Therefore, we know that a user is NOT logged in if
    that Session
    > variable
    > is blank.
    > if (!empty($UserName)) {
    > // Besides being logged in, you may restrict access to
    only certain
    > users
    > based on an ID established when they login.
    > // Parse the strings into arrays.
    > $arrUsers = Explode(",", $strUsers);
    > $arrGroups = Explode(",", $strGroups);
    > if (in_array($UserName, $arrUsers)) {
    > $isValid = true;
    > }
    > // Or, you may restrict access to only certain users
    based on their
    > username.
    > if (in_array($UserGroup, $arrGroups)) {
    > $isValid = true;
    > }
    > if (($strUsers == "") && true) {
    > $isValid = true;
    > }
    > }
    > return $isValid;
    > }
    >
    > $MM_restrictGoTo = "index.php";
    > if (!((isset($_SESSION['MM_Username'])) &&
    > (isAuthorized("",$MM_authorizedUsers,
    $_SESSION['MM_Username'],
    > $_SESSION['MM_UserGroup'])))) {
    > $MM_qsChar = "?";
    > $MM_referrer = $_SERVER['PHP_SELF'];
    > if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
    > if (isset($QUERY_STRING) &&
    strlen($QUERY_STRING) > 0)
    > $MM_referrer .= "?" . $QUERY_STRING;
    > $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar .
    "accesscheck=" .
    > urlencode($MM_referrer);
    > header("Location: ". $MM_restrictGoTo);
    > exit;
    > }
    > ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
    4.01//EN"
    > "
    http://www.w3.org/TR/html4/strict.dtd">
    > <html>
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > <title>Registrasi</title>
    > <link href="css/stylesnew.css" type="text/css"
    media="screen"
    > rel="stylesheet">
    > <!--[if gte IE 5]>
    > <style>
    > #LeftMNav ul a {height: 1em;}
    > #LeftMNav li {float: left; clear: both; width: 100%;}
    > </style>
    > <![endif]-->
    > <style type="text/
    > ........
    >
    > how i can get username that user entered(login page) in
    new page ?
    > pls help me i'm just new bie....
    > tks 4 kind attentions,
    >
    > regds
    >
    >
    >
    >
    >
    >

  • While doing service  in service po we get account assignment error pls help

    while doing services in service po we get error account assignment error (se181) pls help to resolve

    Hi,
    a service line can be never saved WITHOUT the account assignment details (except acc. ***. category U in in the PO item).
    In case the table ESLL will have entry but the accounting tables eskl  has got no entry or has entries with deletion flag, it would be an inconsistent situation.    
    You can set on the screen SAPLMLSK 0200 the deletion flag (ESKL-LOEKZ) for your service account assignment, but without entering a new account assignment information the system would not allow you to leave this screen. When you set the deletion flag for service line in the account assignment detail screen, you must enter right afterwards a new account assignment information in order to leave the screen without the error message 06 408.
    Regards,
    Edit

  • How to assign search help for an input field by fetchign values from an int

    i have an input field ,
    i want to assign search help for the same by fetching values from a table.
    how to achieve this ?

    Using the below ways you can assign search help to a field.
    1) [OVS Search Help|http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp]
    2) [Freely Programmed Search Help|http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help]
    3) Dictonary Help - Use the Data element for that purpose.

  • HT1766 yesterday i connect my iPhone with iTunes then one MSG displayed on screen about backup i ignore that but same time i have lost all my installed app from my iPhone pls help me.

    yesterday i connect my iPhone with iTunes then one MSG displayed on screen about backup i ignore that but same time i have lost all my installed apps incouled my pics and vids from my iPhone pls help me.

    1) ensure iTunes is authorized for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer.

  • Pls Help :JTable Double Value Editing Problem

    hi friends
    as i am new to swings and Jtable pls help me if u can.
    in the code copied below when i start putting value into the Double column of JTable
    a ( .0 ) is appended at the end which is undesirable it should be like that only when the value is
    something like 22.99 and also i want to limit the double value's fractional part to be limited to 2 digits only.
    if this can be done in my Table model itself so that it will work everywhere i use this model
    Pls tell me what exactly do i need, a custom Cell Editor or Cell Renderer. and whether can i do it in the
    Table Model Defination class or whether i can only do it on the Jtable only.
    guys its so confusing.pls help
    if anyone can send a sample code for achieving this it would be of great help
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.text.*;
    public class TableProcessing extends JFrame implements TableModelListener
        JTable table;
        public TableProcessing()
            String[] columnNames = {"Item", "Quantity", "Price", "Cost"};
            Object[][] data =
                {"Bread", new Integer(1), new Double(1.11), new Double(1.11)},
                {"Milk", new Integer(1), new Double(2.22), new Double(2.22)},
                {"Tea", new Integer(1), new Double(3.33), new Double(3.33)},
                {"Cofee", new Integer(1), new Double(4.44), new Double(4.44)}
            DefaultTableModel model = new DefaultTableModel(data, columnNames);
            model.addTableModelListener( this );
            table = new JTable( model )
                //  Returning the Class of each column will allow different
                //  renderers to be used based on Class
                public Class getColumnClass(int column)
                    return getValueAt(0, column).getClass();
                //  The Cost is not editable
                public boolean isCellEditable(int row, int column)
                    if (column == 3)
                        return false;
                    else
                        return true;
            table.setPreferredScrollableViewportSize(table.getPreferredSize());
            JScrollPane scrollPane = new JScrollPane( table );
            getContentPane().add( scrollPane );
         *  The cost is recalculated whenever the quantity or price is changed
        public void tableChanged(TableModelEvent e)
            if (e.getType() == TableModelEvent.UPDATE)
                int row = e.getFirstRow();
                int column = e.getColumn();
                if (column == 1 || column == 2)
                    int    quantity = ((Integer)table.getValueAt(row, 1)).intValue();
                    double price = ((Double)table.getValueAt(row, 2)).doubleValue();
                    Double value = new Double(quantity * price);
                    table.setValueAt(value, row, 3);
        public static void main(String[] args)
            TableProcessing frame = new TableProcessing();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.pack();
            frame.setLocationRelativeTo( null );
            frame.setVisible(true);
    }thank in advance
    jags

    No.
    But further to this try:
    public class MyCustomRenderer  extends javax.swing.table.DefaultTableCellRenderer
              private java.text.DecimalFormat FORMAT_DOUBLE;
              public MyCustomRenderer()
                      FORMAT_DOUBLE = new java.text.DecimalFormat("#, ##0.00");
              public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
                        //NB! you could also set foreground/background here to indicate positive/negative values...
                        if(value.getClass().equals(Double.class))//is this a double?
                                double d = ((Double)value).doubleValue();
                                d = (Double.isNaN(d)||Double.isInfinity(d))?0:d;
                                this.setText(FORMAT_DOUBLE.format(d));
                        else//not a double so let's toString() it...
                               this.setText(""+value);
    }then, using code pasted above, specify a new instance of this class as the default renderer in your
    table.....
    :)

  • Hİ My ipad's screen is black. When it  take charge, I can hear sound but still black. I press and hold both the sleep and home buttons for about 10 to 15 seconds but this doesn't work. Screen still black! PLS HELP ME!


    My ipad's screen is black. When it  take charge, I can hear sound but still black. I press and hold both the sleep and home buttons for about 10 to 15 seconds but this doesn't work. Screen still black! PLS HELP ME!

    How long did you let it charge? It may take 30 minutes before the iPad responds when the battery is completely drained. Let it charge for at least 30 minute using the wall charger. Then rest the iPad. Press and hold both the Home button and the Sleep/Wake button continuously until the Apple logo appears. Then release the button and let the device restart. You will not lose data doing this. It's like a computer reboot.
    If the iPad restarts let it continue to charge until the battery is 100%.
    If the iPad still does not start make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • Column constant value pls help

    COL cnt noprint
    COLUMN  cnt NEW_VALUE rowcountI am using this for select query as below
    ROWNUM cnt, COUNT (*) OVER () cntbut issue is when null rows returned.... this rowcount is not initilized.
    while i am usng for trailer record
    SELECT '* Trailer record *' || '|' || &rowcount
      FROM DUALit is giving error as below
    FROM DUAL
    ERROR at line 2:
    ORA-00936: missing expression
    Pls help
    S

    Solomon Yakobson wrote:
    Post EXACT and COMPLETE snippet of SQL*Plus session showing what you did. I can't reproduce it:
    SQL> COLUMN  cnt NEW_VALUE rowcount
    SQL> SELECT COUNT (*) OVER () cnt
    2    FROM DUAL
    3  /Suppose if cnt gives no record then rowcount is null at that time rowcount is not initiliazed.
    >
    >
    >
    >
    SQL> SELECT '* Trailer record *' || '|' || &rowcount
    2 FROM DUAL
    3 /
    old 1: SELECT '* Trailer record *' || '|' || &rowcount
    new 1: SELECT '* Trailer record *' || '|' || Missing expression this was my error
    >
    '*TRAILERRECORD*'||'
    * Trailer record *|1>
    SQL>
    SY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Pls help me about Runtime.getRuntime().exec("java...")

    I have two applications. One is Client, the other is Platform.
    In the Platform, there are source files packaged into a library named ZtConfig.jar used by Client. If run Client and Platform, two applications can execute normally.
    But if Client is started by user from platform, there is something wrong.
    I noticed the error difficultly with finally catching exception.
    I was puzzled. It is so strange. Pls help me. I list some codes here.
    In Client where finally exception catched:
    import zt.config;
            try {
              xmlFileUrl = new java.net.URL(
                  "file:///e:/Client/src/config/nsr1000.xml");
            catch (IOException ex1) {
              FileLogger.error(ex1.getMessage());
            FileLogger.info("NSR1000Document.setIEDContent", xmlFileUrl.toString());
            try {
              xmlLoader = new XMLConfigLoader(xmlFileUrl);
            finally {
              FileLogger.error("NSR1000Document.setIEDContent",
                               "cannot new XMLConfigLoader object");
              return; // the following codes cannot execute, so have to return here.
    In the XMLConfigLoader, the constructor is
      public XMLConfigLoader(java.net.URL xmlFileUrl) {
        this.xmlFileUrl = xmlFileUrl;
        configDoc = null;
        builder = null;
        xmlDoc = null;
    Platform start Client application using the following code
      Runtime.getRuntime().exec(
                    "java -jar e:/Client/Client.jar");

    I've got it!
    Briefly, it is because classpath setting was overwritten by JBuilder.
    Firstly, I start Platform from JBuilder. In its messages window. The command is
    d:\j2sdk1.4.2_06\bin\javaw -classpath "JBPATH" zt.client.nsr1000.NSR1000App
    Now, classpath environment variable was changed to be JBPATH. While I start
    Client use Runtime.getRuntime().exec("java -jar Client.jar"), it will not run for classpath changed.
    Then, I configured all packages used by Client into JBuilder libraries, including
    Client.jar. And changed codes Runtime.getRuntime().exec("java -jar Client.jar") to be Runtime.getRuntime().exec("java -Xmx128m zt.client.nsr1000.NSR1000App")
    I also changed CLASSPATH windows system environment variable.
    I found this from command console, it can display exceptions. But from JBuilder, there is no exception that can be captured. So debug is difficult.

  • Pls help me about two java virtual machine

    have two applications. One is Client, the other is Platform.
    In the Platform, there are source files packaged into a library named ZtConfig.jar used by Client. If run Client and Platform, two applications can execute normally.
    But if Client is started by user from platform, there is something wrong.
    I noticed the error difficultly with finally catching exception.
    I was puzzled. It is so strange. Pls help me. I list some codes here.
    In Client where finally exception catched:
    import zt.config;
            try {
              xmlFileUrl = new java.net.URL(
                  "file:///e:/Client/src/config/nsr1000.xml");
            catch (IOException ex1) {
              FileLogger.error(ex1.getMessage());
            FileLogger.info("NSR1000Document.setIEDContent", xmlFileUrl.toString());
            try {
              xmlLoader = new XMLConfigLoader(xmlFileUrl);
            finally {
              FileLogger.error("NSR1000Document.setIEDContent",
                               "cannot new XMLConfigLoader object");
              return; // the following codes cannot execute, so have to return here.
            }In the XMLConfigLoader, the constructor is
      public XMLConfigLoader(java.net.URL xmlFileUrl) {
        this.xmlFileUrl = xmlFileUrl;
        configDoc = null;
        builder = null;
        xmlDoc = null;
      }Platform start Client application using the following code
      Runtime.getRuntime().exec(
                    "java -jar e:/Client/Client.jar");

    I've got it!
    Briefly, it is because classpath setting was overwritten by JBuilder.
    Firstly, I start Platform from JBuilder. In its messages window. The command is
    d:\j2sdk1.4.2_06\bin\javaw -classpath "JBPATH" zt.client.nsr1000.NSR1000App
    Now, classpath environment variable was changed to be JBPATH. While I start
    Client use Runtime.getRuntime().exec("java -jar Client.jar"), it will not run for classpath changed.
    Then, I configured all packages used by Client into JBuilder libraries, including
    Client.jar. And changed codes Runtime.getRuntime().exec("java -jar Client.jar") to be Runtime.getRuntime().exec("java -Xmx128m zt.client.nsr1000.NSR1000App")
    I also changed CLASSPATH windows system environment variable.
    I found this from command console, it can display exceptions. But from JBuilder, there is no exception that can be captured. So debug is difficult.

  • Function error! pls help.

    Here is the code:
    CREATE OR REPLACE FUNCTION id_is_good
    (i_student_id IN NUMBER)
    RETURN BOOLEAN
    AS
    v_id_cnt NUMBER;
    BEGIN
    SELECT COUNT(*)
    INTO v_id_cnt
    FROM student
    WHERE student_id = i_student_id;
    RETURN 1 = v_id_cnt;
    EXCEPTION
    WHEN OTHERS
    THEN
    RETURN FALSE;
    END id_is_good;
    Error report:
    ORA-06550: line 5, column 20:
    PL/SQL: ORA-00904: "I_STUDENT_ID": invalid identifier
    ORA-06550: line 2, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 6, column 1:
    PLS-00372: In a procedure, RETURN statement cannot contain an expression
    ORA-06550: line 6, column 1:
    PL/SQL: Statement ignored
    ORA-06550: line 10, column 1:
    PLS-00372: In a procedure, RETURN statement cannot contain an expression
    ORA-06550: line 10, column 1:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    This function run troubleless however it can not run troubleless in my computer, I have database though, I mean my database is ok, and i use sql developer but i dont understand why this code cant run good?? pls help me.
    thanks

    RETURN BOOLEANPerhaps you should read Oracle Doc about returning boolean value in SQL.
    Check the following link ->
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:6263249199595
    Your solution might be something like this if you want to return boolean ->
    CREATE OR REPLACE FUNCTION id_is_good(i_student_id IN NUMBER)
    RETURN BOOLEAN
    IS
      v_id_cnt NUMBER;
    BEGIN
      SELECT COUNT(*)
      INTO v_id_cnt
      FROM student
      WHERE student_id = i_student_id;
      IF v_id_cnt > 0 THEN
         RETURN TRUE;
      ELSE
        RETURN FALSE;
      END IF;
    EXCEPTION
    WHEN OTHERS THEN
      RETURN FALSE;
    END id_is_good;Or, if you want to return the value then ->
    CREATE OR REPLACE FUNCTION id_is_good(i_student_id IN NUMBER)
    RETURN NUMBER
    IS
      v_id_cnt NUMBER;
    BEGIN
      SELECT COUNT(*)
      INTO v_id_cnt
      FROM student
      WHERE student_id = i_student_id;
      RETURN v_id_cnt;
    EXCEPTION
    WHEN OTHERS THEN
      RETURN 0;
    END id_is_good;Hope this will help.
    Regards.
    Satyaki De.

Maybe you are looking for

  • Regardig opening stock

    hi experts, i m an abaper ,i dnt have a functional consultant rt now.i have to develope a report on opening stock of raw materials on date wise basis..which table sud i use so that i can get the date wise opening stock or will i use some logic for th

  • Drawings for a specific project

    Hello PS Gurus please advise to look up all drawings for a specific project. we are looking for a way to look up drawings not related to looking up by change numbers. an you please advise a method and transaction for this. Thanks & regards PY

  • ME51N -  Account Assigment Category Value

    Hi All, My need is, While creating purchase requisition (ME51N) based on purchase requisition type ( combo box value ) in Line Item Account assignment category value should be defaulted. How can i achieve this? Points will be rewarded Thanx in advanc

  • Experience Question

    Hello, i implemented a simple mailer with javamail and all works fine. now the project is for a community with a lot of members and i tested the send performance with following code: MTAtransport = MTAsession.getTransport("smtp"); MTAtransport.connec

  • Freezing during start up - only on admin account

    I have two accounts enabled on my Macbook Pro: One main account which is the admin, and one for my boyfriend to use. A few nights ago I downloaded a pdf file from an email and the computer froze. (the file download could just be a huge coincidence) I