Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

problem in field symbols in ecc6.0

Former Member
0 Kudos

i have the following code written in 4.6 version now i am executing the old report in 6.0 but i am facing with some unicode error.

FIELD-SYMBOLS:

<line_of_bs_table> LIKE tbl1024,

READ TABLE bs_table INDEX row_bst ASSIGNING <line_of_bs_table> .

buffer_bsbuffer_ptr(aux) = <line_of_bs_table> >col_bst.

tb1024 is standard sap structure for storing buffer contents

i have the following error in ecc 6.0

structure type '<line_of_bs_table> >+col_bst' does not start with a charecter type field in unicode programs in such cases

offset/ length declarations are not allowed.

can any one tell how can a field symbol structure is changed to charecter type.

1 ACCEPTED SOLUTION

former_member182387
Active Participant
0 Kudos

Try like the below code



FIELD-SYMBOLS:
<line_of_bs_table> LIKE tbl1024.

DATA w_wa(1024) type c.

READ TABLE bs_table INDEX row_bst ASSIGNING <line_of_bs_table> .

move <line_of_bs_table> to w_wa.

buffer_bs+buffer_ptr(aux) = w_wa+col_bst.

2 REPLIES 2

former_member182387
Active Participant
0 Kudos

Try like the below code



FIELD-SYMBOLS:
<line_of_bs_table> LIKE tbl1024.

DATA w_wa(1024) type c.

READ TABLE bs_table INDEX row_bst ASSIGNING <line_of_bs_table> .

move <line_of_bs_table> to w_wa.

buffer_bs+buffer_ptr(aux) = w_wa+col_bst.

0 Kudos

FIELD-SYMBOLS:

<line_of_bs_table> LIKE tbl1024.

DATA w_wa(1024) type c.

READ TABLE bs_table INDEX row_bst ASSIGNING <line_of_bs_table> .

move <line_of_bs_table> to w_wa.

buffer_bsbuffer_ptr(aux) = w_wacol_bst.

i am still getting error like

'<line_of_bs_table> and w_wa are not mutually convertible.'

and i try to use move corresponding instead of move but then it says

'w_wa is not internal table or structure with the heade line'.