<?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 Please help me with this error in this code snippet! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457502#M1250511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Code Snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZMKTEST6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : f1(2) type c,&lt;/P&gt;&lt;P&gt;       f2(2) type c,&lt;/P&gt;&lt;P&gt;       f3(10) type n value '12345'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear: f1 with 'X',&lt;/P&gt;&lt;P&gt;         f2 with f1,&lt;/P&gt;&lt;P&gt;         f3 with '3'.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; f1 ,f2, f3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process Error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field "F1" must have the length 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2009 13:54:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-24T13:54:03Z</dc:date>
    <item>
      <title>Please help me with this error in this code snippet!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457502#M1250511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Code Snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZMKTEST6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : f1(2) type c,&lt;/P&gt;&lt;P&gt;       f2(2) type c,&lt;/P&gt;&lt;P&gt;       f3(10) type n value '12345'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear: f1 with 'X',&lt;/P&gt;&lt;P&gt;         f2 with f1,&lt;/P&gt;&lt;P&gt;         f3 with '3'.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; f1 ,f2, f3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process Error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field "F1" must have the length 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 13:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457502#M1250511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T13:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me with this error in this code snippet!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457503#M1250512</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;ther is not syntax with clear with 'X".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you can do one thing to get the one character.&lt;/P&gt;&lt;P&gt;REPORT ZMKTEST6.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : f1(2) type c,
f2(2) type c,
f3(10) type n value '12345'.

clear: f1 with 'X',  "Comment this
f1 = f1+0(1).        "write this
f2 with f1,
f3 with '3'.
write :/ f1 ,f2, f3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now f1 containd one charater instead of 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you can display as usuall&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 13:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457503#M1250512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T13:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me with this error in this code snippet!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457504#M1250513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever you use CLEAR..WITH val, the length of val must be 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457504#M1250513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me with this error in this code snippet!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457505#M1250514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;addition to Das's code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : f1(2) type c,
f2(2) type c,
f3(10) type n value '12345'.

clear: f1 with 'X'.
f2 = f1+0(1).
clear : f3 with '3'.
write :/ f1 ,f2, f3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457505#M1250514</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-24T14:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me with this error in this code snippet!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457506#M1250515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But this is showing only one X in f2. What about the other character? length of f2 has been defined as 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457506#M1250515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T14:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me with this error in this code snippet!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457507#M1250516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data : f1(2) type c,
f2(2) type c,
f3(10) type n value '12345'.
 
clear: f1 with 'XX'.  " IF YOU NEED TWO 
CELAR: f2 WITH f1.
clear : f3 with '3'.
write :/ f1 ,f2, f3.

or 

clear: f1 with 'X'.  
f2+0(1) = f1.
F2+1(1) = F1.
clear : f3 with '3'.
write :/ f1 ,f2, f3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457507#M1250516</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-24T14:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me with this error in this code snippet!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457508#M1250517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A variant of this snippet was given in SAMS Teach yourself ABAP in 21 days.&lt;/P&gt;&lt;P&gt;(Listing 9.5)&lt;/P&gt;&lt;P&gt;I was told that this book is flawless. &lt;/P&gt;&lt;P&gt;He gives this output for the code for f2 as XX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457508#M1250517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T14:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me with this error in this code snippet!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457509#M1250518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : f1(2) TYPE c,
f2(2) TYPE c,
f3(10) TYPE n VALUE '12345'.

CLEAR: f1 WITH 'X',
       f2 WITH 'X',
       f3 WITH '3'.
WRITE :/ f1 ,f2, f3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457509#M1250518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T14:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me with this error in this code snippet!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457510#M1250519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  YSAT_TEMP1.

data : f1(1) type c,   " -- F1 length should be 1 char type 
f2(2) type c,
f3(10) type n value '12345'.

clear: f1 with 'X',
f2 with f1,
f3 with '3'.
write :/ f1 ,f2, f3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Result: 

X XX 3333333333&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;~Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457510#M1250519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T14:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me with this error in this code snippet!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457511#M1250520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Literature I was referring to was for release 4.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence I had these doubts. Now it is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 06:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-with-this-error-in-this-code-snippet/m-p/5457511#M1250520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T06:31:21Z</dc:date>
    </item>
  </channel>
</rss>

