Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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?

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question