Defaulting dummy bidder

I have to default a dummy Bidder , in BBP_BID_INV
I have added the following code in in DOC CHANGE BADI implementation
    IF et_partner IS INITIAL.
        SELECT SINGLE partner partner_guid FROM but000 INTO wa_dummy WHERE  
         bu_sort1 = 'DUMMY VENDOR'.
        IF sy-subrc EQ 0.
          CLEAR wa_partner.
          MOVE wa_dummy-partner_id   TO wa_partner-partner_id.
          MOVE wa_dummy-partner_guid TO wa_partner-partner_no.
          wa_partner-partner_fct = '00000018'.
          wa_partner-addr_type   = '1'.
          wa_partner-ADDR_ORIGIN = 'A'.
          MOVE is_header-guid TO wa_partner-p_guid.
          APPEND wa_partner TO et_partner.
        ENDIF.
      ENDIF.
This works fine , but as I see the document in BBP_PD , the same bidder is repeated many times , in the partner table. Perhaps as many times as the BADI is hit, as it_partner and et_partner are empty everytime.
To ensure the defaulting happens only once,  i used the FM
CALL FUNCTION 'BBP_PD_BID_GETDETAIL'
    EXPORTING
      i_guid          = is_header-guid
      i_with_itemdata = 'X'
    IMPORTING
      e_header        = wa_header_tab
    TABLES
      e_partner       = it_bidder.
and enclosed the above defaulting code under the condition
IF it_bidder IS INITIAL.
This works fine in SAPGUI , i can see the default bidder on screen , but this doesn't happen in ITS.
Any clue where i am going wrong.
Thanks in advance .
Regards
Alok Pathak

any inputs , anybody ?

