cancel
Showing results for 
Search instead for 
Did you mean: 

The argument 'USD' cannot be interpreted as a number

Former Member
0 Kudos

The following error is occurring in the Transformation between 0SRCF_D2 and 0SR_C01.

An error occurred while executing a transformation rule:

The exact error message is:

The argument 'USD' cannot be interpreted as a number

The error was triggered at the following point in the program:

GP4EZWTT4UPVTXHIHSKDL1CU66B 1829

I debugged and found the following Standard SAP ABAP below is failing ( please see below starting with Rule ID: '5' ). R5-_1_1 is an amount field and should be set to SR_CFVOC, not ORDER_CURR. I_SCUR export parameter should be set to <_ys_SC_1>-ORDER_CURR.

*<<< Rule ID: '5'.

IF lssupp-_5 EQ rs_c_false.

currrule-ruleid = '5'.

  • Step ID: '1', Type: 'DIRECT'.

currrule-stepid = '1'.

R5-_1_1 = <_ys_SC_1>-ORDER_CURR.

  • Step ID: '3', Type: 'CURRENCY'.

currrule-stepid = '3'.

in_cur = R5-_1_1.

time_vl_cur = <_ys_SC_1>-CALDAY.

call method lr_msg_coll->remove_messages.

CALL FUNCTION 'RSW_CURRENCY_TRANSLATION'

EXPORTING

i_cttnm = '0SR_DEFCUR'

i_amount = in_cur

I_SCUR = <_ys_SC_1>-SR_CFVOC

I_TIME_IOBJVL = time_vl_cur

ir_msg = lr_msg_coll

I_MSG_TYPES = 'E'

IMPORTING

E_AMOUNT = out_cur

e_tcur = R5-_3_2

EXCEPTIONS

SCUR_NOT_FOUND = 1

TCUR_NOT_FOUND = 2

DATE_NOT_FOUND = 3

CTT_NOT_FOUND = 4

SCUR_CONFLICT = 5

TCUR_CONFLICT = 6

DATE_CONFLICT = 7

INVALID_SCUR = 8

INVALID_TCUR = 9

RATE_NOT_FOUND = 10

X_MESSAGE = 11

INHERITED_ERROR = 12.

Has anyone else seen this issue? Or have a resolution?

Accepted Solutions (0)

Answers (4)

Answers (4)

sunny_bhatia2
Associate
Associate
0 Kudos

The argument '     13:57' cannot be interpreted as a number

I am getting this error. Can anybody help me. I am trying to use a conversion exit for time. In the backend the time is stored as 1357 and I am using the conversion exit to convert this into 13:57 and getting the above error.

former_member189599
Participant
0 Kudos

Hi Erin!

i have the same error and i solved it with the following steps.

1° delete the rule

2° Activate the transformation

3° create the rule manually

4° in the section "Source Fields of Rule:" assign "infoObjet Assignment " like the picture.

5° Activate the transformation

mansi_dandavate
Active Contributor
0 Kudos

Hi,

The error is coming because of the following line...

i_amount = in_cur

You need to pass amount field here and you have passed currency.... and so its throwing error that it cant interprete USD as a number...

Former Member
0 Kudos

Change the particular field type into CHAR. This error will not appear