Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2129

SPLIT functionality in String

$
0
0

Hello Gurus,

 

I have a fine in Unix path and am picking the file using OPEN DATA SET and converting into internal table. While doing conversion I am Splitting the string with # delimiter into work area. Everything working fine but for last field in the file am getting #. how to remove that delimiter.

 

For example, my file looks like in Unix as below

 

Vendor#Plant#Text1#Text2#Text3#

123#111#SAP#SAP1#SAP2#

321#111#text1#text2#text3#

 

 

after OPEN DATA SET am getting the string into an internal table as below

 

Vendor     Plant     Text1     Text2     Text3#

123          111        SAP     SAP1     SAP2#

321          111        text1     text2     text3#

 

For the last Column # is not removing so while updating the data into tables then # also updating with data.

 

Kindly suggest me how to remove the # after Text3, SAP2 and text3...

 

Thanks and Regards,

Muralikrishna Peravali


Viewing all articles
Browse latest Browse all 2129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>