on 08-26-2014 4:19 PM
Hello Experts,
I am trying to integrate the master data from BW to BPC. In the data I have unauthorised characters like *.
In conversion file I have inserted the following JS script
EXTERNAL | INTERNAL |
* | js:%external%.toString().replace(/*/g,'_').split('/').join('_') |
Still it is populating an error as
*IXXX IT MFG KLU MES,ZZORG,, is invalid in the transaction data
Regards,
Hi Mahesh,
Please read some JavaScript tutorial, especially about regular expressions!
To replace all '*' with '_' you neen the following code:
js:%external%.toString().replace(/\*/g ,'_'))
'*' is a special character, has to be entered as '\*'
I don't know if you have '/' characters, but you use split and join?
Also looks like your data contain spaces and commas...
B.R. Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vadim,
Yes . Other records also have space.
But the conversion file is not able to handle this record.. it gives the same error "is invalid in the transaction data".
I tried multiple Options:
1. * js:%external%.toString().replace(/\*/g,'_').replace(/\s/g,'_')
2. * js:%external%.toString().replace(/\*/g,'_')
3. *IXXX IT MFG KLU MES *SKIP
But None of this work. Even it is not able to skip the record? Is it because it starts with * and that is used as Wildcard.
User | Count |
---|---|
12 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
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.