on 08-17-2015 11:34 AM
Hi all,
I need to calculate the difference in days between two timestamps.
These timestamps are from table GRFNMWRTINST and are appearing as 'Number' data elements instead of 'Timepoint' data elements in BRF+.
So, when I try to use the function DT_DURATION_DIFF_INT_DAYS, I get the following error message:
"Incorrect parameter type Number supplied for function DT_DURATION_DIFF_INT_DAYS, expected type timepoint.
Is there a function to convert number to timepoint ? (I couldn't find a suitable one.) If not, what is the simplest way to calculate the difference in days between the two timestamps.
Hi,
there is not function to transfer a number to a timepoint. You have several options to overcome that issue:
Unfortunatly no direct way to achieve your goal (at least none I know).
BR
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
thanks for reply.
When i choose "Show" Documentation for STRING_TO_TIMEPOINT in BRF+ workbench I get the error :
"SAPScript documentation is not available for this object"
No documentation to display"
And having trouble with DT_SET_PART_* as it requires input in timepoint format and it doesn't seem to be accepting a manually keyed in timepoint to begin with even if it is in the format specified in the documenation. So can't proceed to picking out the corresponding part from the number..
Hi,
concnerning the error when opening the help -> you have to get in touch with your SAP basis team, as this indicates that something is not installed that should be installed or you are missing a note
I attached the help as a screenshot
Concerning the usage of the formula functions you have to do it as Anindya states, nevertheless you have to import a string and not a number.
As mentioned in my first answer: Is the option to transform the data before calling BRFplus not feasible for you?
BR
Christian
Footnote update for the benefit of future readers with similar requirement:
I was not aware of this function STRING_TO_TIMEPOINT as it was not appearing in my list of functions in the BRF+ workbench.
Had to get an OSS note installed for this to be available.
Note 1965274: BRF+ : Downport of formula functionals
Symptom
Within the formula expression the functiona string_to_amount, string_to_quantity and string_to_timepoint are missing.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.