Application Development 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: 

SAP-ECCS Catch errors while doing BDC.

Former Member
0 Kudos

Hi,

I have recorded the transaction CX1S2 (Upload Subitems) in SAP-ECCS Module. It uses file in application server to upload subitems. While uploading it asks for request which is used to transportation.

I have written RFC function module to trigger this transaction and upload the files. I have used Call Transaction with Synchronous update.

My problem is if file has any errors its not throwing any errors back to me in BDCMSGCOLL internal table. Rather it generates one report with all the erroneous records.

Can anyone suggest me how to know whether transaction has any errors and how to catch them.

Thanks in Advance,

P.Shridhar.

4 REPLIES 4

former_member188685
Active Contributor
0 Kudos

Hi Shridhar,

Did you check the BDCMSGCOLL table for error messages.

loop at it_msg where msgtyp = 'E'.

endloop.

Regards

vijay

0 Kudos

Hi Vijay,

Thanks for your reply.

I am doing the same but my internal table is not having any error messages. Because it is executing the transaction successfully but due to invalid data its not creating that master data.

Thanks,

P.Shridhar.

0 Kudos

hi,

are you using any standard bdc include, i mean are you using any standard code from recording. because of that it is directly handling the error data, and giving the report.

regards

vijay

0 Kudos

Hi,

If your Transaction is processed successfully then your sy-subrc = 0. Here your MSG table will not get any messages coz no error.

your msg table will catch only error's and information messages only.

you need to take care like some thing hard coding.

******************

Call Transaction............

If Sy-subrc = 0.

if MSGTABLE[] IS INITIAL.

***Give your own msg like 'Saved Successfully'.

endif.

else.

loop at msgtable.

Here error msg will come.

endloop.

endif.

Some thing like this you have to manage.

Thanks.

If this helps you reward with points.