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: 

USEREXIT_ACCOUNT_PREP_KOMKCV

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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...