cancel
Showing results for 
Search instead for 
Did you mean: 

how to add the spell of total amount in po

Former Member
0 Kudos

hi,

i have to add the the spelling of the total amount in po. that po which i copied from the medruck and i change the name of that script in NACE tc and given my script name i m using the same standard me21n program.i got the function module for the spell but i don't know in which program of me21n i have to use that func. mod. and how i passed the total amount value to that fm. is there any user exit is available for this. plz help me..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

spell_amount

Regards,

vijetha.

Answers (4)

Answers (4)

Former Member
0 Kudos

Vicky,

The solution for this is in ue previous thread.

You will have to write the perform in the scrip editor and call a CUstom Include. You need not do anything with the print program or any of the includes.

However The best method would be to write the SUBROUTINE in any of the existing include.

Hope this helps.

Shreekant

Former Member
0 Kudos

Is there any difference between his thread and your other thread:

Former Member
0 Kudos

Call the function module spell_amount

former_member585060
Active Contributor
0 Kudos

Just Write a PERFORM statement in the Window Text editor where u want its description, and write the code in Subroutine pool.

former_member585060
Active Contributor
0 Kudos

In ur SAPScript MAin window, identify the place where u have Total field.

Ex:- &VBAP-NETPR&

Just abluve that

/: DEFINE TEXT = 'ABCD'

/: PERFORM spell in ZSPELL

/: USING&VBAP-NETPR&

/: CHANGING&TEXT&

/: ENDPERFORM

=======================================

in SE38 create subroutine type program with ZPELL

=========================================

data : w_netpr type netpr,

text(15) type c.

FORM spell TABLES in_tab STRUCTURE itcsy

out_tab STRUCTURE itcsy.

READ TABLE in_tab INDEX 1.

w_netpr = in_tab-value.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

amount = w_netpr

currency =

language

IMPORTING

in_words = w_text.

READ TABLE out_tab INDEX 1.

MOVE w_text TO out_tab-value.

MODIFY out_tab INDEX sy-tabix.

ENDFORM. "spell

=========================================

Now in SAPScript write

&TEXT& where u want.

Regards

Bala Krishna

Edited by: Bala Krishna on Aug 22, 2008 6:44 PM