Skip to Content
0
Nov 24, 2016 at 10:29 AM

How to use variables in Script logic

250 Views

Hi,

We are developing a new script, where we have a package with a variable “VERSION_SET”. In this case, the user select a copy destination version, for example “V015″. Once the user select this versión we need to create a new condition where if VERSION_SET == "V015" It is neccesary to save data, but if VERSION_SET <> "V015" it is not neccesary to save data: See an example below:

// MOD. 07/07/2016 --> BAS(F_FIL)

*XDIM_MEMBERSET FLUJOCONTABLE = BAS(TOT), F999, BAS(F_FIL)

*XDIM_MEMBERSET CUENTA = BAS(BALANCE), BAS(RESULTADO_DOM)

*XDIM_MEMBERSET MONEDA = LC

*XDIM_MEMBERSET GRUPO = NG *XDIM_MEMBERSET TIPODATO = BI, AP1, AP2, Aj_HTemporal

*XDIM_MEMBERSET VERSION = %VERSION_SET%, V001

*XDIM_MEMBERSET PERIODO = %PERIODO_SET%

*XDIM_MEMBERSET SOCIEDAD = %SOCIEDAD_SET%

*SELECT(%VERS%, VERSION_DEST, VERSION, ID=%VERSION_SET%) //*************************** // COPIA CUENTAS DE BALANCE: //************************** *WHEN CUENTA

*IS BAS(BALANCE)

*IS <> 1291000

*WHEN FLUJOCONTABLE

*IS = F100, F901A

*WHEN VERSION

*IS V001

*WHEN SOCIEDAD.IS_EP

*IS 015

*REC(EXPRESSION=%VERSION_SET%=='V015' ? %VALUE%: 0, TIPODATO = BI, VERSION = V015) //THIS SENTENCE IS NOT WORKING, SOMEONE KNOW HOW TO IMPLEMENT THIS REQUIREMENT

*ENDWHEN //SOCIEDAD//

*ENDWHEN //VERSION//

*ENDWHEN //FLUJOCONTABLE//

*ENDWHEN //CUENTA//

*COMMIT