‎2011 Mar 07 12:59 PM
Hello all,
I am a abaper and i got a project to in which there is a requirement that we have to do the bdc by remote function call.
I am able to do bdc through it but my main concern is the error which come while doing bdc.
I mean we can see the screen which in which there is error. I want to capture that error and that error should be return to the function.
Suppose we are doing bdc which the help of .net application. We want to retrun the error which is occuring during the bdc and return the error to the .net application. so can you tell me how can we return the error.
Thanks...
‎2011 Mar 07 1:57 PM
Hi,
Implement RFC or any interface to communicate with non-SAP system. And have one table parameter with two fields..one with flag and other field is for message text. Then your table parameter output will be like following:
E: Process not occurred
S: Table updated updated successfully
etc.,
and,
As we know,
bdcmsgcoll type bdcmsgcoll occurs 0 with header line,
.....
......
call transaction 'TCODE' using bdcdata mode 'N' update 'S' messages into bdcmsgcoll.this syntax will helps you capture the messages with BDC processing. And then pass this message ID and types etc to 'FORMAT_MESSAGE' or some other function module whcih can gives you message text. And finally populate ABOVE internal table with those details.
Thanks,
Naveen Inuganti.
‎2011 Mar 07 1:57 PM
Hi,
Implement RFC or any interface to communicate with non-SAP system. And have one table parameter with two fields..one with flag and other field is for message text. Then your table parameter output will be like following:
E: Process not occurred
S: Table updated updated successfully
etc.,
and,
As we know,
bdcmsgcoll type bdcmsgcoll occurs 0 with header line,
.....
......
call transaction 'TCODE' using bdcdata mode 'N' update 'S' messages into bdcmsgcoll.this syntax will helps you capture the messages with BDC processing. And then pass this message ID and types etc to 'FORMAT_MESSAGE' or some other function module whcih can gives you message text. And finally populate ABOVE internal table with those details.
Thanks,
Naveen Inuganti.
‎2011 Mar 07 1:57 PM
Using 'messages into' option you can get the returned error messages. These messages can be returned
by the RFC also.
Thanks,
Aravind
‎2011 Mar 07 2:18 PM
‎2011 Mar 07 3:34 PM
Hello,
You can populate the BDC error messages in 'bdcmsgcoll' table. Next call 'ECOP_MESSAGE_READ' FM, pass the message id and message number obtained from 'bdcmsgcoll' table to get the proper message text.
Now you can handle messages in your application.
Regards,
Saba