on 05-24-2007 8:46 PM
hi,
I have two date characteristics in a lead column ( date from and date to), I have a key figure ( KF1) that needs be a formula ( date to - date from ) in order to obtain the days between them.
This formula is a visualbasic code with sapafterdataput macro.
When I put the data in the dates format dd/mm/yyyy, with this format my formula ( date to - date from ) works fine. But when I save the field changes and it is not recognized like date and my formula fault showing #VALUE.
I need some solution, with fox formula I don't found how can I obtain days between two dates.
I would appreciate your help.
regards,
victoria
Hi,
If you create a FOX Formula wherein you create a local variable of type integer and assign the value to the variable by directly subtracting the two dates, wont you have what you want?
Example:
Function Type Formula;
Characteristics to be changed : Dateto, Datefrom.
DATA ZDAYS TYPE I.
DATA ZDT TYPE DATETO.
DATA ZDF TYPE DATEFROM.
ZDT = OBJV().
ZDF = OBJV().
ZDAYS = ZDT-ZDF.
{KF,ZDT,ZDF} = ZDAYS.
Regards
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the Query definition, choose the Row - Budget Item. In the properties, go to Tab - Extended. Here, under Filter Selection for Query execution, select "Values in Master Data Table". Save. Now you should be able to get all materials during the drop-down!
Regards
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.