<?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: modify in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564026#M584852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Prax,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The how wud i go forward of getting the customer numbers based on the materials ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide me i am  unable to get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards'&lt;/P&gt;&lt;P&gt;jana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2007 20:42:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-24T20:42:48Z</dc:date>
    <item>
      <title>modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564013#M584839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT IT_EKPO BY KUNNR.&lt;/P&gt;&lt;P&gt;  LOOP AT IT_EKPO INTO WA_EKPO.&lt;/P&gt;&lt;P&gt;    READ TABLE IT_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_EKPO-KUNNR BINARY SEARCH.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      WA_KNA1-KUNNR = WA_EKPO-KUNNR.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;  modify it_kna1 from wa_kna1.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thing is i am having 1,2,3 materials shipped to a single customer .&lt;/P&gt;&lt;P&gt;so i have to get the corresponding kunnr for that material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am using this statement its giving me a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thing is i have to modify it_kna1 based upon it_ekpo-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any alternative method do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;jana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 19:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564013#M584839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T19:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564014#M584840</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;Check this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SORT IT_EKPO BY KUNNR.
LOOP AT IT_EKPO INTO WA_EKPO.

READ TABLE IT_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_EKPO-KUNNR BINARY SEARCH.
IF SY-SUBRC = 0.
WA_KNA1-KUNNR = WA_EKPO-KUNNR.
modify it_kna1 from wa_kna1.  " PUT INSIDE IF
ENDIF.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 19:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564014#M584840</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-24T19:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564015#M584841</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 doing this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT IT_EKPO BY KUNNR.
LOOP AT IT_EKPO INTO WA_EKPO.

