CMC - Cannot export "Check Relationship" query results to CSV - XIR3

Hi
I'm trying to export the users belonging to a particular user group in CMC to a .CSV file.
In order to do this, I go to "Users and Groups" tab and right-click on the desired group under the Group Hierarchy link.
I select the >Tools Option and then > Check Relationships.
The query generates all users assigned to that group but the EXPORT to .csv icon remains disabled.
The EXPORT to .csv icon only seems to become enabled if I select Create Security Query, which does not seem to do what I need it to do.
Is this lack of functionality for the Relationship Query by design or is this something like a user access level configuration issue?
Is there an alternative approach to this?
Thank you
- Ment.

Still the same issue on BO 4.0 SP8
'Relationship Query' does not allow export to CSV option. However, it works fine for 'Security Query'.
Is this an issues or is it intentional? Please can you suggest a work around?
Is there any plan to change this in upcoming versions?
Thanks!
Best Regards,
Rig

Similar Messages

  • Exporting BEx Query results to CSV or other files.

    Hi All,
    We have a report designed in WAD, which uses a BEx query to display department’s information. Because of amount of data in the results it crashes when u get all the Free Characters into ROWS(Error is : Result set too large(552244 cells); data retrieval restricted by configuration (maximum =500000 cells).  It is a requirement from the user to have all the free characteristics in the rows( which I can understand is not the right way to go ahead). As it is crashing when you add last characteristic(WBS Purpose)  into the rows, they aren’t able to export data into spread sheet from the results. (as there are no results)
    Now my question is…..is there any way we can export the results from BEX query into any format for example text or csv? If yes, can we schedule that process? Please note that this characteristics are displayed as hierarchies.
    Am new to SAP BW and its been only six months since I have been in this role. Any help would be much appreciated???
    I looked online and some where in the forum it was mentioned of using program RSCRM_BAPI, but looks like it needs some sort of downloads from SAP.
    Is there any other way to export the BEx query results?
    Cheers
    Sandeep

    Hello Sandeep,
    You can use the Item "Context Menu" in your WAD and in the properties by default you can see the Options:
    Export to Excel & Export to CSV will be there and also there are many options which you wanted to see.
    It works for you!!!
    With Regards,
    PJ.

  • Check Relationships query tool

    Is there a reason a user's personal favorites folder would not display a report using a universe? The check relationship tool was used to check for objects using a specific universe. One particular user we know has customized report in there favorites folder using this universe did not show. Other users folders/reports did appear.  This was done while logged into the CMC with the administrator user name and password.

    The WIP, Recycle and Universe folders are in the repository in the CMC. These folders also exist on the designer machine.
    When the universe is imported it is in the local folder. Note our designers have the ability to move these universes to another folder.
    All production universes exist in the folder Universe on the server. When we need to make a change we lock the production universe and import it from the server to our local machine. The changes are made then it is exported to WIP.  WIP is like our QA Testing area. The universe remains there until we verify the changes are ready to go back to production. When ready, universe is exported from WIP to Universe. Prompted to Move or Copy, we choose Move.
    This is all done within the designer client.
    I'm sure this is clear as mud.
    Thanks

  • Export query result to csv using Export Wizard

    Been a decade since I last used Oracle and related tools.
    I had to use Oracle server again, I have a query over multiple tables, I am to run a scheduled script that will spit out the query result as a csv file.
    I started with SQL Developer Export wizard, in step "Specify Data", I am at a loss, where to specify the query itself? I see a Name,Schema,Type input, a text area below, Up,UpAll,Down,DownAll buttons etc etc. Where do I specify my query here? Can someone please help?
    Is this the best way to go about to schedule a data export (query to csv) daily?

    To export a user query rather than a whole table, run it in a worksheet and export using the context menu on the result grid. However none can be scheduled.
    Instead you can look at the SPOOL command and schedule it through SQL*Plus. Any questions can go to the iSQL*Plus and/or SQL And PL/SQL forum.
    Have fun,
    K.

  • Export a query results to CSV

    Hi all,
    I am currently planning to develop a program that does the following things:
    1. Connects to the Oracle database
    2. Runs a query
    3. Export the results of the query to a CSV file in a folder
    If theres anyone out there who has experienced in similliar work, please explain to me with codes as example or point to me tutorials.
    cheers
    SI

    jwenting wrote:
    johndjr wrote:
    jschell wrote:
    johndjr wrote:
    DrClap wrote:
    Of course there are people who can't tell the difference between a CSV file and an Excel spreadsheet.And a good thing I say. I deal with a number of people who love their spreadsheets. I can create a simple CSV file and when they double click on it on Windows, Excel opens a spreadsheet and we are both happy.I bet they would be happier if it was a real spreadsheet.You would almost certainly win that bet.I doubt many of them would even notice :)++

  • Export query results into .csv file?

    Hello I have a T-SQL script that gets row counts for a specified date range and then needs to loop (by incrementing +1 day to get the next day's counts) for a large date range.  I'm aiming to output & append each query results day counts
    into a .csv file via a SQL Agent job since this will take quite a while to complete.
    Would using the following as an example template...
    INSERT INTO OPENROWSET('Microsoft.ACE.OLEDB.12.0','Text;Database=D:\;HDR=YES;FMT=Delimited','SELECT * FROM [FileName.csv]')
    SELECT Field1, Field2, Field3
    FROM DatabaseName
    ...be the method or something else?
    If this is good to use I've tried running this but get the following error:
    Msg 7357, Level 16, State 2, Line 76
    Cannot process the object "SELECT * FROM [FileName.csv]". The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" indicates that either the object has no columns or the current user does not have permissions
    on that object.
    Thanks in advance.

    Hi Techresearch7777777,
    The error in your post says that the file FileName.csv has to be created with the column names in the first row. Like:
    Field1,Field2,Field3
    Either you can create a schema.ini file under the same folder:
     [FileName.csv]
     Format=CSVDelimited
     ColNameHeader=False
     Col1=Field1 [DataType]
     Col2=Field2 [DataType]
     Col3=Field3 [DataType]
    For the [DataType],you can reference
    Schema.ini File (Text File Driver)
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Cannot export or save filter results

    I do not really see the point of the filter function if you cannot "save as" the results or export the results or even do a count of the results. Does any one know a way round this?
    For example if you have many addresses but want to filter out certain cities. You can use the filter so you are LOOKING at just the cities you want but you cannot then do anything with it - you cannot export just those cities or save as or even count them.

    Hey Tony,
    I agree with you, I also need an easier way to copy/export my filtered results into other sheets.
    When I try to copy the filtered results, Numbers also copy all the cells between the results (eventhough it didn't appear in the results), the only way for me to copy it was do it one by one. this is very painful because I usually working with 20,000 data (20,000 row of cells)
    I'm impressed with the options for us to set unlimited filtering options (in excel, we only can set max 2 filtering options), but Numbers still need to learn much from excel on how to handle the filtered results.
    So far, I still work with excel all the time, the Numbers application is useless in my Mac
    Hope it will be fix in the next update.

  • SQL Query results to CSV as two worksheets

    I'm trying to take two SQL queries and get the results sent to a CSV file on two worksheets.  Looking online I have not found a solid example of using the Excel ComObject to create a CSV then add a new worksheet to the CSV file.  An added bonus
    would be using AutoFit on the columns so everything is easily visible.
    Code found online got me the following script which does work, however it takes 12 minutes to pipe the SQL queries to Excel.  Switching to a CSV and the script executes in 5 seconds.
    This is another nice to have, I was also looking the best way to look at the results (only 1 column) and depending on the length of the data, insert what Excel would call a Cell thereby shifting cells RIGHT but so far have found no clear examples of how
    to accomplish that.  My guess would be modifying my SQL queries but I've posted a question on StackOverFlow and someone suggested modifying the PowerShell Table created from the SQL dataset.Tables
    Code:
    $docs = "C:\Scripts\Output.xlsx"
    If (Test-Path $docs){Remove-Item $docs}
    Function Run-Query {
    param([string[]]$queries,[string[]]$sheetnames)
    ## - Create an Excel Application instance:
    $xlsObj = New-Object -ComObject Excel.Application
    $xlsObj.DisplayAlerts = $false
    $xlsWb = $xlsobj.Workbooks.Add(1)
    ## - Create new Workbook and Sheet (Visible = 1 / 0 not visible)
    $xlsObj.Visible = 0
    $time = 2
    for ($i = 0; $i -lt $queries.Count; $i++){
    $percentage = $i / $time
    $remaining = New-TimeSpan -Seconds ($time - $i)
    $message = "{0:p0} complete" -f $percentage, $remaining
    Write-Progress -Activity "Creating Daily Reboot Spreadsheet" -status $message -PercentComplete ($percentage * 100)
    $query = $queries[$i]
    $sheetname = $sheetnames[$i]
    $xlsSh = $xlsWb.Worksheets.Add([System.Reflection.Missing]::Value, $xlsWb.Worksheets.Item($xlsWb.Worksheets.Count))
    $xlsSh.Name = $sheetname
    ### SQL query results sent to Excel
    $SQLServer = 'ServerName'
    $Database = 'DataBase'
    ## - Connect to SQL Server using non-SMO class 'System.Data':
    $SqlConnection = New-Object System.Data.SqlClient.SqlConnection
    $SqlConnection.ConnectionString = "Server = $SQLServer; Database = $Database; Integrated Security = True"
    $SqlCmd = New-Object System.Data.SqlClient.SqlCommand
    $SqlCmd.CommandText = $query
    $SqlCmd.Connection = $SqlConnection
    ## - Extract and build the SQL data object '$Table2':
    $SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
    $SqlAdapter.SelectCommand = $SqlCmd
    $DataSet = New-Object System.Data.DataSet
    $SqlAdapter.Fill($DataSet)
    $SqlConnection.Close()
    $Table1 = $DataSet.Tables["Table"]
    ## - Build the Excel column heading:
    [Array] $getColumnNames = $Table1.Columns | SELECT ColumnName
    ## - Build column header:
    [Int] $RowHeader = 1
    foreach ($ColH in $getColumnNames)
    $xlsSh.Cells.item(1, $RowHeader).font.bold = $true
    $xlsSh.Cells.item(1, $RowHeader) = $ColH.ColumnName
    $RowHeader++
    ## - Adding the data start in row 2 column 1:
    [Int] $rowData = 2
    [Int] $colData = 1
    foreach ($rec in $Table1.Rows)
    foreach ($Coln in $getColumnNames)
    ## - Next line convert cell to be text only:
    $xlsSh.Cells.NumberFormat = "@"
    ## - Populating columns:
    $xlsSh.Cells.Item($rowData, $colData) = $rec.$($Coln.ColumnName).ToString()
    $ColData++
    $rowData++; $ColData = 1
    ## - Adjusting columns in the Excel sheet:
    $xlsRng = $xlsSH.usedRange
    [void] $xlsRng.EntireColumn.AutoFit()
    }#End For loop.
    #Delete unwanted Sheet1.
    $xlsWb.Sheets.Item('Sheet1').Delete()
    #Set Monday to Active Sheet upon opening Workbook.
    $xlsWb.Sheets.Item('Cert').Activate()
    ## ---------- Saving file and Terminating Excel Application ---------- ##
    $xlsFile = "C:\Scripts\Output.xlsx"
    [void] $xlsObj.ActiveWorkbook.SaveAs($xlsFile)
    $xlsObj.Quit()
    ## - End of Script - ##
    start-sleep 2
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlsRng)) {'cleanup xlsRng'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlsSh)) {'cleanup xlsSh'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlsWb)) {'cleanup xlsWb'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlsObj)) {'cleanup xlsObj'}
    [gc]::collect() | Out-Null
    [gc]::WaitForPendingFinalizers() | Out-Null
    }#End Function
    $queries = @()
    $queries += "Query1"
    $queries += "Query2"
    $sheetnames = @('Cert','Prod')
    Run-Query -queries $queries -sheetnames $sheetnames

    Here's what I ended up with that accomplishes my goal.  I learned it's not possible to create a CSV with two worksheets since Excel will allow this but the CSV cannot be saved with the second worksheet.  Instead, I create two CSV files then merge
    them into one Excel workbook, one CSV per worksheet.  In my case, this happens in 5 seconds.  There is one thing which must be mentioned, I've seen this script fail the first time it is run but will successfully run the second time.
    Also note, after much trial and error, this code correctly cleans up the Excel ComObject!!  -Thanks go to JRV.
    $docs = "D:\Scripts\MonthlyReboots.xlsx"
    IF (Test-Path $docs){Remove-Item $docs}
    $csv1 = "D:\Scripts\Cert.csv"
    IF (Test-Path $csv1){Remove-Item $csv1}
    $csv2 = "D:\Scripts\Prod.csv"
    IF (Test-Path $csv2){Remove-Item $csv2}
    Function Run-Query {
    param([string[]]$queries,[string[]]$sheetnames,[string[]]$filenames)
    Begin{
    $SQLServer = 'ServerName'
    $Database = 'DataBase'
    $SqlConnection = New-Object System.Data.SqlClient.SqlConnection
    $SqlConnection.ConnectionString = "Server = $SQLServer; Database = $Database; Integrated Security = True"
    $Excel = New-Object -ComObject Excel.Application
    $Excel.Visible = 0
    $dest = $Excel.Workbooks.Add(1)
    }#End Begin
    Process{
    For($i = 0; $i -lt $queries.Count; $i++){
    $SqlCmd = New-Object System.Data.SqlClient.SqlCommand
    $SqlCmd.CommandText = $queries[$i]
    $SqlCmd.Connection = $SqlConnection
    $SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
    $SqlAdapter.SelectCommand = $SqlCmd
    $DataSet = New-Object System.Data.DataSet
    $SqlAdapter.Fill($DataSet)
    $DataSet.Tables[0] | Export-Csv -NoTypeInformation -Path "D:\Scripts\$($sheetnames[$i]).csv" -Force
    }#end for loop.
    }#End Process
    End{
    $SqlConnection.Close()
    #Excel magic test!
    For($i = 0; $i -lt $queries.Count; $i++){
    $loopy = (Resolve-Path -Path $filenames[$i]).ProviderPath
    $Book = $Excel.Workbooks.Open($loopy)
    $next = $Excel.workbooks.Open($loopy)
    $next.ActiveSheet.Move($dest.ActiveSheet)
    $xlsRng = $dest.ActiveSheet.UsedRange
    $xlsRng.EntireColumn.AutoFit() | Out-Null
    $dest.sheets.item('Sheet1').Delete()
    $xlsFile = "D:\Scripts\MonthlyReboots.xlsx"
    [void] $Excel.ActiveWorkbook.SaveAs($xlsFile)
    $Excel.Quit()
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlsRng)) {'cleanup xlsRng'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($next)) {'cleanup xlsSh'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($Book)) {'cleanup xlsWb'}
    While ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($Excel)) {'cleanup xlsObj'}
    [gc]::collect() | Out-Null
    [gc]::WaitForPendingFinalizers() | Out-Null
    }#End end block.
    }#End function run-query.
    $queries = @()
    $queries += @'
    Select * from table1
    $queries += @'
    Select * from table2
    $sheetnames = @("Cert","Prod")
    $filenames = @("D:\Scripts\Prod.csv","D:\Scripts\Cert.csv")
    Run-Query -queries $queries -sheetnames $sheetnames -filenames $filenames
    Start-Sleep -Milliseconds 50
    Invoke-Item D:\Scripts\MonthlyReboots.xlsx

  • How to upload the web query result  to CSV/Text file

    Hi,
    Kindly help me on the following.
    1)       I have info-provider (IP), which has info-objects "company code" and "supplier".
    2)       I built a query by putting company-code with a variable in free-charateristics and supplier-code in row.
    3)       When I run this query, it will ask company-code as input and the result will be filtered using company-code.
    4)       For this query, I created a web-template and assigned data-provider to display the data on the web.
    5)       The user wants to enter input company-code='1000' and write the data in a CSV file in a specific directory. i.e, by clicking the execute button (after entering company code) , the result should go to the CSV or text file. i.e. the application should automatically generate the file with query results.
    Note: The user should not use context menu to EXPORT TO CSV OR EXCEL file.
    Please let me know, if there is any tutorial. Thanks a lot advance help.
    Regards
    Kandasamy

    1. SELECT INTO
    Below method will create table when data is inserted from one table to another table. Its useful when you need exactly same datatype as source table.
    Use AdventureWorks2008R2;
    Go
    ---Insert data using SELECT INTO
    SELECT AddressLine1, City
    INTO BothellAddresses
    FROM Person.Address
    where City = 'Bothell';
    GO
    ---VERIFY DATA
    Select AddressLine1, City
    FROM BothellAddresses
    ---DROP TABLE
    DROP TABLE BothellAddresses
    GO
    2. INSERT INTO SELECT
    Below method will need table to be created prior to inserting data. Its really useful when table is already created and you want insert data from
    another table.
    Use AdventureWorks2008R2;
    Go
    ---Create Table
    CREATE TABLE BothellAddresses (AddressLine1 NVARCHAR(60), City NVARCHAR(30))
    ---Insert into above table using SELECT
    INSERT INTO BothellAddresses(AddressLine1, City)
    SELECT AddressLine1, City
    FROM Person.Address
    where City = 'Bothell';
    ---VERIFY DATA
    Select AddressLine1, City
    FROM BothellAddresses
    ---DROP TABLE
    DROP TABLE BothellAddresses
    GO
    Regards,
    Vishal Patel
    Blog: http://vspatel.co.uk
    Site: http://lehrity.com

  • PS Connected Query:How 2 Check Child Query Result

    Hi Gurus,
    I am trying to Create a BI Report using PS Connected Query. Its a simple PS Connected Query where Child Query are sub total of various coloumn of Parent Query. I have observed that if a child query doesn't return value then XML file doesn't has tags related to child query. I need to check such condition to notify user that there was no value for a sub total.
    PS Connected Query Data in XML with all child query:
      <?xml version="1.0" encoding="utf-8" ?>
    - <ConnectedQuery name="BH_ESSEVNT_RPT_CQRY" preview="True" query_rows_limit="6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
    - <BH_ESS_EVNT_INFO>
      <A.EVENT_DT>12/25/2013</A.EVENT_DT>
    - <A.EVENT_NAME>
    - <![CDATA[ SUSAN G. KOMEN RACE
      ]]>
      </A.EVENT_NAME>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ TEST
      ]]>
      </A.EVENT_3CS_ID>
    - <BH_ESS_EVNT_EE_DATA>
    - <A.EMPLID>
    - <![CDATA[ 1031
      ]]>
      </A.EMPLID>
    - <B.FIRST_NAME>
    - <![CDATA[ PER1031
      ]]>
      </B.FIRST_NAME>
    - <B.LAST_NAME>
    - <![CDATA[ HRC013
      ]]>
      </B.LAST_NAME>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ TEST
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_EVNT_REG_TYPE>
    - <![CDATA[ E
      ]]>
      </A.BH_EVNT_REG_TYPE>
    - <A.SEX>
    - <![CDATA[ U
      ]]>
      </A.SEX>
      <A.AGE>21</A.AGE>
    + <A.FIRST_NAME>
    - <![CDATA[ PER1031
      ]]>
      </A.FIRST_NAME>
    - <A.LAST_NAME>
    - <![CDATA[ HRC013
      ]]>
      </A.LAST_NAME>
    - <A.LOCATION>
    - <![CDATA[ PWCTEST
      ]]>
      </A.LOCATION>
      <A.ADDRESS1 />
      <A.ADDRESS2 />
    - <A.CITY>
    - <![CDATA[ miami
      ]]>
      </A.CITY>
    - <A.STATE>
    - <![CDATA[ FL
      ]]>
      </A.STATE>
    - <A.POSTAL>
    - <![CDATA[ 33173
      ]]>
      </A.POSTAL>
      <A.EMAIL_ADDR />
      <A.PHONE />
      <A.TIME_RQRMT_AMT>120</A.TIME_RQRMT_AMT>
    - <A.BH_WALK_RUN>
    - <![CDATA[ R
      ]]>
      </A.BH_WALK_RUN>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ X
      ]]>
      </A.BH_ADLT_SHRT_SZ>
    - <A.BH_YNG_SHRT_SZ>
    - <![CDATA[ 3
      ]]>
      </A.BH_YNG_SHRT_SZ>
    - <A.BH_METRORAIL_PASS>
    - <![CDATA[ Y
      ]]>
      </A.BH_METRORAIL_PASS>
    - <A.LOCATION2>
    - <![CDATA[ PWCTEST
      ]]>
      </A.LOCATION2>
    - <A.BH_LUNCH>
    - <![CDATA[ T
      ]]>
      </A.BH_LUNCH>
    - <A.BH_BC_SURVIVOR>
    - <![CDATA[ Y
      ]]>
      </A.BH_BC_SURVIVOR>
      <A.DATETIME_STAMP>11/14/2013 23:08:19</A.DATETIME_STAMP>
      </BH_ESS_EVNT_EE_DATA>
    - <BH_ESS_EVNT_EE_DATA>
    - <A.EMPLID>
    - <![CDATA[ 1031
      ]]>
      </A.EMPLID>
    - <B.FIRST_NAME>
    - <![CDATA[ PER1031
      ]]>
      </B.FIRST_NAME>
    - <B.LAST_NAME>
    - <![CDATA[ HRC013
      ]]>
      </B.LAST_NAME>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ TEST
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_EVNT_REG_TYPE>
    - <![CDATA[ G
      ]]>
      </A.BH_EVNT_REG_TYPE>
    - <A.SEX>
    - <![CDATA[ F
      ]]>
      </A.SEX>
      <A.AGE>21</A.AGE>
    - <A.FIRST_NAME>
    - <![CDATA[ guest
      ]]>
      </A.FIRST_NAME>
    - <A.LAST_NAME>
    - <![CDATA[ test5
      ]]>
      </A.LAST_NAME>
    - <A.LOCATION>
    - <![CDATA[ PWCTEST
      ]]>
      </A.LOCATION>
      <A.ADDRESS1 />
      <A.ADDRESS2 />
    - <A.CITY>
    - <![CDATA[ miami
      ]]>
      </A.CITY>
    - <A.STATE>
    - <![CDATA[ FL
      ]]>
      </A.STATE>
    - <A.POSTAL>
    - <![CDATA[ 33173
      ]]>
      </A.POSTAL>
      <A.EMAIL_ADDR />
      <A.PHONE />
      <A.TIME_RQRMT_AMT>120</A.TIME_RQRMT_AMT>
    - <A.BH_WALK_RUN>
    - <![CDATA[ S
      ]]>
      </A.BH_WALK_RUN>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ X
      ]]>
      </A.BH_ADLT_SHRT_SZ>
    - <A.BH_YNG_SHRT_SZ>
    - <![CDATA[ N
      ]]>
      </A.BH_YNG_SHRT_SZ>
    - <A.BH_METRORAIL_PASS>
    - <![CDATA[ Y
      ]]>
      </A.BH_METRORAIL_PASS>
    - <A.LOCATION2>
    - <![CDATA[ PWCTEST
      ]]>
      </A.LOCATION2>
    - <A.BH_LUNCH>
    - <![CDATA[ T
      ]]>
      </A.BH_LUNCH>
    - <A.BH_BC_SURVIVOR>
    - <![CDATA[ Y
      ]]>
      </A.BH_BC_SURVIVOR>
      <A.DATETIME_STAMP>11/14/2013 23:08:19</A.DATETIME_STAMP>
      </BH_ESS_EVNT_EE_DATA>
    - <BH_ESSEVNT_YSHRT_CNT_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ TEST
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_YNG_SHRT_SZ>
    - <![CDATA[ 3
      ]]>
      </A.BH_YNG_SHRT_SZ>
    - <EXPR4_4>
    - <![CDATA[ Youth Large
      ]]>
      </EXPR4_4>
      <EXPR3_3>1</EXPR3_3>
      </BH_ESSEVNT_YSHRT_CNT_QRY>
    - <BH_ESSEVNT_YSHRT_CNT_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ TEST
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_YNG_SHRT_SZ>
    - <![CDATA[ N
      ]]>
      </A.BH_YNG_SHRT_SZ>
    - <EXPR4_4>
    - <![CDATA[ NA
      ]]>
      </EXPR4_4>
      <EXPR3_3>1</EXPR3_3>
      </BH_ESSEVNT_YSHRT_CNT_QRY>
    - <BH_ESSEVNT_ASHRT_CNT_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ TEST
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ X
      ]]>
      </A.BH_ADLT_SHRT_SZ>
    - <EXPR1_1>
    - <![CDATA[ Adult  X-Large
      ]]>
      </EXPR1_1>
      <EXPR3_3>2</EXPR3_3>
      </BH_ESSEVNT_ASHRT_CNT_QRY>
    - <BH_ESSEVNT_METROPASS_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ TEST
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_METRORAIL_PASS>
    - <![CDATA[ Y
      ]]>
      </A.BH_METRORAIL_PASS>
      <EXPR3_3>2</EXPR3_3>
      </BH_ESSEVNT_METROPASS_QRY>
    - <BH_ESSEVNT_TOTEE_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ TEST
      ]]>
      </A.EVENT_3CS_ID>
      <EXPR3_3>1</EXPR3_3>
      </BH_ESSEVNT_TOTEE_QRY>
    - <BH_ESSEVNT_TOTREG_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ TEST
      ]]>
      </A.EVENT_3CS_ID>
      <EXPR3_3>2</EXPR3_3>
      </BH_ESSEVNT_TOTREG_QRY>
    - <BH_ESSEVNT_LUNCH_CNT_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ TEST
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_LUNCH>
    - <![CDATA[ T
      ]]>
      </A.BH_LUNCH>
    - <EXPR4_4>
    - <![CDATA[ Turkey
      ]]>
      </EXPR4_4>
      <EXPR3_3>2</EXPR3_3>
      </BH_ESSEVNT_LUNCH_CNT_QRY>
      </BH_ESS_EVNT_INFO>
      </ConnectedQuery>
    PS Connected Query Data in XML with a missing child query(this is highlighted in bold in above query):
      <?xml version="1.0" encoding="utf-8" ?>
    - <ConnectedQuery name="BH_ESSEVNT_RPT_CQRY" preview="True" query_rows_limit="6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
    - <BH_ESS_EVNT_INFO>
      <A.EVENT_DT>11/22/2013</A.EVENT_DT>
    - <A.EVENT_NAME>
    - <![CDATA[ MIAMI MARATHON 2013
      ]]>
      </A.EVENT_NAME>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    + <BH_ESS_EVNT_EE_DATA>
    - <A.EMPLID>
    - <![CDATA[ 1023
      ]]>
      </A.EMPLID>
    - <B.FIRST_NAME>
    - <![CDATA[ PER1023
      ]]>
      </B.FIRST_NAME>
    - <B.LAST_NAME>
    - <![CDATA[ HRC013
      ]]>
      </B.LAST_NAME>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_EVNT_REG_TYPE>
    - <![CDATA[ E
      ]]>
      </A.BH_EVNT_REG_TYPE>
    - <A.SEX>
    - <![CDATA[ U
      ]]>
      </A.SEX>
      <A.AGE>21</A.AGE>
    - <A.FIRST_NAME>
    - <![CDATA[ PER1023
      ]]>
      </A.FIRST_NAME>
    - <A.LAST_NAME>
    - <![CDATA[ HRC013
      ]]>
      </A.LAST_NAME>
    - <A.LOCATION>
    - <![CDATA[ PWCTEST
      ]]>
      </A.LOCATION>
    - <A.ADDRESS1>
    - <![CDATA[ 3453 sw 242 street
      ]]>
      </A.ADDRESS1>
      <A.ADDRESS2 />
    - <A.CITY>
    - <![CDATA[ Miami
      ]]>
      </A.CITY>
    - <A.STATE>
    - <![CDATA[ FL
      ]]>
      </A.STATE>
    - <A.POSTAL>
    - <![CDATA[ 65454
      ]]>
      </A.POSTAL>
    - <A.EMAIL_ADDR>
    - <![CDATA[ [email protected]
      ]]>
      </A.EMAIL_ADDR>
    - <A.PHONE>
    - <![CDATA[ 352/874-5424
      ]]>
      </A.PHONE>
      <A.TIME_RQRMT_AMT>0</A.TIME_RQRMT_AMT>
    - <A.BH_WALK_RUN>
    - <![CDATA[ R
      ]]>
      </A.BH_WALK_RUN>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ X
      ]]>
      </A.BH_ADLT_SHRT_SZ>
      <A.BH_YNG_SHRT_SZ />
    - <A.BH_METRORAIL_PASS>
    - <![CDATA[ Y
      ]]>
      </A.BH_METRORAIL_PASS>
      <A.LOCATION2 />
      <A.BH_LUNCH />
    - <A.BH_BC_SURVIVOR>
    - <![CDATA[ Y
      ]]>
      </A.BH_BC_SURVIVOR>
      <A.DATETIME_STAMP>11/15/2013 11:24:44</A.DATETIME_STAMP>
      </BH_ESS_EVNT_EE_DATA>
    - <BH_ESS_EVNT_EE_DATA>
    - <A.EMPLID>
    - <![CDATA[ 1023
      ]]>
      </A.EMPLID>
    - <B.FIRST_NAME>
    - <![CDATA[ PER1023
      ]]>
      </B.FIRST_NAME>
    - <B.LAST_NAME>
    - <![CDATA[ HRC013
      ]]>
      </B.LAST_NAME>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_EVNT_REG_TYPE>
    - <![CDATA[ G
      ]]>
      </A.BH_EVNT_REG_TYPE>
    - <A.SEX>
    - <![CDATA[ F
      ]]>
      </A.SEX>
      <A.AGE>25</A.AGE>
    - <A.FIRST_NAME>
    - <![CDATA[ Christina
      ]]>
      </A.FIRST_NAME>
    - <A.LAST_NAME>
    - <![CDATA[ Marie
      ]]>
      </A.LAST_NAME>
    - <A.LOCATION>
    - <![CDATA[ PWCTEST
      ]]>
      </A.LOCATION>
    - <A.ADDRESS1>
    - <![CDATA[ 34134 sw 23 street
      ]]>
      </A.ADDRESS1>
      <A.ADDRESS2 />
    - <A.CITY>
    - <![CDATA[ Ft Lauderdale
      ]]>
      </A.CITY>
    - <A.STATE>
    - <![CDATA[ FL
      ]]>
      </A.STATE>
    - <A.POSTAL>
    - <![CDATA[ 33264
      ]]>
      </A.POSTAL>
    - <A.EMAIL_ADDR>
    - <![CDATA[ [email protected]
      ]]>
      </A.EMAIL_ADDR>
    - <A.PHONE>
    - <![CDATA[ 506/545-5427
      ]]>
      </A.PHONE>
      <A.TIME_RQRMT_AMT>0</A.TIME_RQRMT_AMT>
    - <A.BH_WALK_RUN>
    - <![CDATA[ W
      ]]>
      </A.BH_WALK_RUN>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ L
      ]]>
      </A.BH_ADLT_SHRT_SZ>
      <A.BH_YNG_SHRT_SZ />
    - <A.BH_METRORAIL_PASS>
    - <![CDATA[ Y
      ]]>
      </A.BH_METRORAIL_PASS>
      <A.LOCATION2 />
      <A.BH_LUNCH />
    - <A.BH_BC_SURVIVOR>
    - <![CDATA[ Y
      ]]>
      </A.BH_BC_SURVIVOR>
      <A.DATETIME_STAMP>11/15/2013 11:24:44</A.DATETIME_STAMP>
      </BH_ESS_EVNT_EE_DATA>
    - <BH_ESS_EVNT_EE_DATA>
    - <A.EMPLID>
    - <![CDATA[ 1023
      ]]>
      </A.EMPLID>
    - <B.FIRST_NAME>
    - <![CDATA[ PER1023
      ]]>
      </B.FIRST_NAME>
    - <B.LAST_NAME>
    - <![CDATA[ HRC013
      ]]>
      </B.LAST_NAME>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_EVNT_REG_TYPE>
    - <![CDATA[ G
      ]]>
      </A.BH_EVNT_REG_TYPE>
    - <A.SEX>
    - <![CDATA[ M
      ]]>
      </A.SEX>
      <A.AGE>30</A.AGE>
    - <A.FIRST_NAME>
    - <![CDATA[ Bobby
      ]]>
      </A.FIRST_NAME>
    - <A.LAST_NAME>
    - <![CDATA[ Brown
      ]]>
      </A.LAST_NAME>
    - <A.LOCATION>
    - <![CDATA[ PWCTEST
      ]]>
      </A.LOCATION>
    - <A.ADDRESS1>
    - <![CDATA[ 2324 sw 23 street
      ]]>
      </A.ADDRESS1>
      <A.ADDRESS2 />
    - <A.CITY>
    - <![CDATA[ Miami
      ]]>
      </A.CITY>
    - <A.STATE>
    - <![CDATA[ FL
      ]]>
      </A.STATE>
    - <A.POSTAL>
    - <![CDATA[ 33552
      ]]>
      </A.POSTAL>
    - <A.EMAIL_ADDR>
    - <![CDATA[ [email protected]
      ]]>
      </A.EMAIL_ADDR>
    - <A.PHONE>
    - <![CDATA[ 654/654-6434
      ]]>
      </A.PHONE>
      <A.TIME_RQRMT_AMT>0</A.TIME_RQRMT_AMT>
    - <A.BH_WALK_RUN>
    - <![CDATA[ R
      ]]>
      </A.BH_WALK_RUN>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ X
      ]]>
      </A.BH_ADLT_SHRT_SZ>
      <A.BH_YNG_SHRT_SZ />
    - <A.BH_METRORAIL_PASS>
    - <![CDATA[ Y
      ]]>
      </A.BH_METRORAIL_PASS>
      <A.LOCATION2 />
      <A.BH_LUNCH />
    - <A.BH_BC_SURVIVOR>
    - <![CDATA[ Y
      ]]>
      </A.BH_BC_SURVIVOR>
      <A.DATETIME_STAMP>11/15/2013 11:24:50</A.DATETIME_STAMP>
      </BH_ESS_EVNT_EE_DATA>
    - <BH_ESS_EVNT_EE_DATA>
    - <A.EMPLID>
    - <![CDATA[ 1023
      ]]>
      </A.EMPLID>
    - <B.FIRST_NAME>
    - <![CDATA[ PER1023
      ]]>
      </B.FIRST_NAME>
    - <B.LAST_NAME>
    - <![CDATA[ HRC013
      ]]>
      </B.LAST_NAME>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_EVNT_REG_TYPE>
    - <![CDATA[ G
      ]]>
      </A.BH_EVNT_REG_TYPE>
    - <A.SEX>
    - <![CDATA[ M
      ]]>
      </A.SEX>
      <A.AGE>35</A.AGE>
    - <A.FIRST_NAME>
    - <![CDATA[ Mark
      ]]>
      </A.FIRST_NAME>
    - <A.LAST_NAME>
    - <![CDATA[ Haven
      ]]>
      </A.LAST_NAME>
    - <A.LOCATION>
    - <![CDATA[ PWCTEST
      ]]>
      </A.LOCATION>
    - <A.ADDRESS1>
    - <![CDATA[ 135 sw 13 street
      ]]>
      </A.ADDRESS1>
      <A.ADDRESS2 />
    - <A.CITY>
    - <![CDATA[ MIami
      ]]>
      </A.CITY>
    - <A.STATE>
    - <![CDATA[ FL
      ]]>
      </A.STATE>
    - <A.POSTAL>
    - <![CDATA[ 33546
      ]]>
      </A.POSTAL>
    - <A.EMAIL_ADDR>
    - <![CDATA[ [email protected]
      ]]>
      </A.EMAIL_ADDR>
    - <A.PHONE>
    - <![CDATA[ 352/642-6453
      ]]>
      </A.PHONE>
      <A.TIME_RQRMT_AMT>0</A.TIME_RQRMT_AMT>
    - <A.BH_WALK_RUN>
    - <![CDATA[ R
      ]]>
      </A.BH_WALK_RUN>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ Z
      ]]>
      </A.BH_ADLT_SHRT_SZ>
      <A.BH_YNG_SHRT_SZ />
    - <A.BH_METRORAIL_PASS>
    - <![CDATA[ Y
      ]]>
      </A.BH_METRORAIL_PASS>
      <A.LOCATION2 />
      <A.BH_LUNCH />
    - <A.BH_BC_SURVIVOR>
    - <![CDATA[ Y
      ]]>
      </A.BH_BC_SURVIVOR>
      <A.DATETIME_STAMP>11/15/2013 11:25:44</A.DATETIME_STAMP>
      </BH_ESS_EVNT_EE_DATA>
    - <BH_ESS_EVNT_EE_DATA>
    - <A.EMPLID>
    - <![CDATA[ 1023
      ]]>
      </A.EMPLID>
    - <B.FIRST_NAME>
    - <![CDATA[ PER1023
      ]]>
      </B.FIRST_NAME>
    - <B.LAST_NAME>
    - <![CDATA[ HRC013
      ]]>
      </B.LAST_NAME>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_EVNT_REG_TYPE>
    - <![CDATA[ G
      ]]>
      </A.BH_EVNT_REG_TYPE>
    - <A.SEX>
    - <![CDATA[ M
      ]]>
      </A.SEX>
      <A.AGE>35</A.AGE>
    - <A.FIRST_NAME>
    - <![CDATA[ Stephen
      ]]>
      </A.FIRST_NAME>
    - <A.LAST_NAME>
    - <![CDATA[ Travis
      ]]>
      </A.LAST_NAME>
    - <A.LOCATION>
    - <![CDATA[ PWCTEST
      ]]>
      </A.LOCATION>
    - <A.ADDRESS1>
    - <![CDATA[ 654 sw 13 street
      ]]>
      </A.ADDRESS1>
      <A.ADDRESS2 />
    - <A.CITY>
    - <![CDATA[ Miami
      ]]>
      </A.CITY>
    - <A.STATE>
    - <![CDATA[ FL
      ]]>
      </A.STATE>
    - <A.POSTAL>
    - <![CDATA[ 33526
      ]]>
      </A.POSTAL>
    - <A.EMAIL_ADDR>
    - <![CDATA[ [email protected]
      ]]>
      </A.EMAIL_ADDR>
    - <A.PHONE>
    - <![CDATA[ 352/849-5424
      ]]>
      </A.PHONE>
      <A.TIME_RQRMT_AMT>0</A.TIME_RQRMT_AMT>
    - <A.BH_WALK_RUN>
    - <![CDATA[ R
      ]]>
      </A.BH_WALK_RUN>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ M
      ]]>
      </A.BH_ADLT_SHRT_SZ>
      <A.BH_YNG_SHRT_SZ />
    - <A.BH_METRORAIL_PASS>
    - <![CDATA[ Y
      ]]>
      </A.BH_METRORAIL_PASS>
      <A.LOCATION2 />
      <A.BH_LUNCH />
    - <A.BH_BC_SURVIVOR>
    - <![CDATA[ Y
      ]]>
      </A.BH_BC_SURVIVOR>
      <A.DATETIME_STAMP>11/15/2013 11:26:34</A.DATETIME_STAMP>
      </BH_ESS_EVNT_EE_DATA>
    - <BH_ESS_EVNT_EE_DATA>
    - <A.EMPLID>
    - <![CDATA[ 1023
      ]]>
      </A.EMPLID>
    - <B.FIRST_NAME>
    - <![CDATA[ PER1023
      ]]>
      </B.FIRST_NAME>
    - <B.LAST_NAME>
    - <![CDATA[ HRC013
      ]]>
      </B.LAST_NAME>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_EVNT_REG_TYPE>
    - <![CDATA[ G
      ]]>
      </A.BH_EVNT_REG_TYPE>
    - <A.SEX>
    - <![CDATA[ M
      ]]>
      </A.SEX>
      <A.AGE>40</A.AGE>
    - <A.FIRST_NAME>
    - <![CDATA[ John
      ]]>
      </A.FIRST_NAME>
    - <A.LAST_NAME>
    - <![CDATA[ Smith
      ]]>
      </A.LAST_NAME>
    - <A.LOCATION>
    - <![CDATA[ PWCTEST
      ]]>
      </A.LOCATION>
    - <A.ADDRESS1>
    - <![CDATA[ 2498 sw 23 street
      ]]>
      </A.ADDRESS1>
      <A.ADDRESS2 />
    - <A.CITY>
    - <![CDATA[ Miami
      ]]>
      </A.CITY>
    - <A.STATE>
    - <![CDATA[ FL
      ]]>
      </A.STATE>
    - <A.POSTAL>
    - <![CDATA[ 33562
      ]]>
      </A.POSTAL>
    - <A.EMAIL_ADDR>
    - <![CDATA[ [email protected]
      ]]>
      </A.EMAIL_ADDR>
    - <A.PHONE>
    - <![CDATA[ 352/849-5424
      ]]>
      </A.PHONE>
      <A.TIME_RQRMT_AMT>0</A.TIME_RQRMT_AMT>
    - <A.BH_WALK_RUN>
    - <![CDATA[ S
      ]]>
      </A.BH_WALK_RUN>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ M
      ]]>
      </A.BH_ADLT_SHRT_SZ>
      <A.BH_YNG_SHRT_SZ />
    - <A.BH_METRORAIL_PASS>
    - <![CDATA[ Y
      ]]>
      </A.BH_METRORAIL_PASS>
      <A.LOCATION2 />
      <A.BH_LUNCH />
    - <A.BH_BC_SURVIVOR>
    - <![CDATA[ Y
      ]]>
      </A.BH_BC_SURVIVOR>
      <A.DATETIME_STAMP>11/15/2013 11:27:58</A.DATETIME_STAMP>
      </BH_ESS_EVNT_EE_DATA>
    - <BH_ESSEVNT_ASHRT_CNT_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ L
      ]]>
      </A.BH_ADLT_SHRT_SZ>
    - <EXPR1_1>
    - <![CDATA[ Adult Large
      ]]>
      </EXPR1_1>
      <EXPR3_3>1</EXPR3_3>
      </BH_ESSEVNT_ASHRT_CNT_QRY>
    - <BH_ESSEVNT_ASHRT_CNT_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ M
      ]]>
      </A.BH_ADLT_SHRT_SZ>
    - <EXPR1_1>
    - <![CDATA[ Adult Medium
      ]]>
      </EXPR1_1>
      <EXPR3_3>2</EXPR3_3>
      </BH_ESSEVNT_ASHRT_CNT_QRY>
    - <BH_ESSEVNT_ASHRT_CNT_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ X
      ]]>
      </A.BH_ADLT_SHRT_SZ>
    - <EXPR1_1>
    - <![CDATA[ Adult  X-Large
      ]]>
      </EXPR1_1>
      <EXPR3_3>2</EXPR3_3>
      </BH_ESSEVNT_ASHRT_CNT_QRY>
    - <BH_ESSEVNT_ASHRT_CNT_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_ADLT_SHRT_SZ>
    - <![CDATA[ Z
      ]]>
      </A.BH_ADLT_SHRT_SZ>
    - <EXPR1_1>
    - <![CDATA[ Adult  XX-Large
      ]]>
      </EXPR1_1>
      <EXPR3_3>1</EXPR3_3>
      </BH_ESSEVNT_ASHRT_CNT_QRY>
    - <BH_ESSEVNT_METROPASS_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
    - <A.BH_METRORAIL_PASS>
    - <![CDATA[ Y
      ]]>
      </A.BH_METRORAIL_PASS>
      <EXPR3_3>6</EXPR3_3>
      </BH_ESSEVNT_METROPASS_QRY>
    - <BH_ESSEVNT_TOTEE_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
      <EXPR3_3>1</EXPR3_3>
      </BH_ESSEVNT_TOTEE_QRY>
    - <BH_ESSEVNT_TOTREG_QRY>
    - <A.EVENT_3CS_ID>
    - <![CDATA[ MIAMAR13
      ]]>
      </A.EVENT_3CS_ID>
      <EXPR3_3>6</EXPR3_3>
      </BH_ESSEVNT_TOTREG_QRY>
      </BH_ESS_EVNT_INFO>
      </ConnectedQuery>

    Hi use
    if(ResultSet.next())
    else
    regds

  • How to Publish the ABAP query results as csv

    Hi,
    I have a scenario and need help for the same, I need to query a table in CRM which has the long text information and publish or save the result as a csv file, is it possible? if so please tell me the steps and code if available
    Thanks
    Akila.R

    Hi,
    Two formats of creating a CSV file:
    report zrich_0001 .
    data: it001 type table of t001 with header line.
    data: iout type table of string .
    data: xout type string.
    field-symbols: <fs>.
    select * into table it001 from t001.
    loop at it001.
      clear xout.
      do.
        assign component sy-index of structure it001 to <fs>.
        if sy-subrc <> 0.
          exit.
        endif.
        if sy-index = 1.
          xout = <fs>.
        else.
          concatenate xout <fs> into xout separated by ','.
        endif.
      enddo.
      append xout to iout.
    endloop.
    call function 'GUI_DOWNLOAD'
         exporting
              filename = 'C:\test.csv'
         tables
              data_tab = iout.
    report ztest.
    type-pools:TRUXS.
    data: begin of itab occurs 0,
          vbeln like vbap-vbeln,
          posnr like vbap-posnr,
          end of itab.
    data:  itab1 type TRUXS_T_TEXT_DATA.
    select vbeln
           posnr
           up to 10 rows
           from vbap
           into table itab.
    CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
      EXPORTING
        I_FIELD_SEPERATOR          = ','
      TABLES
        I_TAB_SAP_DATA             = itab
      CHANGING
        I_TAB_CONVERTED_DATA       =  itab1
      EXCEPTIONS
        CONVERSION_FAILED          = 1
        OTHERS                     = 2.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename = 'C:\TEMP\TEST.CSV'
      TABLES
        data_tab = itab1
      EXCEPTIONS
        OTHERS   = 1.
    Use SE38.
    Regards
    Subramanian

  • Saving jsp query results to csv file

    I have a query form jsp application which does as you would expect - throw in some search parameters - results set is returned - my question is how I go about writing an instance to save these results into a csv notepad file. I've used JBuilder a lot and within that it is relatively simple to create a save-to-file instance - is it the same within JDeveloper?? Sorry if this is a fairly obvious question - I just havent come across anything in the docs yet

    Try this in a JSP:
    <%
    response.setContentType( "text/x-csv" );
    response.setHeader( "Content-disposition", "inline;filename=myfilename.csv" );
    %>
    "value1","value2","value3"
    "valueX","valueY","valueZ"

  • IR Essbase Query - Results Exceeds 2^32 cells.

    Hi All,
    I'm working on IR Essbase Query and a Critical Error occured as follows:
    Internal Error: Query output is too large and cannot be executed. Query results exceeds 2^32 cells.
    Are there anyways to go around this?
    Thanks.

    Hi Any one got the solution for this error.
    Please let me know.
    Thanks
    Venu
    [email protected]

  • Query Output to CSV file

    Hi,
    I am trying to export a Query result to CSV in comma-delimited tab format.
    In SBO it is allowing to save the query results as CSV file; but when I opened
    it is in 'Text Unicode' filetype.
    Is there anyway save it directly as  CSV in comma-delimited tab format.
    Thanks Regards
    Shiva

    Hi Gordon,
    Sorry could not reply soon.
    Its a smiple query
    "SELECT ItemCode, ItemName, ItmsGrpNam,
                        LeadTime, VATLiable, CardCode"
    The things is we might make some changes to it based on customer requirement. But the fact is no matter what query, I have no problem with query. It is while saving it is making a 'tab-delimited' file rather than 'comma-delimited file'. User has to manually open it and save it as CSV file.
    Regards
    Shiva

  • 2.1.0.62: Exporting query results does not work if SQL has a join

    I get an error message, when I try to export the following test case to any data format.
    create table test1 (id number(2), text varchar2(5));
    create table test2 (id number(2), text varchar2(5));
    insert into test1 values (1,'test');
    insert into test2 values (1,'test');
    select t1.*
    from
    test1 t1,
    test2 t2
    where
    t1.id=t2.id;
    I try to translate my german error message to english:
    "There are no valid columns for export available. Clob- or Blob-Columns are currently not supported"
    I get this message, when I right click into the query result grid and select export and then any data format.
    Hope that is not a double post but searching for export did not find results for 2.1.
    The following SQL also produces the error:
    select t1.* from test1 t1;
    These SQLs can be exported though:
    select * from test1 t1;
    select t1.id from test1 t1;
    I should have mentioned that I work with Windows XP and Oracle 10.2.0.4.
    Regards,
    dhalek
    Edited by: dhalek on Oct 13, 2009 5:04 PM

    Hi,
    Dhalek.
    I've got the same problem here.
    In my SQL Dev, I disabled the Autopopup code completion insight in SQL Worksheet. (Tools - Preferences - Code Editor - Code Completion - untick the checkbox). Restart SQL Dev. Tried to export a query.
    The same error message appears.
    My workaround is to re-enable the autopopup and restart SQL Dev.
    The disabled autopopup code completion insight caused me these
    2.1 EA1: Bugs - cannot Export Data from Grid
    2.1 EA2: Bugs on code completion for displaying column name
    Hope this helps,
    Buntoro

