<?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: [Rookie] Char vs String in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018361#M713456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for answers. Ok, I figure out, that the problem is a little bit different.&lt;/P&gt;&lt;P&gt;My structure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA it TYPE ZSEARCH_FOR.

     it-SEARCH_FOR-PUBLISHER = 'Cornlesen1'.                   --&amp;gt; a string. occurs 0..1
     it-SEARCH_FOR-AUTHOR_LAST_NAME = "Panzer".        --&amp;gt; a char. occurs 1..unbounded
     it-SEARCH_FOR-ISBNNUMBER = '0123456789'.              --&amp;gt; a char. occurs 0..1
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first and last elements work fine. The second one seems to be a generated table&lt;/P&gt;&lt;P&gt;of type ZDT_SEARCH_FOR_AUTHOR_LAST_TAB. This table got as line type  the&lt;/P&gt;&lt;P&gt;predefine char of 35 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use/fill such a table structure in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2007 15:39:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-13T15:39:54Z</dc:date>
    <item>
      <title>[Rookie] Char vs String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018358#M713453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a beginner question! So please be kind &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I created a SAP PI a message interface that includes string fields as data types with a &lt;/P&gt;&lt;P&gt;minlength and a maxlength. &lt;/P&gt;&lt;P&gt;After creating an ABAP Proxy I can use this interface in my ABAP program. Without &lt;/P&gt;&lt;P&gt;the minlength and maxlength attributes, he just created strings in ABAP proxy. With&lt;/P&gt;&lt;P&gt;these attributes he create a char type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with chars so how to fill these:&lt;/P&gt;&lt;P&gt;a) hard coded in source code&lt;/P&gt;&lt;P&gt;b) with a dynpro (using parameter command)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to fill these fields like a normal string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     it-SEARCH_FOR-AUTHOR_LAST_NAME = "Smith".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work. So how to handle these chars in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 14:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018358#M713453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T14:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: [Rookie] Char vs String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018359#M713454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;it-SEARCH_FOR-AUTHOR_LAST_NAME = 'Smith'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Smith&amp;lt;/b&amp;gt; should be in single quote (') not in double quote (").&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>Tue, 13 Nov 2007 14:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018359#M713454</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-13T14:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: [Rookie] Char vs String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018360#M713455</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; use single quotes, dont use double quotes in the below statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it-SEARCH_FOR-AUTHOR_LAST_NAME = 'Smith'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 14:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018360#M713455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T14:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: [Rookie] Char vs String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018361#M713456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for answers. Ok, I figure out, that the problem is a little bit different.&lt;/P&gt;&lt;P&gt;My structure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA it TYPE ZSEARCH_FOR.

     it-SEARCH_FOR-PUBLISHER = 'Cornlesen1'.                   --&amp;gt; a string. occurs 0..1
     it-SEARCH_FOR-AUTHOR_LAST_NAME = "Panzer".        --&amp;gt; a char. occurs 1..unbounded
     it-SEARCH_FOR-ISBNNUMBER = '0123456789'.              --&amp;gt; a char. occurs 0..1
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first and last elements work fine. The second one seems to be a generated table&lt;/P&gt;&lt;P&gt;of type ZDT_SEARCH_FOR_AUTHOR_LAST_TAB. This table got as line type  the&lt;/P&gt;&lt;P&gt;predefine char of 35 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use/fill such a table structure in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 15:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018361#M713456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T15:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: [Rookie] Char vs String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018362#M713457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to fill the double qoutes in the table ... than look at this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatnate '"' 'Panzer' '"' into it-SEARCH_FOR-AUTHOR_LAST_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help&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>Tue, 13 Nov 2007 15:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018362#M713457</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-13T15:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: [Rookie] Char vs String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018363#M713458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ups, sorry a mistake. I don't want to fill the double quotes. The problem is&lt;/P&gt;&lt;P&gt;to fill this table.&lt;/P&gt;&lt;P&gt;With single or without double quotes following error occurs.&lt;/P&gt;&lt;P&gt;"The type of IT-Search_For-Author_Last_Name cannot be converted to the type of Panzer"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to use this table in a structure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 16:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018363#M713458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T16:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: [Rookie] Char vs String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018364#M713459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If th Panzer is somekind of value or charachter or name than you need to use the single quotes to assign it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT-Search_For-Author_Last_Name = 'Panzer'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't slove your purpose, let me know what is Panzer ??&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>Tue, 13 Nov 2007 16:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018364#M713459</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-13T16:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: [Rookie] Char vs String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018365#M713460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is just the name of the author. You can also write anything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, the single or double quotes are not the problem. I cannot use &lt;/P&gt;&lt;P&gt;For-Author_Last_Name like the other fields, because it is a table, because&lt;/P&gt;&lt;P&gt;it can occur 0...unbound.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 16:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018365#M713460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T16:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: [Rookie] Char vs String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018366#M713461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what are the field there in the Author_Last_Name ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it like&lt;/P&gt;&lt;P&gt;Author_Last_Name-field1 = 'Mr.'.&lt;/P&gt;&lt;P&gt;Author_Last_Name-name = 'Test1'.&lt;/P&gt;&lt;P&gt;append author_last_name to it-SEARCH_FOR-AUTHOR_LAST_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help.&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>Tue, 13 Nov 2007 17:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018366#M713461</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-13T17:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: [Rookie] Char vs String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018367#M713462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it. Your answer wasn't 100% correct, but the hint with&lt;/P&gt;&lt;P&gt;the append comand was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two soloutions are possible:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create a temporary variable with type of the table, append items to it and &lt;/P&gt;&lt;P&gt;    set the reference to this.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;   DATA it_table type ZDT_SEARCH_FOR_AUTHOR_LAST_TAB.&lt;/P&gt;&lt;P&gt;   append 'ABC' to it_table.&lt;/P&gt;&lt;P&gt;   ....&lt;/P&gt;&lt;P&gt;   it-SEARCH_FOR-AUTHOR_LAST_NAME = it_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Append datas directly&lt;/P&gt;&lt;P&gt;   append 'ABC2' to it-SEARCH_FOR-AUTHOR_LAST_NAME.&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;Points given.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 17:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rookie-char-vs-string/m-p/3018367#M713462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T17:49:46Z</dc:date>
    </item>
  </channel>
</rss>

