<?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: Problem with Select Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480148#M1254635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since our RSEG table doesn't have any entries I created the following ones:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BELNR         GJAHR  EBELN&lt;/P&gt;&lt;P&gt;0000000001  2009      4500000000&lt;/P&gt;&lt;P&gt;0000000002  2009      4500000001&lt;/P&gt;&lt;P&gt;0000000003  2009      4500000002&lt;/P&gt;&lt;P&gt;0000000004  2009      4500000003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the following report and it does select two entries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF ty_jtab,
         belnr_awkey LIKE rseg-belnr,
         gjahr_awkey LIKE rseg-gjahr,
       END OF ty_jtab.

TYPES: BEGIN OF ty_itab,
         ebeln LIKE rseg-ebeln,
       END OF ty_itab.

DATA: lt_jtab TYPE TABLE OF ty_jtab,
      ls_jtab TYPE ty_jtab,
      lt_itab TYPE TABLE OF ty_itab.

ls_jtab-belnr_awkey = '0000000001'.
ls_jtab-gjahr_awkey = '2009'.
APPEND ls_jtab TO lt_jtab.
ls_jtab-belnr_awkey = '0000000002'.
ls_jtab-gjahr_awkey = '2009'.
APPEND ls_jtab TO lt_jtab.

SELECT ebeln FROM rseg INTO TABLE lt_itab
       FOR ALL ENTRIES IN lt_jtab
       WHERE belnr = lt_jtab-belnr_awkey
       AND   gjahr = lt_jtab-gjahr_awkey.

BREAK-POINT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just changed the data definition because I usually don't use tables with header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check what is different to the select you do, You should also add a check if lt_jtab is not initial, because if it is it will select EVERY entry from RSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2009 18:59:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-29T18:59:29Z</dc:date>
    <item>
      <title>Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480139#M1254626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My JTAB has following definition&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:  BEGIN OF JTAB OCCURS 0,
       BELNR_AWKEY LIKE RSEG-BELNR,
       GJAHR_AWKEY LIKE RSEG-GJAHR,
      END OF JTAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ITAB has following definition&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: BEGIN OF ITAB OCCURS 0,
             EBELN LIKE RSEG-EBELN,
             END OF ITAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now from RESG table for all entries in JTAB I have to select EBELN and put in ITAB-EBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that I wrote following select query&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT SINGLE EBELN FROM RSEG INTO ITAB-EBELN
       WHERE BELNR = JTAB-BELNR_AWKEY
       AND   GJAHR = JTAB-GJAHR_AWKEY.
    &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I donu2019t get any values in ITAB-EBELN.&lt;/P&gt;&lt;P&gt;and my ITAB is always empty...&lt;/P&gt;&lt;P&gt;Does any body know if I am missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jessica Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 17:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480139#M1254626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T17:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480140#M1254627</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;First populate JTAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if JTAB is not initial.&lt;/P&gt;&lt;P&gt;SELECT SINGLE EBELN FROM RSEG INTO ITAB-EBELN&lt;/P&gt;&lt;P&gt;for all entries in JTAB&lt;/P&gt;&lt;P&gt;       WHERE BELNR = JTAB-BELNR_AWKEY&lt;/P&gt;&lt;P&gt;       AND   GJAHR = JTAB-GJAHR_AWKEY.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;endif.&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;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 17:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480140#M1254627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T17:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480141#M1254628</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;Try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT EBELN FROM RSEG 
         INTO TABLE ITAB
           FOR ALL ENTRIES IN JTAB
       WHERE BELNR = JTAB-BELNR_AWKEY
       AND   GJAHR = JTAB-GJAHR_AWKEY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 17:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480141#M1254628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T17:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480142#M1254629</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;PRE&gt;&lt;CODE&gt;
SELECT EBELN FROM RSEG INTO table ITAB
    for all entries in JTAB
    WHERE BELNR = JTAB-BELNR_AWKEY
    AND   GJAHR = JTAB-GJAHR_AWKEY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 17:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480142#M1254629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T17:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480143#M1254630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
First populate JTAB