&amp;lt;b&amp;gt; w_sytabix = sy-tabix.&amp;lt;/b&amp;gt;
READ TABLE IT_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_EKPO-KUNNR BINARY SEARCH.
IF SY-SUBRC = 0.
WA_KNA1-KUNNR = WA_EKPO-KUNNR.
ENDIF.
&amp;lt;b&amp;gt;modify it_kna1 from wa_kna1 index w_sytabix&amp;lt;/b&amp;gt;.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 19:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564015#M584841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T19:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564016#M584842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you want to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify it_kna1 from wa_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;outside of the if - statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 19:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564016#M584842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T19:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564017#M584843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got a dump we cant use modify inside a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;jana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564017#M584843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564018#M584844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the modify statement to &lt;/P&gt;&lt;P&gt;MODIFY it_kna1 FROM wa_kna1 WHERE kunnr = wa_kna1-kunnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564018#M584844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564019#M584845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi VJ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its working but its not modifying it_kna1 and i am not getting the next customer number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean bfore it_kna1 is having 2 entries and after modify it shud be 3 but its skipping out the last entry&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;jana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564019#M584845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564020#M584846</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;Use with modify inside the IF and ENDIF statement and also use index option. Why it is giving dump is it is not find proper index to modify the I_KNA1 table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
modify it_kna1 from wa_kna1 index sy-tabix.  

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564020#M584846</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-24T20:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564021#M584847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;WA_KNA1-KUNNR = WA_EKPO-KUNNR.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;modify &amp;lt;i&amp;gt;TABLE&amp;lt;/i&amp;gt; it_kna1 from wa_kna1.&amp;lt;/b&amp;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;You have to use &amp;lt;b&amp;gt;MODIFY TABLE it_kna1 from wa_kna1&amp;lt;/b&amp;gt; statement... then it wont give the dump..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One suggestion .. you should put MODIFY statement should be inside IF... ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:25:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564021#M584847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564022#M584848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not getting..why u r reading a record from KNA1 for EKPO-KUNNR... and then if record is read then u r assigning same value to KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;So it will never get updated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_ekpo-kunnr and wa_kna1-kunnr will always be same..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since u have read the data from KNA1 for wa_ekpo-kunnr..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are u sure u have to update...  IT_KNA1 from IT_EKPO..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it should be reverse...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a thought.. tell me if I'm wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564022#M584848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564023#M584849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still not working folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thing is i have material 13 which is ordered by 2 customers like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;material    customer no.&lt;/P&gt;&lt;P&gt;13              a&lt;/P&gt;&lt;P&gt;13              a&lt;/P&gt;&lt;P&gt;13              b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but kna1 will have only 2 entries i have to modify as per the material .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and using modify i am not getting the 3rd entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;jana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564023#M584849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564024#M584850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you want to update the i_KNA1 ?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT IT_EKPO BY KUNNR.
LOOP AT IT_EKPO INTO WA_EKPO.
READ TABLE IT_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_EKPO-KUNNR BINARY SEARCH.
IF SY-SUBRC NE 0.
WA_KNA1-KUNNR = WA_EKPO-KUNNR.
Append wa_kna1 to i_kna1.
ENDIF.
ENDLOOP.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564024#M584850</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-24T20:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564025#M584851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check my last post....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not getting..why u r reading a record from KNA1 for EKPO-KUNNR... and then if record is read then u r assigning same value to KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;So it will never get updated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_ekpo-kunnr and wa_kna1-kunnr will always be same..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since u have read the data from KNA1 for wa_ekpo-kunnr..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are u sure u have to update... IT_KNA1 from IT_EKPO..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it should be reverse...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a thought.. tell me if I'm wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prax &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564025#M584851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564026#M584852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Prax,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The how wud i go forward of getting the customer numbers based on the materials ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide me i am  unable to get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards'&lt;/P&gt;&lt;P&gt;jana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564026#M584852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564027#M584853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.. I'm not much aware of these tables.. since I'm working more on HR module..&lt;/P&gt;&lt;P&gt;but what I think I think.. &lt;/P&gt;&lt;P&gt;u r not using correct tables..&lt;/P&gt;&lt;P&gt;In EKPO, EBELN and EBELP are primary key fields..&lt;/P&gt;&lt;P&gt;In KNA1, KUNNR is primary field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so based on MATNR in EKPO, u want to update KUNNR in KNA1.  procedure seems to be wrong.. consult ur functional person for more info or may be somebody else here can tell u..&lt;/P&gt;&lt;P&gt;I told u the wrong logic in ur code... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;One more thing I found in ur logic is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;13 a&lt;/P&gt;&lt;P&gt;13 a&lt;/P&gt;&lt;P&gt;13 b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get only 2 entries in KNA1..&lt;/P&gt;&lt;P&gt;since there are only two customer numbers...&lt;/P&gt;&lt;P&gt;from where this 3rd one came ?&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564027#M584853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564028#M584854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me put this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to group materials by customer .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;material            customer&lt;/P&gt;&lt;P&gt;13                     a&lt;/P&gt;&lt;P&gt;13                     a&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------" /&gt;&lt;P&gt;13                     b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to update kna1 as i will be getting address numbers based upon kunnr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how wud i go fwd for this requirement&lt;/P&gt;&lt;P&gt; regards&lt;/P&gt;&lt;P&gt;jana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 21:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564028#M584854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T21:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564029#M584855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Irrespective of how many material customer combinations you have, you need only one kna1 record per customer and from the same KNA1 record, you will get one ADRNR per customer and you can get the address from ADRC using ADRNR. Your logic should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_ekpo.&lt;/P&gt;&lt;P&gt;read table it_kna1 with key kunnr = it_ekpo-customer.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;select from ADRC where adrnr = it_kna1-adrnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EKPO is for POs, how are you getting customers here? Are you taking EKPO-KUNNR? Sometimes, you can override the address in the PO itself and in such cases, EKPO-ADRNR will be filled in. So you may not even have to go to KNA1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 21:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2564029#M584855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T21:13:00Z</dc:date>
    </item>
  </channel>
</rss>

