cancel
Showing results for 
Search instead for 
Did you mean: 

APO macro function for current TIME (similar to TODAY function) ?

thomas_schulze2
Active Participant
0 Kudos

Hello experts,

we want to use macros in DP/SNP to store a time stamp of an activity. There is a macro function called TODAY available in the official function library (SCM-APO EHP4 - macro builder - Date functions) but I have never seen something like SY-TIME or TIME etc. Before we develop a custom function for this - is anyone aware of such a macro function in the SAP standard ? I tried a little bit in the macro builder with "SY-TIME" or "SYS-TIME" etc. but the ABAP compiler keeps complaining about such field not existing ...

Regards

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Dear Thomas,

there is no macro function for time stamps. Day is agin the smallest entity for APO DP and SNP. Package /SAPAPO/ADV (se80) shows the available macro functions in function groups /SAPAPO/ADV_GENER to /SAPAPO/ADV_GENER3: those are the function which are allowed and can be copiled within the macro builder <-- there is nothing related to time stamps.

As you suggested already: a user function macro or BAdI macro should be the preferred option to get time stamp field within your own coding.

Good luck, Nico

Answers (0)