<?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: Need to create Dynamic Varient in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549532#M1266939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information provided was helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2009 14:25:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-06T14:25:30Z</dc:date>
    <item>
      <title>Need to create Dynamic Varient</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549526#M1266933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to create Dynamic Varient&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Requirement is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When the program runs on last day of the month, varient has to be set up to populate the &lt;/P&gt;&lt;P&gt; the File path as :&lt;/P&gt;&lt;P&gt;     /PA1/Interfaces/FlatFiles/new_sales_history.txt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the program runs on Working day + 1, then the other varient has to be set up to populate the File Path as : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     /PA1/Interfaces/FlatFiles/sales_history.txt    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody let me know how i can create Dynamic Varient...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions will be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 08:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549526#M1266933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T08:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create Dynamic Varient</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549527#M1266934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check the run date...and do like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_rundate = 'last day of the month'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_file = 'PA1/Interfaces/FlatFiles/new_sales_history.txt '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_file = '/PA1/Interfaces/FlatFiles/sales_history.txt'&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 09:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549527#M1266934</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2009-04-15T09:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create Dynamic Varient</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549528#M1266935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : p_filepath(50).
data : l_date type sy-datum,
g_date_last type sy-datum,
g_date_1 type sy-datum.
At initialisation.
" calc last day of month and store in g_date_last
"calc workday + 1 and store in g_date_1
l_date = sy-datum.

if l_date = g_date_last.
p_fielpath = '/PA1/Interfaces/FlatFiles/new_sales_history.txt '.
endif.

if l_date = g_date_1.
p_filepath = '/PA1/Interfaces/FlatFiles/sales_history.txt '.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 09:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549528#M1266935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T09:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create Dynamic Varient</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549529#M1266936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot hardcode the path of the UNix file.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user still may want to fill up the Path manually.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you know the way to create Dynamic Varients then please let me know... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you let me know the Tcode for creating varients...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 10:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549529#M1266936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T10:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create Dynamic Varient</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549530#M1266937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider the following option:&lt;/P&gt;&lt;P&gt;1) Create two parameters on selection screen. One for working day file and another for working day + 1 file.  &lt;/P&gt;&lt;P&gt;2) Use logic inside program to determine if working day or not.  Accordingly use the correct file name (from parameter).&lt;/P&gt;&lt;P&gt;3) Users can override the file parameters online.  If needed, when the program is run online (SY-BATCH = ' '), issue a confirmation popup for the file to be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure "dynamic variants" is the way to go here because you will have to build another program/process of updating it everyday.  But here is information about it anyways...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create customer defined variables to be used in a variant, you will have to create it in table TVARV.  See the following two links for further information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_45b/helpdata/en/c0/980398e58611d194cc00a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_45b/helpdata/en/c0/980398e58611d194cc00a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/creating" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/creating&lt;/A&gt;&lt;EM&gt;dynamic&lt;/EM&gt;variant&lt;EM&gt;using&lt;/EM&gt;table+TVARV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 13:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549530#M1266937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T13:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create Dynamic Varient</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549531#M1266938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kittu , when you are creating the job create two variant... end, end+1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;schedule one job with variant end on every end of month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;schedule another job with variant end+1 every end of month + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or let the user create a variant and save it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 13:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549531#M1266938</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-15T13:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create Dynamic Varient</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549532#M1266939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information provided was helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 14:25:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-dynamic-varient/m-p/5549532#M1266939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T14:25:30Z</dc:date>
    </item>
  </channel>
</rss>

