Skip to Content

FOX using Function Module

I would like to call a Function Module within a Fox Formula and als manipulate the planning data.

DATA LINE TYPE ZBPLINE.

DATA FISCPER TYPE 0FISCPER.

  • Calculating 0AMOUNT based on zfiscper and zbpline = V1 using FM, what should i declare for Amount.

IF LINE = V1.

CALL FUNCTION ZFICO_PROJECTION_CALC

EXPORTING

ZFISCPER = FISCPER

ZBPLINE = LINE

IMPORTING

VALUE = AMOUNT.

{0AMOUNT,FISCPER,17} = AMOUNT/100{0AMOUNT,FISCPER,1A} + AMOUNT/100{0AMOUNT,FISCPER,1B}

+ AMOUNT/100*{0AMOUNT,FISCPER,1C}.

ENDIF.

Please assist.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jun 22, 2010 at 08:31 AM

    Hi.

    What exactly the problem ?

    Instead of that you should define DATA ANOUNT TYPE F I don't see any problem.

    Do you get any error message ?

    Regadrs.

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks. The error has now been elimated. The only issue is that i dat the formula reads records but it does not generate or change anything please assist

      DATA LINE TYPE ZBPLINE.

      DATA FISCPER TYPE 0FISCPER.

      DATA AMOUNT TYPE F.

      DATA INFOPROV TYPE 0INFOPROV.

      CALL FUNCTION ZFICO_PROJECTION_CALC

      EXPORTING

      ZFISCPER = FISCPER

      ZBPLINE = V1

      IMPORTING

      VALUE = AMOUNT.

      {0AMOUNT,FISCPER, ZFIGLC10P, 17} = AMOUNT/100{0AMOUNT,FISCPER , ZFIGLC10P, 1A} + AMOUNT/100{0AMOUNT,FISCPER, ZFIGLC10P, 1B} + AMOUNT/100*{0AMOUNT,FISCPER, ZFIGLC10P, 1C}.