<?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 How to assign multiple field values using read statement inside FOR loop in ABAP 7.4 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808245#M41552</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;Please help me to understand how to assign values to multiple fields using READ inside FOR , eg. for P_NAME1, PCITY1,PSTREET.... it is from same LT_ADRCP table am trying to read ADDRNUMBER and populate those 5 fields, but here if I use the below syntax, the Read statement is used 5 times which is not a good practice, with one read statement can I fill all 5 fields once?&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;          et_entityset = VALUE lxt_entity( FOR lw_order IN lt_ekkn (
              aufnr = lw_order-aufnr
              ktext = lw_order-ktext
              parnr = lw_order-parnr
              aenam = lw_order-aenam
              gstrp = lw_order-gstrp
              gltrp = lw_order-gltrp
              p_name1 = lt_adrcp[ addrnumber = lw_order-adrnr ]-p_name1
              p_city1  = lt_adrcp[ addrnumber = lw_order-adrnr ]-p_city1
*              p_street = 'STREETP1'.
*              p_po_box_reg = 'STATEP1'.
*              p_post_code1 = '10011'.
              matnr = lw_order-matnr
              maktx = lw_order-maktx
              bdmng = lw_order-bdmng
              meins = lw_order-meins
              verpr = lw_order-verpr
              waers = lw_order-waers
              bdter = lw_order-bdter
              ebeln = lw_order-ebeln
              ebelp = lw_order-ebelp
  ) ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Feb 2019 13:44:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-02-02T13:44:19Z</dc:date>
    <item>
      <title>How to assign multiple field values using read statement inside FOR loop in ABAP 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808245#M41552</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;Please help me to understand how to assign values to multiple fields using READ inside FOR , eg. for P_NAME1, PCITY1,PSTREET.... it is from same LT_ADRCP table am trying to read ADDRNUMBER and populate those 5 fields, but here if I use the below syntax, the Read statement is used 5 times which is not a good practice, with one read statement can I fill all 5 fields once?&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;          et_entityset = VALUE lxt_entity( FOR lw_order IN lt_ekkn (
              aufnr = lw_order-aufnr
              ktext = lw_order-ktext
              parnr = lw_order-parnr
              aenam = lw_order-aenam
              gstrp = lw_order-gstrp
              gltrp = lw_order-gltrp
              p_name1 = lt_adrcp[ addrnumber = lw_order-adrnr ]-p_name1
              p_city1  = lt_adrcp[ addrnumber = lw_order-adrnr ]-p_city1
*              p_street = 'STREETP1'.
*              p_po_box_reg = 'STATEP1'.
*              p_post_code1 = '10011'.
              matnr = lw_order-matnr
              maktx = lw_order-maktx
              bdmng = lw_order-bdmng
              meins = lw_order-meins
              verpr = lw_order-verpr
              waers = lw_order-waers
              bdter = lw_order-bdter
              ebeln = lw_order-ebeln
              ebelp = lw_order-ebelp
  ) ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 13:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808245#M41552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-02T13:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign multiple field values using read statement inside FOR loop in ABAP 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808246#M41553</link>
      <description>&lt;P&gt;Have you tried using LET and  VALUE combination, here is a ref &lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abaplet.htm" target="_blank"&gt;https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abaplet.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 14:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808246#M41553</guid>
      <dc:creator>s1252</dc:creator>
      <dc:date>2019-02-02T14:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign multiple field values using read statement inside FOR loop in ABAP 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808247#M41554</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;s1252&lt;/SPAN&gt; please convert it into an answer, I guess it's a good answer, don't you?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 14:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808247#M41554</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-02-02T14:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign multiple field values using read statement inside FOR loop in ABAP 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808248#M41555</link>
      <description>&lt;P&gt;Hi Krishna, Thank you...I tried with LET and BASE too, but getting the syntax error if I use with the FOR .....it is allowing me to use only any one of those..may be am missing the proper syntax...let me try still more with it...&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 16:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808248#M41555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-02T16:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign multiple field values using read statement inside FOR loop in ABAP 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808249#M41556</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;et_entityset = VALUE lxt_entity( 
        FOR lw_order IN lt_ekkn 
        LET &amp;lt;adrcp&amp;gt; = lt_adrcp[ addrnumber = lw_order-adrnr ]
        IN ( 
        aufnr = lw_order-aufnr
        ...
        p_name1 = &amp;lt;adrcp&amp;gt;-p_name1
        ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Feb 2019 19:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808249#M41556</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-02-02T19:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign multiple field values using read statement inside FOR loop in ABAP 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808250#M41557</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;Thanks for example.&lt;/P&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;Thank you...&lt;/P&gt;&lt;P&gt;Thank you both for the answer......&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 08:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-multiple-field-values-using-read-statement-inside-for-loop-in/m-p/808250#M41557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-03T08:43:41Z</dc:date>
    </item>
  </channel>
</rss>

