<?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: Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851361#M360580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry but none of them are wroking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Feb 2007 07:14:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-04T07:14:11Z</dc:date>
    <item>
      <title>Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851355#M360574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using LINK and LINP tables.... I don't know why in my output I'm not getting lgtyp and uname filled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 06:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851355#M360574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T06:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851356#M360575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shaheen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide your selection code for these two tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 06:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851356#M360575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T06:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851357#M360576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lgnum ivnum ivpos istat lgpla idatu from linp into&lt;/P&gt;&lt;P&gt;corresponding fields of table itab where lgnum = pa_lgnum and ivnum&lt;/P&gt;&lt;P&gt;in s_ivnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lgnum ivnum lgtyp uname FROM link INTO CORRESPONDING&lt;/P&gt;&lt;P&gt;FIELDS OF TABLE itab1 where lgnum = pa_lgnum AND ivnum IN s_ivnum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 06:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851357#M360576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T06:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851358#M360577</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;Can you also provide the Internal table structures(itab and itab1)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 06:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851358#M360577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T06:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851359#M360578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Types: begin of str1_tab,&lt;/P&gt;&lt;P&gt;          lgnum type lgnum,&lt;/P&gt;&lt;P&gt;          ivnum type LVS_IVNUM,&lt;/P&gt;&lt;P&gt;          ivpos type LVS_IVPOS,&lt;/P&gt;&lt;P&gt;          lgtyp type lgtyp,&lt;/P&gt;&lt;P&gt;          lgpla type lgpla,&lt;/P&gt;&lt;P&gt;          idatu type LVS_IDATU,&lt;/P&gt;&lt;P&gt;          uname type LINK_UNAME,&lt;/P&gt;&lt;P&gt;       end of str1_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: itab type table of str1_tab,&lt;/P&gt;&lt;P&gt;      wa_tab like line of itab,&lt;/P&gt;&lt;P&gt;      wa_linp type linp,&lt;/P&gt;&lt;P&gt;      wa_link type link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab1 TYPE TABLE OF str2_tab,&lt;/P&gt;&lt;P&gt;      wa_tab1 LIKE LINE OF itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types: begin of str2_tab,&lt;/P&gt;&lt;P&gt;          lgnum type lgnum,&lt;/P&gt;&lt;P&gt;          charg type CHARG_D,&lt;/P&gt;&lt;P&gt;          ivnum type LVS_IVNUM,&lt;/P&gt;&lt;P&gt;          ivpos type LVS_IVPOS,&lt;/P&gt;&lt;P&gt;          istat type LINV_ISTAT,&lt;/P&gt;&lt;P&gt;          lgtyp type lgtyp,&lt;/P&gt;&lt;P&gt;          lgpla type lgpla,&lt;/P&gt;&lt;P&gt;          matnr type matnr,&lt;/P&gt;&lt;P&gt;          uname type LINK_UNAME,&lt;/P&gt;&lt;P&gt;          idatu type LVS_IDATU,&lt;/P&gt;&lt;P&gt;       end of str2_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: itab1 type table of str2_tab,&lt;/P&gt;&lt;P&gt;      wa_tab1 like line of itab1,&lt;/P&gt;&lt;P&gt;      wa_linv type linv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 06:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851359#M360578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T06:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851360#M360579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shaheen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINK is header table and LINP is item table so your first table should be LINK to improve the performance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the code as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lgnum ivnum lgtyp uname FROM link INTO CORRESPONDING&lt;/P&gt;&lt;P&gt;FIELDS OF TABLE itab1 where lgnum = pa_lgnum AND ivnum IN s_ivnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lgnum ivnum ivpos istat lgpla idatu from linp into&lt;/P&gt;&lt;P&gt;corresponding fields of table itab for all entries in table itab1 where lgnum = itab-lgnum and ivnum = itab-ivnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then you will have to populate the respective fields in to the final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one better option of writting a JOIN statement which do not require above select statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write code as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: link, linp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;lgnum like link-lgnum,&lt;/P&gt;&lt;P&gt;ivnum like link-ivnum,&lt;/P&gt;&lt;P&gt;lgtyp like link-lgtyp,&lt;/P&gt;&lt;P&gt;uname like link-uname,&lt;/P&gt;&lt;P&gt;ivpos like linp-ivpos,&lt;/P&gt;&lt;P&gt;istat like linp-istat,&lt;/P&gt;&lt;P&gt;lgpla like linp-lgpla,&lt;/P&gt;&lt;P&gt;idatu like linp-idatu,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: pa_lgnum like link-lgnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_ivnum for link-ivnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;lgnum a&lt;/SUB&gt;ivnum a&lt;SUB&gt;lgtyp a&lt;/SUB&gt;uname b&lt;SUB&gt;ivpos b&lt;/SUB&gt;istat b&lt;SUB&gt;lgpla b&lt;/SUB&gt;idatu &lt;/P&gt;&lt;P&gt;from link as a&lt;/P&gt;&lt;P&gt;inner join linp as b on a&lt;SUB&gt;lgnum = b&lt;/SUB&gt;lgnum and a&lt;SUB&gt;ivnum = b&lt;/SUB&gt;ivnum&lt;/P&gt;&lt;P&gt;into table itab &lt;/P&gt;&lt;P&gt;where a~lgnum = pa_lgnum&lt;/P&gt;&lt;P&gt;and    a~ivnum in s_ivnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table ITAB will have all required fields populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 07:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851360#M360579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T07:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851361#M360580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry but none of them are wroking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 07:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851361#M360580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T07:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851362#M360581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shaheen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please post your complete code??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above should work in the report......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 07:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851362#M360581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T07:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851363#M360582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mine is a report too&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 07:36:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851363#M360582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T07:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851364#M360583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Shaheen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Code looks fine...can you check the entries in the table(se16)&lt;/P&gt;&lt;P&gt;for the values you are entering int the parameters and the select-option, i think the table does have any values stored for your selection cretirea..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 08:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/1851364#M360583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T08:09:22Z</dc:date>
    </item>
  </channel>
</rss>

