on 08-22-2008 1:34 PM
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..
Hi,
spell_amount
Regards,
vijetha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Call the function module spell_amount
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just Write a PERFORM statement in the Window Text editor where u want its description, and write the code in Subroutine pool.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.