on ‎2017 Sep 21 11:53 PM
Hello,
I have two dates (Date format) Invoice date and Posting date.POSTDT, INVCDT
I have a logic to update if the Invoice date is null then update posting date else Invoice date and if both the dates are null then *Str(No_Date)
here is my transformation -
TIME=*IF(POSTDT+INVCDT=POSTDT THEN POSTDT;POSTDT+INVCDT=*STR() THEN *STR(NO_DATE);INVCDT)
I get reject records - TIME= 00000000
So i update the transformation as below -
TIME=*IF(POSTDT+INVCDT=POSTDT THEN POSTDT;POSTDT+INVCDT=*STR(00000000) THEN *STR(NO_DATE);INVCDT)
Still i get reject records as TIME = 00000000
so kinda lost ... anything missing?
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Then the correct string will be (slightly corrected version of Lucas answer):
TIME=*IF(ZINVOCEDT+ZF_DPOST=*STR(0000000000000000) THEN *STR(NO_DATE);ZINVOCEDT=*STR(00000000) THEN ZF_DPOST;ZINVOCEDT)
ZINVOCEDT can be 00000000 or correct time value
ZF_DPOST can be 00000000 or correct time value
By the way it's a bad idea to have NO_DATE member in TIME dimension (if you don't have 3 level hierarchy for this member)
P.S. Absolutely strange conversion file! Why not to use single line JavaScript conversion instead of long table?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When importing use external option to remove leading zero's from ID's.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, give it a try to the statement below:
TIME=*IF(INVCDT+POSTDT=*STR(00000000) THEN *STR(NO_DATE);INVCDT=*STR(00000000) THEN POSTDT;INVCDT)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like you are loading data from text file.
Please show file sample in notepad! And show full transformation file.
P.S. also please provide your BPC and BW version and SP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This + sign will not sum up the dates. The transformation actually does a string operation. So you're basically concatenating the dates in there.
This kind of transformation would be better of in BW.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.