<?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: Trailing Blank spaces in the string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097518#M1616001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the below statement before the open dataset statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM set_trail_blanks(saplgrap) USING 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 11:06:28 GMT</pubDate>
    <dc:creator>kiran_k8</dc:creator>
    <dc:date>2011-07-20T11:06:28Z</dc:date>
    <item>
      <title>Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097515#M1615998</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;&lt;/P&gt;&lt;P&gt;I have to write a file on the  application server.  I've used CONDENSE for the data to be written but there is always a blank space after every field( before the added delimiter) . A delimiter has also been used after every field. The output is coming in the below format:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EAR_LCR , ,0006036387,EXTERNAL ,0001, , , ,Y,EUR ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to suppress these spaces. Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 10:58:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097515#M1615998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-20T10:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097516#M1615999</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;pass the values to string type variable and do condence the check .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this may helps,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097516#M1615999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-20T11:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097517#M1616000</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 to use SHIFT LEFT &amp;lt;variable_name&amp;gt;  DELETING LEADING SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097517#M1616000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-20T11:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097518#M1616001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the below statement before the open dataset statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM set_trail_blanks(saplgrap) USING 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097518#M1616001</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2011-07-20T11:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097519#M1616002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neha jindal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may try [CONDENSE addition NO-GAPS|http://help.sap.com/abapdocu_702/en/abapcondense.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will remove &lt;STRONG&gt;all&lt;/STRONG&gt; blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097519#M1616002</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-07-20T11:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097520#M1616003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condense with no gaps will remove all spaces i. in between the words also. So, I cannot use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097520#M1616003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-20T11:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097521#M1616004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the suggested Perform but , there was no chnage in the output format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097521#M1616004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-20T11:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097522#M1616005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot use shift-left as the I need to modify an existing program with more than 100 variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any command which I can use&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097522#M1616005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-20T11:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097523#M1616006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please post a couple of code lines so that we know how you proceed with creation aof application server (text?) file.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may use REPLACE ALL OCCURRENCES OF ` ,`  WITH `,` IN &amp;lt;output&amp;gt; - Note: ` ,`  means space followed by comma delimiter enclosed  in &lt;EM&gt;back&lt;/EM&gt; hyphens to be replaced by comma delimiter only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097523#M1616006</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-07-20T11:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097524#M1616007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the code for the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET l_fname FOR OUTPUT IN TEXT MODE. " ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  LOOP AT it_custtemplate .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE:     g_delim TO it_custtemplate-dl1,&lt;/P&gt;&lt;P&gt;              g_delim TO it_custtemplate-dl2,&lt;/P&gt;&lt;P&gt;              g_delim TO it_custtemplate-dl3,&lt;/P&gt;&lt;P&gt;              g_delim TO it_custtemplate-dl4,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE it_custtemplate.&lt;/P&gt;&lt;P&gt;    TRANSFER it_custtemplate TO l_fname.&lt;/P&gt;&lt;P&gt;    CLEAR it_custtemplate.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  CLOSE DATASET  l_fname.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097524#M1616007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-20T11:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097525#M1616008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with 4.6C version SAP and I did not find  ' Replace all occurrences'. Only replace is available&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097525#M1616008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-20T11:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097526#M1616009</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 condesing the individual fields of the internal field  , concatenate them and then write to file, writing the complete work area is resulting in spaces.  I am not sure if the mentioned result is for the same piece of code ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 13:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097526#M1616009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-20T13:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097527#M1616010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neha jindal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems that your DL1, DL2, etc. fields contain 2 characters. Otherwise, it means the other fields of your internal table contain an erroneous leading space. Use debug to make sure what is the exact reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 16:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097527#M1616010</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-07-20T16:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097528#M1616011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do you fill the fields of it_custtemplate? Transfer statement will copy the fields in full length.&lt;/P&gt;&lt;P&gt;You could&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
  lv_string type string.
CONCATENATE  
  it_custtemplate-value01
  it_custtemplate-value02
...
  it_custtemplate-valuenn
