Establish a user section
Get the component interface definition
Populate the create keys
Create an instance of the component interface
Populate the required fields
Save the component Interface.
rem Establishing Session;
&objSession
= GetSession();
rem Get CI;
&CI = &objSession.GetcompIntfc(CompIntfc.INTERFACE_NAME);
rem Populate create keys;
&CI.KEY_FILED_NAME = ‘NEW’;
If not &CI.Create () Then
Else
rem Populate other fields;
End-if;
rem Populate the other fields;
rem Save CI;
If not &CI.Save () Then
Else
End-if;