<?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: Sample code to create a Select ... Into a variable from a custom table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702943#M891587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data: V_EBELN type EKPO-EBELN,,&lt;/P&gt;&lt;P&gt;         V_EBELP type EKPO-EBELP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Select single EBELN EBELP &lt;/P&gt;&lt;P&gt;           from z1 &lt;/P&gt;&lt;P&gt;           into (V_EBELN , V_EBELP )&lt;/P&gt;&lt;P&gt;           where f1 = 'xx'.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 18:49:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T18:49:43Z</dc:date>
    <item>
      <title>Sample code to create a Select ... Into a variable from a custom table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702938#M891582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've got a custom table called z1 which contain fields of EBELN, EBELP, and f1.  Now we know the field f1 value and we would like to use this f1 value to get EBELN and EBELP values and put these values in two corresponding variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We would like to use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data: vEBELN string,
  vEBELP string.

Select EBELN EBELP from z1 where f1 = 'xx' INTO vEBELN vEBELP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We know that the above code doesn't work.  Would be appreciated if some ABAP experts here to correct/complete the above code and we will give you reward points!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 18:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702938#M891582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T18:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to create a Select ... Into a variable from a custom table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702939#M891583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your datadeclaration is not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_ebeln type ebeln.&lt;/P&gt;&lt;P&gt;data: lv_ebelp type ebelp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 18:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702939#M891583</guid>
      <dc:creator>b_deterd2</dc:creator>
      <dc:date>2008-04-08T18:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to create a Select ... Into a variable from a custom table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702940#M891584</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;Check out in this way ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data: VEBELN LIKE z1-EBELN,
         VEBELP LIKE z1-EBELP.

Select EBELN EBELP from z1 INTO (vEBELN, vEBELP) where f1 = 'XX' .
endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 18:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702940#M891584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T18:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to create a Select ... Into a variable from a custom table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702941#M891585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select (EBELN, EBELP)  INTO vEBELN vEBELP from z1 where f1 = 'xx' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure value from f1 is 'xx' and not 'Xx' or 'XX'. Case sensitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 18:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702941#M891585</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-08T18:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to create a Select ... Into a variable from a custom table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702942#M891586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Select single EBELN EBELP from z1 
        into vebeln vebelp
        where f1 = 'xx'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 18:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702942#M891586</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-04-08T18:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to create a Select ... Into a variable from a custom table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702943#M891587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data: V_EBELN type EKPO-EBELN,,&lt;/P&gt;&lt;P&gt;         V_EBELP type EKPO-EBELP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Select single EBELN EBELP &lt;/P&gt;&lt;P&gt;           from z1 &lt;/P&gt;&lt;P&gt;           into (V_EBELN , V_EBELP )&lt;/P&gt;&lt;P&gt;           where f1 = 'xx'.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 18:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702943#M891587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T18:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to create a Select ... Into a variable from a custom table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702944#M891588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select single kunnr into wa_final-kunnr2 from vbpa where parvw = 'SP' and vbeln = 'wa_vbak-vbeln'.&lt;/P&gt;&lt;P&gt;temp = wa_final-kunnr2&lt;/P&gt;&lt;P&gt;select single name1 into wa_final-name2 from&amp;nbsp; kna1 where kunnr = temp .&lt;/P&gt;&lt;P&gt;select single land1 into wa_final-land1 from&amp;nbsp; kna1 where kunnr =&amp;nbsp; temp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i do like this &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-code-to-create-a-select-into-a-variable-from-a-custom-table/m-p/3702944#M891588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-30T12:23:26Z</dc:date>
    </item>
  </channel>
</rss>

