Skip to main content

UFFE - Preserve Whitespace

Answered

Comments

3 comments

  • Official comment
    Thomas

    Hi Alex,

    The problem here is that SDK trims the data. Please test it like this if you can get it working:

    Example: Make CardCode with spaces so it is always 30 chars

    SELECT TOP 10 RIGHT(space(30) + CardCode, 30) AS CardCodeWithSpaces FROM OCRD

    And then test it with the UFFE.

    If it doesn't work, you can do this through C# source by using PadLeft and PadRight methods.

    Thanks,

    Thomas

     

  • Alex MacDonald

    Hey Thomas,

     

    Thanks for the reply.

     

    I am padding out the space in SQL but it still removes the whitespace.  In the end i encased all data in speech marks and then wrote a custom script to remove only the speech marks before sending on the file.

     

    I did try in the handle as C# to put my code in here to remove the speechmarks but it wouldn't work.

     

    In almost all situations it's beneficial to trim whitespace though so thanks for putting this in place.

     

    Thanks

     

    Alex

  • Rafael Oliveira

    Thomas,

    I have a bank file that I need to generate with blank spaces in it.

    I tried to use the RPAD function in HANA and the result includes the spaces that I need.

    But when I export the file with UFFE the spaces, in the end, are removed.

    Any idea on how to keep the spaces in the file?

     

    Thanks,

     

    Rafael

Please sign in to leave a comment.