<?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 7.4 Loop Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470733#M2000954</link>
    <description>&lt;P&gt;Hi Sandra, &lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;You are right its copy paste due to SAP form.&lt;/P&gt;&lt;P&gt;The type of &lt;STRONG&gt;zbi_success-EV_SUCCESS-item its an Deep Struture in the structure we have the Table Type.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As you said lt_sucess doesn't have the field called status its right but here the problem with the deep structure.&lt;/P&gt;&lt;P&gt;The below code i can get the data in output-ev_success-item but the problem when i specify the Status = ls_succ-status its gives me the error.&lt;/P&gt;&lt;P&gt;The Type for lt_success in the below Declaration.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : lt_success TYPE TABLE OF zbi_bounce_back_email_response-ev_success_response-item&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;lt_success = VALUE #( FOR ls_succ IN output-ev_success-item ( ) ). &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can you please help.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Sadiq K&lt;/P&gt;</description>
    <pubDate>Sun, 12 Sep 2021 02:48:09 GMT</pubDate>
    <dc:creator>former_member227911</dc:creator>
    <dc:date>2021-09-12T02:48:09Z</dc:date>
    <item>
      <title>ABAP 7.4 Loop Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470727#M2000948</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I want to Loop the record and need to append in the new internal Table. As we are doing in the old abap statement&lt;/P&gt;
  &lt;P&gt;The below highlighted is an Deep Structure.&lt;/P&gt;
  &lt;P&gt;loop at &lt;STRONG&gt;output-ev_success-item&lt;/STRONG&gt; into data(ls_success_output).&lt;/P&gt;
  &lt;P&gt; ls_success-status = ls_success_output-status.&lt;/P&gt;
  &lt;P&gt; append ls_success to lt_success.&lt;BR /&gt; clear ls_success.&lt;BR /&gt; endloop.&lt;/P&gt;
  &lt;P&gt;For the Above statement i need to write in ABAP 7.4 Syntax. I have tried in the below code.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt; TYPES : lt_succ TYPE TABLE OF zbi_success-EV_SUCCESS-item WITH EMPTY KEY.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt; DATA(lt_success) = VALUE lt_succ( FOR ls_succ IN output-ev_success-item ( ) ).&lt;/P&gt;
  &lt;P&gt;But am not getting the values in LT_SUCCESS.&lt;/P&gt;
  &lt;P&gt;Can you please help me on this.&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;BR /&gt;Sadiq.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 17:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470727#M2000948</guid>
      <dc:creator>former_member227911</dc:creator>
      <dc:date>2021-09-11T17:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.4 Loop Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470728#M2000949</link>
      <description>&lt;P&gt;Hi Sadiq,&lt;/P&gt;&lt;P&gt;Please check if this helps: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lt_success = VALUE #( FOR ls_succ IN output-ev_success-item ( status = ls_succ-status ) ). &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In your code, inner ( ) is empty. &lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;Dhananjay&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 17:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470728#M2000949</guid>
      <dc:creator>hegde_dhananjay</dc:creator>
      <dc:date>2021-09-11T17:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.4 Loop Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470729#M2000950</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Hi Dhananjay,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for your response. I tried with the below code as you suggested its giving the below error.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;lt_success =VALUE#(FOR ls_succ IN output-ev_success-item (status= ls_succ-status )).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A table row specified in "( ... )" was expected.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 18:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470729#M2000950</guid>
      <dc:creator>former_member227911</dc:creator>
      <dc:date>2021-09-11T18:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.4 Loop Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470730#M2000951</link>
      <description>&lt;P&gt;You may wish to edit your question to format your ABAP code with the &lt;STRONG&gt;CODE&lt;/STRONG&gt; button, so that everyone can read it easily. Like that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at &lt;STRONG&gt;output-ev_success-item&lt;/STRONG&gt; into data(ls_success_output).&lt;BR /&gt;  ls_success-status = ls_success_output-status.&lt;BR /&gt;  append ls_success to lt_success.&lt;BR /&gt;  clear ls_success.&lt;BR /&gt;endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : lt_succ TYPE TABLE OF zbi_success-EV_SUCCESS-item WITH EMPTY KEY.
