<?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: Changing a variant variable via ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-a-variant-variable-via-abap/m-p/9847186#M1785867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curtis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically for anything more complex than populating a parameter with a date +/- todays date I would use TVARV.&amp;nbsp; As you suggest, writing a fairly simple ABAP to update your variable in TVARV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if the variable is fairly specific (i.e. only one batch program will need to use it) I would create a wrapper program with the parameters of your actual program but without the date.&amp;nbsp; The wrapper calls the standard program, passing the parameters and calculating the required dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadly, this still involves coding, however simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 16:16:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-29T16:16:57Z</dc:date>
    <item>
      <title>Changing a variant variable via ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-a-variant-variable-via-abap/m-p/9847185#M1785866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've looked for an answer for this, but can not find one.... so here's the situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running a SAP job that has a date selection option.&amp;nbsp; I want to create a variant and have that date go from the 1st day of the year up until 5 days in the future of today's date.&amp;nbsp; I know I can write a program to calculate the date and do a SUBMIT, but I would like to stay away from that if possible.&amp;nbsp; The options I have are to create an entry in TVARCV from "20130101" to "today+5".&amp;nbsp; OR do a dynamic "Current date +/- xxx days".&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was thinking was to create a batch job that runs nightly that changes either the TVARCV entry or the XXX in the dynamic option.&amp;nbsp; The problem is I don't know how to do that.&amp;nbsp; Does anyone have any ideas?&amp;nbsp; Is there a FM that changes TVARCV?&amp;nbsp; I don't want to manually change it if I can help it since it's a SAP table.&amp;nbsp; If there is a way to do it without coding, I would love to hear about that too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any information would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Curtis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 16:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-a-variant-variable-via-abap/m-p/9847185#M1785866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T16:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a variant variable via ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-a-variant-variable-via-abap/m-p/9847186#M1785867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curtis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically for anything more complex than populating a parameter with a date +/- todays date I would use TVARV.&amp;nbsp; As you suggest, writing a fairly simple ABAP to update your variable in TVARV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if the variable is fairly specific (i.e. only one batch program will need to use it) I would create a wrapper program with the parameters of your actual program but without the date.&amp;nbsp; The wrapper calls the standard program, passing the parameters and calculating the required dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadly, this still involves coding, however simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 16:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-a-variant-variable-via-abap/m-p/9847186#M1785867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T16:16:57Z</dc:date>
    </item>
  </channel>
</rss>

