Create new record from another object in 4GL

SOLVED

Hi, I need to create in Sage X3 V9 (patch 6) a new analitycal dimension (object CCE) on creating new Project (object OPP) with some data from the last one, my client request an automatic function on create so any new button are forbidden, in my specific script what function i need to call to do so or there are a software setting that can help me?