INTO lv_string
SEPARATED BY ','
TRANSFER lv_string TO l_fname.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 21:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097528#M1616011</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-07-20T21:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097529#M1616012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pawan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem why I am not condensing or concatenating individual fields is there are more than 30 programs with 100 fields in each program in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So , please let me know if there is any command which can remove these trailing spaces from the entire work area. but, In case there is no work around available I'll try and do it with the concatenation of individual fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure of it_custtemplate is like below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_custtemplate OCCURS 0,&lt;/P&gt;&lt;P&gt;        name1 LIKE kna1-name1, " LIKE kna1-name1,&lt;/P&gt;&lt;P&gt;        dl1 TYPE c,&lt;/P&gt;&lt;P&gt;        stceg LIKE kna1-stceg,&lt;/P&gt;&lt;P&gt;        dl2 TYPE c,&lt;/P&gt;&lt;P&gt;        kunnr LIKE kna1-kunnr,&lt;/P&gt;&lt;P&gt;        dl3(1),&lt;/P&gt;&lt;P&gt;        kdgrp(10), " LIKE KNVV-KDGRP,&lt;/P&gt;&lt;P&gt;        dl4(1),&lt;/P&gt;&lt;P&gt;        brsch LIKE kna1-brsch,&lt;/P&gt;&lt;P&gt;        dl5(1),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 05:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097529#M1616012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T05:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097530#M1616013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neha Jindal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you can REPLACE atleast, so try below solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before your loop write the below code.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  lt_comp type TABLE OF RSTRUCINFO,&lt;/P&gt;&lt;P&gt;       lv_count type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_COMPONENT_LIST'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    program          = sy-repid&lt;/P&gt;&lt;P&gt;    fieldname        = 'IT_CUSTTEMPLATE'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    components       = lt_comp&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE lt_comp lines lv_count.         "no. of fields in internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_count = lv_count / 2.          "only half are delimiters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, just after your condense statement, use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do lv_count times.&lt;/P&gt;&lt;P&gt; replace ' ,' in it_custtemplate WITH ','.          "space, into ,&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve your problem as it can be pasted directly in any number of programs. Let me know in case of any issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Diwakar Aggarwal on Jul 21, 2011 1:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 07:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097530#M1616013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T07:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097531#M1616014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Diwakar. The problem is solved now. I won't have to change all the fields in all the programs now  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 08:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097531#M1616014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T08:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing Blank spaces in the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097532#M1616015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would then suggest you to code the replace all occurences logic (as advised by Clemens) self in a subroutine and reuse it in ur programs. Something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       n = strlen( l_string ).&lt;/P&gt;&lt;P&gt;       data : offset1 type i value is initial,&lt;/P&gt;&lt;P&gt;              offset2 type i value is initial,&lt;/P&gt;&lt;P&gt;              l_char_prev type c,&lt;/P&gt;&lt;P&gt;              l_char_curr type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       l_char_curr = l_string+offset1(1).&lt;/P&gt;&lt;P&gt;       offset1 = offset1 + 1.&lt;/P&gt;&lt;P&gt;       While offset1 le n.&lt;/P&gt;&lt;P&gt;         l_char_prev = l_char_curr.&lt;/P&gt;&lt;P&gt;         l_char_curr = l_string+offset1(1).&lt;/P&gt;&lt;P&gt;         if l_char_curr = ',' and l_char_prev = ' '.&lt;/P&gt;&lt;P&gt;           offset2 = offset1 - 1.&lt;/P&gt;&lt;P&gt;           REPLACE SECTION OFFSET offset2 LENGTH 2 OF l_string WITH ','.&lt;/P&gt;&lt;P&gt;           offset1 = offset2.&lt;/P&gt;&lt;P&gt;         else.&lt;/P&gt;&lt;P&gt;           offset1 = offset1 + 1.&lt;/P&gt;&lt;P&gt;         Endif.&lt;/P&gt;&lt;P&gt;       Endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; l_string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Offcourse this does not handle the pattern ' ,' present in a variable but neither does the SAP standard replace all occurences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 19:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-blank-spaces-in-the-string/m-p/8097532#M1616015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T19:44:01Z</dc:date>
    </item>
  </channel>
</rss>

