2008 Mar 03 5:51 PM
Good afternoon, i have this problem:
First, i used a field Symbol to call an object that has been initialized in another program. Then, i want to use this field symbol to call a method of this object, but i have the following message:
"<FS> is not a reference variable".
This is the code that have the error in the last line:
DATA ls_object(30) TYPE C.
FIELD-SYMBOLS: <fs> TYPE ANY.
ls_object = '(SAPLTB4E)g_oref_ftr_appl_ctrl'.
ASSIGN (ls_object) TO <fs>.
CALL METHOD <fs>->action_pbo_before.
The assign returns a sy-subrc = 0. In the program SAPLTB4E, the variable 'g_oref_ftr_appl_ctrl' is define like this:
g_oref_ftr_appl_ctrl TYPE REF TO cl_ftr_appl_ctrl.
Thanks in advance for your help.
2008 Mar 03 6:55 PM
Good afternoon, i have this problem:
First, i used a field Symbol to call an object that has been initialized in another program. Then, i want to use this field symbol to call a method of this object, but i have the following message:
"<FS> is not a reference variable".
This is the code that have the error in the last line:
DATA ls_object(30) TYPE C.
FIELD-SYMBOLS: <fs> TYPE ANY.
ls_object = '(SAPLTB4E)g_oref_ftr_appl_ctrl'.
ASSIGN (ls_object) TO <fs>.
CALL METHOD <fs>->action_pbo_before.
The assign returns a sy-subrc = 0. In the program SAPLTB4E, the variable 'g_oref_ftr_appl_ctrl' is define like this:
g_oref_ftr_appl_ctrl TYPE REF TO cl_ftr_appl_ctrl.
Thanks in advance for your help.
2008 Mar 03 6:16 PM
Why don't you try this way?
report zaRs.
data : g_oref_ftr_appl_ctrl TYPE REF TO cl_ftr_appl_ctrl.
perform set_otcdata_to_appl
changing
g_oref_ftr_appl_ctrl.
form set_otcdata_to_appl changing p_g_oref_ftr_appl_ctrl
type ref to cl_ftr_appl_ctrl.
call method p_g_oref_ftr_appl_ctrl->action_pbo_before.
endform.
2008 Mar 03 6:55 PM
2008 Mar 03 7:00 PM
>
> FIELD-SYMBOLS: <fs> TYPE REF TO cl_ftr_appl_ctrl.
>
> Thanks Rich for new info
a®
2008 Mar 03 9:08 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |