<?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 Fetching data from COOIS Tcode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-coois-tcode/m-p/12307944#M1990623</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I want to fetch data from COOIS tcode in program and display it.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Code- &lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;IF s_werks IS NOT INITIAL.&lt;BR /&gt; APPEND VALUE #( selname = 'S_WERKS'&lt;BR /&gt; kind = 'S'&lt;BR /&gt; sign = 'I'&lt;BR /&gt; option = 'EQ'&lt;BR /&gt; low = s_werks-low&lt;BR /&gt; high = '' ) TO t_parameters.&lt;BR /&gt; ENDIF. " IF s_werks IS NOT INITIAL&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;IF s_begda IS NOT INITIAL.&lt;BR /&gt; APPEND VALUE #( selname = 'S_TERST'&lt;BR /&gt; kind = 'S'&lt;BR /&gt; sign = 'I'&lt;BR /&gt; option = 'BT'&lt;BR /&gt; low = s_begda-low&lt;BR /&gt; high = s_begda-high )&lt;BR /&gt; TO t_parameters.&lt;BR /&gt; ENDIF. "&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;wa_tcoa-opcomp_sel = abap_true.&lt;BR /&gt; wa_tcoa-layoutid_de = '000000000001'.&lt;BR /&gt; CALL FUNCTION 'COIS_SELECT_PARAMETERS_SET'&lt;BR /&gt; EXPORTING&lt;BR /&gt; it_parameter = t_parameters[]&lt;BR /&gt; is_tcoa = wa_tcoa.&lt;BR /&gt; &lt;BR /&gt; * select data from IOC&lt;BR /&gt; * read production orders&lt;BR /&gt; CALL FUNCTION 'COIS_SELECT_ORDERS_READ'&lt;BR /&gt; CHANGING&lt;BR /&gt; ct_ioopcomp = t_opcomp_tab[]. &lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;When I pass plant only as selection it is working fine, however when i pass Scheduled Start date, it is not returning any data. Can anybody please let me know how pass date to COOIS Tcode?&lt;/P&gt;
  &lt;P&gt;If I pass same parameters to COOIS Tcode, it is returning values!&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 18:46:31 GMT</pubDate>
    <dc:creator>former_member686194</dc:creator>
    <dc:date>2021-03-16T18:46:31Z</dc:date>
    <item>
      <title>Fetching data from COOIS Tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-coois-tcode/m-p/12307944#M1990623</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I want to fetch data from COOIS tcode in program and display it.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Code- &lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;IF s_werks IS NOT INITIAL.&lt;BR /&gt; APPEND VALUE #( selname = 'S_WERKS'&lt;BR /&gt; kind = 'S'&lt;BR /&gt; sign = 'I'&lt;BR /&gt; option = 'EQ'&lt;BR /&gt; low = s_werks-low&lt;BR /&gt; high = '' ) TO t_parameters.&lt;BR /&gt; ENDIF. " IF s_werks IS NOT INITIAL&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;IF s_begda IS NOT INITIAL.&lt;BR /&gt; APPEND VALUE #( selname = 'S_TERST'&lt;BR /&gt; kind = 'S'&lt;BR /&gt; sign = 'I'&lt;BR /&gt; option = 'BT'&lt;BR /&gt; low = s_begda-low&lt;BR /&gt; high = s_begda-high )&lt;BR /&gt; TO t_parameters.&lt;BR /&gt; ENDIF. "&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;wa_tcoa-opcomp_sel = abap_true.&lt;BR /&gt; wa_tcoa-layoutid_de = '000000000001'.&lt;BR /&gt; CALL FUNCTION 'COIS_SELECT_PARAMETERS_SET'&lt;BR /&gt; EXPORTING&lt;BR /&gt; it_parameter = t_parameters[]&lt;BR /&gt; is_tcoa = wa_tcoa.&lt;BR /&gt; &lt;BR /&gt; * select data from IOC&lt;BR /&gt; * read production orders&lt;BR /&gt; CALL FUNCTION 'COIS_SELECT_ORDERS_READ'&lt;BR /&gt; CHANGING&lt;BR /&gt; ct_ioopcomp = t_opcomp_tab[]. &lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;When I pass plant only as selection it is working fine, however when i pass Scheduled Start date, it is not returning any data. Can anybody please let me know how pass date to COOIS Tcode?&lt;/P&gt;
  &lt;P&gt;If I pass same parameters to COOIS Tcode, it is returning values!&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 18:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-coois-tcode/m-p/12307944#M1990623</guid>
      <dc:creator>former_member686194</dc:creator>
      <dc:date>2021-03-16T18:46:31Z</dc:date>
    </item>
  </channel>
</rss>

