Skip to Content
0
Former Member
Feb 16, 2006 at 04:46 AM

how to retrieve a field value of an internal table?

33 Views

Hi all,

I got an internal table msgtab of type BDCMSGCOLL.

I want to retrieve the MSGV2 into a variable X from the table where MSGID = 'VL' and MSGNR = '311'.

I wrote like this but it fails:

data: X like BDCMSGCOLL-MSGV2.

READ TABLE msgtab WITH KEY

MSGID = 'VL' MSGNR = '311' into X.

What's wrong? Thanks