<?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: plz chk the code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877359#M368814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare table tsp01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: tsp01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 08:23:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-10T08:23:47Z</dc:date>
    <item>
      <title>plz chk the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877358#M368813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;==================================&lt;/P&gt;&lt;P&gt;PERFORM get_spool_number USING sy-repid&lt;/P&gt;&lt;P&gt;           sy-uname&lt;/P&gt;&lt;P&gt;  CHANGING mi_rqident.&lt;/P&gt;&lt;P&gt;=====================================&lt;/P&gt;&lt;P&gt;FORM get_spool_number USING f_repid&lt;/P&gt;&lt;P&gt;     f_uname&lt;/P&gt;&lt;P&gt;                CHANGING f_rqident.&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    lc_rq2name LIKE tsp01-rq2name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE f_repid+0(8)&lt;/P&gt;&lt;P&gt;              f_uname+0(3)&lt;/P&gt;&lt;P&gt;    INTO lc_rq2name SEPARATED BY '_'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT rqident FROM tsp01 WHERE  rq2name = lc_rq2name&lt;/P&gt;&lt;P&gt;  ORDER BY rqcretime DESCENDING.&lt;/P&gt;&lt;P&gt;    f_rqident = tsp01-rqident.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    CLEAR f_rqident.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM." get_spool_number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field list without INTO clause is not allowed . allowed. . allowed. .	&lt;/P&gt;&lt;P&gt;is the error i m getting   when i activate it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the error in  select query....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877358#M368813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T08:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877359#M368814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare table tsp01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: tsp01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877359#M368814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T08:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877360#M368815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare as follows in global data declaration of ur code.&lt;/P&gt;&lt;P&gt;tables tsp01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877360#M368815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T08:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877361#M368816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;either you can use select * for your qery or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT rqident FROM tsp01 &amp;lt;b&amp;gt;into tsp01&amp;lt;/b&amp;gt;-rqident WHERE rq2name = lc_rq2name&lt;/P&gt;&lt;P&gt;ORDER BY rqcretime DESCENDING.&lt;/P&gt;&lt;P&gt;f_rqident = tsp01-rqident.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877361#M368816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T08:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877362#M368817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i guess u r missing INTO clause in the select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT rqident FROM tsp01 INTO tsp01-rqident WHERE rq2name = lc_rq2name
ORDER BY rqcretime DESCENDING.
f_rqident = tsp01-rqident.
EXIT.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also declare the table as suggested by others&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877362#M368817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T08:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877363#M368818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neha,&lt;/P&gt;&lt;P&gt;look at this short example. you have to use an INTO-Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;TABLES: MARA.&lt;/P&gt;&lt;P&gt;data:   matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  SELECT MATNR FROM MARA UP TO 10 ROWS into matnr.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    WRITE: / MARA-MATNR, matnr.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877363#M368818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877364#M368819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neha,&lt;/P&gt;&lt;P&gt;  use below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_temp like tsp01-rqident.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT rqident FROM tsp01 into v_temp  WHERE rq2name = lc_rq2name&lt;/P&gt;&lt;P&gt;ORDER BY rqcretime DESCENDING.&lt;/P&gt;&lt;P&gt;f_rqident = tsp01-rqident.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to use into variable name in your select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward Pls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877364#M368819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T08:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877365#M368820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha ,&lt;/P&gt;&lt;P&gt;  Declare the table tsp01 in your program using the command&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TABLES : tsp01.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877365#M368820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T08:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877366#M368821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;==================================
PERFORM get_spool_number USING sy-repid
sy-uname
CHANGING mi_rqident.
=====================================
FORM get_spool_number USING f_repid
f_uname
CHANGING f_rqident.
DATA: lc_rq2name LIKE tsp01-rq2name.

CONCATENATE f_repid+0(8) f_uname+0(3) 
INTO lc_rq2name SEPARATED BY '_'.

SELECT rqident INTO tsp01-rqident FROM tsp01 
WHERE rq2name = lc_rq2name
ORDER BY rqcretime DESCENDING.

f_rqident = tsp01-rqident.

EXIT.
ENDSELECT.
IF sy-subrc NE 0.
CLEAR f_rqident.
ENDIF.
ENDFORM." get_spool_number&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that u have declared teh TABLES: tsp01.&lt;/P&gt;&lt;P&gt;Hope thsi solves ur problem.&lt;/P&gt;&lt;P&gt;Reward points and close the thread if ur problem got solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 09:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code/m-p/1877366#M368821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T09:06:07Z</dc:date>
    </item>
  </channel>
</rss>

