Hi all,
I'm facing the following situation: when i run a call transaction program for VL01:
DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
....
CALL TRANSACTION 'VL01N' USING bdcdata MESSAGES into MESSTAB.
sometimes when an item has no stock, i get the error message:
MSGTYP = E
MSGID = VL
MSGNR = 643
MSGV1 = '1'
MSGV2 = 'UN'.
MSGV3 = ''
MSGV4 = ''
the problem: when i compose this message with FM - FORMAT_MESSAGE, i dont get the material code, to wich the loss os stock error referes to, since is not returned from call transaction execution (in messtab). How can i determine to which material code the error refers to ?
As anyone faced the same situation ?
Best regards,
Pedro Castro