<?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: Blank fields in select statement list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602324#M1276744</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;Try this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND LINES OF internal table1 TO internal table2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2009 11:45:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-07T11:45:21Z</dc:date>
    <item>
      <title>Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602323#M1276743</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 am appending records into one internal table from various tables. The tables might not have the same structure as the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

types: begin of price_list,
       matnr type a746-matnr,
       field1 type a746-field1,
       field2 type a746-field2,
       field3 type a745-field3,
       field4 type a733-field4,
       end of price_list.

data: i_price_list type table of price_list.

select matnr field1 field2
from a746 
appending table i_price_list
where ...

select matnr field3 "I want the field3 to go in the 4th column of the internal table.
from a745
appending table i_price_list
where ....

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will not be able to give &lt;STRONG&gt;into corresponding fields&lt;/STRONG&gt; due to some restrictions of the query. I want to avoid loops as they create a huge overhead. Can anyone suggest me how do I go about it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602323#M1276743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602324#M1276744</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;Try this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND LINES OF internal table1 TO internal table2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602324#M1276744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602325#M1276745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Press F1 on Append Statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602325#M1276745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602326#M1276746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 10 pricing tables, if I use 10 internal tables to collect that data and then into a final internal table, then I will have serious performance issues, as I will have to loop at every table and move the fields. I would rather like to know if I can do it directly using the select statement. In MS SQL we can give &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select field1, 0, field2
from table_name
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the column1 and column3 have values, where as the column2 has 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is something similar possible in abap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602326#M1276746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602327#M1276747</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;You can select in one internal table and update the destination table with LOOP-ENDLOOP.&lt;/P&gt;&lt;P&gt;This willease burden on database but more processing at application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shital&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602327#M1276747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602328#M1276748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can do in this way..[no such way as u specified]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 field2 into table tab where..... &amp;gt;here tab is new internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then &lt;/P&gt;&lt;P&gt;  loop over tab into wa&lt;/P&gt;&lt;P&gt;     wa_1-field1 = wa_field1.       here wa_1 and tab1 are ur table and work areas...&lt;/P&gt;&lt;P&gt;     wa_1-field2 = wa_field2.&lt;/P&gt;&lt;P&gt;      append wa_1 to tab1.   &lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select into new internal table and loop over this internal table and append where required to ur table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Veeranji Reddy on May 7, 2009 5:56 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 12:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602328#M1276748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T12:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602329#M1276749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;APPENDING CORRESPONDING FIELDS OF TABLE itab&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 12:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602329#M1276749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T12:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602330#M1276750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;    Try using &lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e select .......... from table into corresponding fields of i_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 12:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602330#M1276750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T12:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602331#M1276751</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;use the following code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin of price_list,
       matnr type a746-matnr,
       field1 type a746-field1,
       field2 type a746-field2,
       field3 type a745-field3,
       field4 type a733-field4,
       end of price_list.
 
data: i_price_list type table of price_list.
 
select matnr field1 field2
from a746 
appending table i_price_list
where ...
 
select matnr field3 "I want the field3 to go in the 4th column of the internal table.
from a745
appending corresponding fields of table i_price_list
where ....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 12:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602331#M1276751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T12:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602332#M1276752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If possible try an Outer Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select tableA~matnr&lt;/P&gt;&lt;P&gt;       tableA~fieldx&lt;/P&gt;&lt;P&gt;       tableB~fieldy&lt;/P&gt;&lt;P&gt;       tableC~fieldz&lt;/P&gt;&lt;P&gt;into table i_price_list&lt;/P&gt;&lt;P&gt;from tableA left outer join tableB on ( tableA&lt;SUB&gt;... = tableB&lt;/SUB&gt;...)&lt;/P&gt;&lt;P&gt;            left outer join tableB on ( tableA&lt;SUB&gt;... = tableC&lt;/SUB&gt;...)&lt;/P&gt;&lt;P&gt;where ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 13:38:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602332#M1276752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T13:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Blank fields in select statement list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602333#M1276753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am planning to give a blank field of the tables. Especially mara~lvorm in the columns that I will want as blanks since this field is being filtered as blank in the where clause. The columns that might be left empty are all char type so I dont feel it will be an issue here. Thanks a lot everybody.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 14:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blank-fields-in-select-statement-list/m-p/5602333#M1276753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T14:16:19Z</dc:date>
    </item>
  </channel>
</rss>

