URGENT : Problem in DataSource usage in Client applIcation

URGENT : Problem in DataSource usage in Client applIcation
Hi ALL
I have deployed a EJB(Session Bean) in Oracle-OC4J Container.I am using datasources, in my bean as well as in my client
application.Here Client is deployed along with bean in container.
I am using "ejb-location"JNDI Name inside Client to get connection.
(Which is mentioned in datasource element of datasources.xml)
For this i have configured datasources.xml also.
If i use "oracle.jdbc.pool.OracleDataSource" in datasources.xml then ClassNotFoundException is coming.
But i have included classes12.jar in home/lib directory
But if i use "com.evermind.sql.ConnectionDataSource" then i am getting connection.But if i do some operations(Even
setAutoCommit(false))its giving NULL PointerException.
Why this is happening?
Thanx in advance
Venky

Hi Venkastesh,
There are two issues. If your entry is like this....
location="microDS"
xa-location="jdbc/xa/MicroXADS"
ejb-location="MicroPool"
...then use ejb-location for database calls through ejb and location when you try to get through normal java client.
This will help you.
regards,
Vijay
null

Similar Messages

  • High CPU Usage On client application when upgrade remote SQL database

    Hi,
    Is anyone here encountered very high CPU usage after upgraded the database from SQL 2005 to SQL 2012? Following describes my issue.
    I have my client application running on Windows 7 that access to central database (SQL 2005) on Windows server 2003 using ODBC connection, this client application basically query data and perform data insert and update. There are a number of this similar
    clients connected to the database.
    Due to slowness of the database server, company decided to upgrade the database server to SQL 2012 and also new hardware runing Windows Server 2012. There is no change on the client application and client hardware and the client application still using the
    same ODBC connection to query, insert or update the new database server.
    The problem I am now experiencing now is that my client PC where my client application running the CPU usage is very high almost hitting 100% when accessing to the central database. I am also noticed this program lsass.exe that utilized almost 40-50% of
    the CPU time when client application accessing the central database.
    Is anyone here know, why client PC CPU usage 100% when access to upgraded SQL 2012 database? What is lsass.exe program doing, it only appear when accessing to database server. How to reduce the CPU usage on client?
    Thanks.
    Chee Wee.

    Hello,
    After upgrading, please rebuild indexes and update statistics on the databases.
    http://www.mssqltips.com/sqlservertip/1367/sql-server-script-to-rebuild-all-indexes-for-all-tables-and-all-databases/
    http://www.mssqltips.com/sqlservertip/1606/execute-update-statistics-for-all-sql-server-databases/
    Configure maxdop on the instance.
    http://blogs.msdn.com/b/sqlsakthi/archive/2012/05/24/wow-we-have-maxdop-calculator-for-sql-server-it-makes-my-job-easier.aspx
    If the above does not solve the issue, let us know.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Urgent: problem running reports in Oracle 10g application server

    Hi all,
    our problem is that we deployed a jsp report as Ear file in Oracle 10g application server in infrastructure node.deployment says successfull.when we try to run that report it says 401 unauthorised.while sending request we are passing the database username,password &sid is this correct or any configuration setting to be done to make it run.
    one morething normal jsp works fine.when we run reports jsp it gives the above mentioned 401 error.

    hello,
    when you deploy reports JSPs they still require the reports specific componentes (e.g. TLD file, classes, ...) etc be available. i doubt that's the case in your ear file.
    thanks,
    ph.

  • Obtaining DataSource from a client application

    Hi,
    I am trying to use the connection pooling capability of DataSource, but my application is not running under any container, ie. servlet/ejb. How can i obtain DataSource object ? Do I need to use JNDI to do that ? If so, how can I use JNDI without any web container/ejb container ?
    thanks for the help

    You simple run the JNDI registry in a separate process, then bind obejcts to it, which could be a datasource or whatever. Then you have other objects connect to the JNDI tree and lookup objects. It works the same, but you simply have to initiate the JNDI service manually.

  • SBS Client Application Launcher has encountered a problem and needs to close

    I logged in to a remote session on the SBS to add a user to a security group. Now, when I log on to my computer with the domain administrator account, I get the error "SBS Client
    Application Launcher has encountered a problem and needs to
    close." There is an event in the Application log associated with the error:
    Event Type: Error
    Event Source: Application Error
    Event Category: None
    Event ID: 1000
    Date:  8/29/2011
    Time:  2:27:46 PM
    User:  N/A
    Computer: CONTROLLERASST
    Description:
    Faulting application applnch.exe, version 5.2.2893.2, faulting module applnch.exe, version 5.2.2893.2, fault address 0x0002442a.
    For more information, see Help and Support Center at
    http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 41 70 70 6c 69 63 61 74   Applicat
    0008: 69 6f 6e 20 46 61 69 6c   ion Fail
    0010: 75 72 65 20 20 61 70 70   ure  app
    0018: 6c 6e 63 68 2e 65 78 65   lnch.exe
    0020: 20 35 2e 32 2e 32 38 39    5.2.289
    0028: 33 2e 32 20 69 6e 20 61   3.2 in a
    0030: 70 70 6c 6e 63 68 2e 65   pplnch.e
    0038: 78 65 20 35 2e 32 2e 32   xe 5.2.2
    0040: 38 39 33 2e 32 20 61 74   893.2 at
    0048: 20 6f 66 66 73 65 74 20    offset
    0050: 30 30 30 32 34 34 32 61   0002442a
    0058: 0d 0a                     ..     
    After clicking to send/not send an error report, I get back to the desktop where all appears normal. However, I can no longer access the internet while logged in under this account.
    I can log in on another PC with the domain admin account with no error.
    Any help would be appreciated.

    Hi,
    I would like to suggest you run System File Checker with command: sfc /scannow to scan and repair the system files.
    If it does not work, please also test the issue in Clean Boot.
    Clean Boot
    ================
    Let’s disable all startup items and third party services when booting. This method will help us determine if this issue is caused by a loading
    program or service. Please perform the following steps:
    1. Click the Start Button type "msconfig" (without quotation marks) in the Start Search box, and then press Enter.
    Note: If prompted, please click Continue on the User Account Control (UAC) window.
    2. Click the "Services" tab, check the "Hide All Microsoft Services" box and click "Disable All" (if it is not gray).
    3. Click the "Startup" tab, click "Disable All" and click "OK".
    Then, restart the computer. When the "System Configuration Utility" window appears, please check the "Don't show this message or launch the System
    Configuration Utility when Windows starts" box and click OK.
    What’s the result in Clean Boot?
    For more information regarding Event ID 1000, please refer to the following link:
     http://www.microsoft.com/technet/support/ee/transform.aspx?ProdName=Windows%20Operating%20System&ProdVer=5.2&EvtID=1000&EvtSrc=Application%20Error&LCID=1033 
    Regards,
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Adding a Formview in a rich client application---urgent

    Hello,
    I am developing an XML editor as an eclipse plugin as a rich client application
    I want to add a form view to it...
    I have followed every instruction of this tutorial
    http://www.eclipse.org/articles/Article-Forms/article.html
    But the project does not run and flashes the following error
    Missing required bundle org.eclipse.ui.views_0.0.0.
    java.lang.RuntimeException: Application "test.application" could not be found in the registry. The applications available are: <NONE>.
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:68)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
    java.lang.RuntimeException: Application "test.application" could not be found in the registry. The applications available are: <NONE>.
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:68)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
    Application error
    java.lang.RuntimeException: Application "test.application" could not be found in the registry. The applications available are: <NONE>.
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:68)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
    The application does not start once the code is added and al its references are commented
    Pl help me out...thanks...<img class="emoticon" src="images/emoticons/confused.gif" border="0" alt="" />

    You seem to be having a problem with creating an Eclipse plugin. You don't seem to be having any problem at all with Java and XML that I can see. I think you would have more chance of getting an answer if you looked over on the Eclipse site for a forum for plugin writers.

  • OWB CLient Application Problem

    Hi All,
    We have the installed the OS as Windows 2003 server Enterprise Edition and on which we have installed the ORACLE 9i Database. Even our OWB Design time installation went on successfuly with the creation of Target schema & Run time repository schema. Still the problem we are facing is as soon as we try to start the OWB Client application it gets hung immediatly after showing the first popup of OWB Client server 9.2.0 screen. Please let us know is there any other setting we need to do for this to start off smoothly. Is there any OWB server installation needed? Your early reply would be very helpful.
    Thanks & Best Regards,
    Ratna

    Hi Ratna,
    Please follow the steps as given:
    1) change datetime in your client machine to current date.
    2) reboot your machine
    3) move the following files to another backup place eg desktop:
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/US_export_policy.jar
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/jce1_2_1.jar
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/local_policy.jar
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/sunjce_provider.jar
    Where $OWB92_CLIENT_HOME is the path to your owb9.2 client home.
    4) Copy the 4 replacement files, (mail me to - [email protected], I'll send you the 4 .jar files), to the directory OWB92_CLIENT_HOME/jdk/jre/lib/ext/
    5)start owb…
    If all has gone well, delete the files moved in step 3.
    Cheers,
    Swagata

  • Urgent: How to execute a Client application

    Hi All,
    I have deployed a very simple ear file ( consisting of 1 session bean ) called
    HelloEjbsApp.ear in Weblogic 6.1. I want to access the method in this ejb from
    a client application. Please can anybody tell me the steps to do the same? I have
    referred to the documentation, but it isn't too clear.
    I have a HelloClient.java class inside a jar file called HelloClientJAR.jar,
    which is inside the client application called HelloClientApp.ear. As I understand,
    I should have the following 3 files for the same.
    application.xml
    application-client.xml
    HelloClientJAR.runtime.xml ( This exists in the same directory as the HelloClientApp.ear
    I then ran the following command
    java appclient.ClientDeployer HelloClientApp.ear HelloClientJAR
    It deployed properly, without any errors.
    After this, how do I exceute the HelloClient class? Please if anybody knows the
    solution to my problem, help me.
    Thanks,
    Vani

    Unless it's a J2EE "application client" which is packaged in the ear.
    Unfortunately 6.1 still doesn't support that standard.
    "Vani" <[email protected]> wrote in message
    news:[email protected]...
    >
    Thank you very much. It works now. As you said, I should use only the JNDIname
    to do lookup outside an ejb.
    Thanks,
    Vani
    "Cameron Purdy" <[email protected]> wrote:
    That means that you can only look up java:comp/env/* from inside (for
    example) an EJB. You cannot do that from a Java client. From a Java
    client,
    you look up the EJB using its "global" JNDI name. Use the WL console
    to
    peruse your JNDI tree.
    Peace,
    Cameron Purdy
    Tangosol Inc.
    Tangosol Coherence: Clustered Coherent Cache for J2EE
    Information at http://www.tangosol.com/
    "Vani" <[email protected]> wrote in message
    news:[email protected]...
    Hi All,
    I am able to execute the client application. But when I do that,I get
    the following
    exception.
    javax.naming.NamingException: java:comp/env namespace is only availablefrom within
    a J2EE component
    at
    com.sun.enterprise.naming.java.javaURLContext.getComponentContext(javaURLCon
    text.java:392)
    at
    com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:51)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at HelloClient.main(Unknown Source)
    Please if anybody knows the reason for this, help me.
    Thanks,
    Vani
    "Vani" <[email protected]> wrote:
    Hi All,
    I have deployed a very simple ear file ( consisting of 1 session
    bean
    ) called
    HelloEjbsApp.ear in Weblogic 6.1. I want to access the method in this
    ejb from
    a client application. Please can anybody tell me the steps to do the
    same? I have
    referred to the documentation, but it isn't too clear.
    I have a HelloClient.java class inside a jar file calledHelloClientJAR.jar,
    which is inside the client application called HelloClientApp.ear.As
    I understand,
    I should have the following 3 files for the same.
    application.xml
    application-client.xml
    HelloClientJAR.runtime.xml ( This exists in the same directory asthe
    HelloClientApp.ear
    I then ran the following command
    java appclient.ClientDeployer HelloClientApp.ear HelloClientJAR
    It deployed properly, without any errors.
    After this, how do I exceute the HelloClient class? Please if anybody
    knows the
    solution to my problem, help me.
    Thanks,
    Vani

  • Problems Logging in Client Application after Download and Setup

    I'm having trouble running the desktop Client x64 bit Client application for the Primavera (P6) Version 7 Project Management program. Throughout the entire download and configuration process, I have written down all user names and passwords needed.
    Once installed, I attempted to log in to the software with both "admin" and "system" usernames (along with my password configured during my registration with the E-Delivery Oracle software. The default database provided is "ORAPMDB".
    After attempting there, I went through the user guides that came with the zip file(s) and ran through the "Getting Started Guide" for Oracle Database Express Edition (Oracle Database XE), which included signing in as the database administrator and setting up a sample user profile (username "hr", password "hr") and creating my first application. I have no idea what the significance of having an "application" created has on logging in to Primavera, but the "Stand Alone V7.0.0.0.3." PDF guide suggested I run through that process and obtain a database username and password before launching the Project Management Module. Of course, none of the usernames or passwords used in the Oracle Database XE program work with P6.
    Has anyone run in to this similar issue before? Any help would be much appreciated.
    Drew

    It sounds as if you ran a stand-alone P6v7 installation... Did you try username = "admin" password = "admin" when logging into the P6 client?
    What is the exact error message you receive? Invalid login or unable to connect to the database?

  • Iphone client application using SUP build problem

    Hi,
      I created client application for iphone. while building i am getting the following error Parse issue in the "SUPLogLevel.h" file like "Expected selector for objective-c method" at the
    +(int)DEBUG method.  Howevevr i did not change anything in that SUP given include file. Can anybody plese help me how to solve this.
    Thanks in Advance.
    bala

    Hi Bala,
    Did you manage to resolve this error?
    I saw on a different post of yours that this was something to do with the version of SUP and SDK you were using at the time? Error while building SUP based iphone client application
    Our developer is facing the same issue with her libraries now and I am trying to investigate where this comes from. Your insight will be very useful.
    The issue takes place under the SUPLogLevel.h for the (int) Error method.
    She mentioned that she updated her xCode recently. Is this something that may caused the issue?
    Thanks in advance!!
    George Lazaridis

  • Urgent: Problems in Generic Extraction by Function Module

    Hi BW Gurus,
    I am new to SDN and also new to generic extraction using function module. My requirement is to extract long text(142 char) from CRM to BW as the text is not stored in database table I used function module read_text with in another ZXXX function module copy of (RSAX_BIW_GET_DATA_SIMPLE). In my extract structure I used GUID(char,32), Langu, long text(142 char) and 2 placeholders. Text can be extracted by passing STXH table fields(Tdname, Tdid, Tdobject, Tdspars) to read_text as parameters and i also need to use CRMD_ORDERADM_H field GUID(32 char) to compare 1st 32 chars of tdname(70 char) with Guid to select Guids and loop thru this Guids and for each Guid i need to append lines of text to e_t_data but as i donot know ABAP i unable to write the code for this. Through my friends help i wrote code when i check in RSA3 it is displaying the text but when i replicate into BW and load into data target in monitor the status is red with records initially but afterwards it will be red status again with 0 from 0 records for initial load again.when i check on job logs the errors i have are:
    The background job has created a job log file of 2Gb size and it is currently on a infinite loop writing entries into the SAP System Log that it cannot write to the Job log file due to “Error 22 for write/read access to a file” this is because of the datasource i have created. Please find my Function module and if anyone would please correct FM and send me that will be really great.I appreciate it in advance.
    MY Function Module is:
    FUNCTION Z_CRMORDERH_STR_TXT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
    *"  TABLES
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  YCRM_TEXT_STR OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    ***"  EXCEPTIONS     NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
      Tables: CRMD_ORDERADM_H, STXH.
    Auxiliary Selection criteria structure
    data: l_s_select type srsc_s_select.
    Maximum number of lines for DB table
      Statics: s_s_if type srsc_s_if_simple,
    counter
             s_counter_datapakid like sy-tabix,
    Cursor
             s_cursor type cursor.
    data: i_crmtext type standard table of TLINE .
      types: begin of xsreph ,
              GUID type CRMD_ORDERADM_H-guid,
            end of xsreph.
       data: i_guid type standard table of xsreph.
      data: I_TEXT type STXH-TDNAME.
      data: xempl like  YCRM_TEXT_STR occurs 0 with header line.
      data: t_tab like dd03l-tabname.
    Select ranges
      ranges: l_r_guid for CRMD_ORDERADM_H-guid.
             l_r_connid  for sflight-connid.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      if i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        case i_dsource.
          when 'yCRM_TEXT'.  " for S_SREPH1
          when others.
            if 1 = 2. message e009(r3). endif.
    this is a typical log call. Please write every error message like this
            log_write 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                    i_dsource   "message variable 1
                      ' '.                 "message variable 2
            raise error_passed_to_mess_handler.
        endcase.
       append lines of i_t_select to s_s_if-t_select.
    Fill parameter buffer for data extraction calls
        s_s_if-requnr    = i_requnr.
        s_s_if-dsource = i_dsource.
        s_s_if-maxsize   = i_maxsize.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
       append lines of i_t_fields to s_s_if-t_fields.
    we will do our selection based on what is in the p table for the
    infoobject
      else.                 "Initialization mode or data extraction ?
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        if s_counter_datapakid = 0.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
        LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'GUID'.
            MOVE-CORRESPONDING L_S_SELECT TO L_R_GUID.
            APPEND L_R_GUID.
          ENDLOOP.
          case i_dsource.
            when 'YCRM_TEXT'.  " for S_SREPH1
              t_tab = 'CRMD_ORDERADM_H'.
          endcase.
          select GUID
          from (t_tab)
          into table i_guid where   PROCESS_TYPE = 'ZACI'  and ( OBJECT_ID < '0000000042').
         select tdname from stxh into i_text where tdobject = 'TEXT'.
         if sy-subrc ne 0.
           message e009(r3).
    this is a typical log call. Please write every error message like this
           log_write 'E'                  "message type
                     'R3'                 "message class
                     '009'                "message number
                     i_dsource   "message variable 1
                     'No master data found'.           "message variable 2
           raise error_passed_to_mess_handler.
         endif.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
         open cursor with hold s_cursor for
         select (s_s_if-t_fields) from CRMD_ORDERADM_H
                                  where GUID in L_R_GUID .
                                   ENDIF.
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
       fetch next cursor s_cursor
                  appending corresponding fields
                  of table e_t_data
                  package size s_s_if-maxsize.
        IF SY-SUBRC <> 0.
         CLOSE CURSOR S_CURSOR.
         RAISE NO_MORE_DATA.
       ENDIF.
    as we are doing this only once can use the select statement.
    ***data: crmtext like tline occurs 0 with header line.
    **data: i_crmtext type standard table of TLINE.
    **data: i_guid type standard table of xsreph.
    data: l_guid type THEAD-TDNAME.
    data: st_guid type xsreph.
    data: st_crmtext type TLINE.
    data: lan type THEAD-TDSPRAS.
    lan = 'E'.
    loop at i_guid into st_guid.
    l_guid = st_guid-guid.
    CALL FUNCTION 'READ_TEXT'
       EXPORTING
       CLIENT                        = SY-MANDT
         ID                            = 'A002'
         LANGUAGE                      = lan
         NAME                          = l_guid
         OBJECT                        = 'CRM_ORDERH'
       ARCHIVE_HANDLE                = 0
       LOCAL_CAT                     = ' '
    IMPORTING
       HEADER                        =
       TABLES
         LINES                         = i_crmtext.
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    e_t_data-guid = l_guid.
    loop at i_crmtext into st_crmtext.
    move lan to e_t_data-langu.
    move st_crmtext-tdline to e_t_data-description.
    append e_t_data.
    endif.
    endloop.
    clear: st_guid,l_guid.
    refresh: i_crmtext.
    endloop.
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
    endif.
    ENDFUNCTION.
    please Gurus as I donot know ABAP i appreciate if anyone would write a FM based on requirement and send me that will be really great this is my request. I gurantee of award points for good answers.
    Regards
    Kishore

    Hi,
    The statement <b>RAISE NO_MORE_DATA</b> should be active (uncommented) in your code. Otherwise, the infinte loop occurs.
    See also, the Siggi's blog:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    BTW, was it your thread here:
    Re: Urgent: problems in extracting Long Text
    Best regards,
    Eugene

  • URGENT Problem with Greek Character from an Oracle database

    Hello, I am having a serious and urgent problem with the character settings of an oracle database (8.1.7). The database is sitting in a solaris unix server and when we run the env command we have the following in the NLS_LANG parameter: AMERICAN_AMERICA.WE8ISO8859P1 (I do not know if this is helpful). When I retrieve data from oracle database (through a VB.NET 2005 program)to a dataset I use a special font in order to see the greek characters (HELLASARIAL). But when I am trying to save these data to a TXT file the greek characters are like Chinese to us. I tried several encodings (System.Text.Encoding.GetEncoding(869)) but without success. Can someone tell me how to convert the oracle greek characters during the selection or during the saving to the TXT file?
    Please respond as fast as you can.
    Thanks in advance

    Here is the answer of the microsoft:
    I have the information that you have a VB.Net 2005 application connected to an Oracle database 8.1.7.4 hosted on a UNIX server.
    This database has the CharacterSet WE8ISO8859P1.
    When retrieving Greek characters from this database in the application, you cannot see them.
    Could you please send me a screenshot of these characters in the .Net application?
    Are they displayed as gibberish, or as inverted questions marks (?)?
    I already had similar cases with Hebrew characters hosted on an Oracle database.
    These characters were displayed as questions marks on the client side.
    This is due to the fact that System.Data.OracleClient is using the Server CharacterSet to display the characters.
    If your Greek characters are not stored in the WE8ISO8859P1 characterset, then they won’t display correctly on the client-side.
    This is different from OLEDB where you could interact on client side by modifying the NLS_LANG parameter in the registry HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0.
    The client NLS_LANG and the server CharacterSet had to match in order to correctly display the data, and avoid SQL*NET conversion.
    So there are two solutions to your case:
    - The first one is to create a new database using the P8 characterset. The Oracle .Net managed provider will so be able to use it and display the characters correctly.
    - The second one is to use the OLEDB.Net managed provider, and then use OLEDB for Oracle provider. OLEDB will take care of the client NLS_LANG registry parameter.
    Would it be possible to test your application against an Oracle database with WE8ISO8859P8 characterset?
    Would it be possible to test it with the OLEDB .Net managed provider, and after checking the NLS_LANG client registry parameter?

  • Problem connecting to database within an application

    We are running an application that utilizes SQL Server 2008 Standard, and has client software running on Windows 7 64-bit systems. Users access the database via the client software. There have been reported problems connecting to the database. Users can
    launch the client application, but when they go to a part of the application that connects to the database, they encounter the following error:
    Could not connect to configured database.
    Datasource name: ClinicDB
    Database: RayStationClinicDB_25189T
    Connection string: Data
    Source: 172.17.154.23\RAYTEST1,53326;Initial
    Catalog=RayStationClinicDB_25189T;Integrated
    Security=True;Persist Security Info=False;Network
    Library=dbmssocn
    Reason: Cannot open database "RayStationClinicDB_25189T"
    requested by the login. The login failed.
    Login failed for user '<DOMAIN>\<username>'.
    I have connected to the server via remote desktop, and have been able to access the database via the SQL Studio. The connection that I made is to the mghrostortest\RAYTEST1 database, and I have logged in via the sa account.   I have stopped and
    restarted the Database and the SQL Agent on the mghrostortest server.
    Does anyone have any ideas as to what further steps I should take here?

    Hello,
    To create a login using Windows Authentication, please refer to the following article:
    -- Create a login for SQL Server by specifying a server name and a Windows domain account name.
    CREATE LOGIN [<domainName>\<loginName>] FROM WINDOWS;
    GO
    For detail information, please see:
    http://technet.microsoft.com/en-us/library/aa337562.aspx
    Regards,
    If you have any feedback on our support, please click
    here.
    Elvis Long
    TechNet Community Support

  • Client application freezes permanently when one user logoff and another user take that session on windows server 2008 r2

    Hi,
    we have windows server 2008 r2 and In our application there are three server and on e client application.
    My client application freezes on a specific scenario.
    Steps taken to hang are following:-
    1. start client application
    2. open an module named by XYZ
    3. login to remote machine with another session./ Another user login from their computer.
    4. connect with the session which have client application opened.
    5. Whenever the session is forcibly taken client application becomes unresponsive.

    Hello,
    The Windows Desktop Perfmon and Diagnostic tools forum is to discuss performance monitor (perfmon), resource monitor (resmon), and task manager, focusing on HOW-TO, Errors/Problems, and usage scenarios.
    Since your post is off-topic, I am moving it to the
    off topic forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Desktop uploader urgent problems

    am io wrong or is the adobe cc desktop app allow you to upload files from your desktop??
    i just had a very very frustrating conversation with an adobe rep over chat, are these people seriously considered professionals???...
    https://sales.liveperson.net/hc/57472748/?cmd=file&file=chatStart&site=57472748&sessionkey =H5737224092431158281-6261762529632100331K11620943&postChatURL=
    You are now chatting with 'Swapna'
    Swapna: Hello! Welcome to Adobe Customer Service.
    Swapna: Hi James.
    james schofield: hi
    james schofield: hi, i am writing to you due to my extreme frustration with the creative cloud service. i get continuous problems with uploading files to clients, i use the desktop uploader which goes for three hours and fails to upload (i get an exclamation mark icon) the file is only 450mb i am not getting angry clients, i work remotely and this is extremely important for my business, i need to be able to upload without a problem, i am continuously having to go elsewhere to "securely" upload my files. this was the file name "tech_arena_prores_1024x576.mov.zip" are there any restrictions with naming conventions? my aoftware is up to date, please help urgently! thankyou
    Swapna: I will be glad to help you with the issue you are facing with the subscription you are referring to.
    james schofield: hello?
    Swapna: I see that this is a technical issue. I'll need to transfer this chat to the technical support team so that this issue is resolved in this first contact itself.
    james schofield: thanks
    Please wait while I transfer the chat to the appropriate group.
    You are now chatting with 'Navin'
    Navin: Hello. Welcome to Adobe Technical Support.
    Navin: Please allow me a moment while I look into your account & verify the details.
    Navin: I understand that you are facing issue in loading files to CC Desktop, is that correct?
    james schofield: hi
    james schofield: yes thats correct
    james schofield: two files faied to upload in the last week
    james schofield: are there any issues with naming conventions or length of title?
    james schofield: hi, anybody still here?
    Navin: Thank you for confirming the issue.
    Navin: I will glad to help you with this issue.
    Navin: Please allow me 2-3 minutes while I check the information for you.
    james schofield: thanks
    Navin: Thank you for staying online.
    james schofield: thats ok
    Navin: May I know the error message you are getting?
    james schofield: there was no message, just error and an exclamation mark in a yellow triangle as the icon on the file.
    Navin: May I know if you are dragging and roping the file or using the upload option in CC .
    Navin: ?
    james schofield: drag and drop
    Navin: Please use the upload option in Creative Cloud.
    Navin: Drag and Drop does not work some times.
    james schofield: did you just say that??
    james schofield: did you just say your paid service does not work sometimes?
    Navin: Drag and drop option does not work for sometime. It is recommended to use the upload feature in Creative Cloud to upload the files.
    Navin: So please use the upload option in Creative Cloud to upload the file.
    james schofield: im talking about creative cloud for desktop service not the web based service
    Navin: What issue you are facing issue with the CC Desktop?
    james schofield: everything i just told you...
    james schofield: 15 minutes ago you asked me this... I understand that you are facing issue in loading files to CC Desktop, is that correct?... now you are asking me again?
    Navin: The files are loaded in Creative Cloud not in CC Desktop.
    Navin: Using the CC Desktop you can install the Adobe products.
    Navin: You cannot upload the files in CC Desktop.
    Navin: You need to upload the files in Creative Cloud.
    Navin: Am I clear with the above instruction?
    james schofield: no
    Navin: CC Desktop is the App using which you can install the Adobe products.
    james schofield: then why does it say that you can upload up to 5gb via desktop app??? why do i know more than you?
    james schofield: http://helpx.adobe.com/creative-cloud/kb/creative-cloud-connection-faq.html#id_74925
    james schofield: 5 paragraphs down
    Navin: James, I am sorry that there is no Creative cloud for Desktop service.
    Navin: If you have to upload files, it is web based service.
    james schofield: then what did my link just tell you?
    Navin: I understand that you are not trying to upload files by logging atwww.creative.adobe.com , however you will download desktop app using which you will sync files.
    james schofield: Is there a file size limit? With Creative Cloud desktop application, you can upload files up to 5 GB. If you attempt to upload anything larger, you can see some unexpected errors. With the Creative Cloud website, you can upload files up to 1 GB. If you attempt to upload anything larger, you can see some unexpected upload failures.
    james schofield: YOU HAVE TWO OPTIONS TO UPLOAD A FILE, VIA DESKTOP OR VIA WEBSITE.. ? yes?
    Navin: The desktop application which you are referring is to sync files from computer with cloud.
    james schofield: i just pasted that text from the adobe website
    james schofield: have you read what i just pasted from the adobe website?

    Hi and welcome to the forums!
    please try to down load the BB USB device drivers on this link:
    File name: BlackBerry USB and Modem Drivers ENG (DM4.5 B13).msi
    File size: 12.33545 MB
    Date posted: 24-June-07
    Download Software
    Please let me know if this helps!
    These are stable USB drivers
    Please let me know if this works.
    Thanks!
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

Maybe you are looking for

  • Forms quits when this pl/sql code is ran.....please help!

    PROCEDURE procJob IS CURSOR c1(staff_in NUMBER) IS SELECT staffid FROM jobHist WHERE staffid = staff_in FOR UPDATE OF todate; c1_rec jobHist.staffid%TYPE; n number; i number; BEGIN OPEN c1(:STAFF.STAFFID); loop fetch c1 into c1_rec; exit when c1%notf

  • New page when group changes

    Hiya, I am a newbie using BI Publisher in conjunction with APEX. I have a report where I need the header to be repeated for a group over multiple pages. I have searched the forum and seen prior comments about using a 2 row table and such, but where w

  • Where to install .pl files?

    Hi, where do i install .pl files from example (perl-finance-quote) current installed files are: pkg/ pkg/usr pkg/usr/share pkg/usr/share/perl5 pkg/usr/share/perl5/vendor_perl pkg/usr/share/perl5/vendor_perl/Finance pkg/usr/share/perl5/vendor_perl/Fin

  • Com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP

    Hi All, I am configuring SSO between EP7 and SRM 7.0 1) I have created a SRM system in EP system connections works fine with logon ticket. 2) I have uploaded roles from SRM system but content from these roles throws following exception Although i hav

  • Failed logins problem

    Hello, everyone.... OK, first of all, the players... 1. NetWare 6.5 SP7 servers: a half dozen at the main office. One at each of three sites connected with an site to site VPN tunnel. 2. User laptop: Windows XP SP3, pretty well patched. 3. Other cons