<?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 Doubt on dynamic selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-dynamic-selection/m-p/3867557#M929494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my selection screen I have controlling area. Depending on controlling are I need to select data from different tables. For now I have hard coded it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can i make it dynamic? is there any way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at s_kokrs.&lt;/P&gt;&lt;P&gt;    *&lt;STRONG&gt;if s_kokrs-low eq 'KVCO'.&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;      select PALEDGER vrgar versi werks perio KNDNR artnr vkorg absmg PRODH&lt;/P&gt;&lt;P&gt;      from &lt;STRONG&gt;CE1KVOC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      appending table wt_CE1KVOC&lt;/P&gt;&lt;P&gt;      where PALEDGER = s_PALE&lt;/P&gt;&lt;P&gt;      and   vrgar = s_vrgar&lt;/P&gt;&lt;P&gt;      and versi = s_versi&lt;/P&gt;&lt;P&gt;      and werks in s_werks&lt;/P&gt;&lt;P&gt;      and perio in r_period&lt;/P&gt;&lt;P&gt;      and artnr in s_artnr&lt;/P&gt;&lt;P&gt;      and prodh in s_prodh .&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;elseif s_kokrs-low eq 'KGCO'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      select PALEDGER vrgar versi werks perio KNDNR artnr vkorg absmg PRODH&lt;/P&gt;&lt;P&gt;      from &lt;STRONG&gt;CE1Kgoc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      appending table wt_CE1KVOC&lt;/P&gt;&lt;P&gt;      where PALEDGER = s_PALE&lt;/P&gt;&lt;P&gt;      and   vrgar = s_vrgar&lt;/P&gt;&lt;P&gt;      and versi = s_versi&lt;/P&gt;&lt;P&gt;      and werks in s_werks&lt;/P&gt;&lt;P&gt;      and perio in r_period&lt;/P&gt;&lt;P&gt;      and artnr in s_artnr&lt;/P&gt;&lt;P&gt;      and prodh in s_prodh .      .&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2008 12:59:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-09T12:59:03Z</dc:date>
    <item>
      <title>Doubt on dynamic selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-dynamic-selection/m-p/3867557#M929494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my selection screen I have controlling area. Depending on controlling are I need to select data from different tables. For now I have hard coded it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can i make it dynamic? is there any way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at s_kokrs.&lt;/P&gt;&lt;P&gt;    *&lt;STRONG&gt;if s_kokrs-low eq 'KVCO'.&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;      select PALEDGER vrgar versi werks perio KNDNR artnr vkorg absmg PRODH&lt;/P&gt;&lt;P&gt;      from &lt;STRONG&gt;CE1KVOC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      appending table wt_CE1KVOC&lt;/P&gt;&lt;P&gt;      where PALEDGER = s_PALE&lt;/P&gt;&lt;P&gt;      and   vrgar = s_vrgar&lt;/P&gt;&lt;P&gt;      and versi = s_versi&lt;/P&gt;&lt;P&gt;      and werks in s_werks&lt;/P&gt;&lt;P&gt;      and perio in r_period&lt;/P&gt;&lt;P&gt;      and artnr in s_artnr&lt;/P&gt;&lt;P&gt;      and prodh in s_prodh .&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;elseif s_kokrs-low eq 'KGCO'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      select PALEDGER vrgar versi werks perio KNDNR artnr vkorg absmg PRODH&lt;/P&gt;&lt;P&gt;      from &lt;STRONG&gt;CE1Kgoc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      appending table wt_CE1KVOC&lt;/P&gt;&lt;P&gt;      where PALEDGER = s_PALE&lt;/P&gt;&lt;P&gt;      and   vrgar = s_vrgar&lt;/P&gt;&lt;P&gt;      and versi = s_versi&lt;/P&gt;&lt;P&gt;      and werks in s_werks&lt;/P&gt;&lt;P&gt;      and perio in r_period&lt;/P&gt;&lt;P&gt;      and artnr in s_artnr&lt;/P&gt;&lt;P&gt;      and prodh in s_prodh .      .&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 12:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-dynamic-selection/m-p/3867557#M929494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T12:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on dynamic selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-dynamic-selection/m-p/3867558#M929495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: P_TABNAME TYPE CHAR30.

P_TABNAME = 'CE1KVOC'.

select PALEDGER vrgar versi werks perio KNDNR artnr vkorg absmg PRODH
from (P_TABNAME)
appending table wt_CE1KVOC
where PALEDGER = s_PALE
and vrgar = s_vrgar
and versi = s_versi
and werks in s_werks
and perio in r_period
and artnr in s_artnr
and prodh in s_prodh .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 13:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-dynamic-selection/m-p/3867558#M929495</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-05-09T13:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on dynamic selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-dynamic-selection/m-p/3867559#M929496</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;To learn more about dynamic programming, I suggest you to read the following: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 13:15:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-dynamic-selection/m-p/3867559#M929496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T13:15:13Z</dc:date>
    </item>
  </channel>
</rss>

