Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

CONDITIONAL MDX

$
0
0

Hello everyone, I made a script but I dont know why? dont work?

 

*XDIM_MEMBERSET ESCENARIO = REAL

*XDIM_MEMBERSET ORIGENDATOS = BW

*XDIM_MEMBERSET TIEMPO = 2012.07

*XDIM_MEMBERSET CTAGYG = 61210301A

*XDIM_MEMBERSET MONEDARPT = LC

 

 

[CTAGYG].[#61210301A] =( [CTAGYG].[61210301A]>5000? [CTAGYG].[61210301A] : 5000 )

 

I'm leaving the log in UKJT

 

LGX:

 

 

*XDIM_MEMBERSET ESCENARIO = REAL

*XDIM_MEMBERSET ORIGENDATOS = BW

*XDIM_MEMBERSET TIEMPO = 2012.07

*XDIM_MEMBERSET CTAGYG = 61210301A

*XDIM_MEMBERSET MONEDARPT = LC

[CTAGYG].[#61210301A] =( [CTAGYG].[61210301A]>5000? [CTAGYG].[61210301A] : 5000 )

 

 

-------------------------------------------------------------------------------------------------------------------------------------

LOG:

 

 

FILE:\ROOT\WEBFOLDERS\CABCORP_D \ADMINAPP\GYG\TEST.LGF

USER:AVALENZUELA

APPSET:CABCORP_D

APPLICATION:GYG

 

 

FORMULA : [CTAGYG].[61210301A]=( [CTAGYG].[61210301A]>5000? [CTAGYG].[61210301A] : 5000 )

 

 

CALCULATION BEGIN:

------------ ABAP Code Generation Error:4 -------------

MESSAGEGZGIncomplete arithmetic expression: ")" missing at end of statement.

Line12 WordCOMPUTE

-------- Code ---------

program.

class main definition.

public section.

methods METH1 importing

P1 type decfloat34

exporting RET type decfloat34

raising CX_SY_ZERODIVIDE.

endclass.

class main implementation.

method METH1.

"( [CTAGYG].[61210301A]>5000? [CTAGYG].[61210301A] : 5000 )

RET = ( P1.

if RET > 5000.

RET = P1.

else.

RET = 5000 ).

endif.

endmethod.

endclass.

-------- Input formulas ---------

( [CTAGYG].[61210301A]>5000? [CTAGYG].[61210301A] : 5000 )

------------ ABAP Code Generation Error Ends ------------

 

 

UJK_EXECUTION_EXCEPTION:Runtime error Program generation error

 

 

I put the ")" in the end but show me the next log:

 

UJK_VALIDATION_EXCEPTION:LINE 7 syntax error: " missing ; before statement"


Viewing all articles
Browse latest Browse all 5414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>