cancel
Showing results for 
Search instead for 
Did you mean: 

me21n po net amount spelling updation to script

Former Member
0 Kudos

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...

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member181995
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

but how can i get that amount into my program. and plz tell me in which program i should write call function 'open form'.

Former Member
0 Kudos

You have copied standard programm to Zprogram.

You can write this code into Zprogramm

Former Member
0 Kudos

in that standard program there is several include program in which program i have to write that code. and how i will get the net price value so that i will pass that value to amount conversion function module?