Skip to Content
avatar image
Former Member

abap - incompatible type error

Hi Experts,

I got the requirement to change spell_amount function module into Z_SPELL_AMOUNT Function module. Sap has givin some modifications in spell_amount function module. so i have done those changes in Z_SPELL_AMOUNT FM

After changing the code... the errors says that INT_ZAHL and UP_ZIFFER are type incompatile

please find the following code which i changed,

in the below coding it is showing error in the following statement

DO 15 TIMES VARYING up_ziffer FROM int_zahl0 NEXT int_zahl1

In SPELL_AMOUNT function modue contains this ZIFFERN_IN_WORTEN subroutine

Thanks in advance.

Jeyanthi.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 05, 2008 at 08:53 AM

    Hi ,

    May be ur system is Unicode enabaled so offset is not happening

    tell me how are int_zahl and UP_ZIFFER DECLARED now and what were earlier declaration.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Dinesh,

      previously the variable declaration was

      up_ziffer(1) TYPE c,

      in correction i have changed like

      up_ziffer(1) TYPE n,

      there is no correction with int_zahl.

      previousely that do statement was

      DO 15 TIMES

      then changed as per correction in the notes

      like below

      DO 15 TIMES VARYING up_ziffer FROM int_zahl0 NEXT int_zahl1.

      Thanks.

      Jeyanthi

  • avatar image
    Former Member
    Sep 05, 2008 at 09:30 AM

    Hi Jeyanthi,

    as u told that you have changed type of up_ziffer from c to n .

    but int_zahl is of data type c.

    so change the data type of either variable n try to execute.

    hope this will solve your query.

    Thanks & regards

    Rajesh Kumar

    Add comment
    10|10000 characters needed characters exceeded