READ_FORM_DATA
Read FAB App Instance Data.
This method can be used to obtain the data of a FAB Instance.
The method returns ‘TYPE REF TO DATA’ via parameter ER_DATA. This can be assigned to a field symbol and move into a corresponding structure that matches the T_DATA (GS_DATA) declaration in an implementation class.
Example:
DATA: lo_assist TYPE REF TO /iqx/cl_forms_assist,
lo_data TYPE REF TO data.
FIELD-SYMBOLS: <fs_fdata> TYPE any.
CREATE OBJECT lo_assist.
CALL METHOD lo_assist->read_form_data
EXPORTING
iv_form_name = lv_form_name
iv_instance = lv_instance
IMPORTING
er_data = lo_data
EXCEPTIONS
no_instance_data = 1
OTHERS = 2.
ASSIGN lo_data->* TO <fs_fdata>.
DATA: ls_data TYPE ZCL_YOUR_IMP_CLASS=>T_DATA. "if public or friend
MOVE-CORRESPONDING <fs_fdata> to ls_data.