<?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 Timestamp Field - Dynamic date values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119905#M1904609</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;I have an abap program with timestamp field as select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user would like the job to be scheduled every week and the timestamp field should have values current date- 1 week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we do this using dynamic varient ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am aware that for timstamp field dynamic varient is not possible and only TVARVC is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even that is not working. Is there any way to do this using TVARVC or any other method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select option is of structure reference TZONREF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming I populate current date - 1 week in the initialization event without using TVARV table. I still need a varient for another field which has plant values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use varient as well as code my required dates in the initizalization event. If so, should i hide the date field while choosing the varient or will the values disappear when the varient is chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2015 10:29:59 GMT</pubDate>
    <dc:creator>silentbull</dc:creator>
    <dc:date>2015-05-15T10:29:59Z</dc:date>
    <item>
      <title>Timestamp Field - Dynamic date values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119905#M1904609</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;I have an abap program with timestamp field as select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user would like the job to be scheduled every week and the timestamp field should have values current date- 1 week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we do this using dynamic varient ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am aware that for timstamp field dynamic varient is not possible and only TVARVC is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even that is not working. Is there any way to do this using TVARVC or any other method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select option is of structure reference TZONREF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming I populate current date - 1 week in the initialization event without using TVARV table. I still need a varient for another field which has plant values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use varient as well as code my required dates in the initizalization event. If so, should i hide the date field while choosing the varient or will the values disappear when the varient is chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 10:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119905#M1904609</guid>
      <dc:creator>silentbull</dc:creator>
      <dc:date>2015-05-15T10:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Field - Dynamic date values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119906#M1904610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a standard program ?&lt;/P&gt;&lt;P&gt;If no, why don't you manage it in program code in case select option is not filled ?&lt;/P&gt;&lt;P&gt;How about if the job failed and is executed again next day ? do you loose a day in your process ?&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, 15 May 2015 10:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119906#M1904610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-15T10:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Field - Dynamic date values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119907#M1904611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a Z program only and I would like to manage it using Program code only. But I need a varient to save and schedule. So what should I choose for this field in the varient as every day the select option will need to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 12:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119907#M1904611</guid>
      <dc:creator>silentbull</dc:creator>
      <dc:date>2015-05-15T12:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Field - Dynamic date values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119908#M1904612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you save your variant, you can set the "Save without values" checkbox for the timestamp field.&amp;nbsp; That way you can save the values of other parameters but leave the timestamp selection empty for your program to fill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 13:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119908#M1904612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-15T13:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Field - Dynamic date values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119909#M1904613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I would still need the timestamp field as selection screen. My program will fill only during the initialization event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it mean the save without values will retain the default values of selection screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 14:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119909#M1904613</guid>
      <dc:creator>silentbull</dc:creator>
      <dc:date>2015-05-15T14:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Field - Dynamic date values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119910#M1904614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would still leave the field on the selection screen.&amp;nbsp; You set the "Save without values" checkbox in the attributes of the variant so that when the variant is used it will not populate the values for that select-options.&amp;nbsp; Then you can populate it in your program if it is empty (which will be the case if that variant is used).&amp;nbsp; If a user does fill in the value during execution, or in a different variant where that checkbox is not set it will act as normal. Put your code to fill in the default in the INITIALIZATION event , first checking IF selopt[] IS INITIAL so that you don't overwrite values if they are provided in a variant.&amp;nbsp; That way you get your default values only if the variant does not provide one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 15:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-field-dynamic-date-values/m-p/11119910#M1904614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-15T15:08:58Z</dc:date>
    </item>
  </channel>
</rss>

