Expense Report Export does not create Invoice in AP

Hello,
I have created several expense reports in AP (Running EBS R12, I am not using iExpenses), but when I use the Expense Report Export request, the invoices are not created. I have looked online and found some plausible solutions. None of them have worked: I've made sure the Employee payment method is set up; the Usage rules for payables are also set up for Employee Expenses in the payment processing transaction type. In the Payables Option screen, I have selected the Automatic Employee as a Supplier option.
Here's the Expense Report Export log:
Payables: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
APXEXPER module: Expense Report Export
Current system time is 29-APR-2013 11:09:53
**Starts**29-APR-2013 11:09:54
**Ends**29-APR-2013 11:09:55
Start of log messages from FND_FILE
Begin Receipts Management - Holds
Process Hold Each Scenario
Determine whether to place Holds
Process Hold All Scenario
Determine whether to place Holds
Process Hold BothPay Scenario
Determine whether to place Holds
Process Obsolete Holds
Obsolete Holds
Obsolete Both Pay Holds
Begin Processing Individual expense reports
Fetching expense report...
Expense Report Number : **110**
Transfer Attachments option(Y/N):Y
Fetching expense report...
Expense Report Number : **REEMBOLSO 25ABR2013**
Transfer Attachments option(Y/N):Y
Fetching expense report...
Expense Report Number : **TEST_ASTRID_EXPENSE**
Transfer Attachments option(Y/N):Y
Fetching expense report...
Expense Report Number : **TEST_EXPENSE_AGSV**
Transfer Attachments option(Y/N):Y
Fetching expense report...
Expense Report Number : **101**
Transfer Attachments option(Y/N):Y
Fetching expense report...
Credit Card Expenses Fetched = 0
Credit Card Invoices Created = 0
Call Payables Open Interface
Expenses Fetched = 5
Invoices Created = 0
End of log messages from FND_FILE
Executing request completion options...
------------- 1) PRINT   -------------
Printing output file.
Request ID : 4105067      
Number of copies : 0      
Printer : noprint
Finished executing request completion options.
Concurrent request completed successfully
Current system time is 29-APR-2013 11:09:55
What else do I need to do? Am I missing something?
Thanks in advance,
Astrid

