<?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: CLEAR...WITH statement in structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946457#M390040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u give me the part of the code with declarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: wa(10) TYPE c value 'Test'.&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;wa = '/'.&lt;/P&gt;&lt;P&gt;Write:/ wa.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;This works fine for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2007 06:08:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-28T06:08:39Z</dc:date>
    <item>
      <title>CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946451#M390034</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 a structure called MBEW, for which I have created a work area called WA_MBEW. This structure has numeric as well as character type fields. Now I want to initialise all &amp;lt;b&amp;gt;character type&amp;lt;/b&amp;gt; fields with '/'. So I have a variable called NODATA TYPE c VALUE '/'. &lt;/P&gt;&lt;P&gt;Is there any way I can initialise only char fields with NODATA?&lt;/P&gt;&lt;P&gt;I tried CLEAR WA_MBEW WITH NODATA, but this doesnt work bcoz of the numeric fields. Plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 05:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946451#M390034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T05:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946452#M390035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR wa_mbew.
wa_mbew = '/'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if this helps. else revrt back with queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 05:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946452#M390035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T05:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946453#M390036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: TEXT(1)       VALUE '/',&lt;/P&gt;&lt;P&gt;      BEGIN OF PLAYER,&lt;/P&gt;&lt;P&gt;        NAME(10)      VALUE 'John',&lt;/P&gt;&lt;P&gt;        TEL(8) TYPE N VALUE '08154711',&lt;/P&gt;&lt;P&gt;        MONEY  TYPE P VALUE 30000,&lt;/P&gt;&lt;P&gt;      END   OF PLAYER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR:  NUMBER, PLAYER-name with text.&lt;/P&gt;&lt;P&gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ABOVE Code is BEST one .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 05:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946453#M390036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T05:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946454#M390037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR  WA_MBEW.

WA_MBEW = NODATA&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 05:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946454#M390037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T05:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946455#M390038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx so much Judith... mann, this forum's fast &lt;SPAN __jive_emoticon_name="grin"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 05:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946455#M390038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T05:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946456#M390039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I tried to write out a few CHAR fields, but they're still blank, not '/'... any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946456#M390039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946457#M390040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u give me the part of the code with declarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: wa(10) TYPE c value 'Test'.&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;wa = '/'.&lt;/P&gt;&lt;P&gt;Write:/ wa.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;This works fine for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946457#M390040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946458#M390041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;can u post ur code?

or else, assign each char field with a /

wa_mbew-char1 = nodata.
wa_mbew-char2 = nodata.
wa_mbew-char3 = nodata.
wa_mbew-char4 = nodata.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946458#M390041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946459#M390042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA  : WA_MBEW LIKE MBEW.&lt;/P&gt;&lt;P&gt;*MBEW is a structure with abt 100 fields, with types char, numc, curr etc etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : NODATA TYPE C VALUE '/'  "Defined in an include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF WA_MBEW IS INITIAL.&lt;/P&gt;&lt;P&gt;    CLEAR WA_MBEW WITH NODATA. "Throws error&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:16:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946459#M390042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946460#M390043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946460#M390043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946461#M390044</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;yesit will post error because your structure  WA_MBEW contains not only character field but also different data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so only option is u have to explicitly assign the character fields to nodata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : WA_MBEW LIKE MBEW.&lt;/P&gt;&lt;P&gt;*MBEW is a structure with abt 100 fields, with types char, numc, curr&lt;/P&gt;&lt;P&gt;*etc etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : NODATA TYPE C VALUE '/'. "Defined in an include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF WA_MBEW IS INITIAL.&lt;/P&gt;&lt;P&gt;WA_MBEW-VPRSV = nodata.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; in the same way assign all char fieds to nodata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 09:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946461#M390044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T09:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946462#M390045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this its workign fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: wa LIKE MBEW.
if wa is initial.
clear wa WITH '/'.
endif.
Write:/ wa.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 09:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946462#M390045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T09:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946463#M390046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Judith, ur code is throwin this syntax error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"WA" must be a character type data object (C,N,D,T,String).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing this is a Unicode compatibility error, right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module which will return the name and type of fields in a DDIC structure? That way, I might be able to use an internal table and then loop around it, initialising only for CHAR type fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 09:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946463#M390046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T09:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946464#M390047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know y this problem, I am workign in 4.6c and its running without any syntax error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 09:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946464#M390047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T09:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946465#M390048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the FM: GET_COMPONENT_LIST to get the types of the internal table fields.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 09:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946465#M390048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T09:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: CLEAR...WITH statement in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946466#M390049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just chk whether u had selected the checkbox "Unicode checks active" when u created ur test report&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 09:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-with-statement-in-structure/m-p/1946466#M390049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T09:52:23Z</dc:date>
    </item>
  </channel>
</rss>

