07-22-2008 12:40 PM
Hi,
I have added some code to the user exit USEREXIT_ACCOUNT_PREP_KOMKCV.My requirement is that whenever an invoice is saved it should trigger a certain output type YCPC provided the invoice has a certain pricing condition YCPC in it.I am getting a dump like this
This error may occur if
You address a typed field symbol before it has been set with
ASSIGN
You address a field symbol that pointed to the line of an
internal table that was deleted
You address a field symbol that was previously reset using
UNASSIGN or that pointed to a local field that no
longer exists
The problem is that I am using the statement
READ TABLE xkomv with key kschl = 'YCPC'
within the user exit.The dump occurs whenver an invoice which does not contain the pricing condition YCPC is saved and we try to execute the READ TABLE xkomv statement.What modification should I do to avoid this dump.Also keep in mind that this is a standard SAP user exit which means it can be used by other programs as well
Thanks in advance
07-22-2008 12:48 PM
Hi,
u can do one thing,
move contents of xkomv to some internal table of type xkomv
& use your read statement on that internal table...