Send Query Results to Application server in CSV format

HI All,
I need to schedule a query on a regular basis and send the results to Apllication server in csv format(rows will be more than 65,000).
I tried RSCRM_BAPI transaction but i think it has lot of restrictions like, cannot use texts, calculated keyfigures, etc. so cannot use this.
cannot use Infospoke since there are calculated keyfigures in the query.
Information Broadcasting is not setup in my system
Tried WRITEQUERY but it only send the results to Spool, special handling is needed to move the data from spool to Appl. server.
is there any other way i can achive this, is it even possible?
Thanks,
S.B.

I dont know if this helps.
1)You can save the file as a normal CSV file on your desktop.
2) and Based on the ABAP code using ( OPEN DATASET and CLOSE DATASET  statements) You can put your file into the application server
but i am not sure if you can use this methodilogy for an automated and continous process
Regards
satish

Similar Messages

  • Query result in application server as a .CSV file

    HI
    Can any one tel me how can i place the query result in application server as a .CSV file.
    when am executing WRITEQUERY program it asking query name and displaying result in excel sheet, i don't what is next step to keep file in app server.
    read writequery prog,it is genrated in excel sheet, now i need to send that data to application server path in csv format
    actually i am not able to get the internal table in writequry where the query data is stored.
    please provide me the sample code i can understand. plz.
    plz do favour for me, take this high priority and asap.
    Thanks a lot

    HI,
    Actually i don't want how to create abap querey,
    My requirment is,  WRITEQUERY program  wherenever we r excuting it vil display qurery data in excel format,
    now i don't want any excel format display,  I need that data, should go to application server in .CSV format.
    Actually i am not understanding writequere program, in that which internal table i have to pass application server.
    PLz give me reply anyone
    Help me out .

  • How to send query to an application server?

    hello everybody
    I'm working on a project in which i've implemented a presentation layer
    for rich client (with java swing)
    the issue now is how to send a query to the application server
    i have the choice between :
    -XML
    -EJB
    -WEB SERVICES
    -RMI
    and i must chose the best method and justify it
    could u please help me
    thank u and have a nice a day

    Hello,
    I'm sorry but this is not a swing related subject.

  • Error occurred while sending query result: 'java.lang.NullPointerException'

    I am doing end to end scenario from SQL server to File
    JDBC --XI -- File
    I am getting the following Error while monitoring the sender CC in RWB
    "Error occurred while sending query result: 'java.lang.NullPointerException'
    Please Help !!

    Hi,
    To see the Adapter Error log, try:
    http://<XiServerHostName>:<J2EE-Port>/MessagingSystem
    Try viewing the Audit Log for each message (Newspaper Icon)
    Regards,
    Amitabha

  • Error while sending query result

    Hi all,
    I am working on a JDBC-XI-IDoc scenario. In my sending JDBC adapter configuration, i have given the Query SQL statement as <b>SELECT * FROM SAP_PROMOTION</b> and Update SQL statement as: <b><TEST></b>
    But when i go to adapter monitor, i am seeing an error as follws:
    <b>Error:  Sending query result failed with com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve binding for the given channelId: Binding:CID=875514bc047b3557a5b53dfb5ef4babe; - retry
      last retry interval started 10:54:09 2006-05-25
      length 60,000 secs</b>
    Can anybody help me how to solve this problem.
    Regards,
    Divija

    Divija,
    Am not sure if this is the exact cause for your problem, but would anyways suggest that you take a look at it,
    <i>classes12.zip is not compatible with JDK 1.4.</i>
    From the note : <b>831162</b>
    Oracle JDBC Driver (classes12.zip / classes12.jar) Deadlocks
    <b>Q: I have deployed the Oracle classes12.zip / classes12.jar JDBC driver as per the instructions in the XI Configuration Guide.
    Unfortunately, I frequently notice hanging database connections. A thread dump taken according to the instructions in note 710154 shows one or more blocking JDBC Sender/Reciver threads and optionally that the JVM has detected a deadlock.
    A: The Oracle classes12.zip / classes12.jar driver is compatible with Java 1.2 and Java 1.3 only, but not with Java 1.4. Please upgrade to a current driver (ojdbc14.jar), which does support the Java 1.4 JVM you are using.
    Please make sure that you remove classes12.zip / classes12.jar from aii_af_jmsproviderlib.sda prior to adding the new driver as per the instructions in the answer to question #1 above as you will get a class name collision otherwise (all JARs from aii_af_jmsproviderlib.sda are loaded into the same class loader and the driver class name of both driver versions is the same).
    Before deploying the updated driver, ensure that the new version is still compatible with your Oracle database server release. For details, please refer to the release notes provided by Oracle.</b>
    Regards,
    Bhavesh

  • How to send queries to an application server?

    hello everybody
    I'm working on a project in which i've implemented a presentation layer
    for rich client (with java swing)
    the issue now is how to send a query to the application server
    i have the choice between :
    -XML
    -EJB
    -WEB SERVICES
    -RMI
    and i must chose the best method and justify it
    could u please help me
    thank u and have a nice a day

    hi,
    It depends on u r need. Each has its oun advantages and disadvantages.
    XML : it is simply test file. but you shoud have database which support xml.
    EJB : Part of J2EE. so you should have compatible web server. Again u have choice of session / session less bean , Entiry bean (BMP, CMP), and Message Driven Bean. All are for differnt purpose.
    WEb Services : You need to know about SOA, UDDI. Its h/w, s/w, programming language independent.
    RMI : For distributed application. But both should be java clints.
    So check out your requirments. And choose most appropriate.
    Hope this will help u.
    ....yogesh

  • How to send the file in *application server* as an email?

    Hi,
    I have a file in application server and I want to send that file as an email from application server.
    Please let me know how to do it.

    Hi Suman,
    look here:
    Re: How to send an email from Application server?
    Regards, Dieter

  • Sending query result as html email

    hi,
    I have requirement to send query result as html emial to user, is there a possibility to send it?
    database is 11.2.3
    thanks,
    7Z

    Google is your friend
    http://oracle-base.com/articles/misc/email-from-oracle-plsql.php
    https://www.google.nl/search?q=send+email+oracle+database+11g

  • Sending data from final internal table  to application server in xml format

    hi to all ,
    can anyone send details about send data from final internal table to application server in xml format.right now i am able to download data to presentation server in xml format . love to here soon from all the abap gigs.

    welcome to SDN.
    are you using call transformation to convert itab to XML? the XML string is in which format?
    convert it to xstring and then use the following code to store it in application server.
    OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    TRANSFER XML_content TO FNAME.
    CLOSE DATASET FNAME.
    where fname is the path to the file name.
    Regards
    Raja

  • Error while downlaoding smartform into Application server in PDF format

    Hi friends,
    I am downlaoding Smartform to Application server in PDF format.  getting below dump while executing  
    OPEN DATASET p_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    TRANSFER i_tline TO p_filename
    CLOSE DATASET p_filename.
    if i add  " IGNORING CONVERSION ERRORS " after ENCODING DEAFULT then i am not getting dump and pdf file is creating but i am not able to see LOGO in SAP Application server ( downlaoded back from application server to my pc and checked it).
    DUMP:
    here i am getting dump saying that : You cannot convert the character set
    Runtime Error          CONVT_CODEPAGE
    Exception              CX_SY_CONVERSION_CODEPAGE
    What happened?
    While a text was being converted from code page '4102' to '4110', one of
    the following occurred:
    - an character was discovered that could not be represented in one of
    the two code pages;
    - the system established that this conversion is not supported.
    2 characters could not be represented (and thus could not converted).
    If 2 = 0, a second or a different error has occurred.
    Please Help.
    Thanks

    Hi
    I think some basis related configuartions to be done
    Try like this and inform me
    A cyclic job runs, which processes the messages seen in the SOST queue.
    Are you sure it's not the frequency of the cyclic job, rather than the
    number of messages in the queue, that you are observing? In messages
    that are queued and before the cyclic job runs, "wait for comm. service"
    is the normal status.
    If you mean that there are always 4 items queued in SOST regardless of
    the cyclic send job, then I have no ideas. I would have thought there
    was no way to do that.
    when the send job runs it just never
    picks them up & sends them, while it picks up many others. The send job
    is somehow blind to these; no error message occurs. In this case, I
    'delete' them from the queue (in SOST) and then 'undelete' (drop down
    menu -> /Go to /Deleted Items) them and then re-queue them. THEN they
    actually get picked up & sent when the next cyclic send job executes.
    Regards
    Pavan

  • How to send query results from BW to R/3 abap program

    Hi,
    I have to bring in query results from BW into a abap program written in R/3...can anyone help me on how to accomplish this(BW to R/3) please...i was thinking if reporting agent or broadcasting should help but i dont know how to get started.
    Please help.
    Thank you so much.

    Hi Vijay,
      As i know, you can send data from BW to Flat file or into any table in BW or to BW application server only.
      You need 3rd party to send data to different server.
    You can use
    1. Tcode : RSCRM_BAPI to download query values/results into a table or into a flat file. OR
    2. You can use Infospokes to generate files from ODS/CUBE/master data objects to flat files(local/application server) or to a table.
    3. Using information broadcasting we can send mail(dont know much options), but i dont think generation of file possible.
      You need to trnasfer generated file from BW to R/3 and load into R/3 using BDC or LSMW(if data is low).
      I think, you can also use RFC function modules to read data from BW to R/3, plz check with ABAPer.
    Hope it Helps
    Srini

  • Sending query results to an excel file

    hai friends,
    Can any one help me out in sending the results of a query to an excel file once i press a button on my jsp.
    I need to display the results of the query and has to send those results to the excel file.
    Thanks and regards,
    ravikiran

    The solution is simple and the trick lies in setting the Content Type of the response and producing the output.
    If we remember, while coding in servlets, one needs to set the content type on the response object. For outputting in Excel format, the content type has to be set as "application/vnd.ms-excel"
    Once this is done, the servlet knows that it has to produce the output in MS Excel Sheet.
    You can query the databsae and loop over your record set and output it in any manner you like.
    eg
    <!-- Printing the Row Headers-->
    out.println("Header1 \t Header 2 \t Header3");
    <!-- printing the actual values from database-->
    while(rs.next()){
    out.println(rs.getString(1) + "\t" + rs.getString(2) + "\t" + rs.getString(3));
    Hopefully this will work for all of you.
    Thanks

  • Tracing query generated from application server

    Hi all,
    I'm trying to trace a session which is logged in to an application server.
    The application server and database server are in a windows 2003 platform.
    When I'm trying to generate a report from the application server it seems that it generates another session and when I checked on the program column from v$session, it was executed by java.exe.
    There are 2 similiar reports that existed in the application server the other one is really fast and the other one is really slow.
    using the deprecated parameter sql_trace which I can set to true, I can always get the trace file.
    How can I trace that fast generated report that I need to compare with the slow one without using the sql_trace parameter?
    My difficulty is just that when I click on the preview button which is going to preview it to PDF, it will spawn another session and that session will execute java.exe to generate the report.
    May be any of you can give me a suggestion on the things that I need to do with this.
    Regards,
    Adhika

    Hi Finbar,
    for the slow report, I was able to see the session from v$session but for the fast report, even if I prepred the query first before running the report, I don't have enough time to check it.
    it was just to fast. so definitely the fast query has something which is really right so it can generate the query really really fast compare to the slow report.
    FYI, my office is not in the same office as the developer so there's no way I can ask them either and also, there's no way for me to comunicate directly to developer as I need to go through some levels and procedures in my company.
    Thank you,
    Adhika

  • Storing query results in file server via Information Broadcasting service

    Dear Experts,
    We use BI7.0.
    I want to get the query results as PDF file or Excel file
    stored in file server or BW server, EP server by night batch job.
    (Not the distribution of query via E-mail.)
    BW3.5, I think we can use pre-calculation service for that case.
    BW7.0, I could not find such settings in EP Broadcasting service.
    Please help me...
    Kanako Imamura

    Thanks Deepu!
    I found another tips;
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b891da90-0201-0010-fba7-8c35824c83a8
    Kanako Imamura

  • How to send communication message from application server to load balancer

    Hi,
    Environment: 8 application servers are clustered behind a load balancer. Java/J2EE based client-server application
    When any one of the servers is supposed to go down, I want to send a message from that server, programmatically, to load balancer something which signifies "server is down or going down, do not forward any client connections to me". This is to avoid any CLOSE_WAITs.
    How do I achieve this? How can I send message programmatically from app server to load balancer? From very basic knowledge, SNMP can be used for this. But do not know how to start of. Any other means is also OK. Need details.
    Thanks
    Sunil

    At the same time we stop accepting any new connections [ServerSocket.accept() will be escaped during server shutdown].Just close the ServerSocket.
    Both these are working fine. But during the 25 seconds, still the client connections gets queued up trying to find that serverNot if you close the ServerSocket.
    reason being the load balancer is still forwarding requests to this server whose shutdown has started but not completed. So CLOSE_WAITS happen.Not if you close the ServerSocket. Not that the CLOSE_WAITS are the actual problem, as they will all disappear when the server exits. It's more that the clients shouldn't have been able to create the connection in the first place. Which wouldn't have happened if you had closed the ServerSocket.
    If we tell load balancer not to send any more client socket connections, then we completely avoid getting CLOSE_WAITS.If you close the ServerSocket ditto.

Maybe you are looking for

  • InDesign Crashing on Mac

    Please see error report for details. Client says that InDesign is crashing often and providing this error report. Thanks.

  • Why do placed images in illustrator print a different shade of black than the black in the document?

    It has happened to me more than a few times. For example, I'll place artwork that was created in photoshop into an illustrator document, and the blacks are inconsistent. Any advice?

  • Samsung M320 Bluetooth connection to Tx

    I can pair my Samsung to the Tx, but it will not connect. Are there drivers suitable for the phone? I have updated the drivers however there are none listed for Samsung, Can another be used? Currently, I have paired using  the universal driver. Post

  • Steps to create database link

    i got these info from my teacher to create database link 1.     Establish the network connection. 2.     Shutdown the database. (SQL>shutdown immediate ;) 3.     Open and modify the pfile and set GLOBAL_NAME = FALSE. 4.     Create spfile from pfile.

  • Give me steps

    Dice Attached Files:  Dice Rolling.PNG (47.006 KB) Summary: Dice Rolling, Forms, Menus, AI This is a two player game, each player takes turns rolling a single six sided die. When a player's turn starts. They should only have one option, to click the