‎2009 Jun 10 3:00 PM
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
‎2009 Jun 10 3:13 PM
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.
‎2009 Jun 10 3:13 PM
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.
‎2009 Jun 10 3:20 PM
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
‎2009 Jun 10 3:24 PM
‎2009 Jun 10 4:11 PM
Thanks a lot Anivash. It helped me a lot by using CALL Transaction code.
Ravi
‎2009 Jun 10 4:25 PM
Hi ravi,
you need to create a table like "messtab'' to capture the errors. in loop we have to mention that capture errors.
ty