<?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: Set dynamic variant for time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026263#M1169279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your suggestion, system is setting the value only LOW and HIGH is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2009 19:14:40 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2009-01-13T19:14:40Z</dc:date>
    <item>
      <title>Set dynamic variant for time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026258#M1169274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have selection options for field as defined as TIME . I need to set dynamic variant for this field as&lt;/P&gt;&lt;P&gt;TIME should be "from"='current time-30 minutes' and "to"='24:59:59'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This report going to run in 00 hours and 30 hours (48 times ie 24 X 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : Pl. remember this is for a SAP standard report &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Info?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 19:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026258#M1169274</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-01-13T19:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set dynamic variant for time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026259#M1169275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a wrapper program which calculates the specific time, then do a SUBMIT on the standard report and pass the parameters to that program.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 19:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026259#M1169275</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-01-13T19:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set dynamic variant for time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026260#M1169276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Dynamic Time Calculation in the Variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Variant maintenance screen, under the &lt;/P&gt;&lt;P&gt;Selection Variable: select Z - Dynamic Time Calculation&lt;/P&gt;&lt;P&gt;Name of Variable: &lt;/P&gt;&lt;P&gt;Select "Current Time +/- ??? " from F4&lt;/P&gt;&lt;P&gt;Enter &lt;/P&gt;&lt;P&gt;'-' in +/-&lt;/P&gt;&lt;P&gt;00 in HH&lt;/P&gt;&lt;P&gt;30 in MM&lt;/P&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>Tue, 13 Jan 2009 19:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026260#M1169276</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-01-13T19:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set dynamic variant for time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026261#M1169277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Your suggestion will work if program is scheduled as standalone  My problem is this program is called  inside another program , before submitting the program , they are reading variant values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A is my program.  it has been called in B , before calling A in B , they used RS_VARIANT_READ, so here it is getting failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working PI 7.1 system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 19:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026261#M1169277</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-01-13T19:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set dynamic variant for time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026262#M1169278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deleted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandeep Kadamb on Jan 13, 2009 8:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 19:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026262#M1169278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T19:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set dynamic variant for time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026263#M1169279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your suggestion, system is setting the value only LOW and HIGH is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 19:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026263#M1169279</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-01-13T19:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set dynamic variant for time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026264#M1169280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is something I don't understand.&lt;/P&gt;&lt;P&gt;You can't change program B ?&lt;/P&gt;&lt;P&gt;Could you show abap code of program B, how does it call A ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 19:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026264#M1169280</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-01-13T19:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set dynamic variant for time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026265#M1169281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it would not be possible with standard avaliable options to dynamically populate both time fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a underlying FM behind all the dynamic calculations in Variants.&lt;/P&gt;&lt;P&gt;Like: &lt;/P&gt;&lt;P&gt;For calculation (of Time - Type Z) "From Start of Day to Now", underlying FM is RS_VARI_V_TIME_00_UP_TO_NOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I digged more deeper and found one FM RS_VARI_V_INIT_TIME which fill the options like Current Time, Current Time +/- ???, From Start of Day to Now etc. and Surprisinly all 3 options are hardcoded in it..!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you modify this FM to include your FM with Custom Calculation than this option would come into the calculation options and would work when you select that variant. I have tried this in debugging and it is working..!! For this test, I copied FM RS_VARI_V_TIME_00_UP_TO_NOW to my Z and changed the logic. I put a break-point in RS_VARI_V_INIT_TIME to fill a new line with my Z FM.&lt;/P&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>Tue, 13 Jan 2009 20:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026265#M1169281</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-01-13T20:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set dynamic variant for time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026266#M1169282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I digged more deeper and found one FM RS_VARI_V_INIT_TIME which fill the options like Current Time, Current Time +/- ???, From Start of Day to Now etc. and Surprisinly all 3 options are hardcoded in it..!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you suggested due to hardcoded values here , we could not able to do much on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i came in round away solution. Whenever program A called ( program with TIME selection input) i have called another custom program C . (This custom program will using the following function module RS_VARIANT_CONTENTS, and RS_VARIANT_CHANGE , So get the DEFAULT variant content of program A and change the variant content with LOW as current time - 30 and HIGH with 24:59:59)  as preceding job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PI 7.01 system program A always called in JOB mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 20:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026266#M1169282</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-01-13T20:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set dynamic variant for time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026267#M1169283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good workaround..!&lt;/P&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>Tue, 13 Jan 2009 20:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-dynamic-variant-for-time/m-p/5026267#M1169283</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-01-13T20:49:45Z</dc:date>
    </item>
  </channel>
</rss>

