cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow Task Description field conversion

Former Member
0 Likes
959

Hello everyone,

I have strange problem here with my workflow.

We have workflow for approving incoming invoices. We extend standard BO BUS2081 and create new one ZBUS2081.

In ZBUS2081 we create new Database Field based on field RBKP-RMWWR.

Everything working fine until we extend this workflow for country like Chile - They don't allow to have decimal places in field Gross Invoice Amount, and right now when they insert amount for example : 4 890 CLP it is stored in table RBKP as 48,90 and this value is displayed in all notification from workflow.

Workflow Notification definition and displayed text

Is it possible somehow to convert this value to proper format before sending email in user decision step ?

View Entire Topic
SandySingh
Active Contributor
0 Likes

hi

you can create a container element and use a background step to change the currency format using following FM


CONVERT_AMOUNT_TO_CURRENCY

CALL FUNCTION 'CONVERT_AMOUNT_TO_CURRENCY'      EXPORTING           date             = sy-datum           foreign_currency = 'USD'           foreign_amount   = '2000.00'           local_currency   = 'EUR'      IMPORTING           local_amount     = amount.

you can write the current amount in required format to a 18 character field and use this character field in task description

Regards

sandy

Message was edited by: Sandy !

Former Member
0 Likes

Hello Sandy,

Thank you for quick answer.

I just want to confirm that your solution helps me to fix this issue.