on 02-28-2013 7:39 AM
Hi all,
I am uploading data from Notepad.txt ( Tab Separated) in a Web Dynpro Component.
Notepad File:
1001 name0 1000 BeckerBerlin 1000 1/1/2013 31/12/2013
While debugging it is showing like this.
1001#name0#1000#BeckerBerlin#1000#1/1/2013#31/12/2013#
Now i am using this code,
REPLACE ALL OCCURRENCES OF '#' in lv_string WITH space .
or
SPLIT lv_string AT '#' INTO lv_empid
lv_ename
lv_clnid
lv_cname
lv_pmgid
lv_begda
lv_endda.
This '#' is not detecting.. Help me in this..
Thanks in advance..
Hi Arun,
As Chandra has mentioned, the # character you see is actually a tab. For non-printing characters like a tab or carriage return, SAP uses the # character to visually represent the non-printing character. If you take a look at class interface CL_ABAP_CHAR_UTILITIES in your system, you'll see several attributes that you can use to reference these non-printing characters in your code, for example...
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is not '#' that is symbol of cl_abap_char_utilities=>horizontal_tab..
so try to replace all occurrence of cl_abap_char_utilities=>horizontal_tab into your variable.
we have one more cl_abap_char_utilities=>newline, this also visible in '#' format only. this is used for new line character.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please change the code as below
SPLIT lv_string AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB INTO lv_empid
lv_ename
lv_clnid
lv_cname
lv_pmgid
lv_begda
lv_endda.
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.