2007 Jul 17 5:06 AM
Hi guys,
I am new to HR abap.I have a piece of code given below which was written on 4.6c.I am working on ECC 6.0 .i m getting too many errors related to unicode.please help me to correct this one.
REPORT zpsol020 LINE-SIZE 100.
*-- declaration
TABLES: pernr.
INFOTYPES: 0002, "Personal Data
0006. "Address
DATA: name LIKE p0001-ename.
*-- Processing
GET pernr.
PROVIDE * FROM p0002
FROM p0006 BETWEEN pn-begda AND pn-endda
WHERE p0006-subty = '1'.
IF p0006_valid EQ 'X'.
CONCATENATE p0002-nachn p0002-vorna INTO name
SEPARATED BY SPACE.
PERFORM print_data.
ENDIF.
ENDPROVIDE.
----
FORM PRINT_DATA
----
FORM print_data.
WRITE: / p0002-pernr NO-ZERO,
sy-vline,
p0002-begda,
sy-vline,
p0002-endda,
sy-vline,
(30) name,
sy-vline,
(20) p0006-ort01.
ENDFORM.
2007 Jul 17 5:15 AM
When you use Logical Database in ECC 6.0, all the statements associated with it, like macros and other go obsolete, which in turns give you Unicode erros during syntax check and Extended Check...some where around 80+ if I am not wrong.
Just activate your report it will work fine as SAP has not come with any alternate for them yet.
Regards,
Amit
Reward all helpful replies.
Hi guys,
I am new to HR abap.I have a piece of code given below which was written on 4.6c.I am working on ECC 6.0 .i m getting too many errors related to unicode.please help me to correct this one.
REPORT zpsol020 LINE-SIZE 100.
*-- declaration
TABLES: pernr.
INFOTYPES: 0002, "Personal Data
0006. "Address
DATA: name LIKE p0001-ename.
*-- Processing
GET pernr.
PROVIDE * FROM p0002
FROM p0006 BETWEEN pn-begda AND pn-endda
WHERE p0006-subty = '1'.
IF p0006_valid EQ 'X'.
CONCATENATE p0002-nachn p0002-vorna INTO name
SEPARATED BY SPACE.
PERFORM print_data.
ENDIF.
ENDPROVIDE.
----
FORM PRINT_DATA
----
FORM print_data.
WRITE: / p0002-pernr NO-ZERO,
sy-vline,
p0002-begda,
sy-vline,
p0002-endda,
sy-vline,
(30) name,
sy-vline,
(20) p0006-ort01.
ENDFORM.
2007 Jul 17 5:15 AM
When you use Logical Database in ECC 6.0, all the statements associated with it, like macros and other go obsolete, which in turns give you Unicode erros during syntax check and Extended Check...some where around 80+ if I am not wrong.
Just activate your report it will work fine as SAP has not come with any alternate for them yet.
Regards,
Amit
Reward all helpful replies.