Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Decimal separator for a batch input for XK15

Former Member
0 Likes
1,495

Hello,

I have a strange SM35 behaviour.

I have a batch input program that creates batch input directory for the XK15 transaction.

When i run my batch input i found that it works fine with the user decimal format with '.' but not with the ','.

I ve checked out and i've found that before running the batch the field KOND-KBETR is written respecting the user format, but when i run it as a forground program it displays the field with '.' separator.

Does anyone have a clue?

Thanks in advance.

Hello,

I have a strange SM35 behaviour.

I have a batch input program that creates batch input directory for the XK15 transaction.

When i run my batch input i found that it works fine with the user decimal format with '.' but not with the ','.

I ve checked out and i've found that before running the batch the field KOND-KBETR is written respecting the user format, but when i run it as a forground program it displays the field with '.' separator.

Does anyone have a clue?

Thanks in advance.

5 REPLIES 5
Read only

prasenjit_sharma
Active Contributor
0 Likes
1,030

you may try changing the user parameter for decimal notation.

Regards

Prasenjit

Read only

Former Member
0 Likes
1,030

This is related to the configuration of the decimal separator for the user.

The user who runs the online program, is the same with which you scheduled the job?

try using the following code:


  SELECT SINGLE dcpfm
                    INTO usr01-dcpfm
                  FROM usr01
                WHERE bname EQ sy-uname.
      IF usr01-dcpfm EQ 'X'.
        REPLACE '.' WITH ',' INTO numericfield. " or vice versa
      ENDIF.

Good luck, Hernan

www.hernangn.com.ar

Read only

Former Member
0 Likes
1,030

Hi,

I've already tried those issues.

I can't change the user format beacuse my users are from different countries that have different decimal seprators.

The Sample code can not help beacuse the batch input is correct when i saw the values in the screen befor processing the batch i found that the data are displayed according to the user preferences.

It is only after launching the batch with the SM35 when i discovered that the KBETR field is always displayed with '.'.

Thanks.

Read only

0 Likes
1,030

did you thought about restarting session after modifying user parameters ?

Read only

0 Likes
1,030

Hi,

After you load the data into your system, you may update the ',' with '.'. Use replace ',' with '.'.

Regards

Prasenjit