on 07-21-2009 12:31 PM
Hi friends,
I have a small problem. Actually my requirement is i want to display total (amount) value in my smartform. if the total amount is 0(ZERO) that time i need to display N/C if not ZERO that time i need to display corresponding value.
For that i declard char field insteded of kbetr field. Now the issue is, its not printing with comma's. Normally kbetr value will display with comma's.
example : 1,000,00.00. but in my case its showing 100000.00. how to correct this?
Mohana.
Hi,
Try like below.
GV_KBETR TYPE CHAR18.
IF NOT <ko>-kbetr IS INITIAL.
WRITE <ko>-kbetr CURRENCY <ko>-koei1 TO gv_kbetr .
ELSE.
gv_kbetr = space.
ENDIF.
Use gv_kbetr for display.
Cheers,
Balaji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dude,
Open a code node inside ur smartform and declare a variable like this.
Data : xxx(3).
Then based on the country key which ever it is move it to XXX. For example if it is USA then move 'USA' TO xxx.
Then make a command like.
SET country xxx
this will surely have an impact on the kbetr field value
Hope this can solve ur problem.
Cheers,
Joe
Edited by: meetjoe on Jul 21, 2009 2:50 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Delcare 2 variables
IF ZERO
Print CHAR variable
ELSE
Print kbetr.
Please check ur setting also..
Regards,
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use "write to" while assigning amount to char or use condition and display another text module in smartform for 0 values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.