cancel
Showing results for 
Search instead for 
Did you mean: 

All the words of amount not dispalyed in screen

Former Member
0 Kudos

Hi Experts!!!

I am not able to get all the words of amount in script..........Actualy i hv get this amount in words from se38 program(seaprate Subroutine).......when debugging this subroutine gives all the words of amount.........but when it coming to script it is not showing all the words .I am not able to identify the problem.......Pl can u help me out.

Example:1

- for amount 1268144.45, I am getting output like,

TWELVE LACS SIXTY-EGHT THOUSAND ONE HUNDED FORTY-FIVE PAISE FORTY-FIVE ON.

Example:2

-- for amount 1873588.77, I am getting output like,EIGHTEEN LACS SEVENTY-THREE THOUSAND FIVE HUNDRED EIGHTY-EIGHT AND PAISE SEVENT.

I hv increased the window size too.........but the same problem coming again.Give ur Suggestions pl.......

Thanks in Advance!!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi sap-script only accepts 80char long, put a checking in your program of subroutine while processing sapscript. i

f var+80(80) is not initial.

var2 = var+80(80).

endif.

then you should have also var2 in your sap-script

Former Member
0 Kudos

hi -=Bo0h=- ,

Thanks for ur reply. If u see the words of amount i have mentioned it is having less than 80 characters......Now could u pl tell me what to do.

Former Member
0 Kudos

Hi ,

Thank u very much -=Bo0h=- . I got the answer.

And thaks to all those who replied.

Former Member
0 Kudos

Hi Ranganayahi,

If you got the answer, Please post the solution so that it would be helpful to others and also mark the question as answered.

Regards

Karthik d

Former Member
0 Kudos

Hi karthik,

I tried as Etrafanob replied in this thread.Just refer that reply.

Thanks,

Ranganayahi.C

Edited by: Ranganayahi Chandirasekaran on Sep 23, 2008 5:20 AM

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In Function Module itself paise will be stored in some other variable.

Displat that variable.

Former Member
0 Kudos

Hi,

Have you checked length of the variables used for storing the amounts in words?

If possible post the code segment which is used to convert amount into words, so that we can try to find out the problem.

Otherwise try reducing the font size.

Regards

Karthik D

Former Member
0 Kudos

Hi Karthik,

Thanks for ur reply.Here i hv pasted my code.

REPORT Y_GETTOTAL_PAYVOUCH..

TABLES : FEBSCA, S094,spell.

DATA: BEGIN OF LINE.

INCLUDE STRUCTURE SPELL.

DATA: END OF LINE.

DATA : AMTWORD LIKE SPELL-WORD.

DATA : AMNT LIKE S094-WATP.

DATA: TOTAL like spell-word.

        • request number description given as not tobe transported in 101 **

FORM GET_TOTAL TABLES IN_PAR STRUCTURE ITCSY

OUT_PAR STRUCTURE ITCSY.

READ TABLE IN_PAR WITH KEY 'DIFF'.

CHECK SY-SUBRC = 0.

AMNT = IN_PAR-VALUE.

CALL FUNCTION 'Z_SPELL_AMOUNT_1'

EXPORTING

AMOUNT = AMNT

IMPORTING

WORDS = AMTWORD

EXCEPTIONS

OTHERS = 1.

*shift line-word right. shift line-decword right.

*concatenate 'Rupees' line-word ' and '

  • line-decword 'paise' 'only' into total

*separated by space.

TOTAL = AMTWORD.

*TOTAL = spell.

READ TABLE OUT_PAR WITH KEY 'TWORDS'.

CHECK SY-SUBRC EQ 0.

OUT_PAR-VALUE = TOTAL.

MODIFY OUT_PAR INDEX SY-TABIX.

ENDFORM. "GET_TOTAL

Thanks in Advance!!!