Define your screen wrapper
A screen wrapper is a VL reusable part of class VF_SY122. You must define it globally scoped as opposed to inside any type of routine.
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#PANL_1) Visible(False) Displayposition(3)
Key Points:
Set the uCommand property
In the command's uInitialize method routine, set the screen wrapper's uCommand property:
Mthroutine Name(uInitialize) Options(*REDEFINE)
* Do any initialization defined in the ancestor
Invoke Method(#Com_Ancestor.uInitialize)
Set Com(#myscreen_wrapper) Ucommand(#com_owner)
Endroutine
Key Points:
Kick off execution by making RAMP available
Usually you will invoke MakerampTSavailable Method inside the uExecute method of your command for the first time:
#myscreen_wrapper.MakerampTSavailable
Key Points:
Listen to the RampTSAvailable event
Once RAMP has connected and it's ready to be interacted with it will signal back to the command in this event. It means you are ready to start navigation. For example:
Invoke Method(#myscreen_wrapper.navigatetoscreen) Name(EMPLOYEE_SKILLS)
Listen to the RampMessage event
You write error handling logic and handle messages originating in your 5250 application in the RampMessage Event.