10-14-2005 10:48 AM
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
10-14-2005 10:55 AM
Hi,
Instead of "<FS> type any table" declare "<FS> type any".
Thanks
Ramesh
10-14-2005 10:55 AM
Hi,
Instead of "<FS> type any table" declare "<FS> type any".
Thanks
Ramesh
10-14-2005 11:00 AM
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
10-14-2005 11:06 AM
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
10-14-2005 1:05 PM
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
01-18-2013 4:15 AM
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.