2008 Apr 16 9:52 AM
Hello Experts,
I am having an ABAP dump with my code below:
CONSTANTS: lv_table TYPE c LENGTH 30 VALUE '(SAPMV45A)VBAK'.
FIELD-SYMBOLS: <fs_table> TYPE table.
ASSIGN (lv_table) TO <fs_table>.
The code above is inside a user-exit and I want to assign the table from one of
the include programs to a field-symbol. The error says that the two are not type
compatible.
Hope you can help me guys.Thank you and take care!
2008 Apr 16 9:54 AM
declare the field symboll as type any
FIELD-SYMBOLS: <fs_table> TYPE any.
useful Reward pioints.
sas
keep the field symbol as type any...
it is usefull when the assigned structure is not fixed... type any will give liberty to assign any structure to the field-symbol
2008 Apr 16 9:54 AM
either define field symbol of type any
of define it as type of itab
2008 Apr 16 10:02 AM
Thank you guys for your replies.However, instead of a table, is is being passed to the
field-symbol as a structure. I want to the whole VBAK table and not a structure.
2008 Apr 16 10:06 AM
do this way then ..
CONSTANTS: lv_table TYPE c LENGTH 30 VALUE '(SAPMV45A)VBAK[]'.
FIELD-SYMBOLS: <fs_table> TYPE table any.
2008 Apr 16 11:03 AM
keep the field symbol as type any...
it is usefull when the assigned structure is not fixed... type any will give liberty to assign any structure to the field-symbol
2008 Apr 16 9:54 AM
declare the field symboll as type any
FIELD-SYMBOLS: <fs_table> TYPE any.
useful Reward pioints.
sas
2008 Apr 16 9:56 AM
hi,
do this way .. declare the field symbols as type any ...
CONSTANTS: lv_table TYPE c LENGTH 30 VALUE '(SAPMV45A)VBAK'.
FIELD-SYMBOLS: <fs_table> TYPE any.
ASSIGN (lv_table) TO <fs_table>.
2008 Apr 16 9:58 AM
do like
CONSTANTS: lv_table TYPE c LENGTH 30 VALUE '(SAPMV45A)VBAK'.
FIELD-SYMBOLS: <fs_table> TYPE any.
ASSIGN (lv_table) TO <fs_table>.
do reward if helpful
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |