on 03-23-2009 7:42 AM
Hi Friends,
I need one solution.
I have 5 currency fields and i wanna print these currencies fields into character format in SMARTFORMS.
How can we do it.
Plz reply me as soon as possible.
Thanks & Regards,
Swapnika
hey had u tried my code?
is ur problem solved?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
create code lines
and
use like this.
WRITE v_curr to v_char CURRENCY <currency key>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi swapnika,
u need to print amount in words. is this ur requiremnet?
if s then TAKE A LOOK OF following code.
DATA : W_AMOUNT TYPE PC207-BETRG ,
W_DUTY TYPE IN_WORDS.
MOVE reguh-rwbtr TO W_AMOUNT.
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
amt_in_num = W_AMOUNT
IMPORTING
amt_in_words = W_DUTY.
REPLACE 'RUPEES' WITH '' INTO W_DUTY.
REPLACE 'ONLY' WITH '' INTO W_DUTY.
IF WANTMORE HELP LET M KNW..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you have to build in some abap logic.
Use Function module
HR_IN_CHG_INR_WRDS
I didn't understand your exact requirements. I hope this is what you need.
If not let me know. There are made a lot of FM for these questions.
Gr., Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
Fist go to the domains of the five fields( i guess in your case all are same), to find out the output length.
then declare a character variables with the respective lengths. then use the write to statement.
In the form you can apply the formatting options to these character variables to have the desired
output.
Regards,
Jayaram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please clarify whether the character format means amount in words .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HEY TAKE A LOOK OF THIS EX.
DATA : LV_TOT LIKE REGUD-SWNET -
( CHAR 18).
MOVE REGUH-RWBTR TO LV_TOT
WHERE REGUH-RWBTR IS CURR AND LV_TOT IS CHAR 18.
WRITE:
LV_TOT TO REGUD-SWNET CURRENCY REGUH-WAERS.
HOPE THIS WILL HELP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swapnika,
One possible solution is to create program lines and then pass the currency fields into some variables of character type and then try to print the character variables.
I hope this woud be helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.