First, we’ll take a deep dive into dynamic programming in our article. While addressing this issue, I will go through an example that would be very useful for us. We will be comparing each data which belongs to different specific systems. In this way, there will be advantages to us as follows.

  • Analyzing the differences in the received data after changes in 3rd party systems sending data to our systems.
  • Analyzing the different behaviors of specific systems despite the codes are the same (by checking the customizing tables)
  • Periodically scanning the data stored in customizing tables of specific systems to make sure that they are the same.

Dynamic Internal Table

Let’s take a look at our application.

First of all, we will give the name of table as the selection parameter as below.

Second, the field information of the table is obtained.

Then, internal table variables belonging to the relevant table are created.

Data is taken from the table as follows and the data is transferred to the internal table we created above. If we want, we can dynamically give the selection conditions by giving the relevant fields and values to our lt_conditions_current internal table.

Now we dynamically pull our data from the target system.

RFC is created in the target system as follows, and we write our dynamic query in it and get the result as XML.

Each record in the current system and each field belonging to these records are checked one by one.


If our application cannot find data in the target system, it will return as follows.

It shows the different values between the current system and the target system as follows.

In addition, if data cannot be found in the target system for the relevant record in the current system, the following warning is shown.

Source code of the sample application:

Sercan Demirtağ

SAP Technical Project Manager



Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir