Skip to Content
0
Former Member
Jun 26, 2007 at 09:56 AM

FOX Formula

27 Views

Hello experts.

I'm trying to do a formula fox to calculate a cost center that its equal to responsible cost center, but it gives an error. Could anyone help me?

Here's my code:

DATA TXAMT_AI TYPE F.

DATA TXAMT_AFT TYPE F.

DATA CCUSTO TYPE 0COSTCENTER .

DATA CCRESP TYPE 0RESP_CCTR.

  • atribuição de valores às variáveis

TXAMT_AI = VARV('NCOAM01').

TXAMT_AFT = VARV('NCOAM02').

CCRESP = OBJV().

CCUSTO = CCRESP.

  • ACTIVOS INTANGÍVEIS ********************

  • amt de AI - despesas instalação

  • {#,CCUSTO,6631000000,#} = ( { #,#,4310000000,CCRESP} * TXAMT_AI) / 100.

    There's an registry with responsible cost center and I want to calculate the cost center...

    Thanks in advance.

    Vitor Ramalho