on 09-10-2009 10:41 AM
Hi all,
I am creating a foreign UK payment and the trailing spaces of each line need to be removed.
I have removed the trailing spaces by selecting field type 1 (Fields are separated by delimiter
) from the format attributes of the header.
However I also need to have a space present between the elements country and city.
This node should look like as follows.
country (field FPAYH-ZLAND) space city (field FPAYH-ZORT1) and also all the trailing spaces should be removed.
E.g.
DE Berlin <CR/LF>
and not
DEBerlin <CR/LF>
DE Berlin <CR/LF>
Thanks in advance,
Roger
Hi all,
let me answer the first question. I know that it is quite an old question, but it seems that it can be stil actual for somebody.
I think that if you use only one element CITYCOUNTRY with two atoms CITY and COUNTRY instead of two separate elements CITY and COUNTRY, it must work. Mapping Procedure for the CITYCOUNTRY element must be "Own Mapping (atoms)" and Atom Handling 02 (Concatenate values in element with spaces).
It works in both DMEE and DMEEX tools same way.
Best regards,
Antonin Kosulic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I had the same issue and I solved it in 3 steps -
1) In the 'DMEE Tree Properties', under Format Data, set the 'Field Value Positioning' to '1 Field are separated by delimeter'
2) Set the 'Delimeter' 'In Segments' to '|'.
3) Implement BADI 'DMEE_OUTPUT_POSTPROCESSING' and then while looping the Output_File_Lines, split each row at '|' and then concatenation using separated by space and then modify the content of Output_File_Lines with this changed content.
Another solution is, to truncate the space at the end, without doing setting at step 1, in the BADI implementation, change the length of the row to only the length of the content. I will remove trailing spaces and will keep the space in between the fields as well!
Thanks,
Prajakta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there,
You may want to try this option:
First step create New composite and state the description
Second step create element such as country, space with constant value, city.
I hope this will help you.
Cheers
Nathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Roger,
I was just wondering if you have managed to solve this problem. I have exactly the same issue, I would like to concatenate two fields: ZNME1 and ZNME2 and separate them by space but like in your case, format data field type 1 in header of tree is in use and it removes spaces between atoms.
Would be greatful if you could share your solution.
Best regards,
Monika
Hi Roger,
Try the below -
For the element giving city, manitain the length as 7 (takin berlin as an example) and in the target offset maintain 2. This will result in the city having 6 characters and the value will get populated from the 2nd place and leave the 1st as blank.
Please check and Revert.
Thanks and Regards,
Anit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anit,
I need to remove all trailing spaces for each element, and this can be done with setting Format data field type 1 in the header for the format attributes.
However this also results in removing the spaces in between the elements / atoms.
Therefore the conversion function does not work.
What I am looking for is a solution to inlcude a space while using the format data field type 1.
Or a solution to remove the trailing spaces for each individual segment or element.
Roger
I think, to add one trailing space between country code & city, you can assign the length of the element Country Code (field FPAYH-ZLAND) to be 3, instead of 2. And give the Conversion Function to be "CL" - Character String Left Justified.
This will add space at the end of Country Code.
Regards
Srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.