Application Development and Automation 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: 
Read only

Error Message from BDC program

Former Member
0 Likes
283

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

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
254

If you know the material number which you passed to the BDC, you can simply use that, if you are passing mulitple materials for one call of the BDC, then I don't think you can know which material it is erroring on if the message does not bring it back.

Regards,

RIch Heilman