The SAP logical database includes the macro implicitly. How?

We are writing a tool in Java that parses and converts ABAP code. Therefore, we are not going to write new ABAP code, but our tool should handle all ABAP, even outdated statements. Also, I am not an ABAP expert.

One object that we see uses the begin_of_block macro, which is defined in the RFDBRMAC object. This includes loading when using the BRF logical database; using a different logical database, and also no logical database will load it at all. But neither its corresponding SAPDBBRF object nor its mention of RFDBRMAC . In particular, none of the former includes the latter.

How to assign a logical database BRF program, it includes RFDBRMAC ?

Demo program using the logical database BRF. Macro is known Demo program using the logical database BRF. Macro is known

Demo program using a different logical database. Unknown macro Demo program using a different logical database. Unknown macro

+6
source share
2 answers

In transaction SE36 , the logical database BRF displayed. Then press the "Elections" button (or Menu: Go to / Elections or Shift + F1). The included DBBRFSEL will be displayed, where the selection screen is defined for the logical database. At the bottom of this list you will find what you are looking for.

To summarize this for all logical databases, the selection screen is called DBxxxSEL where xxx is the name of the logical database and is automatically included in all programs that use this logical database.

+6
source

In addition to Jozsef's excellent answer, I can add that you can use table D010INC , which contains all the relationships between programs and includes.

enter image description here

Thus, it is very easy to find such programs programmatically.

+4
source

Source: https://habr.com/ru/post/1273551/


All Articles