The function SetFrameVariable() gets the name of a frame variable and the value to be saved there as arguments and saves the value of the second argument within the frame variable.
Note: The function SetFrameVariable() influences the frame of the current document in the mapping. It accesses the current source document of the application. Once used, the settings apply to all resulting documents.
SetFrameVariable('FrameVariableName', 'Value')
SetFrameVariable('eBiss.DocumentVars.FileName', 'MeineDatei.dat')
Note: If you want to change the frame of the target document, use the function SetTargetFrameVariable.