Skip to Content
0
May 24, 2016 at 01:59 PM

BPC NW10 : Script 'DEFAULT' , Copy on several TIME

35 Views

Hi,

I need to copy from TIME "2016.01" to several "TIME" in script DEFAULT.LGF

For example: in input form, I enter the following value

TIME ACCOUNT SIGNDATA

2016.01 ACCOUNT1 200

After that I need to have when we save input form : create the 11 new records follonwing

TIME ACCOUNT SIGNDATA

2016.01 ACCOUNT1 200

2016.02 ACCOUNT1 200

2016.03 ACCOUNT1 200

2016.04 ACCOUNT1 200

2016.05 ACCOUNT1 200

2016.06 ACCOUNT1 200

2016.07 ACCOUNT1 200

2016.08 ACCOUNT1 200

2016.09 ACCOUNT1 200

2016.10 ACCOUNT1 200

2016.11 ACCOUNT1 200

2016.12 ACCOUNT1 200



I started to write the following script


*XDIM_MEMBERSET CATEGORY = ACTUAL

*XDIM_MEMBERSET ACCOUNT = ACCOUNT1

*WHEN TIME

*IS 2016.01

*WHEN ACCOUNT

*IS ACCOUNT1

*REC(TIME="2016.02")

*ENDWHEN

*ENDWHEN

Of course, the script is good for only the period 2016.02. I tried with the TMVL and variable....


Can you help me to modify this script ?



NB : NW10SP12, BW731 SP16


Regards

Bastien