SAP BDC Error Handling: Fix Your SM35 Session (Step-by-Step)

SAP BDC error handling showing a failed session in SM35.

Blog 3: Break It on Purpose & Read the Error Logs

Welcome to the final part of our BDC series! Your Session is currently sitting in SM35. Most tutorials will tell you to just click “Process.” We are going to do the opposite. We are going to deliberately break our data, watch it fail, and learn how to fix it.

In the real world, data is never perfect. Files have missing fields, typos, or bad formats. BDC is fragile, and knowing how to troubleshoot errors is the most valuable skill you can learn.

Step 1: Create a Guaranteed Error

We need to make the system reject our data. The easiest way to do this is to remove a mandatory field.

Do this:

Step 2: Run the Code and Watch it Fail

Because we deleted the description, the system will try to create a material with no name. SAP won’t allow that.

Do this:

You will see a screen pop up showing the BDC process. One record will succeed, and the other will fail because of missing data.

Look at SM35 now. You will see that your session has errors. The status column will show a Red icon or a number under the “Errors” column. You just broke it!
👀 Visual Check: On your SM35 screen, look at the row for your session. Do you see a red circle or an error count in the columns? If yes, you are on the right track.

Step 3: Read the Error Log

How do you know what went wrong? You read the log.

Do this:

A window will pop up showing you the exact error message. It will look something like this: “Field XYZ is required” or “Please enter a description.”

👀 Visual Check: A pop-up window should appear showing the log. Read the message carefully. It will specifically tell you which field in the material master is missing.
Your Check: Did you see the error message? Good. That message is your roadmap. It tells you exactly which field in your text file is missing or wrong.

Step 4: Fix It and Turn It Green

Now we fix the problem like a pro.

Do this:
Final Check: Go to transaction MM03 (Display Material). Type in ZTEST-001. If the material exists, you have successfully uploaded data into SAP using BDC!

Revision: The Golden Rule of BDC

Click the questions below to check your understanding.

Why is BDC considered “fragile”?
BDC depends on the screen layout. If SAP does an upgrade and moves a field, or changes a screen name, your BDC recording will break. It will try to type into a field that no longer exists.
When should you NOT use BDC?
If a BAPI (Business API) exists for what you are trying to do, use the BAPI! BAPI is much safer, faster, and doesn’t rely on screen layout. BDC should only be used when there is absolutely no other way to upload the data.
🎮 Final Quiz: Where do you go to fix an error in a Session?

Congratulations! 🎉

You have completed the BDC Masterclass! You went from recording a single click to uploading a file, creating a session, intentionally breaking it, reading the error log, and fixing the data.

You now understand how SAP handles batch data more than most beginners. Keep practicing, and try recording other transactions like XK01 (Vendor) or FB60 (Invoice).

WhatsApp WhatsApp us
Call Now Button