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_TYPE_CONFLICT

Former Member
0 Kudos

Hi,

i have implemented a sd routine.

In this routine i must read the position of the document(VBAP).

My code is

data: FIELD_SYMBOL(40) TYPE C VALUE '(SAPMV45A)XKOMV'.

FIELD-SYMBOLS: <FS> TYPE any TABLE.

ASSIGN (FIELD_SYMBOL) to <fs>.

this line dumps.

with a

ASSIGN_CONFLIT_TYPE.

But i do the same in a report and there isn't any dump.

WHY?

thanks

enzo

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Instead of "<FS> type any table" declare "<FS> type any".

Thanks

Ramesh

5 REPLIES 5

Former Member
0 Kudos

Hi,

Instead of "<FS> type any table" declare "<FS> type any".

Thanks

Ramesh

0 Kudos

I tryed with TYPE ANY,

but (SAPMV45A)XKOMV is a table.

I need the field symbos as a table.

After the assign I must loop the field symbol, or better I must do something like this

my_tab[] = <FS>[].

LOOP MY_TAB.

ENDLOOP.

BYE ENZO

0 Kudos

Use this way

<b>data ITAB LIKE XKOMV OCCURS 0 with header line.

data: FIELD_SYMBOL(40) TYPE C VALUE '(SAPMV45A)XKOMV[]'.

FIELD-SYMBOLS: <FS> TYPE any .

ASSIGN (FIELD_SYMBOL) to <fs>.

ITAB[] = <FS> .</b>

Cheers

0 Kudos

Hi Sankay,

i solved it.

The problem was the string

(SAPMV45A)XKOMV[]

the '[]' are required.

I put it without.

after i declar

FIELD-SYMBOLS: <FS> TYPE any table.

ASSIGN (FIELD_SYMBOL) to <fs>.

ITAB[] = <FS>[].

thanks to all

bye enzo

Former Member
0 Kudos

Dear Enzo,

Thanks !

I have corrected code as instructed, but problem not yet resolved.

I am getting an error at line code "

DATA : itab TYPE TABLE OF drseg WITH HEADER LINE."

and not able to compile

Error message.

"Class Method IF_EX_INVOICE_UPDATE~CHANGE_AT_SAVE

Tables with headers are no longer supported in the OO context. "

Then I tried with a statement

"DATA : itab TYPE TABLE OF drseg INITIAL SIZE 0" ; code get compiled but throws a runtime dump  GETWA_NOT_ASSIGNED - Field symbol has not yet been assigned.