<?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 constant from Transp. Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434658#M1411449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constant ABC isnt a part of the table. Its not a field of the table.&lt;/P&gt;&lt;P&gt;I need it to know where the data was derived from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2009 09:20:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-08T09:20:33Z</dc:date>
    <item>
      <title>Select constant from Transp. Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434655#M1411446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to make the following select from Transp. Table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select F1 F2  'ABC' AS SOURCE&lt;/P&gt;&lt;P&gt;FROM Transp. Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1, F2 - fields of the table , 'ABC' is a char constant , the same for all records of the table  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to run Loop-End loop and populate the constant there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 08:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434655#M1411446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T08:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select constant from Transp. Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434656#M1411447</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;Select F1 F2 'ABC' AS SOURCE&lt;/P&gt;&lt;P&gt;FROM Transp. Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your saying that ABC is same for all records of the table.So it must be one of the field of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT F1 F2 &amp;lt;your field&amp;gt;&lt;/P&gt;&lt;P&gt;From TABLE&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;your field&amp;gt; = 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 08:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434656#M1411447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T08:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select constant from Transp. Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434657#M1411448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use MODIFY ... TRANSPORTING statement for this. No need to use LOOP...ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:
BEGIN OF ty,
  bukrs TYPE bukrs,
  text  TYPE string,
END OF ty.

DATA:
      itab TYPE STANDARD TABLE OF ty,
      wa   TYPE ty.

SELECT bukrs FROM t001 INTO TABLE itab.
IF sy-subrc = 0.
  wa-text = 'Test Modify'.
  MODIFY itab FROM wa TRANSPORTING text WHERE bukrs IS NOT INITIAL.
ENDIF.

LOOP AT itab INTO wa.
  WRITE : / wa-bukrs, 10 wa-text.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i am clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 09:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434657#M1411448</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-12-08T09:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select constant from Transp. Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434658#M1411449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constant ABC isnt a part of the table. Its not a field of the table.&lt;/P&gt;&lt;P&gt;I need it to know where the data was derived from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 09:20:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434658#M1411449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T09:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select constant from Transp. Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434659#M1411450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i understand correctly ABC is an identifier of the data source. You want this identifier to be able to identify from which table the data has come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I donot think you can do this w/o defining it as a table field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 09:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434659#M1411450</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-12-08T09:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select constant from Transp. Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434660#M1411451</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;I will suggest you to fill the dummy column right after the query through MODIFY statement as descirbed above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then if you get more data into the same tab using SELECT.. APPENDING... then again u can fill your dummy column through MODIFY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only additional processing time will be the MODIFY statements, and that wont be too much and your purpose will be served of identifying the source too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert if I havent been able to clarify myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 09:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-constant-from-transp-table/m-p/6434660#M1411451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T09:51:12Z</dc:date>
    </item>
  </channel>
</rss>