I found the answer and I am posting it here in case someone else needs it:
You need to run the Expense Report Export with the Debug Switch on (you can find this under the request's parameters). When the output is ready, just select "View Log..." and search for the "REJECT CODE"; it will let you know what went wrong with your expense report. In my case, the suppliers I was using had invalid liability accounts. As soon as I updated them, the invoices were generated.
Regards,
Astrid

Similar Messages

  • Report RCCLROUT does not create any output

    Hi experts,
    I hope someonw can help me on the following incident:
    Running report RCCLROUT from se80, I do not get any output.
    However, the report#s description says:
    *& Creation of routing IDOCs to a given selection                      *
    *& This program selects to an input given via the selection screen the *
    *& corresponding routing data from the database. Then the function     *
    *& module for creation of routing idocs is called.                     *
    *& In general this report is called from the report RCCLMDAT, but it   *
    *& can also be used for its own.                                       *
    I read the source code an found out, that the selection is not used.
    In my simple understanding, just the function call should be un-commended.
    *&   Event START-OF-SELECTION
    START-OF-SELECTION.
    *CALL FUNCTION 'CLOI_ROUTING_READ'
    *     EXPORTING
    *          date_fr   =  date_fr
    *          date_to   =  date_to
    *          lot_fr    =  lot_fr
    *          lot_to    =  lot_to
    *          mestyp    =  mestyp
    *          logsys    =  opt_sys
    *     TABLES
    *          matnr_ro  =  matnr_ro
    *          werks_ro  =  werks_ro
    *          rout_data =  t_mapl
    *     EXCEPTIONS
    *          others    = 1.
    *&   Event END-OF-SELECTION
    end-of-selection.
    As nobody changed the report and it is last used by SAP, I woder myself about how to get my LOIROUT02 EDI File....
    BTW: all of the other reports in this development class are working fine.
    I'd be thankefull for any response...
    Data of SAP: 4.6C;
    Data of Report:
    Title       Generate Routing IDocs                                     
    Original language      DE   German                                                                               
    Created                29.01.1997       SAP                            
    Last changed by        01.04.1998       SAP                            
    Status                 Active                                                                               
    Type                  Executable program                              
    Status                                                                
    Application           PPC                                             
    Authorization groups                                                  
    Development class     CLOI                  for logistics optimization
    Logical database                                                      
    Selection screen

    Thank you very much for your quick response.
    I have implemented Userexits for Planed Order, Production Order and Work Center to fill my extension segments.
    The Settings are defined correct and the Data (Files) are created for the above and the BOM Files.
    (BOM s are also used in standard)
    Only the Routings (in Standard) are not working correct.
    I have no RFC components and therefore nothing to configure. All of the other settings did work (at least) for
    - LOPLO01
    - LOPRO01
    - LOIBOM01
    - LOIWCS01
    I will try to use FUB CLOI_ROUTING_SEND instead.
    If this works, than it's a bug of the report as far as is see.
    FUB CLOI_ROUTING_SEND works fine!!!
    Any ideas?
    kind regards
    Christoph
    Edited by: Christoph Huber on Dec 1, 2008 10:21 AM

  • Expense Report Export Program keeps on running normally for hours

    Hi and assalam o alay kum Gurus
    I am facing a problem in creating of invoice through expense report export program, I create expense report and run the program "Expense Report Export" but the issue is the program keeps on running for several hours we also raised SR for this issue but no solution provided after 6 months.
    We are currently on R 12.1.2 can any one please guide me what to do, maybe any some one faced the same issue before, I really need your help just to check whether I missed any setup part or this is some kind of bug.
    Best Regards
    Danish.

    Did you ever find a solution to this question? My internet expense templates are set to receipts are required for CASH and CREDIT CARD over a certain amount. Also, internet expense setup and admin is set to place the report on hold if receipt has not been received. I ran the Expense Report Export and they imported even though receipts were not received. Thank you.

  • Expense Report Export  - Payment Method is invalid

    Hi all,
    We are using 12.1.3 . We entered data for creating invoices via Payables > Invoice > Entry > Expense Reports. After submitted Expense Report Export with source - Payables Expense Reports no invoices was created. We can see in Expenses: Export Results/JSP/ the error : Payment Method is invalid. Any idea how to debug this? We have already payment methods defined and their statuses are 'Active'.
    Thanks in advance,
    Bahchevanov.

    Hi all,
    When creating an employee we have checked the option each employee to be a supplier too. But when trying to find that employee as supplier/or even as employee/ we received no rows as result via Suppliers JSP... Any ideas how is that possible?
    Thanks,
    Bahchevanov.

  • Expense Reports Which Do Not Require ReceiptS, Request AP to Review

    Expense Reports Which Do Not Require Receipts And Have Justification Entered Request AP To Review
    Expense Reports Which Do Not Require Receipts And Have Justification Entered Request AP To Review
    We am getting an error in the workflow for an five expense report.
    The workflow is stopped at "Request AP To Review For Spending Policy Compliance"
    I have looked in metalink for this particular scenario. And have come up with Note: 273784.1
    In reading the note. Can not follow the fix.
    If anyone has come across this issue. Please provide with an explanation how to resolve issue

    I found the answer and I am posting it here in case someone else needs it:
    You need to run the Expense Report Export with the Debug Switch on (you can find this under the request's parameters). When the output is ready, just select "View Log..." and search for the "REJECT CODE"; it will let you know what went wrong with your expense report. In my case, the suppliers I was using had invalid liability accounts. As soon as I updated them, the invoices were generated.
    Regards,
    Astrid

  • Adobe After Effects CC 2014 Multi-machine rendering does not create RCF after Collect-File

    This was working in the previous release.  After going through all of the steps to perform a multi-machine render, not only does it say it is limiting it to 5 machines instead of the usual 99 (and I have over 100 cores on the render farm) but "Collect Files" (File/Dependencies/Collect Files) does not create the Render Control File (RCF) that kicks off the process on the other machines, like it did before and is supposed to do.
    This release was supposed to fix the 32 core limitation on render nodes (my server has 48), but now does nothing at all.
    Anyway, I assume there is a check box somewhere that says "do something" that hasn't been checked and another that says "Maybe my machine has more than 5 cores", and I would appreciate being steered in the direction of these new mis-features.
    Just as background, the 48 core server does show the little TV screen that monitors the watch folder, and I know for a fact that process looks for the "RCF" file.  Looking at the directory specified for "collect files", I can see that no RCF file is created, only 1 file, a report.txt file which contains this information is produced:
    Report created:
      7/9/2014 1:54:12 AM
    Project name: highup.aep
    Source files collected to:
      P:\temp\highup folder
    Source files collected: All
    Collected comps: 
      Thomas Falke - High Again High On Emotion)
    Number of collected files:  1
    Size of collected files:  63.4 MB
    Collected source files:
      C:\Users\Jeff K\Videos\Down\2014-2015\Thomas Falke - High Again High On Emotion).mp4
    Rendering plug-ins:
      Classic 3D
    Effects used:  1
    Effect:  Detail-preserving Upscale

    The dialog box has been slightly refactored.  You must click "Allow watch folder rendering" and then all is good.  Hope this helps anyone else.  Thanks to Rafil at customer support chat for this.

  • Payment Wizard Does not create the File

    Hi I am trying to run the payment wizard and in the final step it says it ran successful and create the outgoing payments but it does not create the payment file for the bank.
    Step 1
                Start a new Payment run
    Step 2
               payment type : out going
               payment method : bank transfer
               File Path : Go to Desktop and file name is test
    Step3
              Select the business partner
    Step 4
             Select the date range
    Step 5
            Select the payment method
    Step 6
            Select the Invoices
    Step 7
            Execute
    It says successfully Executed the payment and create outgoing payment for the business partner.
    But it does not create the payment file (test in the Desktop)
    Please help me!!!
    Thanks
    Sanjaya

    Hi Sanjaya,
    Check the link
    Payment Wizard
    Payment Wizard Run does not create Payment/Check
    Payment Wizard/Engine - creation of Bank File
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • Report Name does not come when converted to HTML format.

    We are using Report Builder 10.1.2.3.0 to convert a .rep file to HTML. We need the HTML output file to feed to a reports to xls converter.
    Problem is, the html output does not have the report name. Report name (and also date, time. user, page etc.) are in the margin section. For some reason, it wont print the report name in the html. It works fine when I run it in the builder.
    Here is a graphic of the actual outputs: http://postimage.org/image/uio1x32gt/
    Why is this??? The property palette for a label that is printing in all pages (like Date ) is the same as for the report name (GL EXTRACT DETAIL REPORT), BUT it does not appear in the HTML output???
    Any help would be greatly appreciated.
    PS: We use rwrun.exe with desformat=HTML.

    amitphynyl wrote:
    hi,
    have you tried another label for the header of your report.Hi Amit, I tried that, and you are right.
    I created a simple text boilerplate in the margin , on top of the report name. And when we generate the HTML it comes in every page properly.
    The property palettes of the 2 texts are EXACTLY the SAME.
    So why doesn't the old text (with report name) does NOT appear and ONLY the new text appear????
    Cos, we are trying to generate an MS Excel version of every report. For this, we use a tool called rep2excel, and it users as in input an HTML file. So, we have to generate the HTML from the rep and feed it to that.
    So, since we have 200 odd reports, we will have to change all of them, that is why.
    Here is the output (HTML file): http://www.freeimagehosting.net/newuploads/dgrip.gif

  • Save as does not Create PDF Compatible File even when the creare pdf compatible files is on, Illustrator CC 2014

    save as does not Create PDF Compatible File even when the creare pdf compatible files is on, Illustrator CC 2014

    When I open is adobe acrobat I get this message.
    "This is an Adobe® Illustrator® File that was
    saved without PDF Content.
    To Place or open this  le in other
    applications, it should be re-saved from
    Adobe Illustrator with the "Create PDF
    Compatible File" option turned on. This
    option is in the Illustrator Native Format
    Options dialog box, which appears when
    saving an Adobe Illustrator  le using the
    Save As command."

  • MRP does not creates Shcedule Line

    I have a valid scheduling agreement LPA in place. Scheduling Agreement is approved and released status.
    I have source list also maintained for same scheduling agreement with long validity and MRP indicator as 2 - Create Schedule line automatically. 
    I am running MRP using following parameters in MD02.
    Processing key          NETCH               Net Change in Total Horizon
    Create purchase req.    3                   Planned orders
    Delivery schedules      3                   Schedule lines
    Create MRP list         1                   MRP list
    Planning mode           3                   Delete and recreate planning data
    Scheduling              2                   Lead Time Scheduling and Capacity Planni
    Even schedule line and other parameters maintained properly, MRP creates planned order and does not creates Schedule Line automatically. Material Master is maintained MRP Type PD, Lot Size as Replenishment to maximum stock level, Safety stock, No strategy and availability on.
    What I am doing wrong? With same setting in other system it is working perfectly fine.
    Any feedback appreciated.
    Thanks
    PP

    Hi
    Check whether the Agreement Open Target value .
    If the target quantity was completed . so system will not create the Schedule lines for the material
    2. If you mainatian the open period in the smk.
    so system will create the planned order instead of schedule agreement. check

  • Appstudio exporter does not contain a valid signature

    HI I am trying to install AppStudio plugin to work with InDesign but Extension Manager is throwing the following error...
    appstudio exporter does not contain a valid signature !
    I have updated all software.
    (I am downloading new apps in the background)
    I have a CC subscription

    Hi,
    please click "tools"->"preferences", unselect "Allow Extension Manager to access Internet" option, and then try to install it again.

  • Mail does not create new emails based on the highlighted mailbox, but rather the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part?

    Mail does not create new emails based on the highlighted mailbox, but rather according the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part? (I do have the setting for creating new emails from the highlighted mailbox checked.)

    The questions about time was not only because of thinking about the Time Machine, but also possible impact on recognizing which messages remaining on a POP server (doesn't apply to IMAP) have been already downloaded. In the Mail folder, at its root level, in Mail 3.x there is a file named MessageUidsAlreadyDownloaded3 that should prevent duplicate downloading -- some servers may not communicate the best with respect to that, and the universal index must certainly be involved in updating that index file. If it corrupts, it can inhibit proper downloading. However, setting the account up in a New User Account and having the same problem does not point that way, unless your POP3 server is very different from most.
    That universal index is also typically involved when messages are meant to be moved from the Inbox to another mailbox -- in Mail 3.x the message does not move, but rather is copied, and then erased from the origin mailbox. That requires updating the Envelope Index to keep track of where the message is, and should keep track of where it is supposed to have been removed after the "Move".
    Ernie

  • "SQL Server 2008 Reporting Services does not support map report items"

    Hi,
    I am trying some new feature that are introduced in SQL Server 2008 R2 version. While I try to use "Map" control within it, it threw the following error:-
    "Error 1 The map, Map1, was removed from the report. SQL Server 2008 Reporting Services does not support map report items. "
    -Also, similar kind of error I am getting for "Indicator" control.

    Hi Tej,
    I think you get this error message when you are deploying a report to report server using BIDS, correct?  If not, please provide more details on your scenario :-)
    If I guessed correctly, then this message is a result of trying to deploy a map report (a SSRS 2008 R2 feature) to a non-R2 2008 report server.  When deploying a report of RDL2010 format to a non-R2 report server, BIDS will downgrade the file to RDL2008 format, so that the non-R2 report server can process it.  Any report elements using features not supported in RDL2008 will be dropped during this downgrade process.
    BIDS gets the server version from a report project property called TargetServerVersion:
    http://technet.microsoft.com/en-us/library/ee635898(SQL.105).aspx
    If your report server is indeed the 2008 R2 version, then the TargetServerVersion property should be set to "SQL Server 2008 R2 Reporting Services."  The project property page also has a "Auto Detect..." option if you are uncertain about the version of your report server.
    Hope this helps!
    Cheers,
    LawrenceThis posting is provided "AS IS" with no warranties, and confers no rights.

  • MS Outlook 2010 Add in Create pdf - does not create pdf of draft emails- Adobe Acrobat Pro X

    In MS Outlook 2010 Add in Create pdf- does not create pdf of draft emails- this maybe the case, but just wanted to make sure this is normal for the program- though I guess one can print as an Adobe pdf but it does not maintain the hyperlinks of email addresses etc. the functionality is compromised in a print vs create a pdf.

    Here's a workaround by the team:
    Right click on the message from Explorer list view or folder view and chose the option to convert to PDF.

  • SQLJ Translation does not create profile file

    SQLJ Translation does not create profile file.
    After translating a small file HelloWorld.sqlj
    the following files are created:
    HelloWorld_SJProfileKeys.class
    HelloWorld.class
    HelloWorld.java
    Although there is a HelloWorld_SJProfileKeys.class, profile file HelloWorld_SJProfile0.ser has NOT been created.
    The starting file .sqlj file HelloWorld.sqlj is taken from O'Reilly book 'Java Programming with Oracle SQLJ' by Jason Price. The file contains a valid SQL statement to display the date.
    My environment variables were set up with instructions from:
    http://www.onjava.com/pub/a/onjava/2001/12/05/learning_sqlj.html
    When I run java HelloWorld to run the .java file, I get the error:
    SQLException java.sql.SQLException: profile HelloWorld_SJProfile0 not found: java.lang.ClassNotFoundException: HelloWorld_SJProfile0
    I searched the internet high and low for a similar error to mine but I could not find a match.
    I read the following text from http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/faq.html#translationerrors
    but it does not help me.
    "ClassNotFoundException: xxx.yyy_SJProfile0 for class xxx.yyy_SJProfileKeys
    If you see an exception such as:
    java.sql.SQLException: profile xxx.yyy_SJProfile0 not found:
    java.lang.ClassNotFoundException:
    xxx.yyy_SJProfile0 for class xxx.yy_SJProfileKeys
    then you must ensure that the SQLJ profile(s), such as xxx/yyy_SJProfile0.ser, is available in the SQLJ runtime environment. This includes JARing this file as part of an applet deployment, or publishing it to the server via loadjava.
    Any ideas? Thanks in advance,
    John
    Helloworld.sqlj before translation:
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orac",
    "scott",
    "tiger"
    // get the current date from the database
    #sql { SELECT sysdate INTO :current_date FROM dual };
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    HelloWorld.java after translation:
    /*@lineinfo:filename=HelloWorld*//*@lineinfo:user-code*//*@lineinfo:1^1*//*
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orcl",
    "scott",
    "tiger"
    // get the current date from the database
    /*@lineinfo:generated-code*//*@lineinfo:28^7*/
    // #sql { SELECT sysdate  FROM dual  };
    sqlj.runtime.profile.RTResultSet __sJT_rtRs;
    sqlj.runtime.ConnectionContext __sJT_connCtx = sqlj.runtime.ref.DefaultContext.getDefaultContext();
    if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
    sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
    if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
    synchronized (__sJT_execCtx) {
    sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, HelloWorld_SJProfileKeys.getKey(0), 0);
    try
    sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
    __sJT_rtRs = __sJT_result;
    finally
    __sJT_execCtx.releaseStatement();
    try
    sqlj.runtime.ref.ResultSetIterImpl.checkColumns(__sJT_rtRs, 1);
    if (!__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_NO_ROW_SELECT_INTO();
    current_date = __sJT_rtRs.getDate(1);
    if (__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_MULTI_ROW_SELECT_INTO();
    finally
    __sJT_rtRs.close();
    /*@lineinfo:user-code*//*@lineinfo:28^58*/
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    }/*@lineinfo:generated-code*/class HelloWorld_SJProfileKeys
    private static HelloWorld_SJProfileKeys inst = null;
    public static java.lang.Object getKey(int keyNum)
    throws java.sql.SQLException
    if (inst == null)
    inst = new HelloWorld_SJProfileKeys();
    return inst.keys[keyNum];
    private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());
    private java.lang.Object[] keys;
    private HelloWorld_SJProfileKeys()
    throws java.sql.SQLException
    keys = new java.lang.Object[1];
    keys[0] = sqlj.runtime.ref.DefaultContext.getProfileKey(loader, "HelloWorld_SJProfile0");
    }

    SQLJ Translation does not create profile file.
    After translating a small file HelloWorld.sqlj
    the following files are created:
    HelloWorld_SJProfileKeys.class
    HelloWorld.class
    HelloWorld.java
    Although there is a HelloWorld_SJProfileKeys.class, profile file HelloWorld_SJProfile0.ser has NOT been created.
    The starting file .sqlj file HelloWorld.sqlj is taken from O'Reilly book 'Java Programming with Oracle SQLJ' by Jason Price. The file contains a valid SQL statement to display the date.
    My environment variables were set up with instructions from:
    http://www.onjava.com/pub/a/onjava/2001/12/05/learning_sqlj.html
    When I run java HelloWorld to run the .java file, I get the error:
    SQLException java.sql.SQLException: profile HelloWorld_SJProfile0 not found: java.lang.ClassNotFoundException: HelloWorld_SJProfile0
    I searched the internet high and low for a similar error to mine but I could not find a match.
    I read the following text from http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/faq.html#translationerrors
    but it does not help me.
    "ClassNotFoundException: xxx.yyy_SJProfile0 for class xxx.yyy_SJProfileKeys
    If you see an exception such as:
    java.sql.SQLException: profile xxx.yyy_SJProfile0 not found:
    java.lang.ClassNotFoundException:
    xxx.yyy_SJProfile0 for class xxx.yy_SJProfileKeys
    then you must ensure that the SQLJ profile(s), such as xxx/yyy_SJProfile0.ser, is available in the SQLJ runtime environment. This includes JARing this file as part of an applet deployment, or publishing it to the server via loadjava.
    Any ideas? Thanks in advance,
    John
    Helloworld.sqlj before translation:
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orac",
    "scott",
    "tiger"
    // get the current date from the database
    #sql { SELECT sysdate INTO :current_date FROM dual };
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    HelloWorld.java after translation:
    /*@lineinfo:filename=HelloWorld*//*@lineinfo:user-code*//*@lineinfo:1^1*//*
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orcl",
    "scott",
    "tiger"
    // get the current date from the database
    /*@lineinfo:generated-code*//*@lineinfo:28^7*/
    // #sql { SELECT sysdate  FROM dual  };
    sqlj.runtime.profile.RTResultSet __sJT_rtRs;
    sqlj.runtime.ConnectionContext __sJT_connCtx = sqlj.runtime.ref.DefaultContext.getDefaultContext();
    if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
    sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
    if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
    synchronized (__sJT_execCtx) {
    sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, HelloWorld_SJProfileKeys.getKey(0), 0);
    try
    sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
    __sJT_rtRs = __sJT_result;
    finally
    __sJT_execCtx.releaseStatement();
    try
    sqlj.runtime.ref.ResultSetIterImpl.checkColumns(__sJT_rtRs, 1);
    if (!__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_NO_ROW_SELECT_INTO();
    current_date = __sJT_rtRs.getDate(1);
    if (__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_MULTI_ROW_SELECT_INTO();
    finally
    __sJT_rtRs.close();
    /*@lineinfo:user-code*//*@lineinfo:28^58*/
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    }/*@lineinfo:generated-code*/class HelloWorld_SJProfileKeys
    private static HelloWorld_SJProfileKeys inst = null;
    public static java.lang.Object getKey(int keyNum)
    throws java.sql.SQLException
    if (inst == null)
    inst = new HelloWorld_SJProfileKeys();
    return inst.keys[keyNum];
    private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());
    private java.lang.Object[] keys;
    private HelloWorld_SJProfileKeys()
    throws java.sql.SQLException
    keys = new java.lang.Object[1];
    keys[0] = sqlj.runtime.ref.DefaultContext.getProfileKey(loader, "HelloWorld_SJProfile0");
    }

Maybe you are looking for

  • Distributing Password Protected PDF's via Information Broadcasting

    Is it possible to password protect a distributed report (pdf format) using individual Member's unique password? Then, can we easily administer the (e.g. user-create/e-mail confirmation) the actual passwords?

  • How to force AMSN to open in 2nd monitor only?

    Hi I've been trying to force amsn to only open on my 2nd monitor with no success. Other programs, such as iTunes, Mac MSN messenger all stay on that monitor but amsn always reverts back to primary. Does anyone know how to solve this? Thanks for your

  • Why has the total library size gone from my itunes

    I downloaded the latest iTunes the other day and now the total library size is missing and the window size is actually too large for my monitor too, though I've not altered any settings.   I HATE not having the library size showing at the bottom of t

  • My iphone 4 is showing carrier in about: three 12.0

    I have a jailbroken iphone,i sent it to a shop for update to 5.1.1 and when it came back it said in the about settings theee 12.0 (carrier).i mean is it liek that or did the shop keeper do something to fake me abt the network,pplzz help

  • "media still in use" HELP!

    Everytime i format/build my project, I get an error message that says "One of the volumes on the media is still in use." Does anyone know how to handle this problem? I can't seem to find anything on this particular issue in the user manual or on the