SAPBR Technologies home

SAP in Brazil, explained

ANST – Automated Note Search Tool

My last few posts were about OSS Notes, so here’s one more before I change subject. This one is based on SAP Note 1818192 – FAQ: Automated Note Search Tool. The content comes from SAP, not from me.

I didn’t know transaction ANST (Automated Note Search Tool). SAP seems to have released it around 2013. It looks very handy, yet most people I’ve asked had never heard of it.

What it does

ANST helps you find the right fix for an issue quickly. You tell it which program or transaction to run and reproduce the issue. ANST records a trace of every ABAP object executed, grouped by SAP application component. From the trace you can:

  • Search for SAP Notes
  • Find custom code involved in the issue
  • Find missing customizing entries
  • Get a list of ABAP objects to start debugging from

So it’s more than a note search. It takes you down to the object and code level.

Three steps

1. Reproduce the issue. Start transaction ANST (or ANST_SEARCH_TOOL), pick the option that fits, and run it (F8) to reproduce the problem. When you’re done, go back to ANST with the Back button. The options you see depend on the components installed.

SAP screen: Three steps

2. Review the trace. ANST generates a trace grouped by application component. Select one or more components to search notes, or use the toolbar buttons Note Search, Customer Code and Customizing Tables.

SAP screen: Three steps

3. Pick a note. ANST lists the most relevant SAP Notes for the components you selected. Choose the right one and implement it. You can display or download the note from here.

SAP screen: Three steps

Initial screen

The initial screen, where you start the trace, has eight options:

SAP screen: Initial screen
  1. Execute: starts reproducing the issue with the inputs given.
  2. Application documentation: more on ANST and how to search notes.
  3. Open trace: opens a saved trace. If you don’t know the selection values, leave them empty and execute.
SAP screen: Initial screen
  1. Object customizing: choose which object types to use in the note search. Only those types show in the trace, which helps when reproducing the issue involves many steps and objects.
SAP screen: Initial screen
  1. Settings: general preferences and technical parameters.
SAP screen: Initial screen
SettingWhat it does
DateNotes released before this date are ignored.
ALV on ResShows results in an ALV. Uncheck it if you don’t want to download notes from here, and results show read-only.
Max SizeNumber of objects sent per block in the note search, for performance. Keep it below 800.
RFC DestinationThe RFC destination used for the note search.
Custom object checkboxesWhich custom objects ANST looks for in the trace for Customer Code: BAdIs (including explicit enhancements), repaired objects, field exits, user exits, transaction variants and BTEs (business transaction events).
Max ObjectsMaximum objects you can select for a note search, also shown next to each component in the trace. Go over it and you get an error. Select fewer objects or components and try again.
  1. Delete trace: select the traces to delete and confirm. They’re deleted permanently.
SAP screen: Initial screen
  1. Trace on/off: start and stop tracing at any point, not only from the start of the reproduction. It works for SAP GUI and web applications, but only for the same user who started the trace in ANST. More here: ANST: start and stop the trace whenever you want
  2. Save trace: saves the trace for later, with a description. It’s saved automatically during reproduction and after the trace is generated, so you don’t have to reproduce the issue again.

Trace screen

After you reproduce the issue, the trace screen shows:

SAP screen: Trace screen
  1. Toolbar: expand, collapse, select and deselect sub-trees, search the whole trace, change the layout and print.
  2. Note Search: searches SAP Notes for the components or objects you selected and lists the most relevant ones. If nothing is selected, you get a message.
  3. Customer Code: when the issue comes from custom code, not SAP standard, no note will fix it. This lists the custom code and objects in the whole trace, regardless of selection.
  4. Customizing Tables: lists the customizing tables in the whole trace, grouped by component, for issues caused by missing or wrong entries. Also independent of selection.
  5. Application component sub-tree: the trace grouped by component, with the number of objects in brackets.
  6. Object leaf node: each object’s type, name, last changed date, package and software component.

Result screens

Note search result. All SAP Notes relevant to your problem, with the standard ALV toolbar to sort, filter and search.

SAP screen: Result screens
ColumnMeaning
Download noteDouble-click to download the note. You then go to SNOTE.
StatusThe note’s status in this system (available, implemented and so on).
PriorityThe note priority, as in the note header.
Note numberOpens the note in an external browser.
Application areaThe application component the note was released for.
Note titleThe note’s short text.

Customer code result. All custom objects and repaired objects (SAP standard objects changed by the customer), with the standard ALV toolbar.

SAP screen: Result screens
ColumnMeaning
Object typeFor example class method, function module, class definition.
Object nameThe object’s name.
PackageThe package (development class) the object belongs to.
ComponentThe software component of the package.
TypeThe ANST custom code type, as in the Settings custom object checkboxes.

Customizing tables result. The customizing tables involved in the reproduction, grouped by application component.

SAP screen: Result screens
ColumnMeaning
Application componentThe component the tables are grouped by.
Table nameThe customizing table.
Object dateLast changed date.
DescriptionThe table’s short description.
PackageThe package the table belongs to.
ComponentThe software component of the package.

Points to remember

  • The note search uses the objects in the trace, so it works best with fewer objects. Reproduce the issue in as few steps as possible.
  • The search uses the RFC destination in Settings. Make sure RFC destination SAPSNOTE exists in SM59 and points to the SAP support system.
  • Always read a note before implementing it, to confirm it matches your problem.
  • First time using it and you get “Fatal Error. Customizing table is not filled.”? See SAP Note 1909768.
  • Using it for a web application and you get “Web trace cancelled by the user.”? See SAP Note 1885730. If the error persists, open a ticket.
  • If no note solves the issue, report it to SAP support on component PB-UPG-NA.

Comments

2 responses to “ANST – Automated Note Search Tool”

  1. Carlos Martinez Escribano Avatar
    Carlos Martinez Escribano

    Excellent article. Thank you!!!

    Like

  2. NFe Cancellation by Event not finished in ERP – SAP Blog, SAP BRAZIL, ECC, S/4HANA and more… Avatar

    […] To understand the cancellation process better, read on. Also, always search SAP Notes using the objects involved (function modules, tables, structures) or SAP’s automated tools such as ANST (Automated Note Search Tool). […]

    Like

Leave a Reply