How to test POV selection and file conte
Hello,
I want to add a BefImport script to test if the content of the file is consistent with th POV selection
In detail I want to be sure that the PERIOD on the file has been correctly selected in the POV.
My script is on Oracle EPM 11.1.2.3.500 :
if fdmContext["LOCNAME"] == "SPRINT_ARPEGE_LOC":
# Recuperation de la periode du POV
period = str(fdmContext["PERIODKEY"])
month = period.split('-')
mymonth = "M" + month[1]
# Lecture de la periode du fichier
infilename = fdmContext["INBOXDIR"]+"/"+fdmContext['LOCNAME']+"/"+fdmContext["FILENAME"]
infile = open(infilename, "r")
myline = infile.readline()
myline = infile.readline()
column = myline.split(';')
# Comparaison de la periode du fichier avec celle du POV