<?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: How I define variable variant??? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320362#M165168</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;Could you please explain a little more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A variant can be configured to have dynamic values for the selection parameters by using the SELECTION VARIABLE option while saving the variant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement looks different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 May 2006 03:22:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-26T03:22:18Z</dc:date>
    <item>
      <title>How I define variable variant???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320361#M165167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to define variable variant. I mean if a user input a count, for example 10, there should be var01, var02, var03 ... var10 or input 5 then var01, var02, ... var05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 03:11:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320361#M165167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T03:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How I define variable variant???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320362#M165168</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;Could you please explain a little more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A variant can be configured to have dynamic values for the selection parameters by using the SELECTION VARIABLE option while saving the variant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement looks different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 03:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320362#M165168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T03:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How I define variable variant???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320363#M165169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;To avoid having to create a new variant each time you use different values, you can use variables in variants. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three ways to do this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable date calculations (see also Creating variables for date calculation) &lt;/P&gt;&lt;P&gt;You can use this option when you need to use a date in a variant, for example, today's date, or the last day of the previous month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User-specific values (see also User-specific selection variables)&lt;/P&gt;&lt;P&gt;You can use this option to enter user-specific values in a selection field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values defined in table TVARV (see also Fixed values in table TVARV)&lt;/P&gt;&lt;P&gt;To fill selection fields for a specific task using a variant you can save fixed values in table TVARV. To avoid having to create new variants for each minor change in the selection values, you can assign a value in table TVARV to a selection and then just change this value. This is particularly &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GO THROUGH THIS LINK&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c0/980398e58611d194cc00a0c94260a5/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c0/980398e58611d194cc00a0c94260a5/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 03:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320363#M165169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T03:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: How I define variable variant???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320364#M165170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this in the dynamic variant itself.&lt;/P&gt;&lt;P&gt;Please follow these steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Enter the values in the selection screen&lt;/P&gt;&lt;P&gt;2. Save the variant using the SAVE button&lt;/P&gt;&lt;P&gt;3. In the next screen for the date variable select the 'Selection variable' checkbox (L) and click on the button 'Selection variable' in the toolbar.&lt;/P&gt;&lt;P&gt;4. Now you will see this variable in the next screen with 3 types of buttons. Click on the middle button (ie. D - Dynamic date calculation).&lt;/P&gt;&lt;P&gt;5. Click on the down arrow button and select the option 'Current Date'.&lt;/P&gt;&lt;P&gt;6. Save the variant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 03:50:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320364#M165170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T03:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How I define variable variant???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320365#M165171</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;I think there is some miscommunication between us because of my poor English writing skill :-(.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well... How can I explain my problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is an value that user can input like 5 or 10. I don't know what number is inputed before runtime. And I need variant as many as the number that user inputed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If user input 5, then&lt;/P&gt;&lt;P&gt;I need below,&lt;/P&gt;&lt;P&gt;data : var01(2) type c.&lt;/P&gt;&lt;P&gt;data : var02(2) type c.&lt;/P&gt;&lt;P&gt;data : var03(2) type c.&lt;/P&gt;&lt;P&gt;data : var04(2) type c.&lt;/P&gt;&lt;P&gt;data : var05(2) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if user input 3, then&lt;/P&gt;&lt;P&gt;data : var01(2) type c.&lt;/P&gt;&lt;P&gt;data : var02(2) type c.&lt;/P&gt;&lt;P&gt;data : var03(2) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could it be??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jung Jongwon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 04:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320365#M165171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T04:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How I define variable variant???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320366#M165172</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;Looks like you want to create variables dynamically. You can do that using CREATE DATA statement. However, you still need to know, how many dynamic variables you would require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else you will have work with field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can tell, what exactly you are doing with these variable, we can offer a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 04:20:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320366#M165172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T04:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: How I define variable variant???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320367#M165173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ravi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use a code belowe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data : t_num(2) type i.&lt;/P&gt;&lt;P&gt;    data : t_field(8) type c.&lt;/P&gt;&lt;P&gt;    data : t_date type d.&lt;/P&gt;&lt;P&gt;    field-symobls &amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE 'T_DATE' t_num INTO t_field.&lt;/P&gt;&lt;P&gt;    ASSIGN (t_field) TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;      MOVE t_date TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I didn't define variable T_DATEXX. XX means number like 01, 02, 03 ... So, I can't assign (t_field) to &amp;lt;fs&amp;gt;. So, how I can define variable dinamically?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 05:41:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320367#M165173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T05:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: How I define variable variant???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320368#M165174</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;I see your point ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But unless you know how many fields you want you cannot do this, usually the way it happens is you have specific number of fields in a structure and dynamically you want to deal with a specific field, so the logic here works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alright here is a thought, what you can do is to build a internal table dynamically and then a work area structure from that. I am not sure if I am complicating the problem too much here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build a field catalog manually depending on the number the user has entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user enters n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do n times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; concatenate 'var' sy-index into varname.&lt;/P&gt;&lt;P&gt; fcat-fieldname = varname.&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append fcat&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now create a table out of this and then a work area.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Take a look at this weblog, you should get an idea what I am talking about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/ravikumar.allampallam/blog/2005/05/31/expand-the-list-of-columns-in-a-report-dynamically&lt;/P&gt;&lt;P&gt;/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2006 05:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-i-define-variable-variant/m-p/1320368#M165174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-26T05:54:21Z</dc:date>
    </item>
  </channel>
</rss>

