<?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 Fill final internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-final-internal-table/m-p/4027414#M962441</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;1.I extracted the delivery document no from NAST table based on output  type.&lt;/P&gt;&lt;P&gt;2.extracted delivery doc no, kunag(sold-to-party), kunnr (ship-to-party) and sdabw (process indicator) from&lt;/P&gt;&lt;P&gt;LIKP table into table IT_likp based on delivery doc no.&lt;/P&gt;&lt;P&gt;3. extracted kunnr,name1, ort01, tel.ph no, postalcode,address from KNA1 table into it_kna1 , for all entries in it_likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is i want fill my final internal table from these two tables.&lt;/P&gt;&lt;P&gt;final IT structure is : vbeln, likp-kunag(sold-to-party), name1,tel ph no, address, likp-kunnr(ship-to-party),name1, tel ph no,address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the condition is if likp-sdabe = SH , in this case only we fill the ship-to-part details, if the condition is false we don't fill ship-to-party details.&lt;/P&gt;&lt;P&gt;but in both cases we must fill remaining(sold-to-party details) all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help me for filling the final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jun 2008 16:44:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-09T16:44:01Z</dc:date>
    <item>
      <title>Fill final internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-final-internal-table/m-p/4027414#M962441</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;1.I extracted the delivery document no from NAST table based on output  type.&lt;/P&gt;&lt;P&gt;2.extracted delivery doc no, kunag(sold-to-party), kunnr (ship-to-party) and sdabw (process indicator) from&lt;/P&gt;&lt;P&gt;LIKP table into table IT_likp based on delivery doc no.&lt;/P&gt;&lt;P&gt;3. extracted kunnr,name1, ort01, tel.ph no, postalcode,address from KNA1 table into it_kna1 , for all entries in it_likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is i want fill my final internal table from these two tables.&lt;/P&gt;&lt;P&gt;final IT structure is : vbeln, likp-kunag(sold-to-party), name1,tel ph no, address, likp-kunnr(ship-to-party),name1, tel ph no,address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the condition is if likp-sdabe = SH , in this case only we fill the ship-to-part details, if the condition is false we don't fill ship-to-party details.&lt;/P&gt;&lt;P&gt;but in both cases we must fill remaining(sold-to-party details) all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help me for filling the final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 16:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-final-internal-table/m-p/4027414#M962441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T16:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fill final internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-final-internal-table/m-p/4027415#M962442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT it_likp INTO likp_rec.
    CLEAR final_rec.
    final_rec-vbeln         = likp_rec-vbeln.
    final_rec-kunag         = likp_rec-kunag.
    READ TABLE it_kna1 INTO kna1_rec WITH KEY kunnr = final_rec-kunag.
    IF sy-subrc EQ 0.
      final_rec-name1       = kna1_rec-name1.
      final_rec-stras       = kna1_rec-stras.
      final_rec-ort01       = kna1_rec-ort01.
      final_rec-pstlz       = kna1_rec-pstlz.
      final_rec-telf1       = kna1_rec-telf1.
    ENDIF.
    IF likp_rec-sdabw = 'SH'.
      final_rec-kunnr       = likp_rec-kunnr.
      READ TABLE it_kna1 INTO kna1_rec WITH KEY kunnr = final_rec-kunnr.
      IF sy-subrc EQ 0.
        final_rec-st_name1       = kna1_rec-name1.
        final_rec-st_stras       = kna1_rec-stras.
        final_rec-st_ort01       = kna1_rec-ort01.
        final_rec-st_pstlz       = kna1_rec-pstlz.
        final_rec-st_telf1       = kna1_rec-telf1.
      ENDIF.
    ENDIF.
    APPEND final_rec TO it_final.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 17:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-final-internal-table/m-p/4027415#M962442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T17:17:11Z</dc:date>
    </item>
  </channel>
</rss>

