Skip to Content
avatar image
Former Member

The argument 'USD' cannot be interpreted as a number

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Sep 07, 2009 at 08:28 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 07, 2009 at 08:40 AM

    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...

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 15, 2012 at 09:30 PM

    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


    regla_0sr_cfvdc.jpg (138.3 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Aug 13, 2013 at 06:09 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded