<?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: Adding a function module into a SQ01 Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458479#M1848113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I am hinting at htat only. Rest take care of syntax.&lt;/P&gt;&lt;P&gt;But there is soemthing wrong. You have put same field value (TSEGE-EVEN_TSTFR) at both the CALL FUNCTION&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2014 09:02:04 GMT</pubDate>
    <dc:creator>jogeswararao_kavala</dc:creator>
    <dc:date>2014-07-21T09:02:04Z</dc:date>
    <item>
      <title>Adding a function module into a SQ01 Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458473#M1848107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to extract few dates from TSEGE Table, by linking the VTTK - HANDLE. We are trying to look at maintaining dates of shipment that were not previously used in our company. &lt;/P&gt;&lt;P&gt;When I tried extracting the dates from TSEGE, they come as timestamped UTC. I was told to use the function module IB_CONVERT_FROM_TIMESTAMP with CET in a query by an external consultant we use for our services. I am familiar with creating simple queries in SQVI and convert them to SQ01, also I know to create queries in SQ01 itself. But do not know how to add a function module into an SQ01 Query.&lt;/P&gt;&lt;P&gt;After checking a few threads, I realise that I should be creating a field and entering the code of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way, anybody could instruct me in simple terms how do I go about adding a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help will be greatly appreciated. &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>Mon, 14 Jul 2014 05:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458473#M1848107</guid>
      <dc:creator>former_member805659</dc:creator>
      <dc:date>2014-07-14T05:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a function module into a SQ01 Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458474#M1848108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dsouza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can add any FM or code in SQ02 infoset area not in SQ01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you convert your query in SQ01 then tat time system&amp;nbsp; should be having infoset SQ02 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can go&amp;nbsp; with your infoset in SQ02 and add&amp;nbsp; code in&amp;nbsp; inside SQ02 for validation&amp;nbsp; or updating/adding new fields in infoset&amp;nbsp; etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check and let us know if you have any doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasenjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 09:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458474#M1848108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-14T09:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a function module into a SQ01 Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458475#M1848109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: justify;"&gt;First you need to create an Infoset (SQ02). Here you will have your Additional field to hold the converted time. Following is an example of using FM in an Infoset (SQ02). Here first we created an Additional field &lt;STRONG&gt;&lt;EM&gt;mnthr &lt;/EM&gt;&lt;/STRONG&gt;in the &lt;EM&gt;Extras &lt;/EM&gt;tab and gave the FM code shown in the coding section of this Additional field..&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/496929" width="450" /&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Take this Additional field into FieldGroups of the Infoset along with other fields of your report. Generate Infoset.&amp;nbsp; Now you will create an Infoset Query (SQ01) based on this Infoset, where this calculted Additiona filed will be available to you.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;EM&gt;Jogeswara Rao K&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 10:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458475#M1848109</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2014-07-14T10:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a function module into a SQ01 Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458476#M1848110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jogeswara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have after reading a few threads, understood this small code and changed to my specification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert UTC Start time from TSEGE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I_TIMESTAMP = TSEGE-EVEN_TSTFR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I_TZONE = CET&lt;/P&gt;&lt;P&gt;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_datlo = date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_timlo = time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert UTC Start End from TSEGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_timestamp = TSEGE-EVEN_TSTTO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_tzone = CET&lt;/P&gt;&lt;P&gt;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_datlo = date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_timlo = time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the above codes are correct. If yes, I have a doubt: TSEGE-EVEN_TSTFR &amp;amp; TSEGE-EVEN_TSTTO have different time in the same field, "Actual" &amp;amp; "Forecast", which is determined by TSEGE-EVEN_VERTY wherein 1 is Actual and 0 is Forecast. Is this something I would have to put in the code, or something that would work in the query "Selection Fields"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458476#M1848110</guid>
      <dc:creator>former_member805659</dc:creator>
      <dc:date>2014-07-21T08:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a function module into a SQ01 Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458477#M1848111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may have to manage through if condition like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If TSEGE-EVE&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;N&lt;STRONG&gt;_VERTY = '1'.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Call function ....&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;&lt;EM&gt;else.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Call Function ...&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Endif.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458477#M1848111</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2014-07-21T08:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a function module into a SQ01 Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458478#M1848112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If TSEGE-EVEN_VERTY = '1'.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_timestamp = TSEGE-EVEN_TSTFR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_tzone = CET.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_datlo = date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_timlo = time.&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_timestamp = TSEGE-EVEN_TSTFR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_tzone = CET.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_datlo = date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_timlo = time.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the above fine now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458478#M1848112</guid>
      <dc:creator>former_member805659</dc:creator>
      <dc:date>2014-07-21T08:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a function module into a SQ01 Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458479#M1848113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I am hinting at htat only. Rest take care of syntax.&lt;/P&gt;&lt;P&gt;But there is soemthing wrong. You have put same field value (TSEGE-EVEN_TSTFR) at both the CALL FUNCTION&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 09:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458479#M1848113</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2014-07-21T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a function module into a SQ01 Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458480#M1848114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is &lt;SPAN style="color: #333333; font-size: 12px;"&gt; TSEGE-EVEN_TSTFR holds both the values, Actual and &lt;/SPAN&gt;Forecast and is differentiated by &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;TSEGE-EVEN_VERTY = '1'. or &lt;SPAN style="color: #333333; font-size: 12px;"&gt;TSEGE-EVEN_VERTY = '0'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;So in this case, I cannot use, IF I will have to use "When"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 09:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-function-module-into-a-sq01-query/m-p/10458480#M1848114</guid>
      <dc:creator>former_member805659</dc:creator>
      <dc:date>2014-07-21T09:16:37Z</dc:date>
    </item>
  </channel>
</rss>

