<?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: remove bracket from the logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058137#M1502964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Won't work for [ZDEC(ZB2){-}/ZDEB(){&lt;EM&gt;}/ZDED(){&lt;/EM&gt;}] as required by the OP. (dunno why the text is getting striked !!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'[^[:alnum:]]' -&amp;gt; Is a negation of the Alphanumeric values. It'll delete the signs - &amp;amp; + also. Not as required by the OP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jul 2010 08:46:21 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-07-26T08:46:21Z</dc:date>
    <item>
      <title>remove bracket from the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058128#M1502955</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 have data as:&lt;/P&gt;&lt;P&gt;DATA :lv_var2(100) TYPE c VALUE '[ [D7] ]/[ [DG] ]/[ [AB] ]'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an internal table i want the data as &lt;/P&gt;&lt;P&gt;it_tab D7&lt;/P&gt;&lt;P&gt;          DG&lt;/P&gt;&lt;P&gt;          AB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i remove this bracket..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: neha gupta on Jul 26, 2010 6:59 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: neha gupta on Jul 26, 2010 7:00 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: neha gupta on Jul 26, 2010 7:01 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 04:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058128#M1502955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-26T04:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: remove bracket from the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058129#M1502956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we first of all... we dont see the brackets... may be it could be the forum theme that killing them to display...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if at all you are having some brackets and want to remove that you can use  " find all occurrences of ')" in field and use replace statement.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check that the field of the itab can hold only alphabets and numbers only... any thing else found need to be replaced with space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 05:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058129#M1502956</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2010-07-26T05:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: remove bracket from the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058130#M1502957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Use &lt;STRONG&gt;REPLACE ALL OCCURRENCES OF&lt;/STRONG&gt; and &lt;STRONG&gt;SPLIT&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF itab_type,
        word(20),
      END   OF itab_type.

DATA: itab TYPE STANDARD TABLE OF itab_type WITH
                NON-UNIQUE DEFAULT KEY.

DATA :lv_var2(100) TYPE c VALUE '[ D7] /[ DG] /[ AB]'.

START-OF-SELECTION.

REPLACE ALL OCCURRENCES OF '[' in lv_var2 WITH ' '.
REPLACE ALL OCCURRENCES OF ']' in lv_var2 WITH ' '.

  SPLIT lv_var2 AT '/' INTO TABLE itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal table itab has the required format entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 05:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058130#M1502957</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2010-07-26T05:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: remove bracket from the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058131#M1502958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF '[' in lv_var2 WITH ''.
REPLACE ALL OCCURRENCES OF ']' in lv_var2 WITH ''.
REPLACE ALL OCCURRENCES OF '/' in lv_var2 WITH ''.
CONDENSE lv_var2 NO-GAPS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your data string is converted to :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_var2  = D7DGAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use like below for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;v_var2+0(2) = w_D7.

lv_var2+2(4) = w_DG.

