on 10-20-2010 7:12 AM
Hi Folks,
I have below Query. Can you please suggest how do i solve below case.
My source system has 4 fileds A , B, C, D and the target system has 1 Filed TOTAL.
I have to concatenate all the 4 source fields by using slash(/) and placed in TOTAL target field.
i need output has A/B/C/D.
but here is my Query? if any one of the field is not present in source field i.e. if source B filed is empty then I have to print Output has A/C/D.
NOTE: there is no empty slashes for B.
Please help me on this issue.
Thanks,
Enivass
Hi,
You can do it using standard functions easily.
1) you have to check B exists in source file or not, check previos reply to hot to check.
2)If B exists then you have concatanate all four filed(use concat function and use constant to add /).
3)if b not exists concatenate 3 fields.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can implement it using, first using separator one blank space and then replacing it with slash '/'.
Try the below mapping:
A -->
Concat[ ] ---> trim --> concat[ ] --> trim > concat[ ]> trim --->replaceString --> TOTAL
B > C> D -->
For second input of replaceString, put '/] and third input as blank space[ ].
-Supriya.
Hi,
Use replaceString function, put 1st input as the output of final trim, 2nd input is blank space[ ] & 3rd input is slash '/'.
Refer the 'replaceSTring' functionality from the below link:
http://help.sap.com/saphelp_nwpi71/helpdata/EN/2c/2d8c4024d26e1de10000000a1550b0/content.htm
-Supriya.
You can use exist function for checking whether field exist or not.
If exist then perform concat otherwise skip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.