<?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: small thing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989853#M953241</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;You havent mentioned the value of KUNNR which needs to be inputted in EKPO.&lt;/P&gt;&lt;P&gt;Please tell that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2008 11:44:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-17T11:44:08Z</dc:date>
    <item>
      <title>small thing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989852#M953240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus,&lt;/P&gt;&lt;P&gt;I have a requirement of getting Service number from field Konnr in table EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic is as follows.&lt;/P&gt;&lt;P&gt;1)Get EBELN based on Konnr from EKPO table&lt;/P&gt;&lt;P&gt;2)Get PACKNO based on EBELN from step1 and BSTYP='K' from ESLH table&lt;/P&gt;&lt;P&gt;3)Get SRVPOS,PACKAGE based on PACKNO from step2 from ESLL table.&lt;/P&gt;&lt;P&gt;If SRVPOS is blank,Make PACKAGE as PACKNO and get SRVPOS .&lt;/P&gt;&lt;P&gt;Here repeating of same Package should be eliminated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me efficient code for the above logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max points wil be awarded&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>Tue, 17 Jun 2008 11:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989852#M953240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T11:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: small thing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989853#M953241</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;You havent mentioned the value of KUNNR which needs to be inputted in EKPO.&lt;/P&gt;&lt;P&gt;Please tell that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 11:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989853#M953241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T11:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: small thing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989854#M953242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Konnr comes from Selection screen(select option).so it should get for generalised konnr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 11:58:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989854#M953242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T11:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: small thing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989855#M953243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Get EBELN based on Konnr from EKPO table&lt;/P&gt;&lt;P&gt;data: it_ekko type table of ekpo,&lt;/P&gt;&lt;P&gt;        wa_ekko type ekpo,&lt;/P&gt;&lt;P&gt;        it_eslh type table of eslh,&lt;/P&gt;&lt;P&gt;        wa_eslh type eslh,&lt;/P&gt;&lt;P&gt;        it_esll type table of esll,&lt;/P&gt;&lt;P&gt;        wa_esll type esll,&lt;/P&gt;&lt;P&gt;        it_esll1 type table of esll,&lt;/P&gt;&lt;P&gt;        wa_esll1 type esll,&lt;/P&gt;&lt;P&gt;select ebeln &lt;/P&gt;&lt;P&gt;   from ekpo&lt;/P&gt;&lt;P&gt;     into correpsonding fields of it_ekpo&lt;/P&gt;&lt;P&gt;where konnr in s_konnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Get PACKNO based on EBELN from step1 and BSTYP='K' from ESLH table&lt;/P&gt;&lt;P&gt;if not it_ekpo is initial.&lt;/P&gt;&lt;P&gt;select packno&lt;/P&gt;&lt;P&gt;  from eslh&lt;/P&gt;&lt;P&gt;  into corresponding fields of table it_ekpo&lt;/P&gt;&lt;P&gt; where ebeln eq it_ekpo-ebeln&lt;/P&gt;&lt;P&gt;   and  bstyp eq 'K'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;3)Get SRVPOS,PACKAGE based on PACKNO from step2 from ESLL table.&lt;/P&gt;&lt;P&gt;if not it_eslh is initial.&lt;/P&gt;&lt;P&gt;select srvpos&lt;/P&gt;&lt;P&gt;          package&lt;/P&gt;&lt;P&gt;  from esll&lt;/P&gt;&lt;P&gt;  into corresponding fields of table it_eslh&lt;/P&gt;&lt;P&gt; where package eq it_eslh-packno.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)If SRVPOS is blank,Make PACKAGE as PACKNO and get SRVPOS .&lt;/P&gt;&lt;P&gt;loop at it_esll into wa_esll.&lt;/P&gt;&lt;P&gt;if wa_esll-srvpos is initial.&lt;/P&gt;&lt;P&gt;move wa_esll to wa_esll1.&lt;/P&gt;&lt;P&gt;append wa_esll1 to it_esll1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;refresh: it_esll[].&lt;/P&gt;&lt;P&gt;sort it_esll1 by package.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from it_esll1 by comparing all fields.&lt;/P&gt;&lt;P&gt;select srvpos&lt;/P&gt;&lt;P&gt;          package&lt;/P&gt;&lt;P&gt;   into it_esll&lt;/P&gt;&lt;P&gt; for all entries in it_esll1&lt;/P&gt;&lt;P&gt;where package eq it_esll1-package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 12:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989855#M953243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T12:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: small thing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989856#M953244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;check this.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 select ebeln from ekpo into table itab where kunnr in s_kunnr&lt;/P&gt;&lt;P&gt; 2  if itab[] is not initial.&lt;/P&gt;&lt;P&gt;        select packno from eslh into table itab1 for all entries in itab where ebeln = itab-ebeln and BSTYP='K' &lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3  if itab[] is not initial &lt;/P&gt;&lt;P&gt;     select SRVPOS,PACKAGE from  ESLL into table itab2 for all entries in itab1 where PACKNO = itab-PACKNO.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 12:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989856#M953244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T12:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: small thing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989857#M953245</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 following.&lt;/P&gt;&lt;P&gt;data : begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;         ebeln like ekpo-ebeln,&lt;/P&gt;&lt;P&gt;         end of itab1.&lt;/P&gt;&lt;P&gt;data : begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;         PACKNO like eslh-PACKNO,&lt;/P&gt;&lt;P&gt;         end of itab2.&lt;/P&gt;&lt;P&gt;data : begin of itab3 occurs 0,&lt;/P&gt;&lt;P&gt;         SRVPOS  like esll-SRVPOS ,&lt;/P&gt;&lt;P&gt;        PACKAGE like esll-PACKAGE ,&lt;/P&gt;&lt;P&gt;         end of itab3.&lt;/P&gt;&lt;P&gt;data index type sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln from ekpo &lt;/P&gt;&lt;P&gt;               into table itab1 &lt;/P&gt;&lt;P&gt;               where kunnr in konnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab1[] not initial.&lt;/P&gt;&lt;P&gt;select PACKNO from eslh&lt;/P&gt;&lt;P&gt;             into table itab2 &lt;/P&gt;&lt;P&gt;              for all entries in itab1 &lt;/P&gt;&lt;P&gt;              where ebeln = itab1-ebeln and &lt;/P&gt;&lt;P&gt;                        BSTYP='K' .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab2[] not initial.&lt;/P&gt;&lt;P&gt;select SRVPOS PACKAGE from esll &lt;/P&gt;&lt;P&gt;             into table itab3 &lt;/P&gt;&lt;P&gt;              for all entries in itab2&lt;/P&gt;&lt;P&gt;              where PACKNO = itab2-PACKNO.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab3[] not initial.&lt;/P&gt;&lt;P&gt;loop at itab3.&lt;/P&gt;&lt;P&gt;if itab3-SRVPOS is initial.&lt;/P&gt;&lt;P&gt;index = sy-tabix.&lt;/P&gt;&lt;P&gt;select SRVPOS PACKAGE  from esll &lt;/P&gt;&lt;P&gt;             into table itab3 &lt;/P&gt;&lt;P&gt;              for all entries in itab2&lt;/P&gt;&lt;P&gt;              where PACKNO = itab1-PACKAGE.&lt;/P&gt;&lt;P&gt;modify itab3 ndex index.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward pts. if helphull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 12:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-thing/m-p/3989857#M953245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T12:19:40Z</dc:date>
    </item>
  </channel>
</rss>

