<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem in Abap query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-abap-query/m-p/1156073#M118890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to se38 and create a report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest.
DATA: FUN(45) TYPE C.
DATA:QUERYREPORT LIKE AQADEF-PGNAME.


* get name of queryreport
CALL FUNCTION 'RSAQ_REPORT_NAME'
EXPORTING
WORKSPACE = 'G'
USERGROUP = 'ZSKNFGRP1234'
QUERY = 'QUE_SHAMEEK_01'
IMPORTING
REPORTNAME = QUERYREPORT
EXCEPTIONS
OTHERS = 0.

SUBMIT (QUERYREPORT)
VIA SELECTION-SCREEN
USING SELECTION-SET 'ZNPIL_SUBMIT'
* USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to se93 and assign tcode to this program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2006 04:03:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-15T04:03:37Z</dc:date>
    <item>
      <title>Problem in Abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-abap-query/m-p/1156072#M118889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends ,&lt;/P&gt;&lt;P&gt;thnanks for ur reply...&lt;/P&gt;&lt;P&gt;iam doing a small prog to assign a tcode for abap query as looking to the answer in sdn by callling function moduel &lt;/P&gt;&lt;P&gt;rsaq_report_name. i got answer that create small program and call this function and submit it ..i did it but what ever the query name iam passing either it shows dumop by saying "report not found" or there is no output ..the following is the code of mine..pls is something wriong it correct it or pls give me a example to do it.. i wnat to assign tcode to this progam and run the abap query .............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FUN(45) TYPE C.&lt;/P&gt;&lt;P&gt;DATA:QUERYREPORT LIKE AQADEF-PGNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get name of queryreport&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'RSAQ_REPORT_NAME'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            WORKSPACE  = 'G'&lt;/P&gt;&lt;P&gt;            USERGROUP  = 'ZSKNFGRP1234'&lt;/P&gt;&lt;P&gt;            QUERY      = 'QUE_SHAMEEK_01'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            REPORTNAME = QUERYREPORT&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS     = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SUBMIT (QUERYREPORT)&lt;/P&gt;&lt;P&gt;       VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;       USING SELECTION-SET 'ZNPIL_SUBMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     USING SELECTION-SETS OF PROGRAM 'REPORT00'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       AND RETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 03:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-abap-query/m-p/1156072#M118889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-15T03:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-abap-query/m-p/1156073#M118890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to se38 and create a report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest.
DATA: FUN(45) TYPE C.
DATA:QUERYREPORT LIKE AQADEF-PGNAME.


* get name of queryreport
CALL FUNCTION 'RSAQ_REPORT_NAME'
EXPORTING
WORKSPACE = 'G'
USERGROUP = 'ZSKNFGRP1234'
QUERY = 'QUE_SHAMEEK_01'
IMPORTING
REPORTNAME = QUERYREPORT
EXCEPTIONS
OTHERS = 0.

SUBMIT (QUERYREPORT)
VIA SELECTION-SCREEN
USING SELECTION-SET 'ZNPIL_SUBMIT'
* USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to se93 and assign tcode to this program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 04:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-abap-query/m-p/1156073#M118890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-15T04:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-abap-query/m-p/1156074#M118891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Farukh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code looks Ok. But you have to make one small change to avoid short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please pass import parameter  WORKSPACE = ' '  (Blank) inplave of 'G'. This will avoid you the short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FUN(45) TYPE C.&lt;/P&gt;&lt;P&gt;DATA:QUERYREPORT LIKE AQADEF-PGNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get name of queryreport&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'RSAQ_REPORT_NAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WORKSPACE = ' ' &amp;lt;/b&amp;gt;     &lt;/P&gt;&lt;P&gt;USERGROUP = 'ZSKNFGRP1234'&lt;/P&gt;&lt;P&gt;QUERY = 'QUE_SHAMEEK_01'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;REPORTNAME = QUERYREPORT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT (QUERYREPORT)&lt;/P&gt;&lt;P&gt;VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;USING SELECTION-SET 'ZNPIL_SUBMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USING SELECTION-SETS OF PROGRAM 'REPORT00'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you are good to go and create Transaction code via SE93.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 04:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-abap-query/m-p/1156074#M118891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-15T04:39:20Z</dc:date>
    </item>
  </channel>
</rss>

