Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HR abap

Former Member
0 Likes
411

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.

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
388

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.

1 REPLY 1
Read only

amit_khare
Active Contributor
0 Likes
389

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.