if JTAB is not initial.     "check this before using for all entries
 SELECT EBELN FROM RSEG INTO TABLE ITAB
         FOR ALL ENTRIES IN JTAB
        WHERE BELNR = JTAB-BELNR_AWKEY
        AND   GJAHR = JTAB-GJAHR_AWKEY.endif.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 17:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480143#M1254630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T17:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480144#M1254631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for everybosy who answered the thread ...........but unfortunately i am still struggling........I tried all the select queries suggested by al of you....but they dont work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont see any data being populated in ITAB-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i really look in the RSEG table from SE11 t-code and look for EBELN values based on BELNR and GJAHR in JTAB i find entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means the select query i am witing is wrong..there is data in table but i am unable to pick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some one please help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jessica Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 17:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480144#M1254631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T17:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480145#M1254632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check in the debugger that the JTAB is filled correctly? If the BELNR in RSEG has leading zeros you have to make sure that your JTAB entries do contain leading zeros as well and vice versa. Since BELNR is a character 10 field the entries in both tables need to be an exact match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 18:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480145#M1254632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T18:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480146#M1254633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check in the debugger that the JTAB is filled correctly? If the BELNR in RSEG has leading zeros you have to make sure that your JTAB entries do contain leading zeros as well and vice versa. Since BELNR is a character 10 field the entries in both tables need to be an exact match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying back Michael&lt;/P&gt;&lt;P&gt;I checked indebugger and JTAB values have leading zeros. and for all entries in JTAB if i go and check in RESG table i find entries for EBELN but my ITAB is not getting populated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that for one entry of JTAB-BELNR i have more than one record in RSEG table&lt;/P&gt;&lt;P&gt;but for combination of JTAB-BELNR and JTAB-GJAHR i exactly have one record in the database table RESG, but my select query is not picking the values and finally always my ITAB-EBELN remains empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts what elese could be reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;P&gt;Jessica Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 18:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480146#M1254633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T18:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480147#M1254634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try to append the record to the actual table using "APPEND ITAB".&lt;/P&gt;&lt;P&gt;There is a difference between the header line ITAB-EBELN and table ITAB[]. For all the other select statements provided in the answers you would have to loop at ITAB to populate ITAB-EBELN. After looking at all the answers thats the only thing that might be keeping you from seeing the values in debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 18:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480147#M1254634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T18:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480148#M1254635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since our RSEG table doesn't have any entries I created the following ones:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BELNR         GJAHR  EBELN&lt;/P&gt;&lt;P&gt;0000000001  2009      4500000000&lt;/P&gt;&lt;P&gt;0000000002  2009      4500000001&lt;/P&gt;&lt;P&gt;0000000003  2009      4500000002&lt;/P&gt;&lt;P&gt;0000000004  2009      4500000003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the following report and it does select two entries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF ty_jtab,
         belnr_awkey LIKE rseg-belnr,
         gjahr_awkey LIKE rseg-gjahr,
       END OF ty_jtab.

TYPES: BEGIN OF ty_itab,
         ebeln LIKE rseg-ebeln,
       END OF ty_itab.

DATA: lt_jtab TYPE TABLE OF ty_jtab,
      ls_jtab TYPE ty_jtab,
      lt_itab TYPE TABLE OF ty_itab.

ls_jtab-belnr_awkey = '0000000001'.
ls_jtab-gjahr_awkey = '2009'.
APPEND ls_jtab TO lt_jtab.
ls_jtab-belnr_awkey = '0000000002'.
ls_jtab-gjahr_awkey = '2009'.
APPEND ls_jtab TO lt_jtab.

SELECT ebeln FROM rseg INTO TABLE lt_itab
       FOR ALL ENTRIES IN lt_jtab
       WHERE belnr = lt_jtab-belnr_awkey
       AND   gjahr = lt_jtab-gjahr_awkey.

BREAK-POINT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just changed the data definition because I usually don't use tables with header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check what is different to the select you do, You should also add a check if lt_jtab is not initial, because if it is it will select EVERY entry from RSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 18:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480148#M1254635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T18:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480149#M1254636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michel and Srinivas..I was not appending the itab and was not looping through jtab.&lt;/P&gt;&lt;P&gt;that was the mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now it is solved..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i have one one more question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my ITAB has fields A B C D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for all entries in ITAB i have to concatenate B C and D and put in A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ITAB

A      B    C    D
        eee fff    ggg
        kkk lll  mmm

Now after appending my ITAB should be

A                        B       C      D
eeefffggg            eee     fff      ggg
kkklllmmm         kkk     lll      mmm

so i said

loop at itab.
concatenate itab-b itab-c itab-d into itab-a
append itab.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again it doesnt work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any thoughts ..no values in field A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 19:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480149#M1254636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T19:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480150#M1254637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Going back to my example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 
TYPES: BEGIN OF ty_itab,
         a TYPE any,
         b TYPE any,
         c TYPE any,
         d TYPE any,
       END OF ty_itab.
 
DATA: lt_itab TYPE TABLE OF ty_itab.

FIELD-SYMBOLS: &amp;lt;fs_itab&amp;gt; type ty_itab.

LOOP AT lt_itab ASSIGNING &amp;lt;fs_itab&amp;gt;.
   CONACTENATE &amp;lt;fs_itab&amp;gt;-b &amp;lt;fs_itab&amp;gt;-c &amp;lt;fs_itab&amp;gt;-d INTO &amp;lt;fs_itab&amp;gt;-a.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will fill a with a concatenation of b,c and d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using TYPE any but you can replace that with the actual data type you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 19:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480150#M1254637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T19:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480151#M1254638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you might want to use 'modify' instead of 'append', since append would add new records to the table without updating the old ones...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 20:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-query/m-p/5480151#M1254638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T20:22:09Z</dc:date>
    </item>
  </channel>
</rss>

