on 08-07-2008 2:30 PM
hi gurus,
I want to print the net amount in words on po. for that i have the program for conversion of amount into words. but i don't know how to attached it with already exist program SAPFM06P. and how to pass that to script MEDRUCK. i copied this program and script using Z and made changes in that. but i m not getting how to pass the spelling of net amount to that script from program. the field for the net amount is EKPO-NETPR. plz give any solution...
Vicky,
you can use subroutine pools for same.
like this:
PERFORM Z_GET_AMOUNT IN PROGRAM ZAMOUNT
USING &F150D-ZIELD&
CHANGING &ZSPELL&
ENDPERFORM.
ZAMOUNT is the program where you can caculate the spell_amount by passing &F150D-ZIELD& and get &ZSPELL&.
Amit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vicky,
Declare one variable globaly in your driver Zprogramm.
data : spell_amnt type string.
Convert the amount into words by using some function module .
In script give.
&spell_amnt&.
You can create text element.
/E spell_amount.
&spell_amnt&.
In programm after converting the amount into word
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'SPELL_AMOUNT'
window = 'WINDOW_NAME' "Name of window
EXCEPTIONS
element = 1
window = 2.
Edited by: Anil Mane on Aug 7, 2008 3:37 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.