<?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: Dynamic Character Size in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845594#M666599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using field symbol you can achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;l_field&amp;gt;      TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;l_field&amp;gt; = &amp;lt;Your dynamic value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward if this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Oct 2007 06:23:50 GMT</pubDate>
    <dc:creator>sivanantham_rajendran</dc:creator>
    <dc:date>2007-10-07T06:23:50Z</dc:date>
    <item>
      <title>Dynamic Character Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845593#M666598</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;Can we assign the size of the character field dynamically at run time? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Smitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 06:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845593#M666598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-07T06:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Character Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845594#M666599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using field symbol you can achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;l_field&amp;gt;      TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;l_field&amp;gt; = &amp;lt;Your dynamic value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward if this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 06:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845594#M666599</guid>
      <dc:creator>sivanantham_rajendran</dc:creator>
      <dc:date>2007-10-07T06:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Character Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845595#M666600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried filed-symbols. But it did'nt help me.&lt;/P&gt;&lt;P&gt;The requirement is:&lt;/P&gt;&lt;P&gt;Iam trying to output a DME file by changing the Std.Prog as per the requirement. Each record is transfred to a memory buffer which is a long string with line feed at the end of the string. I have declared the string as 100 char. Considering that we have only 50 char to ouput with a line feed at the end of 50 char. It works well, but leaving the other 50 char as spaces which I dont want to display. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope Iam clear in explaing you the requirement. If no please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Smitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 06:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845595#M666600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-07T06:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Character Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845596#M666601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smitha,&lt;/P&gt;&lt;P&gt;While passing the string to the file compress the string and pass it to the file.&lt;/P&gt;&lt;P&gt;I think it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sastry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 07:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845596#M666601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-07T07:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Character Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845597#M666602</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 you have declared like &lt;/P&gt;&lt;P&gt;DATA : l_text(100) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare as a string like &lt;/P&gt;&lt;P&gt;Data : l_text TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you store l_text = ' Test                                '.&lt;/P&gt;&lt;P&gt;the l_text will hold 'Test' only. the traling space will be eliminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 08:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845597#M666602</guid>
      <dc:creator>sivanantham_rajendran</dc:creator>
      <dc:date>2007-10-07T08:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Character Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845598#M666603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response and was close to the solution and rewarded 6 points too..&lt;/P&gt;&lt;P&gt;Unfortunately STRING is not supported when Iam storing the data in buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives SY-SUBRC as 16. Any suggestion why does it do like that? Here is the code that fails. Here (buffer) is the place where I store the STRING as you said:&lt;/P&gt;&lt;P&gt;It was working for CHAR type. I donno why it fails for STRING. Can you throw some light on what is 'C_RSTS_WRITE' and how buffer works????&lt;/P&gt;&lt;P&gt;****************************************************************************&lt;/P&gt;&lt;P&gt;FORM temse_schreiben USING value(buffer).&lt;/P&gt;&lt;P&gt;  DATA: _rc(5),&lt;/P&gt;&lt;P&gt;        _errmsg(100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL 'C_RSTS_WRITE'&lt;/P&gt;&lt;P&gt;       ID 'HANDLE'  FIELD hlp_handle&lt;/P&gt;&lt;P&gt;       ID 'BUFF'    FIELD buffer&lt;/P&gt;&lt;P&gt;       ID 'RC'      FIELD _rc&lt;/P&gt;&lt;P&gt;       ID 'ERRMSG'  FIELD &lt;U&gt;errmsg.                        "#EC CI&lt;/U&gt;CCALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.                    "Fehler beim Schreiben&lt;/P&gt;&lt;P&gt;    IF sy-batch EQ space.&lt;/P&gt;&lt;P&gt;      MESSAGE a229.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE s229.&lt;/P&gt;&lt;P&gt;      STOP.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                               "TEMSE_SCHREIBEN&lt;/P&gt;&lt;P&gt;****************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smitha..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 09:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845598#M666603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-07T09:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Character Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845599#M666604</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;Please see this link&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1281214"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you question what is 'C_RSTS_WRITE'??? answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I not aware of system functions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Siva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 15:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845599#M666604</guid>
      <dc:creator>sivanantham_rajendran</dc:creator>
      <dc:date>2007-10-07T15:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Character Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845600#M666605</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;Iam still confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that the (buffer) parameter always expects CHAR type? If not why it fails for STRING format. Can anyone please explain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Smitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 16:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845600#M666605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-07T16:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Character Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845601#M666606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved my self!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 02:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845601#M666606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T02:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Character Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845602#M666607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Smitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share with me how you solved? &lt;/P&gt;&lt;P&gt;I think I am having same problem. If my datatype is char40 and I am passing 'Test', then 'Test' (and then 34 spaces) and then next comma (delimiter) is appearing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 14:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-character-size/m-p/2845602#M666607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-25T14:58:11Z</dc:date>
    </item>
  </channel>
</rss>

