<?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 Simple question regarding strings.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098539#M735190</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;I have defined strings as&lt;/P&gt;&lt;P&gt;data: string1 type string,&lt;/P&gt;&lt;P&gt;        string2 type string.&lt;/P&gt;&lt;P&gt;But we should not define like this we have to define as&lt;/P&gt;&lt;P&gt;data: string1,string2 type string.&lt;/P&gt;&lt;P&gt;If I define like this system is show as&lt;/P&gt;&lt;P&gt;string1 type c and length is 1&lt;/P&gt;&lt;P&gt;string2 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to define multiple strings like this&lt;/P&gt;&lt;P&gt;data: string1,string2 type string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2007 14:20:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-16T14:20:15Z</dc:date>
    <item>
      <title>Simple question regarding strings....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098539#M735190</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;I have defined strings as&lt;/P&gt;&lt;P&gt;data: string1 type string,&lt;/P&gt;&lt;P&gt;        string2 type string.&lt;/P&gt;&lt;P&gt;But we should not define like this we have to define as&lt;/P&gt;&lt;P&gt;data: string1,string2 type string.&lt;/P&gt;&lt;P&gt;If I define like this system is show as&lt;/P&gt;&lt;P&gt;string1 type c and length is 1&lt;/P&gt;&lt;P&gt;string2 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to define multiple strings like this&lt;/P&gt;&lt;P&gt;data: string1,string2 type string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098539#M735190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question regarding strings....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098540#M735191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: string1 type string,
string2 type string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above syntax is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you define like this,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: string1,string2 type string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System will always asisgn by defualt CHAR 1 to the variabes which don't have any type aasociated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, whenever you want to have same strcutre you need to defined explicitly for each and every variables. That's why the first syntax is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098540#M735191</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-16T14:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question regarding strings....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098541#M735192</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;Consider this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : string1.&lt;/P&gt;&lt;P&gt;string1 = 'A'.&lt;/P&gt;&lt;P&gt;write string1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a variable is defined like this it is implicit that string1 is of type char and of length 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example2(as yours)&lt;/P&gt;&lt;P&gt;data : string1,string2 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above statement is equal to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data string1.&lt;/P&gt;&lt;P&gt;data string2 type srring1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the system understands that 1st variable which is string1 is of type char and length 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kannan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098541#M735192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question regarding strings....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098542#M735193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're trying to tell system to define string1 but no type is given, therefore &lt;/P&gt;&lt;P&gt;system will assing to it the defaut type which in ABAP is char 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098542#M735193</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2007-11-16T14:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question regarding strings....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098543#M735194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gowri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible in ABAP. You have to define each variable inividually like&lt;/P&gt;&lt;P&gt;data: v1 type string,&lt;/P&gt;&lt;P&gt;v2 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question-regarding-strings/m-p/3098543#M735194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:35:35Z</dc:date>
    </item>
  </channel>
</rss>