lv_var2+4(6) = w_AB.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 05:21:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058131#M1502958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-26T05:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: remove bracket from the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058132#M1502959</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 this code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF S_T,&lt;/P&gt;&lt;P&gt;  sVAL(3) TYPE c,&lt;/P&gt;&lt;P&gt;  END OF S_T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :lv_var2(100) TYPE c VALUE '[ D7] /[ DG] /[ AB] '.&lt;/P&gt;&lt;P&gt;DATA: I_Tab TYPE STANDARD TABLE OF S_T,&lt;/P&gt;&lt;P&gt;      WA TYPE S_T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '[' IN lv_var2 WITH ''.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF ']' IN lv_var2 WITH ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT lv_var2 at '/' INTO TABLE I_Tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 05:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058132#M1502959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-26T05:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: remove bracket from the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058133#M1502960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how will i split this: '[[ZDEC(&amp;lt;&amp;gt;ZB2){-}]/[ZDEB(){&lt;EM&gt;}]/[ZDED(){&lt;/EM&gt;}]]'&lt;/P&gt;&lt;P&gt;i used replace and split :&lt;/P&gt;&lt;P&gt;it_tab became like :   ZDEC(&amp;lt;&amp;gt;ZB2){-}&lt;/P&gt;&lt;P&gt;                                  ZDEB(){+}&lt;/P&gt;&lt;P&gt;                                  ZDED(){+}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want furthur split..Like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types:&lt;/P&gt;&lt;P&gt;       BEGIN OF ts_inc,&lt;/P&gt;&lt;P&gt;         fkart TYPE fkart,&lt;/P&gt;&lt;P&gt;         sign(2) TYPE c,&lt;/P&gt;&lt;P&gt;         augru TYPE augru,&lt;/P&gt;&lt;P&gt;         plus(1) TYPE c,&lt;/P&gt;&lt;P&gt;       END OF ts_inc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fkart     sign    augru   plus&lt;/P&gt;&lt;P&gt;ZDEC    &amp;lt;&amp;gt;      ZB2      -&lt;/P&gt;&lt;P&gt;ZDEB                           +&lt;/P&gt;&lt;P&gt;ZDED                           +&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should i achieve this..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 05:43:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058133#M1502960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-26T05:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: remove bracket from the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058134#M1502961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you know what are the special characters which can be passed to the string ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the FMs: 'SF_SPECIALCHAR_DELETE' &amp;amp; 'ES_REMOVE_SPECIAL_CHARACTER' as reference &amp;amp; build a custom FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use RegEx [[:punct:]] but doesn't solve your requirement. The output using the 3 techniques are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using SF_SPECIALCHAR_DELETE:  [ZDECZB2{}ZDEB{&lt;EM&gt;}ZDED{&lt;/EM&gt;}] &lt;/P&gt;&lt;P&gt;2. Using ES_REMOVE_SPECIAL_CHARACTER: ZDEC ZB2    /ZDEB     /ZDED&lt;/P&gt;&lt;P&gt;3. Using REGEX [[:punct:]]: ZDECZB2ZDEBZDED (i don't think you would be interested in this !!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 06:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058134#M1502961</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-07-26T06:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: remove bracket from the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058135#M1502962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Is the pattern fixed in the lv_var2? for the value given in second posting, you can try below method, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : i_inc TYPE TABLE OF ts_inc,
       wa_inc TYPE ts_inc.

DATA : lv_len TYPE i,
       lv_fkart TYPE fkart,
       lv_sign TYPE c.

START-OF-SELECTION.
  REPLACE ALL OCCURRENCES OF '[' IN lv_var2 WITH ' '.
  REPLACE ALL OCCURRENCES OF ']' IN lv_var2 WITH ' '.
  REPLACE ALL OCCURRENCES OF '{' IN lv_var2 WITH ','.
  REPLACE ALL OCCURRENCES OF '}' IN lv_var2 WITH ' '.

  SPLIT lv_var2 AT '/' INTO TABLE itab.

  LOOP AT itab INTO wa_itab.
    SPLIT wa_itab-word AT ',' INTO
                              lv_fkart lv_sign.
    wa_inc-fkart = lv_fkart.
    wa_inc-sign = lv_sign.

    APPEND wa_inc TO i_inc.

    CLEAR : wa_itab, wa_inc, lv_fkart, lv_sign.

  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move the variable into particular field in above LOOP and ENDLOOP, i have populated in FKART and SIGN fields, you can declare LV_FKART and LV_SIGN as strings and move the values, as FKART can hold only 4 characters, in out put you are able to see ZDEC not ZDEC ZB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 06:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058135#M1502962</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2010-07-26T06:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: remove bracket from the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058136#M1502963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data:lv_string type string.
data:it type table of char255.
lv_string = '[ D7] /[ DG] /[ AB] '.
REPLACE ALL OCCURRENCES OF REGEX '[^[:alnum:]]' IN lv_string WITH ` `.
condense lv_string.
write lv_string.
split lv_string at ` `  into table it.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 08:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058136#M1502963</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-07-26T08:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: remove bracket from the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058137#M1502964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Won't work for [ZDEC(ZB2){-}/ZDEB(){&lt;EM&gt;}/ZDED(){&lt;/EM&gt;}] as required by the OP. (dunno why the text is getting striked !!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'[^[:alnum:]]' -&amp;gt; Is a negation of the Alphanumeric values. It'll delete the signs - &amp;amp; + also. Not as required by the OP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jul 2010 08:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-bracket-from-the-logic/m-p/7058137#M1502964</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-07-26T08:46:21Z</dc:date>
    </item>
  </channel>
</rss>

