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 msg in BDC

Former Member
0 Likes
1,132

hI

i am working BDC.Here iam getting one problem.when i checking in 'A'It showing error msges also.but when it is in ' N'.Iam not finding the error msges.how can i obtain those error msgs in 'N' Mode also.

plz help me out

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,109

When in MODE 'N', all message will be passed back via the MESSAGES into MESSTAB extenstion.

data: MESSTAB type table of bdcmsgcoll with header line.

call transaction tcode using BDCDATA

mode 'N'

MESSAGES INTO MESSTAB.

You can then simply read this internal table for the message ids and numbers and use the function module MESSAGE_PREPARE to build the message text.

Regards,

Rich Heilman

Message was edited by:

Rich Heilman

9 REPLIES 9
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,110

When in MODE 'N', all message will be passed back via the MESSAGES into MESSTAB extenstion.

data: MESSTAB type table of bdcmsgcoll with header line.

call transaction tcode using BDCDATA

mode 'N'

MESSAGES INTO MESSTAB.

You can then simply read this internal table for the message ids and numbers and use the function module MESSAGE_PREPARE to build the message text.

Regards,

Rich Heilman

Message was edited by:

Rich Heilman

Read only

0 Likes
1,109

Hi Rich,

i am also write same logic but in this case also iam getting the same problem. here is the logic

DATA :messtab TYPE TABLE OF bdcmsgcoll.

data: bdcdata TYPE TABLE OF bdcdata

ctumode = 'N'.

cupdate = 'L'.

CALL TRANSACTION 'MB11' USING bdcdata MODE ctumode

UPDATE cupdate MESSAGES INTO messtab.

plz help me out from this problem.

Thnaks

Read only

0 Likes
1,109

And you are not getting any messages in the MESSTAB?

Regards,

Rich Heilman

Read only

0 Likes
1,109

iam getting the success messges only.but not error messeges.i want to show that error msgs which are came in ' A ' Mode also.

Thanks

Read only

0 Likes
1,109

If there are no error message in MESSTAB, then the transaction simply is not issue them using the MESSAGE statement. When you run in "A" mode, do you see the error messages in the status bar at the bottom, or are they being shown to you in a different way, maybe in a dialog box showing a message log?

Regards

Rich Heilman

Read only

0 Likes
1,109

Let me hear my case.iam passing the values to BDC call transaction MB11, which are coming from delivery.if suppose in delivery there is not given the field storege location then that value is not populete on MB11.Then disply an error message.

but here when iam checking in 'A' mode the messtab is showing that ENTER STOREGE LOCATION.But in 'N' Mode it showing all sucess mesgs only.

Thanks

Read only

0 Likes
1,109

Hi rich,

this is the reqirement in error handling plz tell me ur valuble advice to achive to solve the problem.

I calling BDC MB11 from Delivery.so,with ref to delivery document the delivery items will placed in MB11.but in case of an error i.e insufficient stock of the components,no special error handliong has to be in place.the error message of the MB11 transaction should be passedback to the screen.how can i achieve it.

thanks

Read only

0 Likes
1,109

Well, the error message should be coming in the MESSTAB internal table, if it is not, there is little you can do to know what the error message was that made the MB11 fail. I am confused as to why you are not getting the messages in MESSTAB.

Regards,

Rich Heilman

Read only

0 Likes
1,109

Hi Rich,

Here is my code plz look a glance.and advice me whr iam wrong.

Thanks.

Message was edited by:

skk