<?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: ABAP code in SQ01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290550#M1725116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically I want to take a field from a row, add that field to a different row, then delete the entire row... Hope that makes sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code im working with... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;clear ADR2&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;TEL_EXTENS.&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;DATA: &lt;/SPAN&gt;countTelephone &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;int4.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DISTINCT &lt;/SPAN&gt;TEL_NUMBER &lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;ADR2&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;countTelephone&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;ADDRNUMBER &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;KNA1&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;ADRNR.&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;countTelephone &amp;gt; &lt;SPAN class="L0S32"&gt;1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;TEMP_TABLE &lt;SPAN class="L0S52"&gt;LIKE &lt;/SPAN&gt;ADR2 &lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;10 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;HEADER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;TEMP_TABLE.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DELETE &lt;/SPAN&gt;TEMP_TABLE &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;CONSNUMBER &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'002'.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADR2&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;TEL_EXTENS &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;ADR2&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;TEL_NUMBER.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDLOOP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;endif.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2013 12:07:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-02-14T12:07:39Z</dc:date>
    <item>
      <title>ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290548#M1725114</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 have very limited experience of coding in ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to take dataset from a database table, and manipulate it, and output this into a report in SQ01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 11:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290548#M1725114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-14T11:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290549#M1725115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are limited in ABAP (or SQL) try the SQVI transaction. It's more simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need help maybe give us the requierment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fred&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 12:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290549#M1725115</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2013-02-14T12:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290550#M1725116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically I want to take a field from a row, add that field to a different row, then delete the entire row... Hope that makes sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code im working with... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;clear ADR2&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;TEL_EXTENS.&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;DATA: &lt;/SPAN&gt;countTelephone &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;int4.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DISTINCT &lt;/SPAN&gt;TEL_NUMBER &lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;ADR2&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;countTelephone&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;ADDRNUMBER &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;KNA1&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;ADRNR.&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;countTelephone &amp;gt; &lt;SPAN class="L0S32"&gt;1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;TEMP_TABLE &lt;SPAN class="L0S52"&gt;LIKE &lt;/SPAN&gt;ADR2 &lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;10 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;HEADER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;TEMP_TABLE.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DELETE &lt;/SPAN&gt;TEMP_TABLE &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;CONSNUMBER &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'002'.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADR2&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;TEL_EXTENS &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;ADR2&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;TEL_NUMBER.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDLOOP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;endif.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 12:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290550#M1725116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-14T12:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290551#M1725117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(i have not check the code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for me it's better to do like that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ts_adr2 occurs ,&lt;/P&gt;&lt;P&gt;addrnumber type ... ,&lt;/P&gt;&lt;P&gt;tel_number type ... ,&lt;/P&gt;&lt;P&gt;count type i ,&lt;/P&gt;&lt;P&gt;end of ts_adr2 ,&lt;/P&gt;&lt;P&gt;tt_adr2 type table of ts_adr2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_adr2 type tt_adr2 ,&lt;/P&gt;&lt;P&gt;it_temp type tt_adr2 ,&lt;/P&gt;&lt;P&gt;is_adr2 type ts_adr2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select addrnumber tel_number &lt;/P&gt;&lt;P&gt;into table it_adr2&lt;/P&gt;&lt;P&gt;from adr2&lt;/P&gt;&lt;P&gt;where ...&lt;/P&gt;&lt;P&gt;sort it_adr2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_adr2 into is_adr2.&lt;/P&gt;&lt;P&gt;move 1 to is_adr2-count.&lt;/P&gt;&lt;P&gt;condense is_adr2 to it_temp.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will have into the table IT_TEMP the count set with the number of different addrnumber / tel_numbeR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(after I'm not sure to understand what you expected to delete)&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 12:20:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290551#M1725117</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2013-02-14T12:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290552#M1725118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Brian Murphy wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to take a field from a row, add that field to a different row, then delete the entire row... Hope that makes sense?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not really... If you look at the report generated for a query, you'll see that it's basically one giant SELECT... ENDSELECT. There is no internal table to manipulate. Everything is processed one line at a time. So the coding options are limited by this design.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 19:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290552#M1725118</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2013-02-15T19:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290553#M1725119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I currently have...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KNA1 linked with ARD2 on the Address Number field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have 1 line per customer - but there are 2 lines being generated because there are 2 telephone numbers per customer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to take the second telephone number and add it to a different field on the first line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use a Group By to get rid of the second line? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/186502" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 12:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290553#M1725119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-19T12:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290554#M1725120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't make that with a simple query, with an abap code it's simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we could help you to write this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290554#M1725120</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2013-02-19T13:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290555#M1725121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would the ABAP code be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please bear in mind that this is an SQ01 report &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290555#M1725121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-19T13:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290556#M1725122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN;"&gt;I propose to consider&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN;"&gt;a similar example.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ascii-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi;"&gt;Query based on join table KNA1 with KNVK .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ascii-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/188613" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/188614" width="450" /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/188621" width="450" /&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN; mso-ascii-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi;"&gt;There are 3 lines being generated because there are 3 telephone numbers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN; mso-ascii-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi;"&gt; per customer 13023 in KNVK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/188622" width="450" /&gt;&lt;/P&gt;&lt;P&gt;In "Extras" we add an abap code.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/188624" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/188625" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN;"&gt;We use&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN;"&gt;field&lt;/SPAN&gt;s “Telephone 2” and “Telebox”&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: HE;"&gt;to place the second&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: HE;"&gt;and third&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN; mso-ascii-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: HE;"&gt;telephone numbers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN; mso-ascii-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: HE;"&gt;on the first line and skip other lines with statement "&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;CHECK &lt;SPAN class="L0S32"&gt;0 &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1"&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #333333; line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN; mso-ascii-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: HE;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Finally we have&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/188626" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Boris&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 13:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290556#M1725122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-24T13:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290557#M1725123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for posting, very helpful!﻿&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I please ask one or two questions with regards to your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to explain what the following peices of code are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;READ TABLE it_knvk INTO st_knvk&lt;/LI&gt;&lt;LI&gt;What is "sy_subrc"?&lt;/LI&gt;&lt;LI&gt;What is "sy_tabix"?﻿﻿&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290557#M1725123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-28T17:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP code in SQ01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290558#M1725124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="EN" style="color: #333333; font-size: 10pt;"&gt;I use&lt;/SPAN&gt;&lt;/SPAN&gt; " &lt;SPAN class="L0S52"&gt;READ &lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;it_knvk&amp;nbsp; .... "&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;determine&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the first line for &lt;SPAN class="hps"&gt;each customer among &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;all the lines &lt;SPAN class="hps"&gt;which&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt;"&gt;query &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;supplies for every customer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;" &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-subrc &lt;SPAN class="L0S52"&gt;NE &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0 " &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;means &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;that &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;we have &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;first &lt;/SPAN&gt;line for &lt;SPAN class="hps"&gt;customer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In this case &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;the internal table "it_knvk" does not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;have records&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;containing&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;phone numbers of the customer and &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;I select all &lt;SPAN class="hps"&gt;phone numbers from database table KNVK into&amp;nbsp; internal table "it_knvk".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;After that in " Loop ... "&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-tabix give the number of &lt;SPAN style="font-size: 10pt;"&gt;line in internal table " it_knvk "&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN class="hps"&gt;making it possible &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="EN" style="color: #333333; font-size: 10pt;"&gt;to place all &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #333333; font-size: 10pt;"&gt;telephone numbers &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #333333; font-size: 10pt;"&gt;on the first line .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Boris&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Mar 2013 07:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-in-sq01/m-p/9290558#M1725124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-03T07:54:01Z</dc:date>
    </item>
  </channel>
</rss>

