05-11-2009 10:16 AM
Hi all,
Please see below lines of code-
field-symbols: <fs_vbap_ukie> type VBAP.
loop at DXVBAP assigning <fs_vbap_ukie> .
<processing>
endloop.
at start of the loop field symbol <fs_vbap_ukie> is not getting assigned and I am getting the erros as
You attempted to assign a field to a typed field symbol,
but the field does not have the required type.
Please suggest how to fix this error.
Thx
Saurabh
05-11-2009 10:19 AM
Hi,
Are you sure tha DXVBAP type is VBAP??
Go to standard program and check the correct type for table DXVBAP, i think correct type is vbapvb.
Regards,
Edited by: Jose Vaquero Polonio on May 11, 2009 11:20 AM
05-11-2009 10:20 AM
Hi,
Try doing like this field-symbols: <fs_vbap_ukie> type ANY.
Regards,
Suneel G
05-11-2009 10:21 AM
Type of <fs_vbap_ukie> should same as type of DXVBAP.
Else declare <fs_vbap_ukie> as type ANY.
Regards,
Tejas Naik.
05-11-2009 10:24 AM
Hi,
DXVBAP and <fs_vbap_ukie> are of not the same type. This results in the dump.
Regards,
Ankur Parab
05-11-2009 10:30 AM
Hi,
The field symbol u defined is not similar to internal table
Define fieldsymbol of type any that will solve the pbm
Regards,
Naveen M.
10-07-2009 7:19 AM
10-07-2009 7:24 AM
REPORT demo_field_symbols_stat_assign .
FIELD-SYMBOLS: <f1> TYPE ANY, <f2> TYPE i.
DATA: text(20) TYPE c VALUE 'Hello, how are you?',
num TYPE i VALUE 5,
BEGIN OF line1,
col1 TYPE f VALUE '1.1e+10',
col2 TYPE i VALUE '1234',
END OF line1,
line2 LIKE line1.
ASSIGN text TO <f1>.
ASSIGN num TO <f2>.
DESCRIBE FIELD <f1> LENGTH <f2> IN CHARACTER MODE.
WRITE: / <f1>, 'has length', num.
ASSIGN line1 TO <f1>.
ASSIGN line2-col2 TO <f2>.
MOVE <f1> TO line2.
ASSIGN 'LINE2-COL2 =' TO <f1>.
WRITE: / <f1>, <f2>.
Regards ,
Venkat