Similar Messages

  • SAP AC 5.3 - CUP (user default)

    Dear All,
    we want to create a request for DELETE ACCOUNT so when we delete a user it will be deleted in all the relevant systems.
    can we use the user default for that ? if yes, how ?
    thanks
    Yudit

    Yudit,
    Do you submit this request manually ?
    If you want to delete the user account , try to trigger this via Hr triggers ,when a employee is  withdrawn in the SAP HR system
    you can  create a rule which could trigger an action to delete the user ID in all the SAP systems , you can add  all the sytems where you want  the user deleted,if the user doesnt exist in certain systems , CUP puts out an error message in the audit log as user doesnt exist in XXX system so it doesnt matter .
    If you are submitting this delete request  manually in CUP and you want delete the user in the portal as well at he same time  you delete him on the backend .
    what you can do is define a dummy role for the backend system where you want to delete the user and map this dummy role to the role or group on the portal system and use this dummy role in defualt configuration  for request type DELETE
    so whenever you submit a request for delete account for a specfic system default Dummy role will be picked and the Portal system will be picked as well due to the role mapping in this way you can achieve this.
    Regards
    Gerry

  • AMD FireGL GPU + Creative Cloud app = Color Depth & other Issues

    Hello,  I am writing this post to help anyone who may have ran into the same issues I am seeing with my AMD FireGL graphics adapter when using the Adobe Creative Cloud app on a windows 7 PC.
    I ran into a problem installing and setting up the Creative Cloud app on my new workstation that has an AMD FireGL graphics processor.
    First off, the system is new (dell precision m4800, with an AMD FireGL V M5100 GPU), and has all the most current drivers and updates available.. that is to say, this is not a hardware issue.
    The system operates just fine outside of the Creative Cloud app, but when I installed and attempted to login to Creative Cloud for access to download Illustrator, etc., the Creative Cloud app would open up and then only display a blank white page.  No graphics, no data, just white.  
    When I got stuck at this point I called Adobe support and spoke to a rep who had seen the issue before. The rep worked around the blank white page in CC by loading the windows device manager and manually disabling the AMD FireGL GPU device to re-install and login to the Creative Cloud app.   This temporarily forced windows to use the default/dummy VGA graphics driver supplied with windows.   With windows using the dummy 256-color vga driver we were able to get the creative cloud app running and get me logged in to install my design software. HOORAY!--or so I thought....
      At this point I assumed the issue was resolved, but I found that there was a new issue popping up every time I rebooted my system.  Windows would load and log me in using the 32bit color depth setting, but as soon as the Adobe Creative Cloud app started up, my color mode would switch to 256 colors... D`oh!  
    Obviously I don't want to run at only 256 colors, and neither should you!  Adobe, why does my color depth change to 256 colors every time the Creative Cloud app is loaded?
    If you want to temporarily reset the color depth to 32bit, you can go to Control Panel -> Display -> Adjust Resolution -> Advanced Settings -> Monitor Tab -> & select "True Color (32bit)" from the Colors drop-down menu.    Using this method will allow Adobe Creative Cloud app to continue running 24/7, however this is only a temporary fix, which will need to be applied every time the system is rebooted, or any time a user logs off then back in.. Frankly, its a bit of a PITA, so why bother?
    The permanent fix is simple.. go to Start -> & do a Search for "msconfig".   Once found, run the msconfig utility and switch to the "Startup" tab, where you will be presented with a list of boot time startup items.  Find the one labeled "Adobe Creative Cloud" and disable it by removing the check mark from the corresponding check box.   Then click OK.  You will be warned that a restart may be required.. go ahead and re-start.   This time, when the system boots, Adobe Creative Cloud will not load, and your color depth will remain at 32bit.  YAY!
    If need be you can always load up Creative Cloud manually from the start menu if you need it, but it will knock your color depth back to 256 colors.  Thus far i have had zero issues using adobe photoshop or illustrator without first loading the Creative Cloud app, so it isn't required.  If i need updates or need to access other features within the Creative Cloud app i can, but it doesnt need to run 24/7 to use other adobe apps.
    The short explanation is that Adobe is failing to fully and properly support the AMD FireGL graphics platform.  The adobe rep i spoke to essentially said the same thing, but made certain to blame the graphics device and not adobe software--sure thing boss.   The truth is that the FireGL and its varients have been on the market as long or longer than the nvidia products that are supported fully by adobe. 
    It is clear that Adobe has made a choice not to fully support AMD Workstation graphics (FireGL) since not only is the Creative Cloud app broken and causing problems, but also no graphics acceleration features work in any of my installed adobe apps.. I basically get a message saying "please us a supported graphics processor".  Seriously, how is FireGL not "Supported"?
    I am not an AMD or FireGL fanboy.. Frankly I cant stand AMD graphics adapters and I genuinely prefer nVidia on my personal systems.  At home, my 5 year old $100 nVidia gaming card is fully supported in all the adobe apps..
    At work, however, I have no choice what hardware is provided to me and this lack of FireGL support has negatively impacted my productivity more than once.  Admittedly, nvidia has much more market share than AMD in the workstation graphics realm, but that does not mean adobe should just ignore AMD completely!
    Hopefully this post will shed some light on issues with Adobe Creative Cloud app and FireGL graphics cards that others may be experiencing.
    Good Luck!

    Minor correction...  I called my GPU the FireGL, which is the old market name..  The current, proper market name is FirePro.. same line, just new branding after AMD purchased ATI.

  • Table(cast())

    Hi All,
    I am using Oracle 9i and I have an Oracle Type which has been created as follows
    create or replace TYPE "Dummy" AS VARRAY (500) OF VARCHAR2(50)
    It is assigned a set of values as follows:
    oracle.sql.ArrayDescriptor desc = oracle.sql.ArrayDescriptor.createDescriptor("Dummy", stmt.getConnection());
    oracle.sql.ARRAY newArray;
    newArray = new oracle.sql.ARRAY(desc, stmt.getConnection() , filter); //where filter contains the values here
    I am trying to execute the following statement but I get an error.
    SELECT process_instance_id, workstep_name, status FROM WORKSTEP
    WHERE PROCESS_INSTANCE_ID IN table(cast(newarray)))
    AND WORKSTEP_NAME = 'X';
    When I execute this I get a ORA-00936: missing expression
    Can you pls point out what's wrong here and how I can cast a varray as a table and use it in an "IN" clause?
    Thanks in advance.
    AD.

    user604168 wrote:
    Hi All,
    I am using Oracle 9i and I have an Oracle Type which has been created as follows
    create or replace TYPE "Dummy" AS VARRAY (500) OF VARCHAR2(50)
    It is assigned a set of values as follows:
    oracle.sql.ArrayDescriptor desc = oracle.sql.ArrayDescriptor.createDescriptor("Dummy", stmt.getConnection());
    oracle.sql.ARRAY newArray;
    newArray = new oracle.sql.ARRAY(desc, stmt.getConnection() , filter); //where filter contains the values here
    I am trying to execute the following statement but I get an error.
    SELECT process_instance_id, workstep_name, status FROM WORKSTEP
    WHERE PROCESS_INSTANCE_ID IN table(cast(newarray)))
    AND WORKSTEP_NAME = 'X';
    When I execute this I get a ORA-00936: missing expression
    Can you pls point out what's wrong here and how I can cast a varray as a table and use it in an "IN" clause?
    Thanks in advance.
    AD.I'm not sure why you're using a VARRAY, i would personally use a NESTED TABLE
    create or replace TYPE better_Dummy AS table OF VARCHAR2(50);
    /As i find them more flexible.
    Also, i would be quite sad to come into an environment and see that someone had created a database object using double quotes like you have to preserve case sensitivity (it's really a pain in the ***).
    That being said, here's the syntax you're looking for.
    create or replace TYPE Dummy AS VARRAY (500) OF VARCHAR2(50);
    ME_XE?declare
      2    in_dummy  dummy default dummy('a','b');
      3    x         number;
      4  begin
      5
      6    select count(*)
      7    into x
      8    from dual
      9    where 'a' in (select column_value from table(cast(in_dummy as dummy)));
    10
    11    dbms_output.put_line(x);
    12  end;
    13  /
    1
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.14
    ME_XE?

  • Java EE tutorial, problem with ANT populating database

    Hi!
    I have followed the instructions in the Java EE tutorial to set up the enviroment but when I execute the command "ant create tables" I get this output:
    C:\javaeetutorial5\examples\web\bookstore1>ant create-tables
    Buildfile: build.xml
    -pre-init:
    init:
    check:
    tools:
    start-db:
    BUILD FAILED
    C:\javaeetutorial5\examples\bp-project\app-server-ant.xml:140: The directory you specified does not existI have changed in the build.properties file to this:
    # The SDK's default installation on Windows is c:/Sun/SDK
    # The Application Server's default installation on Windows is
    # c:/Sun/AppServer
    javaee.home=C:\Sun\SDK
    javaee.tutorial.home=C:\javaeetutorial5
    # machine name (or the IP address) where the applications will be deployed.
    javaee.server.name=localhost
    # port number where the app-server is accessed by the users
    javaee.server.port=8080
    # port number where the admin server of the app-server is available
    javaee.adminserver.port=4848
    # Uncomment the property j2ee.server.username,
    # and replace the administrator username of the app-server
    javaee.server.username=admin
    # Uncomment the property j2ee.server.passwordfile,
    # and replace the following line to point to a file that
    # contains the admin password for your app-server.
    # The file should contain the password in the following line:
    # AS_ADMIN_PASSWORD=adminadmin
    # Notice that the password is adminadmin since this is
    # the default password used by the glassfish app-server installation.
    javaee.server.passwordfile=${javaee.tutorial.home}\examples\common\admin-passwo rd.txt
    appserver.instance=server
    # Uncomment and set this property to the location of the browser you
    # choose to launch when an application is deployed.
    # On Windows and Mac OS X the default browser is used.
    #default.browser=\Applications\Firefox.app\Contents\MacOS\firefox-bin
    # Database vendor property for db tasks
    db.vendor=javadb
    # Digital certificate properties for mutual authentication
    keystore=${javaee.tutorial.home}\examples\jaxws\simpleclient-cert\support\clien t_keystore.jks
    truststore=${javaee.home}\domains\domain1\config\cacerts.jks
    keystore.password=changeit
    truststore.password=changeitAny idea which directory the error refers to?
    I�m using Netbeans 5.5 and have a connection to my local mysql database.

    Ok, this is the build.xml from bookstore1:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- You may freely edit this file. See commented blocks below for -->
    <!-- some examples of how to customize the build. -->
    <!-- (If you delete it and reopen the project it will be recreated.) -->
    <project name="bookstore1" default="default" basedir=".">
        <description>Builds, tests, and runs the project bookstore1.</description>
        <property name="is.war.module" value="true" />
        <property name="uses.db.sql.file" value="true"/>
        <path id="common.jars">
            <filelist dir="../bookstore" files="build.xml"/>
        </path>
        <macrodef name="iterate">
            <attribute name="target"/>
            <sequential>
                <subant target="@{target}" failonerror="false">
                    <buildpath refid="common.jars"/>
                </subant>
            </sequential>
        </macrodef>
        <import file="../../bp-project/main.xml" />
        <target name="-pre-deploy" unless="netbeans.home">
            <antcall target="create-tables"/>
        </target>
        <target name="-pre-compile" unless="netbeans.home" depends="init,build-common,copy-common-jars"/>
        <target name="build-common" unless="netbeans.home" depends="init">
            <iterate target="default"/>
        </target>
        <target name="copy-common-jars" unless="netbeans.home" depends="init">
            <mkdir dir="${build.web.dir}/WEB-INF/lib"/>
            <copy file="${reference.bookstore.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
        </target>
    </project>And the build.xml in bookstore looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- You may freely edit this file. See commented blocks below for -->
    <!-- some examples of how to customize the build. -->
    <!-- (If you delete it and reopen the project it will be recreated.) -->
    <project name="bookstore1" default="default" basedir=".">
        <description>Builds, tests, and runs the project bookstore1.</description>
        <property name="is.war.module" value="true" />
        <property name="uses.db.sql.file" value="true"/>
        <path id="common.jars">
            <filelist dir="../bookstore" files="build.xml"/>
        </path>
        <macrodef name="iterate">
            <attribute name="target"/>
            <sequential>
                <subant target="@{target}" failonerror="false">
                    <buildpath refid="common.jars"/>
                </subant>
            </sequential>
        </macrodef>
        <import file="../../bp-project/main.xml" />
        <target name="-pre-deploy" unless="netbeans.home">
            <antcall target="create-tables"/>
        </target>
        <target name="-pre-compile" unless="netbeans.home" depends="init,build-common,copy-common-jars"/>
        <target name="build-common" unless="netbeans.home" depends="init">
            <iterate target="default"/>
        </target>
        <target name="copy-common-jars" unless="netbeans.home" depends="init">
            <mkdir dir="${build.web.dir}/WEB-INF/lib"/>
            <copy file="${reference.bookstore.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
        </target>
    </project>And the main.xml in \bp-projects looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Copyright 2005-2006 Sun Microsystems, Inc.  All rights reserved.  You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at:
    http://developer.sun.com/berkeley_license.html
    $Id: main.xml,v 1.2 2006/04/12 17:20:13 ie139813 Exp $ -->
    <!-- main.xml: this is the file that should be included by the project
         build files. It will figure out whether it is running from inside Netbeans
         or command line and include appropriate tasks.
         @Author: Inderjeet Singh -->
    <project name="main" default="dummy-default">
      <property file="build.properties"/>
      <property value="1.5" name="default.javac.source"/>
      <property value="1.5" name="default.javac.target"/>
      <condition property="common-ant-tasks-file"
              value="${ant.file}/../nbproject/build-impl.xml"
              else="${ant.file.main}/../command-line-ant-tasks.xml">
        <and>
        <isset property="netbeans.home"/>
        <available file="${ant.file}/../nbproject/build-impl.xml"/>
        </and>
      </condition>
      <import file="${common-ant-tasks-file}"/>
      <target name="dummy-default"/>
    </project>

  • Error occured when using flash 9 in firefox

    I installed Flash CS3 Professional (trial) for doing
    assignment. After that, I think flash player also be upgraded to
    version 9. It's no problem in IE, but when browsing website with
    using firefox, it keeps pop up windows which ask
    "Where is the debugger or host application running?", you can
    choose localhost or other machine. Actually, i run it in my hom pc,
    so it should be "localhost".After keep answering the same
    question(it seems be asked for each flash), then it pop up "A
    connection to the Debugger or Profiler cound not be established by
    Adobe Flash Player 9."
    how can I fix this problem??
    please give me a hand. Thanks a lot.

    Sorry, there is a bug in the developer guide on page 183, it says to use " and you need to use '. Hopefully The specified item was not found. or Thomas Jung will get it fixed.
    The code below activates successfully.
    John
    context test2 {
        entity table1 
            key field1 : String(10); 
            field2 : String(10) default 'dummy';

  • Combining multiple tables: Patent wise associates for a given Lab

    Oracle 10g
    Request your help in re-writing the below query correctly
    I have the following tables
    CREATE TABLE  "ADDLAB"
       (     "VERSIONNO" NUMBER(*,0),
         "LABID" VARCHAR2(20),
         "LABNAME" VARCHAR2(60),
         "LABSTARTDATE" DATE,
         "LABSTATUS" VARCHAR2(20),
         "LABENDDATE" DATE,
         "OPERATOR" VARCHAR2(20),
         "FROMDATE" DATE,
         "TODATE" DATE,
         "SRCHFIELD" VARCHAR2(20),
         "PARENTLABID" VARCHAR2(20),
         "LABCLOSEREASON" VARCHAR2(1000),
         "LABHIDDENDATE" VARCHAR2(20),
          CONSTRAINT "PK_B34" PRIMARY KEY ("LABID", "LABHIDDENDATE") ENABLE
    CREATE TABLE  "ADDPROJECT"
       (     "VERSIONNO" NUMBER(*,0),
         "PROJID" VARCHAR2(20),
         "PROJNAME" VARCHAR2(60),
         "PROJSTARTDATE" DATE,
         "PROJSTATUS" VARCHAR2(20),
         "PROJENDDATE" DATE,
         "PROJENDTYPE" VARCHAR2(20),
         "PROJENDREASON" VARCHAR2(1000),
         "UCPROJECTMANAGER" VARCHAR2(20),
         "FROMDATE" DATE,
         "TODATE" DATE,
         "SRCHFIELD" VARCHAR2(20),
         "OPERATOR" VARCHAR2(20),
         "PARENTPROJID" VARCHAR2(20),
         "PROJHIDDENDATE" VARCHAR2(20),
          CONSTRAINT "PK_B36" PRIMARY KEY ("PROJID", "PROJHIDDENDATE") ENABLE
    CREATE TABLE  "PROJECTTOLABASSOCIATION"
       (     "VERSIONNO" NUMBER(*,0),
         "PROJLABASSOID" NUMBER(9,0),
         "PROJID" VARCHAR2(20),
         "LABID" VARCHAR2(20),
         "PROJLABSTARTDATE" DATE,
         "STATUS" VARCHAR2(20),
         "ENDDATE" DATE,
         "LABHIDDENDATE" VARCHAR2(20),
         "PROJLABHIDDENDATE" VARCHAR2(20),
         "PROJHIDDENDATE" VARCHAR2(20),
          CONSTRAINT "PK_B37" PRIMARY KEY ("LABID", "PROJID", "PROJLABHIDDENDATE") ENABLE
    CREATE TABLE  "ADDPATENT"
       (     "VERSIONNO" NUMBER(*,0),
         "PATID" NUMBER(9,0),
         "PATTITLE" VARCHAR2(250),
         "PATSTATUS" VARCHAR2(20),
         "PATAPPDATE" DATE,
         "PATSTATUSDATE" DATE,
         "PATENTREJECTWITHDRAWNREASON" VARCHAR2(1000),
         "PATNO" VARCHAR2(20),
         "SRCHFIELD" VARCHAR2(20),
         "FROMDATE" DATE,
         "TODATE" DATE,
         "OPERATOR" VARCHAR2(20),
         "PATENTGEOGRAPHY" VARCHAR2(20),
         "PAPERTYPE" VARCHAR2(20) DEFAULT 'dummy',
         "PATENTURL" VARCHAR2(200),
          CONSTRAINT "PK_A67" PRIMARY KEY ("PATID") ENABLE,
          CONSTRAINT "UQ_PATENTTITLE" UNIQUE ("PATTITLE") ENABLE
    CREATE TABLE  "PATENTTOPROJECTASSOCIATION"
       (     "VERSIONNO" NUMBER(*,0),
         "PATENTPROJASSOID" NUMBER(9,0),
         "PATID" NUMBER(9,0),
         "PROJID" VARCHAR2(20),
         "PATENTPROJHIDDENDATE" VARCHAR2(20),
         "STATUS" VARCHAR2(20),
         "STARTDATE" DATE,
         "ENDDATE" DATE,
         "PROJHIDDENDATE" VARCHAR2(20),
          CONSTRAINT "PK_A91" PRIMARY KEY ("PATID", "PROJID", "PATENTPROJHIDDENDATE") ENABLE
    CREATE TABLE  "PATENTASSOCIATES"
       (     "VERSIONNO" NUMBER(*,0),
         "PATASSOID" NUMBER(9,0),
         "PATID" NUMBER(9,0),
         "ASSOCIATEID" NUMBER(9,0),
          CONSTRAINT "PK_B67" PRIMARY KEY ("ASSOCIATEID", "PATID") ENABLE
    CREATE TABLE  "ADDASSOCIATE"
       (     "VERSIONNO" NUMBER(*,0),
         "ASSOCIATEID" NUMBER(9,0) NOT NULL ENABLE,
         "ASSOCIATENAME" VARCHAR2(100) NOT NULL ENABLE,
         "CTOJOINDATE" DATE,
         "STATUS" VARCHAR2(20),
         "ENDDATE" DATE,
         "SRCHFIELD" VARCHAR2(20),
         "OPERATOR" VARCHAR2(20),
         "FROMDATE" DATE,
         "TODATE" DATE,
          CONSTRAINT "PK_B23" PRIMARY KEY ("ASSOCIATEID") ENABLE
       )Now , I need to get the list of all the patent wise associates for each lab.
    I have wirtten the following query. Though I am getting the correct results, I am getting duplicate values. Each record is getting displayed atleast 10times. Hence if there are 4 associates for a given patent, it is returning ateleast 40 records. I tried UNIQUE. Zero results were displayed.
    query2 = "SELECT tn1.associateName AS name " +
    "FROM AddLab al, AddProject ap, AddPatent p, ProjecttoLabAssociation pl, PatenttoProjectAssociation pp, " +
    "AddAssociate tn1, PatentAssociates tn2 " +
    "WHERE " +
    "al.labID=pl.labID " +
    "AND ap.projID=pl.projID " +
    "AND pl.projID=pp.projID " +
    "AND p.patID=pp.patID " +
    "AND pl.status = 'Active' " +
    "AND tn1.associateID = tn2.associateID " +
    "AND tn2.patID = '" + rs.getString("patID") + "' " +
    "order by al.labID";
    try
    stmt = conn.createStatement();
    rs2 = stmt.executeQuery(query2);
    String associateNames = "";
    while(rs2.next())
    associateNames += rs2.getString("ID") + ";\n";
    }

    Venkadesh,
    I am getting the below error -
    2012-07-24 10:44:28,278 ERROR [STDERR] (http-0.0.0.0-8022-19) java.sql.SQLException: ORA-00979: not a GROUP BY expression
    2012-07-24 10:44:28,279 ERROR [STDERR] (http-0.0.0.0-8022-19)   at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    2012-07-24 10:44:28,279 ERROR [STDERR] (http-0.0.0.0-8022-19)   at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
    2012-07-24 10:44:28,279 ERROR [STDERR] (http-0.0.0.0-8022-19)   at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
    2012-07-24 10:44:28,279 ERROR [STDERR] (http-0.0.0.0-8022-19)   at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)
    2012-07-24 10:44:28,279 ERROR [STDERR] (http-0.0.0.0-8022-19)   at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112)
    2012-07-24 10:44:28,279 ERROR [STDERR] (http-0.0.0.0-8022-19)   at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:351)
    2012-07-24 10:44:28,279 ERROR [STDERR] (http-0.0.0.0-8022-19)   at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:896)
    2012-07-24 10:44:28,279 ERROR [STDERR] (http-0.0.0.0-8022-19)   at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:383)
    2012-07-24 10:44:28,280 ERROR [STDERR] (http-0.0.0.0-8022-19)   at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:986)
    2012-07-24 10:44:28,280 ERROR [STDERR] (http-0.0.0.0-8022-19)   at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1125)
    2012-07-24 10:44:28,280 ERROR [STDERR] (http-0.0.0.0-8022-19)   at org.jboss.resource.adapter.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:226)

  • Lockbox- GLT2 201 "Balancing feild Profit center not filled"

    Hello,
    I am trying to configure lockbox with document splitting active. When Upload my file its posting to the Lockbox clrg account but errors out when I try to post to the GL account. GLT2 201 "Balancing feild Profit center not filled". Please let me know if I am missing something.
    Regards
    Siva

    Step 1. SPRO-FS-GL Accounting- Business transactions-Doc Splitting-Edit Constants for Non Assigned processes - New Entries - Assignment of Profit Centers - Give your default/dummy profit center.
    Step 2. SPRO-FS-GL Accounting- Business transactions-Doc Splitting- Extended Doc Splitting - Assign Document Split - Check the Std Acct Assignement - Record your Constant in the field.
    Should resolve your issue.

  • Sample Data Scrambling Scripts

    Hi,
    I am looking for a generalised data scrambling script with algorithm for scrambling columns having amount, SSN, text, telephone number, address etc.
    Thanks
    AT

    Amit, we do this:
    1. Scrub the emails. for sure, replace the '@' with a '#' in the email in case you have any auto notification stuff setup. But this a double edged sword. You might swamp your own mail server with failed emails. but better than being tagged as a spammer.
    2. SSNs and phones are set to a default dummy value.
    3. we have a sequence for first/last name and we use 'firt'||firstseq.nextval to create first names and same for last names.
    3. We keep the street address, ZIP and state to the real value as we need authentic data for search purposes.
    As far as scripting is concerned, I have a table with 4 columns: owner, table_name and column_name and scrub_value.
    Say the values are:
    owner='SCOTT', TABLE_NAME='EMP', COLUMN_NAME='SSN', SCRUB_VALUE='111-11-1111'
    owner='SCOTT', TABLE_NAME='EMP', COLUMN_NAME='FIRST_NAME', SCRUB_VALUE='FirstName'||firstname_seq.nextval
    generate on the fly using a cursor
    update scott.emp set ssn='111-11-1111', first_name='FirstName'||firstname_seq.nextval
    I just loop thru the table and get statements scrub dynamically.

  • Problems with javaee 5 tutorial

    Hello!
    I'm trying to follow Building the Examples on the Command-Line Using Ant of the Java EE 5 tutorial by sun.
    I downloaded the tutorial bundle but when I try to run
    ant create-topicI get
    create-jms-resource:
         [exec] Invalid user or password
         [exec] CLI137 Command create-jms-resource failed.
         [exec] Result: 1I already changed the properties file as requested.
    Also I'm on a mac
    thanks for any help, I'm deperated

    I've reinstalled the whole netbeans/glassfish bundle. He didn't ask for any username or password for glashfish and when I check at the preferences the username is admin and the number of characters of the password is the same as adminadmin so there is zero chance of typos now.
    (Needless to say I still get the same error)
    As for files, I checked the build.xml and under ant-topic there was
      <target name="create-topic"
        description="create JMS topic">
        <antcall target="create-jms-resource">
            <param name="jms.restype" value="javax.jms.Topic" />
            <param name="jms.resource.property" value="Name=PhysicalTopic" />
            <param name="jms.resource.name" value="jms/Topic" />
        </antca
      </target>I don't know how to interpret this but I see no passwords mentioned. However in this file there is an import --> <import file="../../../bp-project/main.xml"/>
    I checked this file and this was what it had:
    <project name="main" default="dummy-default">
        <property file="build.properties"/>
        <property value="1.5" name="default.javac.source"/>
        <property value="1.5" name="default.javac.target"/>
        <condition property="common-ant-tasks-file"
                   value="${ant.file}/../nbproject/build-impl.xml"
                   else="${ant.file.main}/../command-line-ant-tasks.xml">
            <and>
                <isset property="netbeans.home"/>
                <available file="${ant.file}/../nbproject/build-impl.xml"/>
            </and>
        </condition>
        <import file="${common-ant-tasks-file}"/>
        <condition property="jaxb-tasks-file" value="${ant.file.main}/../jaxb-ant.xml">
            <isset property="is.jaxb.app"/>
        </condition>
        <import file="${jaxb-tasks-file}" optional="true"/>
        <target name="dummy-default"/>
    </project>I also went ahead and checked the build.properties file
    # Uncomment the property javaee.server.username,
    # and replace the administrator username of the app-server
    javaee.server.username=admin
    # Uncomment the property javaee.server.passwordfile,
    # and replace the following line to point to a file that
    # contains the admin password for your app-server.
    # The file should contain the password in the following line:
    # AS_ADMIN_PASSWORD=adminadmin
    # Notice that the password is adminadmin since this is
    # the default password used by GlassFish.
    javaee.server.passwordfile=${javaee.tutorial.home}/examples/common/admin-password.txt
    # Digital certificate properties for mutual authentication
    keystore=${javaee.tutorial.home}/examples/jaxws/simpleclient-cert/support/client_keystore.jks
    truststore=${javaee.home}/domains/domain1/config/cacerts.jks
    keystore.password=changeit
    truststore.password=changeitIn the admin-password.txt the pasword is adminadmin
    I can't see anything wrong with any of these files.
    What could I do next?
    Thanks in advance

  • Reversing a journal

    Hi,
    We had made some doc postings to couple of accts where in these accts had entry made to default/dummy profit center ,field status group(G001)
    But after this this acct was changed to have a CO assignment/cost object requirement in entries .Now the user wants to reverse the 1st entry made to default/dummy Profit center.
    Highly appreciated if someone could help us out on this

    Hi,
    Dave,first of all thanks for your help..
    I solved it by all trial and error types..
    what i did was i created a default acct assignment for this cost element in CO .i used a dummy cost center for this purpose
    Then i posted or rather transferred the FI docs to CO using the transfer program.for some of the docs i gt the msg:doc already exist.In this case i deleted the CO postings using report RKACOR20 and then ran the program again to pull it back to CO
    Once i gt them inside CO ,i manually reposted the costs out of the dummy cost center into correct cost centers
    Next as the final step to erase my initial PC effect i created PC documnents dr/cr dummy PC with correct PC /GL account as you had suggested...so now things look clean
    Thanks a lot for your help..
    cheers
    Shyam

  • CreateEntityManagerFactory() throws NullPointerException for ejb jse client

    Dear experts!
    I am trying to create a java standard edition client, to test outside the weblogic server, my ejb 3 entities, declared as shown in the following persistence.xml.
    The java code, and stacktrace follows also. I have read about some relevant bugs in eclipselink back in 2006, or 7 or 8 and mostly unanswered threads :
    CreateEntityManagerFactory null pointer exception and
    Returned null to createEntityManagerFactory about tomcat and oc4j.
    Persistence.createEntityManagerFactory() throw NullPointerException in oc4j
    I am using JDeveloper 11g Studio Edition Version 11.1.1.3.0, Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660.
    Any helping hand available?
    Thank you very much in advance!
    NA
    package chapter12javaseclient;
    import actionbazaar.buslogic.BidException;
    import actionbazaar.persistence.Bid;
    import actionbazaar.persistence.Bidder;
    import actionbazaar.persistence.Item;
    import java.util.HashMap;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    import org.eclipse.persistence.config.EntityManagerProperties;
    public class PlaceBidBeanJavaSE {
    private static EntityManagerFactory emf;
    private static EntityManager em;
    public static void main(String[] args) {
    String userId= "idiot";
    Long itemId = new Long (1);
    Double bidPrice = 2001.50;
    try {
    if (emf == null){
    emf = Persistence.createEntityManagerFactory("actionBazaar");
    System.out.println("EntityManagerFactory created!");
    getEntityManager();
    System.out.println("EntityManager created!");
    addBid(userId,itemId,bidPrice);
    commitTransaction();
    } finally {       
    // close the EntityManager when done
    em.close();
    emf.close();
    private static void getEntityManager() {
    HashMap emProps = new HashMap();
    emProps.put(EntityManagerProperties.JDBC_USER, "ab");
    emProps.put(EntityManagerProperties.JDBC_PASSWORD, "ab");
    System.out.println("Creating entity manager");
    em = emf.createEntityManager(emProps);
    em.getTransaction().begin();
    private static void commitTransaction() {
    em.getTransaction().commit();
    private static Long addBid(String userId, Long itemId, Double bidPrice) throws BidException {
    Item item = em.find(Item.class,itemId);
    if (item == null)
    throw new BidException("Invalid Item Id");
    Bidder bidder = em.find(Bidder.class,userId);
    if (bidder == null)
    throw new BidException("Invalid Bidder Id");
    Bid bid = new Bid();
    bid.setItem(item);
    bid.setBidBidder(bidder);
    bid.setBidPrice(bidPrice);
    em.persist(bid);
    return bid.getBidId();
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0">
    <persistence-unit name="actionBazaar" transaction-type="RESOURCE_LOCAL">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <class>actionbazaar.persistence.Bid</class>
    <class>actionbazaar.persistence.Item</class>
    <class>actionbazaar.persistence.User</class>
    <class>actionbazaar.persistence.Bidder</class>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    <properties>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="eclipselink.target-database" value="Oracle11"/>
    <property name="javax.persistence.jdbc.driver"
    value="oracle.jdbc.OracleDriver"/>
    <property name="javax.persistence.jdbc.password"
    value="ab"/>
    <property name="javax.persistence.jdbc.url"
    value="jdbc:oracle:thin:@hera:1521:orcl"/>
    <property name="javax.persistence.jdbc.user" value="ab"/>
    <property name="eclipselink.logging.level" value="ALL"/>
    </properties>
    </persistence-unit>
    </persistence>
    The log output follows:
    C:\Oracle\Middleware\jdev_11gR1\jdk160_18\bin\javaw.exe -client -classpath C:\MyWork\11g\ejb3inaction\.adf;C:\MyWork\11g\ejb3inaction\Chapter12JavaSEClient\classes;C:\MyWork\11g\ejb3inaction\Chapter12\classes;C:\Oracle\Middleware\jdev_11gR1\modules\javax.ejb_3.0.1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\com.oracle.toplink_1.0.0.0_11-1-1-3-0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\org.eclipse.persistence_1.0.0.0_2-0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.toplink_11.1.1\javax.persistence_2.0_preview.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.jsf_1.0.0.0_1-2.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.enterprise.deploy_1.2.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.interceptor_1.0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.jms_1.1.1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.jsp_1.1.0.0_2-1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.jws_2.0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.activation_1.1.0.0_1-1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.mail_1.1.0.0_1-4-1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.xml.soap_1.3.1.0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.xml.rpc_1.2.1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.xml.ws_2.1.1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.management.j2ee_1.0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.resource_1.5.1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.servlet_1.0.0.0_2-5.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.transaction_1.0.0.0_1-1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.xml.stream_1.1.1.0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.xml.registry_1.0.0.0_1-0.jar;C:\Oracle\Middleware\jdev_11gR1\modules\javax.persistence_1.0.0.0_1-0-2.jar;C:\Oracle\Middleware\jdev_11gR1\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\jdev_11gR1\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc6.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-collation.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-lcsd.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-mapping.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-servlet.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-translation.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-utility.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;C:\Oracle\Middleware\jdev_11gR1\oracle_common\modules\oracle.dms_11.1.1\dms.jar -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\jdev_11gR1\wlserver_10.3\server\lib\DemoTrust.jks chapter12javaseclient.PlaceBidBeanJavaSE
    [EL Finest]: 2010-06-25 09:23:10.495--ServerSession(229902)--Thread(Thread[main,5,main])--Begin predeploying Persistence Unit actionBazaar; session file:/C:/MyWork/11g/ejb3inaction/Chapter12JavaSEClient/classes/_actionBazaar; state Initial; factoryCount 0
    [EL Finest]: 2010-06-25 09:23:10.518--ServerSession(229902)--Thread(Thread[main,5,main])--property=eclipselink.orm.throw.exceptions; default value=true
    [EL Finer]: 2010-06-25 09:23:10.532--ServerSession(229902)--Thread(Thread[main,5,main])--Searching for default mapping file in file:/C:/MyWork/11g/ejb3inaction/Chapter12JavaSEClient/classes/
    [EL Finer]: 2010-06-25 09:23:10.537--ServerSession(229902)--Thread(Thread[main,5,main])--Searching for default mapping file in file:/C:/MyWork/11g/ejb3inaction/Chapter12JavaSEClient/classes/
    [EL Config]: 2010-06-25 09:23:10.652--ServerSession(229902)--Thread(Thread[main,5,main])--The access type for the persistent class [class actionbazaar.persistence.Item] is set to [PROPERTY].
    [EL Config]: 2010-06-25 09:23:10.696--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to many mapping element [method getCategorySet] is being defaulted to: class actionbazaar.persistence.Category.
    [EL Config]: 2010-06-25 09:23:10.702--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [method getBids] is being defaulted to: class actionbazaar.persistence.Bid.
    [EL Config]: 2010-06-25 09:23:10.71--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [method getSeller] is being defaulted to: class actionbazaar.persistence.Seller.
    [EL Config]: 2010-06-25 09:23:10.71--ServerSession(229902)--Thread(Thread[main,5,main])--The access type for the persistent class [class actionbazaar.persistence.User] is set to [PROPERTY].
    [EL Config]: 2010-06-25 09:23:10.711--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [method getCategories] is being defaulted to: class actionbazaar.persistence.Category.
    [EL Config]: 2010-06-25 09:23:10.716--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to one mapping element [method getBillingInfo] is being defaulted to: class actionbazaar.persistence.BillingInfo.
    [EL Config]: 2010-06-25 09:23:10.717--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to one mapping element [method getContactInfo] is being defaulted to: class actionbazaar.persistence.ContactInfo.
    [EL Config]: 2010-06-25 09:23:10.718--ServerSession(229902)--Thread(Thread[main,5,main])--The access type for the persistent class [class actionbazaar.persistence.Bidder] is set to [PROPERTY].
    [EL Config]: 2010-06-25 09:23:10.72--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [method getBids] is being defaulted to: class actionbazaar.persistence.Bid.
    [EL Config]: 2010-06-25 09:23:10.721--ServerSession(229902)--Thread(Thread[main,5,main])--The access type for the persistent class [class actionbazaar.persistence.Bid] is set to [PROPERTY].
    [EL Config]: 2010-06-25 09:23:10.721--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [method getBidBidder] is being defaulted to: class actionbazaar.persistence.Bidder.
    [EL Config]: 2010-06-25 09:23:10.721--ServerSession(229902)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [method getItem] is being defaulted to: class actionbazaar.persistence.Item.
    [EL Config]: 2010-06-25 09:23:10.722--ServerSession(229902)--Thread(Thread[main,5,main])--The alias name for the entity class [class actionbazaar.persistence.Item] is being defaulted to: Item.
    [EL Config]: 2010-06-25 09:23:10.746--ServerSession(229902)--Thread(Thread[main,5,main])--The alias name for the entity class [class actionbazaar.persistence.Bidder] is being defaulted to: Bidder.
    [EL Config]: 2010-06-25 09:23:10.746--ServerSession(229902)--Thread(Thread[main,5,main])--The alias name for the entity class [class actionbazaar.persistence.User] is being defaulted to: User.
    [EL Config]: 2010-06-25 09:23:10.753--ServerSession(229902)--Thread(Thread[main,5,main])--The table name for entity [class actionbazaar.persistence.Bidder] is being defaulted to: USERS.
    [EL Config]: 2010-06-25 09:23:10.753--ServerSession(229902)--Thread(Thread[main,5,main])--The discriminator column name for the root inheritance class [class actionbazaar.persistence.Bidder] is being defaulted to: DTYPE.
    [EL Config]: 2010-06-25 09:23:10.755--ServerSession(229902)--Thread(Thread[main,5,main])--The primary key column name for the inheritance class [class actionbazaar.persistence.Bidder] is being defaulted to: USER_ID.
    [EL Config]: 2010-06-25 09:23:10.755--ServerSession(229902)--Thread(Thread[main,5,main])--The foreign key column name for the inheritance class [class actionbazaar.persistence.Bidder] is being defaulted to: USER_ID.
    [EL Config]: 2010-06-25 09:23:10.758--ServerSession(229902)--Thread(Thread[main,5,main])--The alias name for the entity class [class actionbazaar.persistence.Bid] is being defaulted to: Bid.
    Exception in thread "main" java.lang.NullPointerException
         at chapter12javaseclient.PlaceBidBeanJavaSE.main(PlaceBidBeanJavaSE.java:43)
    Process exited with exit code 1.

    Thank you for your reply!
    The client now works correctly. It seems that the line
    em = emf.createEntityManager(emProps);//
    throws an exception when no argument is given for em = emf.createEntityManager();// emProps missing!
    There was also a warning in jdev editor, about the line you mentioned:
    <property name="eclipselink.target-server" value="WebLogic 10"/>
    Carry on with your good work!
    The updated persistence.xml and java source code shown below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0">
    <persistence-unit name="actionBazaar" transaction-type="RESOURCE_LOCAL">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <class>actionbazaar.persistence.Bid</class>
    <class>actionbazaar.persistence.Item</class>
    <class>actionbazaar.persistence.User</class>
    <class>actionbazaar.persistence.Bidder</class>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    <properties>
    <property name="eclipselink.target-database" value="Oracle11"/>
    <property name="javax.persistence.jdbc.driver"
    value="oracle.jdbc.OracleDriver"/>
    <property name="javax.persistence.jdbc.password"
    value="29E8BD11B89A62E3862F19C4F84B7DB0"/>
    <property name="javax.persistence.jdbc.user" value="ab"/>
    <property name="eclipselink.logging.level" value="ALL"/>
    <property name="eclipselink.orm.validate.schema" value="true"/>
    <property name="javax.persistence.jdbc.url"
    value="jdbc:oracle:thin:@hera:1521:orcl"/>
    </properties>
    </persistence-unit>
    </persistence>
    package chapter12javaseclient;
    import actionbazaar.buslogic.BidException;
    import actionbazaar.persistence.Bid;
    import actionbazaar.persistence.Bidder;
    import actionbazaar.persistence.Item;
    import java.util.HashMap;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    import org.eclipse.persistence.config.EntityManagerProperties;
    public class PlaceBidBeanJavaSE {
    private static EntityManagerFactory emf;
    private static EntityManager em;
    private static Hashtable emProps = new Hashtable();
    public static void main(String[] args) {
    String userId= "idiot";
    Long itemId = new Long (2);
    Double bidPrice = 2002.50;
    try {
    if (emf == null){
    emf = Persistence.createEntityManagerFactory("actionBazaar");
    System.out.println("EntityManagerFactory created!");
    getEntityManager();
    System.out.println("EntityManager created!");
    addBid(userId,itemId,bidPrice);
    commitTransaction();
    } finally {       
    // close the EntityManager when done
    em.close();
    emf.close();
    private static void getEntityManager() {
    try {
    System.out.println("Creating entity manager");
    em = emf.createEntityManager(emProps);// if argument is missing exception is thrown!
    em.getTransaction().begin();
    } catch (Exception ne) {
    // TODO: Add catch code
    ne.printStackTrace();
    private static void commitTransaction() {
    em.getTransaction().commit();
    private static Long addBid(String userId, Long itemId, Double bidPrice) throws BidException {
    Item item = em.find(Item.class,itemId);
    if (item == null)
    throw new BidException("Invalid Item Id");
    Bidder bidder = em.find(Bidder.class,userId);
    if (bidder == null)
    throw new BidException("Invalid Bidder Id");
    Bid bid = new Bid();
    bid.setItem(item);
    bid.setBidBidder(bidder);
    bid.setBidPrice(bidPrice);
    em.persist(bid);
    return bid.getBidId();
    NA
    [http://nickaiva.blogspot.com/]

  • Best software to install Virtual Windows

    Hi everyone,
    I want to install windows on my Mac. I don't want to use bootcamp and partition the hard disk. I want to go with the other option: Virtual Windows. As far as I know there are three options: 1- VMware, 2- Parallel desktop and 3- Virtual box
    I am not clear which one is the best. I go through a lot of comparison that can be found everywhere but I couldn't arrive in a good conclusion. These comparisons usually go deep into technical details and I can't understand what they imply! I am fine with Mac and I just want Windows for some simple tasks that sometimes is not easy to find an alternative for in Mac. So, which one do you think is the best for me?
    Thanks in advance.

    1 are without any comparison the biggest player on virtualisation
    2 have a long OS X history and integrate well with OS X and support running a bootcamp partition as a virtual machine too
    3 is free and works perfectly well for most people needs
    no matter what you choose you will not be able to run fancy 3d games or 3d demanding cad applications as with virtual machines the video card seen by windows will be a default "dummy" generic video card which is just the virtual machine passing on the draw requests to the host operating system

  • Rules based ATP: characteristics substitution (with restrictions)

    Dear Experts,
    We are dealing with the following challenge: we are performing a characteristics based ATP check in SCM (e.g. ATP check on Length Class, Quality Grade et cetera) based on a sales order in ECC. We are using single-unit batches, so each batch consists of one piece of finished product (in our situation one roll of carpet). Besides characteristic values for characteristics Length Class and Quality Grade each batch has a characteristic value for the characteristic Dye Lot, refering to the original production batch.
    In most cases a customer won't require a specific Dye Lot, on the other hand, because of quality requirements, goods for one sales order should be delivered from one and the same Dye Lot.
    We were thinking to solve this by means of a default dummy value for Dye Lot which will be used as input for Rules Based ATP. By means of rules the default dummy value will be replaced by any possible value available for Dye Lot. However, the restriction that total required volume should be covered from one and the same Dye Lot remains. Within Rule Control it is possible for product/location substitutions to create such a restriction: "Start (first product in the substitution list): The substitution list is restricted to the first element in the substitution list; that is, it contains only one entry." (see for more info[http://help.sap.com/saphelp_scm50/helpdata/en/3a/967337e68ae526e10000009b38f889/frameset.htm|http://help.sap.com/saphelp_scm50/helpdata/en/3a/967337e68ae526e10000009b38f889/frameset.htm]). As far as we know this is not possible for characteristics substitution.
    Our questions:
    - Is any of you familiair with this subject (i.e. Characteristics dependent ATP for Mill and comparable industries) and aware of a possible solution to our challenge?
    - What effects are expected with regards to performance? (All Dye Lot values together create a large list; are all possible values considered in ascending order or is list first filtered for the right volume w.r.t. the required volume? What's the logic behing this?)
    FYI: We have the following installation:
    - SAP ECC 6.0 Industry Solution Discrete Industry & Mill Products (IS DIMP)
    - SAP SCM 5.0
    Regards,
    APOtester
    Edited by: APO Tester on Jun 17, 2008 1:55 PM

    Hi,
    Please follow the link
    Re: Rules based product substitution in STO
    Thanks,
    Pavan Verma

  • Printer tray selection VS2010

    We have the following questions regarding windows printer default tray determining tray to print from:
    <br><br>
    1. When we set m_reportClass.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.FormSource, it defaults back to Auto (we can see that when we debug, it simply ignores the command) - why is that, and which option should we use to get the printer to use PrinterDefaultTray?
    <br><br>
    2. Default Printer impacts rpt. file even though "No Printer" is checked in the Page Setup dialog - so the default printer set on the developer PC opening the Page Setup of a .rpt file (not making a change, just opening) will change the file. Why is that and what change is made?
    <br><br>
    3. We have made a default 'dummy' printer on the developer pc which is used when opening the .rpt file. If a similar printer with the same name does not exist on the PC printing the report, we cannot control the tray that is prints from.
    <br><br>
    Is there a viewer that can show what has been changed inside an .rpt file to better understand what is happening to the file when it is opened in VS2010?
    <br><br>
    We are experiencing an issue with Crystal Reports VS2010 when trying to print reports to a specific tray. We have recently upgraded from .net 1.1 to .net 4.0 and in relation to this we also upgraded the CR version.
    <br><br>
    In the previous version we were able to setup windows printers with a specific default tray and when printing to this windows printer, the default tray of this windows printer was used. We have a range of printers being used in a client windows forms application, so we need to be able to continue letting the windows printer definition determine which tray to use. Preferable we would like to set PaperSource to UsePrinterDefaultTray, but that option does not seem to exist (or we have not found it yet). We have found another solution, but would like to understand why it works so we know that it is a viable solution.
    <br><br>
    The application is based on creating a report using the CrystalDecisions.CrystalReports.Engine.ReportClass. The example below has been shortened for readability:
    <br><br>
    CrystalDecisions.CrystalReports.Engine.ReportClass m_reportClass = new new EKRB007A();<br>
    // create/get data for report<br>
    // u2026<br>
    m_reportClass.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4;<br>
    m_reportClass.FormatEngine.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4;<br>
    <br><br>
    m_reportClass.SetDataSource(this.dataSet);<br><br>
    <br><br>
    CrystalDecisions.Shared.PageMargins pm = new CrystalDecisions.Shared.PageMargins(<br>
                                    this.getA4InvoicePrinterOriginalHorizontalAlignment(), <br>
                                    this.getA4InvoicePrinterOriginalVerticalAlignment(),   <br>
                                    m_reportClass.PrintOptions.PageMargins.rightMargin,    <br>
                                    this.getA4InvoicePrinterOriginalVerticalAlignment()     );<br>
    <br>
    m_reportClass.PrintOptions.ApplyPageMargins( pm );<br>
    <br>
    // The name of the windows printer to use is read from parameters.<br>
    m_reportClass.PrintOptions.PrinterName = this.getA4InvoicePrinterCopy(); // here it will return 'InvoicePrinter'<br>
    <br>
    m_reportClass.PrintToPrinter(<br>
            1,<br>
            true,<br>
            1,<br>
            m_reportClass.FormatEngine.GetLastPageNumber( new CrystalDecisions.Shared.ReportPageRequestContext()));<br><br>
    The printer has the 'No Printer' set in the Page Setup dialog as we have different printers with different number of trays, so we need to be able to specify the printer at runtime (according to the VS2010 CR documentation, there should be two dialogs - Print Setup and Page Setup, but in VS2010, we can only find the Page Setup, and it includes some of the options from the old Print Setup dialog).
    <br><br>
    Developer A, has two printers: printer 'Generic Text' set to default and printer 'InvoicePrinter' (the one to print from as read from the paramter in the above code). The 'Generic Text' is a generic text printer with no trays and the 'InvoicePrinter' is an OKI printer with two trays.<br><br>
    Developer B, has printer 'InvoicePrinter' set as default.<br><br>
    Developer C, has two printers: printer 'SalesList' set to default and printer 'InvoicePrinter'<br><br>
    Developer A sets up printer 'InvoicePrinter' to print in tray 1 (and 'Generic Text' is default printer). Then opens the .rpt file and compiles. If a print is made on the developer PC, it prints to the correct tray. We can change 'InvoicePrinter' to tray 2 and again it prints correctly. However, if the same .dll is deployed on Developer B's PC, and a print is made, it always uses the same tray even though the windows printer is changed (it actually uses the 'InvoicePrinter', but it ignores the tray it is configured to use). The same is the case for Developer C's PC.
    <br><br>
    We have tried to set m_reportClass.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.FormSource and m_reportClass.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Auto, but it has no impact.
    <br><br>
    If Developer B adds a printer called 'Generic Text' (even though it is not to be used) AND sets this printer to be the default printer, then it works exactly as on Developer A's PC - meaning that the windows printer tray definition of 'InvoicePrinter' is used correctly.
    <br><br>
    Our solution rigth now is to install a 'dummy' printer on all developer PCs and on all client PCs. This printer must be set as default printer on developer PCs so when the Page Setup of any .rpt file is opened (yes, just opening it changes the file), the new file generated will be based on the 'Generic Text' printer. We will then change the default printer on client PCs just before printing to the 'Generic Text' printer and set it back to their 'normal' default afterwards.
    <br><br>
    In my dev team we all agree that this is not the optimal solutions, so any suggestions will be well received.
    Edited by: Visual Reporting ApS on Oct 17, 2011 12:08 PM

    Use the InProc RAS SDK, not CR SDK. More functional, same licensing.
    See the following forum threads:
    |Re: Using printReportOptions.BinName, Tray Printing
    Re: Printer Tray Selection
    Re: Custom Paper Size & Orientation Problem
    Re: 8.5 x 5.5 paper size in VS2010 with Basic Crystal report
    Re: How to print a report in landscape?
    And don't forget to do more searching. Also, sample InProc RAS apps are [here|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples].
    An intro to InProc Ras:
    [How to Use The RAS SDK .NET With In-Process RAS Server|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32]
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for

  • Creative Zen 32GB White Screen

    I've started having a problem in the last 2 days with my Creative Zen 32GB. I've had the player since July 2010. The only problems I've really had with the player have been some minor freeze-ups, but other than that, everything else has been smooth s

  • Transfering data from Iphone 3Gs to a computer

    Hi, (this is my first post on these forums :P) how can i prevent itunes from deleting all my data from my Iphone. I heard that you can download some software, but is there an "apple way" of doing this. By the way, I really love apple products but can

  • Opening Title Sequence - Technical & Aesthetic Ideas?

    I am about to embark on a Project and am working out the details of the opening title sequence. Here's what I envision. The sequence opens with a still image. Slowly, blue paint drips down from the top of the frame and finally covers the still image.

  • Dynamic discovery and invocation in RI

    Hi, I am trying to find a method in reference implementation to dynamically discover and invoke web services. I appreciate that this has already been implemented through opensource Axis, uuid4j and wsdl4j, but I am interested to see if there is any s

  • When I use foxfire, the opened tab is too small to be useful.

    The box is so small that I must use the side bars constantly to read anything at all. it is frustrating and confusing. What can I do to get the entire screen instead of just a part of it. It is about 4 x 4 on my MacBook Pro. I can see my entire deskt