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