In SAP, SM35 is a standard transaction code used to work with Batch Input Sessions. If you have incorrect entries in a session created via Batch Input (for example, from a faulty data import), you can delete or correct those entries using SM35.
However, SM35 itself does not provide a direct "delete all" button for session entries. You need to follow certain steps to delete incorrect entries. Below are the standard methods:
✅ Option 1: Delete the Entire Session (if it's entirely incorrect)
If the entire batch input session contains incorrect data and you don't want to process it at all, you can delete the session.
Steps:
- Execute T-code SM35.
- Enter the session name and click on Change (or Display).
- From the menu bar, go to:
⚠️ This will completely remove the session and all its requests from the system.
✅ Option 2: Manually Edit or Delete Individual Entries (SAP Standard)
There is no out-of-the-box single-click delete option for individual entries in SM35. However, you can do the following:
Steps:
- Open SM35, display the session.
- Click on the "Overview" tab or "Process" to see the input data.
- To edit or delete entries, you must:
- Copy the session into an ABAP program using System → Utilities → Batch Input → Generate Program.
- Then modify the generated program to skip or delete specific entries.
- Or, manually correct the source data and reprocess the session.
⚠️ Important: Direct deletion of individual records in a session is not supported in SM35 due to how batch input sessions are structured.
✅ Option 3: Use ST22 or SLG1 to Analyze Errors (Optional)
If the session failed due to dumps or short dumps, you can analyze the error using:
- ST22 – Dump Analysis
- SLG1 – Application Log
This helps identify what caused incorrect entries and whether they were posted or not.
✅ Alternative Standard Program Approach
SAP does not deliver a single standard program to delete incorrect batch input session entries directly. But you can:
Use Program: RSBDCOS0 (for deleting processed sessions/posts)
- It's used to reset processed sessions (only if they were not posted).
- Use with caution, as this can have side effects.
❗ Before using RSBDCOS0, check with your Basis team and ensure no postings were made from the session.
✅ Best Practice: Recreate the Session Correctly
If the session is invalid:
- Identify the source of the batch input (LSMW, BAPI, IDoc, etc.)
- Correct the source data.
- Regenerate and execute a new session.
Summary Table
| Task | Possible Tool / Method |
|---|
| Delete entire session | SM35 → Session → Delete |
| Edit/delete individual entries | Not directly possible |
| Generate editable program | SM35 → Utilities → Generate |
| Analyze session failure | ST22, SLG1 |
| Reset processed session (caution) | RSBDCOS0 |
If you're trying to delete entries from a specific table created by the batch input, you may need to directly delete them using SE16/SE16N (after confirming they are test or incorrect data), but this should be done very carefully.
Would you like help generating a custom ABAP report to clean up incorrect BI session data?