cancel
Showing results for 
Search instead for 
Did you mean: 

country name and region name in smartform

Former Member
0 Kudos

hi friends

1. In smart forms I want to display country name and region name in template text .

can any one help me how could I write code for it and the procedure.

2. IN scripts komk-fwkrt = '1.00.200,32'.

but it should be displayed as 1,00,200.32

how should I make changes for this field?

thanks and regards

deepika.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi deepika,

For your first question, I happened to have written similiar codes recently.

If you have the country code and region code, you can read the country name from table T005 and region name from T005s.

You can create a new routine for this and call it from Initialization.

Hope this helps.

Shane

Edited by: Shane Chen on Jul 15, 2009 10:35 AM

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi

Change the setting in SYSTEM--->USER PRofile -


>OWN DATA ... DEFAULTS TAB

Change the Decimal Notation to 1,234,567.89

and Save the settings and re-login to see the changes.

surya reddy

former_member585865
Contributor
0 Kudos

Hi Deepika,

for your second issue check in su01 settings if not working then try as below,

data : v_curr(16) type p DECIMALS 2.

then in your program,

v_curr = v_tmp.----


<char field.

WRITE V_CURR CURRENCY 'USA' DECIMALS 2 to V_TMP.

CONDENSE V_TMP.

Former Member
0 Kudos

Hello deepika,

Go in Menu button in System - User Profile - Own Data - and check your Default Settings.

Regards,

Vanu.

alex_m
Active Contributor
0 Kudos

Check the user profile SU01, the decimal format display would be picked from here and no need to change anything in the program.

venkat_o
Active Contributor
0 Kudos

Hi, <li> Right click on Template->Create->Flow Logic->Program Lines: Here you have to write code by giving input parameters and output parameters. Once you get the values from output parameters, that needs to be displayed in the Template text element. Thanks Venkat.O