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: 

Assign table with header line to field symbol.

0 Kudos

Hello.

Following situation:

There is a table '(SAPLIBMA)XTIBAN[]' in the loaded programs.

The declaration of the table is XITIBAN LIKE ITIBAN OCCURS 0 WITH HEADER LINE.

When I want to assign the table into a field symbol


FIELD-SYMBOLS: <FS_XTIBAN> TYPE ANY TABLE.
ASSIGN '(SAPLIBMA)XTIBAN[]' TO <FS_XTIBAN>.

system says that (SAPLIBMA)XTIBAN[] is incompatible to  <FS_XTIBAN>.

Is there a possibility to solve this?

Thanks in advance.

Gerhard

1 ACCEPTED SOLUTION

FredericGirod
Active Contributor
0 Kudos

Hi Gerard.

first declare correctly the field-symbols

types : tt_iban type table of iban.

field-symbols <FS_XTIBAN> type tt_iban.

move '(SAPLIBMA)XTIBAN[]' to w_field.

assign (w_field) to <FS_XTIBAN>.

regards

Fred

3 REPLIES 3

former_member215344
Contributor
0 Kudos

Hi Gerard,

The internal table name is XITIBAN or XTIBAN ?

In the declaration you have mentioned name as XITIBAN and in the ASSIGN statement you have mentioned XTIBAN. Assign the correct internal table to the field symbol and check.

Thanks,

Ajay Bose

FredericGirod
Active Contributor
0 Kudos

Hi Gerard.

first declare correctly the field-symbols

types : tt_iban type table of iban.

field-symbols <FS_XTIBAN> type tt_iban.

move '(SAPLIBMA)XTIBAN[]' to w_field.

assign (w_field) to <FS_XTIBAN>.

regards

Fred

0 Kudos

Thanks to Frédéric.

He have me the right answer.

Gerhard