Hi guys
I am trying to write a fox code which copies transaction data from one version to another. The source data is a total of 12 periods for that version which should be written to one period in a future year and in different version. I have written the code as follows:
DATA FY_T TYPE 0FISCYEAR.
DATA PP TYPE 0FISCPER3.
DATA FP_T TYPE 0FISCPER.
DATA FP_F TYPE 0FISCPER.
DATA VER TYPE 0VERSION.
DATA VERS TYPE 0VERSION.
DATA PL TYPE F.
VER = VARV( Z_VERS ). (destination version)
VERS = VARV( YSRC_VER ). (source version)
FY_T = VARV( YSS_GLS_TO ). (destination year)
FY_F = VARV( YSS_GLS_FROM ).(source year)
FOREACH FY_F, PP, VER.
FP_T = CONCAT( FY_T, PER ).
FP_F = CONCAT( FY_F, PER ).
PL = PL + {0SALES, FP_F, PP, FY_F, VERS}.
{0SALES, FP_T, '012', FY_T, '007'} = PL.
ENDFOR.
There is data to copy but the function only reads but doesn't generate any records
Could you kindly assist .
Regards
Jordan