<?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: String and char issue - while saving in a 'Z' table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125072#M1364333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soumya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My SMS field is declared as string in the 'z' table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume.&lt;/P&gt;&lt;P&gt;CHAR takes value from 0-255.&lt;/P&gt;&lt;P&gt;STRING should take any value of variable length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to declare the data type as RAW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Field SMS (Length &amp;gt; 255 for RAW only allowed for non-DB tables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2009 07:34:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-02T07:34:48Z</dc:date>
    <item>
      <title>String and char issue - while saving in a 'Z' table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125066#M1364327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a requirement where I need to trigger a SMS to customer when billing document is saved. While I am coding my user exit, I have created a custom 'Z' table to capture SMS related data. Here I also have the actual SMS as the link, followed by the text.&lt;/P&gt;&lt;P&gt;for eg: &lt;A href="http://127.0.0.1/send_sms?user=amit&amp;amp;pswd=amit123&amp;amp;sender=client&amp;amp;text=hi" target="test_blank"&gt;http://127.0.0.1/send_sms?user=amit&amp;amp;pswd=amit123&amp;amp;sender=client&amp;amp;text=hi&lt;/A&gt;&lt;EM&gt;how&lt;/EM&gt;are+you&amp;amp;phonenumber=9123456789&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing 2 issues here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) While I create my 'Z' table to hold the above link, I declare a field of type string. But while i declare my internal table like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF IT_SMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE STRUCURE ZSMS_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: END OF IT_SMS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me an error(flat structures allowed,etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the table data type to CHAR(255), which is the max allowed, but my link in the program is a STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I write &lt;/P&gt;&lt;P&gt;        wa_sms-sms = sms.&lt;/P&gt;&lt;P&gt;             OR&lt;/P&gt;&lt;P&gt;        move sms to wa_sms-sms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is moving only the 1st line shown in the string under debugger mode, and table is also updated that way. &lt;/P&gt;&lt;P&gt;I want the whole URL to be saved in the 'Z' table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 07:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125066#M1364327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T07:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: String and char issue - while saving in a 'Z' table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125067#M1364328</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;Try using the data element &lt;STRONG&gt;CHAR1250&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 07:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125067#M1364328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T07:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: String and char issue - while saving in a 'Z' table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125068#M1364329</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;CHAR1250 in table or program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My error msg is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ZSMS_DATA" must be a flat structure. You cannot use internal tables,&lt;/P&gt;&lt;P&gt;strings, references, or structures as components. -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF I DECLARE THE TABLE FIELD TYPE AS STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Iyer on Sep 2, 2009 12:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 07:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125068#M1364329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T07:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: String and char issue - while saving in a 'Z' table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125069#M1364330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can just directly write:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: itab type starndard table of ztable,
         is type ztable.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass values to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;and 
modify ztable from table itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 07:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125069#M1364330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T07:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: String and char issue - while saving in a 'Z' table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125070#M1364331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soumya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my program is working fine and in wa_sms-sms it shows up the complete URL as a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT zsms_data FROM TABLE it_sms.&lt;/P&gt;&lt;P&gt;COMMIT work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is updated but it doesnt show the complete URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 07:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125070#M1364331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T07:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: String and char issue - while saving in a 'Z' table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125071#M1364332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how have you defined the ztable (in data dictionary/SE11)&lt;/P&gt;&lt;P&gt;what is the type of the field for URL?&lt;/P&gt;&lt;P&gt;is it string?&lt;/P&gt;&lt;P&gt;string can only take up 255 chars. you can take a bigger data type like char1250&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 07:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125071#M1364332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T07:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: String and char issue - while saving in a 'Z' table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125072#M1364333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soumya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My SMS field is declared as string in the 'z' table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume.&lt;/P&gt;&lt;P&gt;CHAR takes value from 0-255.&lt;/P&gt;&lt;P&gt;STRING should take any value of variable length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to declare the data type as RAW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Field SMS (Length &amp;gt; 255 for RAW only allowed for non-DB tables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 07:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125072#M1364333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T07:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: String and char issue - while saving in a 'Z' table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125073#M1364334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for SMS purpose.  You have to create  text in tcode S010 using the function module CREATE_TEXT and store the Text-ID in the custom 'Z' table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you want to retrieve the SMS for display purpose.  you pick the TEXT-ID from the 'Z' table and pass the same to function module READ_TEXT and get the long text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use table to store limited data for better performance and more readability.  for long text you have to use SO10 tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it shall be useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 07:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125073#M1364334</guid>
      <dc:creator>santosh_kumarm</dc:creator>
      <dc:date>2009-09-02T07:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: String and char issue - while saving in a 'Z' table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125074#M1364335</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;Resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx Soumya and Santosh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 09:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-and-char-issue-while-saving-in-a-z-table/m-p/6125074#M1364335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T09:20:00Z</dc:date>
    </item>
  </channel>
</rss>

