Skip to Content
0
Former Member
Nov 06, 2007 at 12:18 PM

Formula error - in IP while using VARC

170 Views

Hi Experts,

Please see my requirement below :

Total of item 11207000 should be equal to the sum total of 4 other items. So I have created a variable (VAR_ENTRY_ITEMS) to capture all the 4 items.

Item is compounded with '0CS_CHART'.

I am getting error as 'Formula error: ) was expected. Syntax error in row 21, column 30'.

And the Operand is {key figure name, 0COMPANY, 0CS_ITEM, 0CS_VERSION, 0FISCPER3).

Please see code below :

DATA DIFF TYPE F.

DATA CCOMPANY TYPE 0COMPANY.

DATA CPERIOD TYPE 0FISCPER3.

DATA CITEMS TYPE 0CS_ITEM.

DATA CCHART TYPE 0CS_CHART.

CCHART = 'BG' .

CCOMPANY = VARV(0S_COM_M).

CPERIOD = VARV(ZPER_MTH).

CITEMS = VARC(VAR_ENTRY_ITEMS, CCHART).

DIFF = {0CS_TRN_LC, CCOMPANY, 11207000, 100, CPERIOD} - {0CS_TRN_LC, CCOMPANY, CITEMS, 100, CPERIOD}.

IF DIFF <> 0.

MESSAGE E001(UPF) WITH 'REENTER THE VALUES'.

ENDIF.

Thanks in advance for your advise.

Regards

Shanthi