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

BDC_INSERT Problem

Former Member
0 Likes
1,487

Hi All,

I have a problem with the BDC_Insert function module.

Present situation -- it is not reporting any error i.e. sy-subrc is always zero when I run the function module. But when I debug the BDC program screen by screen it gives an error.

How to catch errors,through the BDC_Insert function module when there is an error in the input data.

I am using the transaction fb01 in my bdc program for posting.

Thanks

Ravi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,073

Hi,

BDC_INSERT will not give any error messages..it creates the BDC Session in SM35 tcode. when you execute the session you will find the errors in the input data.

If you want to know the error records try will CALL TRANSACTION Statement instead of BDC_INSERT FM. It will return the Messages ad sy-subrc if failed.

5 REPLIES 5
Read only

Former Member
0 Likes
1,074

Hi,

BDC_INSERT will not give any error messages..it creates the BDC Session in SM35 tcode. when you execute the session you will find the errors in the input data.

If you want to know the error records try will CALL TRANSACTION Statement instead of BDC_INSERT FM. It will return the Messages ad sy-subrc if failed.

Read only

0 Likes
1,073

Hi Avinash,

Thanks for the quick reply. By using the CALL TRANSACTION can we record all the recordings which I collected in the internal table.

Thanks

Ravi

Read only

0 Likes
1,073

This message was moderated.

Read only

0 Likes
1,073

Thanks a lot Anivash. It helped me a lot by using CALL Transaction code.

Ravi

Read only

Former Member
0 Likes
1,073

Hi ravi,

you need to create a table like "messtab'' to capture the errors. in loop we have to mention that capture errors.

ty