Search code examples
sap-commerce-cloudimpex

Double digit format in impex


I created an impex similitar to this:

INSERT_UPDATE Unit;code[unique=true];type(code)[default='TEST', unique=true] ;conversion;
                  ; a                ;; 0,001
                  ; b                ;; 0,001
                  ; c                ;; 1
                  ; d                ;; 1
                  ; e                ;; 1000

It works just fine on my local. But in another test enviroment the comma is not working as a digit separator. What should I do to indicate in this impex that it should use comma as a digit separator?


Solution

  • It worked after I added to the impex header:

    #% impex.setLocale(Locale.ENGLISH);
    

    Like this:

    #% impex.setLocale(Locale.ENGLISH);
    INSERT_UPDATE Unit;code[unique=true];type(code)[default='TEST', unique=true] ;conversion;
                      ; a                ;; 0,001
                      ; b                ;; 0,001
                      ; c                ;; 1
                      ; d                ;; 1
                      ; e                ;; 1000