02-16-2010 1:44 PM
Hi,
Hi Below is the value coming in a field character string 130 and I have used SPLIT at '#' and also Split at tab which has a value horzontal tab.
Below is the string Value..
'Feedback on Mr Richard Harris#360 category Partner#Department Human Resources#Office London#Review period 01.01.2010 to 31.12.2010'.
Please let me know how to resolve this?
Regards,
Srinivas
02-16-2010 5:06 PM
Hi Srinivas,
0A00 is the Value for LineFeed so retry split with CL_ABAP_CHAR_UTILITIES=>NEWLINE instead of tab.
regards
Jörg
02-16-2010 1:53 PM
Hi,
Try this
data: lv_var type CHAR1 value CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
split lv_string at lv_var into wa-field1 wa-field2.
02-16-2010 2:01 PM
Thanks for the quick reply.
I tried this already and is not working.
Also I tried to split the contents into Internal table as below which is also not working.
data: lv_var type CHAR1 value CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
split lv_string at lv_var into table <STRING_TABLE>
Regards,
Srinivas
02-16-2010 2:08 PM
Hi Srinivas,
'#' means any unwritable character so it could have a lot of values!
If possible, could you have a look to the corresponding value of this symbol represented by '#' in hexadecimal value (you can get hexadecimal value in debugger) : this represent the ASCII value...
Best regards,
Samuel
02-16-2010 2:56 PM
Dear Samuel,
The hexa decimal value for '#' is coming as '0A00'.
Please check..
Regards,
Srinivas
02-16-2010 3:06 PM
Hi,
It would be better if you can let us know how you are getting the data into string. Is it uploaded from some file? Here Hash(#) means any unprintable character. So hexadecimal value of hash may not help. You need to see how the data is populated to string field.
Based on that use the SPLIT statement. Hope this helps...
Thanks,
Vinod.
02-16-2010 3:13 PM
The value is coming from Portal application and it will be used in Interactive form of adobe.
Regards,
Srinivas
02-16-2010 4:22 PM
Hi,
Then check with portal team to see what value they are passing to you at the place of hash(#). Seems like some code page conversion is failing.
Thanks,
Vinod.
05-06-2022 7:56 AM
Very Nice. This is really appreciable as working absolutely fine without changing much in the program
02-16-2010 2:05 PM
This works as it should:
DATA:
lv_field(130) TYPE c VALUE
'Feedback on Mr Richard Harris#360 category Partner#Department Human
resources#office london#review period 01.01.2010 to 31.12.2010',
lv_01(50) type c,
lv_02(50) type c,
lv_03(50) type c,
lv_04(50) type c,
lv_string TYPE string.
lv_string = lv_field.
split lv_string at '#' into
lv_01 lv_02 lv_03 lv_04.
write: / lv_01 ,
/ lv_02 ,
/ lv_03 ,
/ lv_04.
02-16-2010 5:06 PM
Hi Srinivas,
0A00 is the Value for LineFeed so retry split with CL_ABAP_CHAR_UTILITIES=>NEWLINE instead of tab.
regards
Jörg