<?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: problem with concatenate in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785350#M910710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not able to recreate your issue.  this passes syntax check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of v_namtab OCCURS 0,
      name type tabname,
      end of v_namtab.
data: n(4) type n.
data: l_floc type string.

DESCRIBE TABLE V_NAMTAB LINES N.
N = N - 1.

LOOP AT V_NAMTAB.
CONCATENATE V_NAMTAB-NAME '\' INTO l_floc.
IF SY-INDEX GE N.
EXIT.
ENDIF.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2008 19:23:41 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2008-05-02T19:23:41Z</dc:date>
    <item>
      <title>problem with concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785347#M910707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i am using the below code&lt;/P&gt;&lt;P&gt;this is regarding manipulations to the file name whenre to place an excel sheet.&lt;/P&gt;&lt;P&gt;i have split the location given by user seperated by ' \'  into  each record of of the V_NAMTAB table.&lt;/P&gt;&lt;P&gt;it says unable to interpret V_NAMTAB-NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE V_NAMTAB LINES N.&lt;/P&gt;&lt;P&gt;N = N - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT V_NAMTAB.&lt;/P&gt;&lt;P&gt;CONCATENATE V_NAMTAB-NAME '\' INTO l_floc.&lt;/P&gt;&lt;P&gt;IF SY-INDEX GE N.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My whole purpose of this is to keep the location of the file as given by user but name of the file will be calculated by this program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 19:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785347#M910707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T19:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem with concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785348#M910708</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;&lt;/P&gt;&lt;P&gt;what is the structure of V_NAMTAB , do you have a field NAME in that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you declared V_NAMTAB with a header line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 19:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785348#M910708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T19:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem with concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785349#M910709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes chandra shekar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have declared like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  begin of V_NAMTAB occurs 0,&lt;/P&gt;&lt;P&gt;NAME(30),&lt;/P&gt;&lt;P&gt;END OF V_NAMTAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 19:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785349#M910709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T19:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785350#M910710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not able to recreate your issue.  this passes syntax check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of v_namtab OCCURS 0,
      name type tabname,
      end of v_namtab.
data: n(4) type n.
data: l_floc type string.

DESCRIBE TABLE V_NAMTAB LINES N.
N = N - 1.

LOOP AT V_NAMTAB.
CONCATENATE V_NAMTAB-NAME '\' INTO l_floc.
IF SY-INDEX GE N.
EXIT.
ENDIF.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 19:23:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785350#M910710</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-05-02T19:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem with concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785351#M910711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi this is working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of V_NAMTAB occurs 0,&lt;/P&gt;&lt;P&gt;name(10)  type c,&lt;/P&gt;&lt;P&gt;end of V_NAMTAB .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:l_floc(10) type c .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_lines type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_NAMTAB-name = 'hai'.&lt;/P&gt;&lt;P&gt;append V_NAMTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_NAMTAB-name = 'hello'.&lt;/P&gt;&lt;P&gt;append V_NAMTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_NAMTAB-name = 'good'.&lt;/P&gt;&lt;P&gt;append V_NAMTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE V_NAMTAB LINES v_lines.&lt;/P&gt;&lt;P&gt;v_lines = v_lines - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT V_NAMTAB.&lt;/P&gt;&lt;P&gt;CONCATENATE V_NAMTAB-NAME '\' INTO l_floc.&lt;/P&gt;&lt;P&gt;write:/ l_floc .&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reagrds,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 19:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785351#M910711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T19:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem with concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785352#M910712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes reich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i too did the same thing and it is passing the syntax check, but in debugging, the variable is holding only the last value in the loop. ie. &lt;/P&gt;&lt;P&gt;it is not holding the complete C:\.........\MAT.XLS&lt;/P&gt;&lt;P&gt;it is holding only MAT.XLS&lt;/P&gt;&lt;P&gt;but i want to hold everything except MAT.XLS&lt;/P&gt;&lt;P&gt;i want to put date inplace of MAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 19:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785352#M910712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T19:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem with concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785353#M910713</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 the FM  &lt;STRONG&gt;SO_SPLIT_FILE_AND_PATH&lt;/STRONG&gt;  to split the Path and the filename&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 19:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785353#M910713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T19:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem with concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785354#M910714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi use this command..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for getting some value we use the offset..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or for replacing some data we use this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:char(25) value '5#4#2#&amp;amp;1#&amp;amp;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            replace all occurrences of '#' in char with 'and' .&lt;/P&gt;&lt;P&gt;       replace all occurrences of '&amp;amp;' in char with 'num' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     write: char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for splitting use this simple command..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: char(10) type c value 'hello/hai',&lt;/P&gt;&lt;P&gt;char1(5) type c,&lt;/P&gt;&lt;P&gt;char2(5) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split char at '/'  into char1 char2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ char1 ,char2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 19:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785354#M910714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem with concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785355#M910715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for everyone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 20:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-concatenate/m-p/3785355#M910715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T20:20:54Z</dc:date>
    </item>
  </channel>
</rss>

