How to create and rename Workplan structure by EKL?

EKL Scripts:
...

objNewWorkPlan = new("DELLmiWorkPlanSystemReference",strVName,rootWorkPlanRef)

...

lstAllWorkPlan = rootProdSysOcc->Query("ProdSystemOccurrence","x.Reference.V_Name == \\""+strVName+"\\"")
/*lstAllWorkPlan.Size() == 0*/


I created a WorkPlan object using the "new" function and tried to query the creation result using the "query" function, but I couldn't find it. How can I solve this issue?