<?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: SELECT STATEMENT (Correct answers will be given full points.) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091425#M733255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bhaskaran,&lt;/P&gt;&lt;P&gt;                       Can you please tell me  what exactly to write in the program and the text element please. its urgent.&lt;/P&gt;&lt;P&gt; Points will be fully awarded.&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;sirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2007 05:20:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-04T05:20:29Z</dc:date>
    <item>
      <title>SELECT STATEMENT (Correct answers will be given full points.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091421#M733251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gurus&lt;/P&gt;&lt;P&gt;              I am new abap help me with the select statement for these please&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  Get BKPF-AWKEY where BKPF-BELNR = VBRK-VBELN + prefix &amp;#147;00&amp;#148;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the reference number for printing in script(SD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to write in the text elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get KNA1- STCEG where VBRK-KUNRG =  KNA1-KUNNR  This is the GST REG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to write in the text elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct answers will be given full points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;sirish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 04:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091421#M733251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T04:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT STATEMENT (Correct answers will be given full points.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091422#M733252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sirish,&lt;/P&gt;&lt;P&gt;   First of all to add the prefix to vbrk-vbeln u can write the syntax like this-&lt;/P&gt;&lt;P&gt;  CONCATENATE '00' VBRK-VBELN INTO VBRK-VBELN.&lt;/P&gt;&lt;P&gt;if  00 is suffix then write like this--&lt;/P&gt;&lt;P&gt;  CONCATENATE  VBRK-VBELN '00' INTO VBRK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now u can write ur first select query like this-&lt;/P&gt;&lt;P&gt;SELECT awkey FROM    bkpf &lt;/P&gt;&lt;P&gt;                        WHERE belnr = vbrk-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax for second select query-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT stceg FROM    kna1&lt;/P&gt;&lt;P&gt;                       WHERE kunnr = vbrk-kunrg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh Akarte&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 04:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091422#M733252</guid>
      <dc:creator>rajesh_akarte2</dc:creator>
      <dc:date>2007-12-04T04:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT STATEMENT (Correct answers will be given full points.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091423#M733253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Rajesh,&lt;/P&gt;&lt;P&gt;              i want to write this in scripts text elements. how to write this in text elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;sirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 04:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091423#M733253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T04:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT STATEMENT (Correct answers will be given full points.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091424#M733254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;Write the query in program form(subroutine) n call the subroutine form the script using &lt;/P&gt;&lt;P&gt;/: PERFORM &amp;lt;form&amp;gt; IN PROGRAM &amp;lt;prog&amp;gt;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;INVAR1&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;INVAR2&amp;amp;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;OUTVAR1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;OUTVAR2&amp;amp;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 05:05:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091424#M733254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T05:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT STATEMENT (Correct answers will be given full points.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091425#M733255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bhaskaran,&lt;/P&gt;&lt;P&gt;                       Can you please tell me  what exactly to write in the program and the text element please. its urgent.&lt;/P&gt;&lt;P&gt; Points will be fully awarded.&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;sirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 05:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091425#M733255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T05:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT STATEMENT (Correct answers will be given full points.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091426#M733256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In script u can write like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM getdetails IN PROGRAM ZPROG&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;vbeln&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;v_STCEG&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;v_AWKEY&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur ZPROG create one subroutine named getdetails&lt;/P&gt;&lt;P&gt;what ever u r passing from perform wil b der in in_tab(u hav to declare in_tab n out_tab of type itcsy)&lt;/P&gt;&lt;P&gt;extract values from in_tab..&lt;/P&gt;&lt;P&gt;use select query for fetching data &lt;/P&gt;&lt;P&gt;pass output to out_tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM getdetails TABLES IN_TAB STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;OUT_TAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;declare v_STCEG,v_AWKEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 06:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091426#M733256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T06:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT STATEMENT (Correct answers will be given full points.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091427#M733257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;write like this&lt;/P&gt;&lt;P&gt;Mtrl.Code     Description           Quantity       Value&lt;/P&gt;&lt;P&gt;&amp;amp;uline(70) &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;i_inv-matnr&amp;amp;  &amp;amp;i_inv-arktx&amp;amp; &lt;/P&gt;&lt;P&gt;like this which field u want write in that form .&lt;/P&gt;&lt;P&gt;ok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 06:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-correct-answers-will-be-given-full-points/m-p/3091427#M733257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T06:37:09Z</dc:date>
    </item>
  </channel>
</rss>

