Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

type-incompatible in ABAP code in ECC 6.0

DATA: bhdgi-hf(1) TYPE c,

...

bhdgi-t1(70) TYPE c.

...

DO VARYING bhdgi-hf FROM bhdgi-t10 NEXT bhdgi-t11.

IF bhdgi-hf <> space OR bhdgi-index GE 70.

EXIT.

ENDIF.

bhdgi-index = sy-index.

ENDDO.

...

SHIFT bhdgi-t1 BY bhdgi-index PLACES.

...

bhdgi-index1 = 0.

DO VARYING bhdgi-hf FROM bhdgi-t169 NEXT bhdgi-t168.

IF bhdgi-hf <> space OR bhdgi-index1 GE 70.

EXIT.

ENDIF.

bhdgi-index1 = sy-index.

ENDDO.

bhdgi-index1 = 70 - bhdgi-index1.

bhdgi-index2 = bhdgd-lines - 61. "YYYY

IF bhdgi-index1 >= bhdgi-index2.

WRITE bhdgi-t1 TO bhdgd-line1+26(bhdgi-index2).

ELSE.

bhdgi-index2 = bhdgi-index2 + 27.

WRITE bhdgi-t1 TO bhdgd-line1+bhdgi-index2.

ENDIF.

...

The above code segment is developed in ECC 6.0. i got the following error message.

BHDGI-T1 and BHDGI-HF are type-incompatible.

Please help me..

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question