cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion of currency on ui

Former Member
0 Kudos

Hi

We have currecy field on ui ,data will be saved to the ECC from Java webdynpro screen to the RFC .While entering curency on ui like 99990, 00 ,it goes to the backend because of ECC data type 9.9990,00 and it is saving like this.While displaying the data it is being dispalyed on ui in currency like 9.9990,00.But here issue is acoording to client requirement we need to dispaly the value on ui what ever we entered on ui like 99990, 00 .But here i think if we change the ECC currency data type in rfc we can handle this .But if we change the data type it is a big impact on the process .So what is the solution for this .How can we achieve this.

Regards

Venkateshwar

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Retrive the currency from ECC (9.9990,00 ) but before displaying it in UI you explicity write code to remove dot and display in UI like this 99990, 00.

write this code before displaying,

retrive currecy and put it in one String variable,

String currency = wdContext.................................retrive currency from ECC

String curr[]=name.split(".");

String cc = curr[0]+curr[1]:

Print "cc" you will get correct output.

Regards,

Sunaina Reddy T

ashutosh_rastogi
Active Contributor
0 Kudos

Just for the display purpose you can use calculated attribute. Hope that helps.

Ashutosh

Former Member
0 Kudos

HI ,

Retrieve the currency type along with the data ..it can be handled using the logical statements