2007 Oct 18 6:57 AM
Hi all sap gurus,
in sap4.7 they used this code and in 6.0 it is showing the error msg that part_delim must be c,d, n, t, string.
DATA: BEGIN OF part_delim,
1d(1) TYPE x VALUE '1D',
p(1) TYPE c VALUE 'P',
END OF part_delim.
IF rec_tab-STRING CS part_delim.
start = sy-fdpos + 2.
ENDIF.
Please help me,
thanks in advance,
Hi all sap gurus,
in sap4.7 they used this code and in 6.0 it is showing the error msg that part_delim must be c,d, n, t, string.
DATA: BEGIN OF part_delim,
1d(1) TYPE x VALUE '1D',
p(1) TYPE c VALUE 'P',
END OF part_delim.
IF rec_tab-STRING CS part_delim.
start = sy-fdpos + 2.
ENDIF.
Please help me,
thanks in advance,
2007 Oct 18 7:00 AM
Hi,
This is because it's unicode compliant in 6.0
What you can do is to create a variable and fill the values by concatenating the Hex value and the char value and then do the same operation.
Hope this helps
regards
Nishant
2007 Oct 18 7:31 AM
hi nishant,
thanx. will u pls send me code for this.
thanks in advance.
2007 Oct 18 7:00 AM
Hi
the structure part_delim contains a X type field in it
hence it says that the char related commands like CS and CO can only be used with the data types C,D,T and N
Change it and use
Regards
Anji
2007 Oct 18 7:01 AM
Hi ,
In 6.0 type x and type c are not compatible . so u have to use the character equivalent of the hexadecimal value ... U can make use of abap_character_utilities class attributes for getting the character equivalent of the hexadecimal value...
Hope the reply will be helpful.Reward points
2007 Oct 18 7:23 AM
This line is not correct
1d(1) TYPE x VALUE '1D',
instead try using 1d(1) TYPE c length 2 VALUE '1D',
Probly den it ll work out
Reward points if it does
Regards
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |