cancel
Showing results for 
Search instead for 
Did you mean: 

FOX using Function Module

0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

0 Kudos

Yes. I get the following error message:

Types of parameter VALUE (P) and variable AMOUNT(I) are inconsistent

Former Member
0 Kudos

Hi.

Which data type has VALUE in FM ?

You should set data type in FM for VALUE as data type of AMOUNT.

Regadrs.

0 Kudos

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}.

Answers (0)