Maybe you are looking for

  • I am unable to use Itunes because it freezes when I plug my Iphone 3g in.

    Hi, I needed a phone, so my brother gave me his old Iphone 3g. I instantly downloaded the latest itunes (10.5.3) and I purchased some songs and application at itunes store. Unfortunately when I plug my iphone in it freezes itunes and I can't put anyt

  • Problem with window manager after re-installing Compiz

    When i start my arch i get no window borders. I also cant get enything minimized, when i try to do so windows are lost. i use this command when i start: metacity --replace which allowes me to have window borders but still i cant minimize. All these h

  • Still Frame Quicktime Export with Interlace. what can I do?

    hi. do you know how to avoid the interlacing happening when making a still frame with quicktime conversion in fcp? I need some stills for promotional purposes but the interlacing is a problem obviously. thanks for you help. best rob

  • User specific currency translation

    Hi, There is a amount field in a report. The requirement is for different user different different currency value should appear. I mean user wise some predefined currency type. How to approach it. Plz suggest me. Regards, Kiran

  • Unsupported file type: broken reference movie in ...

    This happened to me today, and I wanted to record this for search engines to find. It's probably a rare event and hopefully, dear reader, it will not happen to you. So I import my FCE movie into iDVD, and iDVD tells me, "Unsupported file type: broken