<?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: It's complicated in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815055#M1469526</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;Create a Internal table with &lt;STRONG&gt;partner cclass activity ernam and RPNUM&lt;/STRONG&gt;  fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Apr 2010 11:48:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-20T11:48:17Z</dc:date>
    <item>
      <title>It's complicated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815050#M1469521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on something, and I need anyone's help.  Here is what I am trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently looking inside of table BCONT and retrieving all records that have CCLASS = 0015  and ACTIVITY = 0002.&lt;/P&gt;&lt;P&gt;My statement looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;   select partner cclass activity ernam
        into table lit_bcont
        from bcont
        for all entries in tl_fkk_instpln_head
        where cclass = '0015' and activity = '0002' and 
              bcont~partner = tl_fkk_instpln_head-gpart. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good, now the problem is, that inside of TL_FKK_INSTPLN_HEAD, there is a field called RPNUM.  This field does not exists in BCONT, but I really need it inside of LIT_BCONT for future operations.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a tip or anything, that I can do to resolve this issue.  I'm trying not to do any table linkages, but if that's the only way, then so be it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 20, 2010 9:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 01:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815050#M1469521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T01:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: It's complicated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815051#M1469522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jotorres1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Firstly please use meaningful Subject in order to get response soon. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  1. You never given from which tables you are fetching data into TL_FKK_INSTPLN_HEAD. &lt;/P&gt;&lt;P&gt;  2.  If You are selecting from one table use inner join for both tables and select one shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please give the declartions of TL_FKK_INSTPLN_HEAD and select query. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Suneel Kumar G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 02:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815051#M1469522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T02:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: It's complicated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815052#M1469523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could just loop at tl_fkk_instpln_head and move the required field to the internal table lit_bcont based on the partener.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at  lit_bcont .
read table tl_fkk_instpln_head with key gpart =  lit_bcont-parnter.
if sy-subrc = 0.
 lit_bcont-rpnum = tl_fkk_instpln_head -rpnum.
modify lit_bcont index sy-tabix.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 05:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815052#M1469523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T05:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: It's complicated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815053#M1469524</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 need to create two workareas :&lt;/P&gt;&lt;P&gt;wa_tl_fkk_instpln_head of type tl_fkk_instpln_head&lt;/P&gt;&lt;P&gt;and wa_lit_bcont of type lit_bcont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure that rpnum is there in the structure of table lit_bcont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : wa_tl_fkk_instpln_head , wa_lit_bcont.&lt;/P&gt;&lt;P&gt;loop at  tl_fkk_instpln_head into wa_tl_fkk_instpln_head .&lt;/P&gt;&lt;P&gt;read table  lit_bcont into wa_lit_bcont with key partner =  wa_tl_fkk_instpln_head-gpart binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; wa_lit_bcont-rpnum = wa_tl_fkk_instpln_head -rpnum.&lt;/P&gt;&lt;P&gt;modify lit_bcont from wa_lit_bcont transporting rpnum where rpnum = wa_tl_fkk_instpln_head-rpnum.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear : wa_tl_fkk_instpln_head , wa_lit_bcont.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert back in case of any issues....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 10:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815053#M1469524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T10:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: It's complicated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815054#M1469525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you have declared lit_bcont like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lit_bcont type tabel of bcont.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Redifne that internal table with your own type where you include the required field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(syntax not 100% correct, but you  should get the idea)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_bcont,
                  your_field.
             INCLUDE STRUCTURE BCONT.
            END OF ty_bcont.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when you select the data into your lit_bcont:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;... INTO CORRESPONDING FIELDS OF TABLE lit_bcont&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, loop at both tables using their relationshiop and move that field value to lit_bcont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Maen Anachronos on Apr 20, 2010 1:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 11:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815054#M1469525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T11:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: It's complicated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815055#M1469526</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;Create a Internal table with &lt;STRONG&gt;partner cclass activity ernam and RPNUM&lt;/STRONG&gt;  fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 11:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815055#M1469526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T11:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: It's complicated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815056#M1469527</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;select partner cclass activity ernam&lt;/P&gt;&lt;P&gt;        into table lit_bcont&lt;/P&gt;&lt;P&gt;        from bcont&lt;/P&gt;&lt;P&gt;        for all entries in tl_fkk_instpln_head&lt;/P&gt;&lt;P&gt;        where cclass = '0015' and activity = '0002' and partner = tl_fkk_instpln_head-gpart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u check this  .Its wotking for u ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this stmt taking time reply for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 13:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815056#M1469527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T13:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: It's complicated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815057#M1469528</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;Just my thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you use an inner join as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select b~partner b~cclass b~activity b~ernam t~RPNUM
       into table lit_bcont
        from tl_fkk_instpln_head as t
             left inner join bcont as b
              on bcont~partner = p~gpart
where b~cclass = '0015' and b~activity = '0002'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure but, i think that efficiency could increase in this case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Others - Please help me out on the efiiciency part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mazin mahmood on Apr 20, 2010 7:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 14:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-s-complicated/m-p/6815057#M1469528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T14:17:58Z</dc:date>
    </item>
  </channel>
</rss>

