The following texts were partially or completely generated with the help of generative AI models.
A few new parameters have crept into the interface of AMDP routines for BW transformations. This is generally to be welcomed, since the "old" ABAP world provided considerably more information within the routines. However, the new parameters are still only of limited use.
So far I haven't been able to figure out since when the new parameters have been available. I'd be grateful for any hints on this. Unfortunately, I couldn't find anything about it in the release notes of SAP BW/4HANA. In systems with SP06, however, they are definitely available.
The New Ones
The following scalar IN parameters will be available in transformation routines going forward. They roughly correspond to the information you know from the request object in ABAP.
| Parameter | Description |
|---|---|
| I_REQ_DTP_NAME | Technical DTP name |
| I_REQ_LOGSYS | Name of the logical source system |
| I_REQ_SRC_NAME | Source object of the transformation |
| I_REQ_SRC_TYPE | Type of the source object |
| I_REQ_TGT_NAME | Target object of the transformation |
| I_REQ_TGT_TYPE | Type of the target object |
| I_REQ_REQUID | Request ID |
What Can You Do With Them?
In ABAP I used this information to dynamically select a suitable class for processing the transformation. This, however, is not possible in the AMDP routines of the transformations. The reason for this is the "READ ONLY" property of the procedures. It means that the use of dynamic code is not allowed.
[Addendum, 19 July 2019] A static branch is possible, however. That is, within an IF/ELSE, different code could be executed depending on the source, or the source or target could be queried in the condition of a CASE expression in order to return a different value or a different calculation.
That leaves only writing the information into the OUTTAB or using it for selecting data. However, I can't imagine where that would be useful. If you have any ideas, please leave a comment here.
Even though I doubt the usefulness of the new parameters, I have nevertheless dedicated a short blog post to them. On the one hand, this is because so far (as of 26 October 2018, 5:08 pm) I couldn't find any information about them on Google. Neither in blogs, nor in the release notes or the SAP documentation. On the other hand, this information is of course also relevant for the next edition of my book.



