Welcome!
By Felipe Lamounier, state of Minas Gerais, Brazil – powered by 🙂My Easy B.I.
Let’s see how to put a TIMESTAMP field in a transformation in BW via ABAP routine.
Use the InfoObject 0H_TIMESTMP:

In the Transformation, create a routine for the TIMESTAMP field of InfoObject 0H_TIMESTMP, as per the ABAP code below:
* Variable
data: lv_timestamp type tzonref-tstamps.
* Timestamp
get time stamp field lv_timestamp.
* Timestamp InfoObjeto
RESULT = lv_timestamp.
Code Explanation:
data: lv_timestamp type tzonref-tstamps.
This line declares a variable called lv_timestamp of type tzonref-tstamps. The type tzonref-tstamps is used to store timestamps with timezone information.
get time stamp field lv_timestamp.
This line gets the current timestamp from the system and stores it in the variable lv_timestamp.
RESULT = lv_timestamp
This line sets the field RESULT to the contents of the variable lv_timestamp. This means that the field RESULT will contain the current timestamp from the system, including timezone information

Feel free to leave any questions, suggestions, or comments in the comments section below, at the end of the page.
Keywords: Campo TIMESTAMP no SAP BW; TIMESTAMP in SAP BW routine; Implementing TIMESTAMP in SAP BW Transformations: A Step-by-Step Guide; How to Add TIMESTAMP Fields in SAP BW Using ABAP Routines; SAP BW TIMESTAMP; ABAP TIMESTAMP routine; how to insert TIMESTAMP in SAP BW transformation; using TIMESTAMP in SAP BW ABAP routines; step-by-step TIMESTAMP insertion in SAP BW
Did you like the content? Want to get more tips? Subscribe ↗ for free!
🔭See Also:

Want to learn more? Access our area 🎓🚀Training&Education↗
Follow on social media:


