<?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: Please help with data type declaration in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250163#M775966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare another variable with type C and size 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur Else condition copy ur value into another variable which is of type C and size 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform ur operations on that Character variable in ur Else block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;awrd points if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2008 10:27:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-09T10:27:59Z</dc:date>
    <item>
      <title>Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250162#M775965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared a field as data type P, but only inside my ELSE condition i want to change it to data type C with a length of 20. Outside of this ELSE loop it should remain as P only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? &amp;amp; if yes how should i do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Await inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 10:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250162#M775965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T10:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250163#M775966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare another variable with type C and size 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur Else condition copy ur value into another variable which is of type C and size 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform ur operations on that Character variable in ur Else block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;awrd points if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 10:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250163#M775966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T10:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250164#M775967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the syntax CREATE DATA which will help you to create the data varaibles dynamically. You can find more info. in SAP HELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 10:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250164#M775967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T10:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250165#M775968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranganath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info, i tried as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA Y_VALUE TYPE C(20).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But system prompts:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Y_VALUE" is not a field reference.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is because Y_VALUE is defined as an additional field in my infoset. So how should i declare it in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Await inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 10:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250165#M775968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T10:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250166#M775969</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;Vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no it is not at all possible to declare one with variable with one type in one place and as anothre type in another place where as this type of declaration is only possible wih field string&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 10:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250166#M775969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T10:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250167#M775970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your declaration should look something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************************&lt;/P&gt;&lt;P&gt;constants : l_c_p value 'DMBTR',&lt;/P&gt;&lt;P&gt;                 l_c_char type char 6 value 'CHAR20'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : l_ref_data TYPE REF TO data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;l_fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;cond1&amp;gt; .&lt;/P&gt;&lt;P&gt;  CREATE DATA l_ref_infty_data TYPE  (l_c_p).&lt;/P&gt;&lt;P&gt;  ASSIGN l_ref_data-&amp;gt;* TO &amp;lt;l_fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&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;  CREATE DATA l_ref_infty_data TYPE  (l_c_char).&lt;/P&gt;&lt;P&gt;  ASSIGN l_ref_data-&amp;gt;* TO &amp;lt;l_fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your field symbols &amp;lt;l_fs&amp;gt; will be of either P or CHAR20 based on the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 10:47:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250167#M775970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T10:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250168#M775971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: dref TYPE REF TO DATA. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE ANY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Create object of type SBOOK and attach the field symbol &lt;/P&gt;&lt;P&gt;CREATE DATA dref TYPE sbook. &lt;/P&gt;&lt;P&gt;ASSIGN dref-&amp;gt;* TO &amp;lt;fs&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;awrd points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 10:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250168#M775971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T10:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250169#M775972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try defining two variables and use field-symbol to change pointer as you desired..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, you will not be able to use same variable, but data will be stored in 2 different variables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 10:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250169#M775972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T10:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250170#M775973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done as below, but still get error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : l_ref_data TYPE REF TO data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;Y_VALUE&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside my IF condition&lt;/P&gt;&lt;P&gt;CREATE DATA Y_VALUE TYPE BSEG-WRBTR.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;   ASSIGN l_ref_data-&amp;gt;* TO &amp;lt;Y_VALUE&amp;gt;.&lt;/P&gt;&lt;P&gt;In ELSE condition&lt;/P&gt;&lt;P&gt;      CREATE DATA Y_VALUE TYPE C(20).&lt;/P&gt;&lt;P&gt;      Y_VALUE = 'No value'.&lt;/P&gt;&lt;P&gt;         ASSIGN l_ref_data-&amp;gt;* TO &amp;lt;Y_VALUE&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still syntax check says &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Y_VALUE" is not a field reference.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know what mistake i have done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 11:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250170#M775973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T11:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250171#M775974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA &amp;lt;y_value&amp;gt; TYPE char20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;awrd points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 11:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250171#M775974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250172#M775975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think i am facing this issue because Y_VALUE is a extra node. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. i have defined Y_VALUE as a extra node in my infoset in the extras tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case how should i define it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 11:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250172#M775975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T11:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250173#M775976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : l_ref_data TYPE REF TO data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;Y_VALUE&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside my IF condition&lt;/P&gt;&lt;P&gt;CREATE DATA l_ref_data TYPE BSEG-WRBTR.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;ASSIGN l_ref_data-&amp;gt;* TO &amp;lt;Y_VALUE&amp;gt;.&lt;/P&gt;&lt;P&gt;In ELSE condition&lt;/P&gt;&lt;P&gt;CREATE DATA Y_VALUE TYPE CHAR20.&lt;/P&gt;&lt;P&gt;ASSIGN l_ref_data-&amp;gt;* TO &amp;lt;Y_VALUE&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;Y_VALUE&amp;gt; = 'No value'&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 11:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250173#M775976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T11:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with data type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250174#M775977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranganath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have entered the code as mentioned by you in ELSE condition, the syntax check is ok, but the query on execution throws a dump &amp;amp; the error analysis reads &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error Analysis:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The first operand entered at CREATE DATA is not a data reference&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to resolve this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 03:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-with-data-type-declaration/m-p/3250174#M775977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T03:04:58Z</dc:date>
    </item>
  </channel>
</rss>

