on 07-29-2015 2:38 AM
Hi,
Currently we are working on NW BPC 10.0
I am trying to validate below transformation file, but I am getting error near length function.
Can anyone help me how to use length function or any other option.
Here ACCOUNT is coming from flatfile with value similarly like 123,it should be converted into AA_00000123 if length of ACCOUNT is equal to 3.
Thanks in Advance.
Regards
Anitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anitha,
I don't know how to achieve this through Transformation file, but i know you can do this through end routine.
In end routine you will get the list of data in one internal table, you can put your validation on "Account Length" and can achieve whatever you want.
To Achieve this, you need to implement UJD_ROUTINE Badi.
Regards
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anitha,
Where have you read that you can use something like LEN in transformation file???
And yes, the test can be performed in conversion using JavaScript:
js: (%external%.toString().length=3) ? "AA_00000" + %external%.toString() : "SOMETHING??"
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy,
ACCOUNT Id's coming from source are may be single digit or two digit or three digit or four digit number. But in destination it should be eight digit number padding with zeros and AA_.
(Ex: if source is 123 then destination should be AA_00000123,
if source is 7654 then destination should be AA_00007654,
if source is 567823 then destination should be AA_00567823).
With the help of Transformation and conversion files we have to achieve this.
I have tried using padding function in transformations, I can be able to add zeros but I couldn't be able to concatenate AA_.
May be we have to use start routine and end routine for this.
Anitha
User | Count |
---|---|
16 | |
4 | |
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.