Skip to main content

All articles

SAP: If Where-used fails or you want to find a message - use ABAP Code Scanner

Submitted by Stefan Barsuhn on

In my previous post I complained about people not using the message statement to output error messages. But sometimes Where-used does indeed fail because it is not up-to-date.

A little known transaction (at least I hardly read about it) comes to help: CODE_SCANNER.

It allows you to input a package and a search string and will find you all lines of code that contain that string.

Tags

SAP: Best practice for SAP message output in non-SAP-GUI contexts

Submitted by Stefan Barsuhn on

Imagine you see an error message in WebUI or in some other interface. You manage to identify the message class and number, go to SE91, do a Where-used and find - nothing. The reason is that either Where-used was not updated correctly or (most likely) somebody did not both to use the message command to output the message but just hardcoded the message ID, number and type.

Tags

SAP: Refresh BAPI Buffers with BAPI_TRANSACTION_COMMIT

Submitted by Stefan Barsuhn on

When you're communicating with an external SAP system, you should use the released BAPIs if you can.

I don't use RFCs and BAPIs that often, so one thing that struck me today was that BAPIs don't refresh their buffer when you call them.

My expectation was: BAPIs are for external calls, so they should make sure you always get the most-up-to-date data and handle the buffer themselves.

I was wrong.

BAPIs will default to accessing the buffer, which makes sense performance-wise.

Tags

C4C: Reusing COD_SALESORDER_EC.EC.uicomponent (Customer's Related Sales Orders)

Submitted by Stefan Barsuhn on

In case you were looking to include a new tab in a business object that displays related sales orders for a customer, you might have stumbled across the standard screen /BYD_COD/SalesOnDemand/SalesOrder/UI/COD_SALESORDER_EC.EC.uicomponent.

The problem with this screen was that the "RequestFireOnInitialization" flag was set to false - the standard would fire the inport from the customer screen, so didn't need this setting.

I've raised an incident regarding this and with the latest C4C hotfix (1911.03) SAP have set the above mentioned flag to true.

Tags