DATA(lt_success) = VALUE lt_succ( FOR ls_succ IN output-ev_success-item ( ) ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Sep 2021 18:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470730#M2000951</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-11T18:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.4 Loop Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470731#M2000952</link>
      <description>&lt;P&gt;The issue with your code is that you just add empty lines by using empty parentheses ( ).&lt;/P&gt;&lt;P&gt;You must define inside the parentheses the contents of the line you want to store in lt_success. Its content is evaluated at each iteration of the table output-ev_success-item.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 18:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470731#M2000952</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-11T18:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.4 Loop Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470732#M2000953</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;sadiq.k&lt;/SPAN&gt; Be careful with the spaces. I guess it's copy/paste error due to SAP Community form.&lt;/P&gt;&lt;P&gt;Other possibility, the type of lt_success is incorrect, its lines don't contain the component status. What is the type of &lt;STRONG&gt;zbi_success-EV_SUCCESS-item&lt;/STRONG&gt;? If it's a table type, you don't need to define lt_success as a "table of table".&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 21:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470732#M2000953</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-11T21:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.4 Loop Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470733#M2000954</link>
      <description>&lt;P&gt;Hi Sandra, &lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;You are right its copy paste due to SAP form.&lt;/P&gt;&lt;P&gt;The type of &lt;STRONG&gt;zbi_success-EV_SUCCESS-item its an Deep Struture in the structure we have the Table Type.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As you said lt_sucess doesn't have the field called status its right but here the problem with the deep structure.&lt;/P&gt;&lt;P&gt;The below code i can get the data in output-ev_success-item but the problem when i specify the Status = ls_succ-status its gives me the error.&lt;/P&gt;&lt;P&gt;The Type for lt_success in the below Declaration.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : lt_success TYPE TABLE OF zbi_bounce_back_email_response-ev_success_response-item&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;lt_success = VALUE #( FOR ls_succ IN output-ev_success-item ( ) ). &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can you please help.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Sadiq K&lt;/P&gt;</description>
      <pubDate>Sun, 12 Sep 2021 02:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470733#M2000954</guid>
      <dc:creator>former_member227911</dc:creator>
      <dc:date>2021-09-12T02:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.4 Loop Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470734#M2000955</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;sadiq.k&lt;/SPAN&gt; I don't think you use the right term.&lt;/P&gt;&lt;P&gt;You say "&lt;STRONG&gt;its an Deep Struture in the structure we have the Table Type&lt;/STRONG&gt;", it can be a deep structure &lt;STRONG&gt;only if &lt;/STRONG&gt;the table type is defined under a &lt;STRONG&gt;named component&lt;/STRONG&gt;. Imagine that you have declared via an ABAP type "ty_email_response_item", it would look like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_email_response_item,
         status TYPE STANDARD TABLE OF string WITH EMPTY KEY,
       END OF ty_email_response_item.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See that there's a named component, so it's a structure, and because this component is a table, it's called a deep structure (a deep-structured type to be exact).&lt;/P&gt;&lt;P&gt;(note that the parts "STANDARD", "string" and "EMPTY KEY" could be anything else)&lt;/P&gt;&lt;P&gt;Instead, I think you this (in the DDic it's called a table type):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES ty_email_response_item TYPE STANDARD TABLE OF string WITH EMPTY KEY.&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See that there's no component, consequently, it cannot be called a structure (and even less a a deep structure), it's just a &lt;STRONG&gt;Table Type&lt;/STRONG&gt; (a DDIC table type in your case).&lt;/P&gt;&lt;P&gt;So, the line "DATA lt_success TYPE TABLE..." means that you declared lt_success like a table of table. Is it really what you want, why?&lt;/P&gt;&lt;P&gt;If I'm wrong, please indicate the exact source and target types (screenshots if you prefer) so that we can better understand what you want to achieve.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Sep 2021 06:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470734#M2000955</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-12T06:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.4 Loop Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470735#M2000956</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;Thanks a lot for your kind response. Now its working fine.&lt;/P&gt;&lt;P&gt;The problem not with lt_success but with lt_succ type was table type thats the reason it couldn't able to recognize the status field.&lt;/P&gt;&lt;P&gt;I have changed the type of lt_succ.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; TYPES : lt_succ TYPE STANDARD TABLE OF zbi_succ WITH EMPTY KEY.

The below code which i can able to get the records in lt_success


DATA(lt_success) = VALUE lt_succ( FOR ls_succ IN output-ev_success-item ( status = ls_succ-status ) ).

Thanks Sandra.

Regards,&lt;BR /&gt;Sadiq 
                                                                                           &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Sep 2021 09:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-4-loop-statement/m-p/12470735#M2000956</guid>
      <dc:creator>former_member227911</dc:creator>
      <dc:date>2021-09-12T09:55:45Z</dc:date>
    </item>
  </channel>
</rss>

