Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

purchase order print program error

Former Member
0 Kudos
304

hi experts!

am facing a problem in my purchase order print program. the problem is that when i am trying to see the print preview the following dump error is throughing, which am not able to understand.

the P.O total amount should be change into words( like one million then thousand thirty three kuwait dinars)

but the total amount is not converting into as mentioned, instead the dump is encountered.

please give me solution,

thnaks

*DUMP*

Runtime Errors CONVT_NO_NUMBER

Exception CX_SY_CONVERSION_NO_NUMBER

Date and Time 05.05.2008 19:04:43

-


Short text

Unable to interpret "1760,778.71 " as a number.

What happened?

Error in the ABAP Application Program

The current ABAP program "ZMM_SUBROUTINES" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

What can you do?

Note down which actions and inputs caused the error.

To process the problem further, contact you SAP system

administrator.

Using Transaction ST22 for ABAP Dump Analysis, you can look

at and manage termination messages, and you can also

keep them for a long time.

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not

caught in

procedure "GET_AMT_IN_WORDS" "(FORM)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

The program attempted to interpret the value "1760,778.71 " as a number, but

since the value contravenes the rules for correct number formats,

this was not possible.

How to correct the error

Whole numbers are represented in ABAP as a sequence of numbers, possibly

with an algebraic sign.

The following are the possibilities for the representation of floating

point numbers:

[algebraic sign][mantissa]E[algebraic sign][exponent]

[algebraic sign][whole number part].[fraction part]

For example, -12E+34, +12E-34, 12E34, 12.34

If the error occurred in your own ABAP program or in an SAP

program you modified, try to remove the error.

If the error occures in a non-modified SAP program, you may be able to

find an interim solution in an SAP Note.

If you have access to SAP Notes, carry out a search with the following

keywords:

"CONVT_NO_NUMBER" "CX_SY_CONVERSION_NO_NUMBER"

"ZMM_SUBROUTINES" or "ZMM_SUBROUTINES"

"GET_AMT_IN_WORDS"

If you cannot solve the problem yourself and want to send an error

notification to SAP, include the following information:

1. The description of the current problem (short dump)

To save the description, choose "System->List->Save->Local File

(Unconverted)".

2. Corresponding system log

Display the system log by calling transaction SM21.

Restrict the time interval to 10 minutes before and five minutes

after the short dump. Then choose "System->List->Save->Local File

(Unconverted)".

3. If the problem occurs in a problem of your own or a modified SAP

program: The source code of the program

In the editor, choose "Utilities->More

Utilities->Upload/Download->Download".

4. Details about the conditions under which the error occurred or which

actions and input led to the error.

The exception must either be prevented, caught within proedure

"GET_AMT_IN_WORDS" "(FORM)", or its possible occurrence must be declared in the

RAISING clause of the procedure.

To prevent the exception, note the following:

System environment

SAP-Release 700

Application server... "EHPAP1"

Network address...... "10.100.150.103"

Operating system..... "AIX"

Release.............. "5.3"

Hardware type........ "00C3B3F04C00"

Character length.... 16 Bits

Pointer length....... 64 Bits

Work process number.. 1

Shortdump setting.... "full"

Database server... "EHPDB"

Database type..... "DB6"

Database name..... "EHP"

Database user ID.. "SAPEHP"

Char.set.... "C"

SAP kernel....... 700

created (date)... "Mar 19 2007 20:40:49"

create on........ "AIX 2 5 005DD9CD4C00"

Database version. "DB6_81 "

Patch level. 102

Patch text.. " "

Database............. "DB6 08.02., DB6 09."

SAP database version. 700

Operating system..... "AIX 1 5, AIX 2 5, AIX 3 5"

Memory consumption

Roll.... 16192

EM...... 29328936

Heap.... 0

Page.... 1359872

MM Used. 19180992

MM Free. 1764848

User and Transaction

Client.............. 400

User................ "FADISULAIMAN"

Language key........ "E"

Transaction......... "ME22N "

Program............. "ZMM_SUBROUTINES"

Screen.............. "SAPLMEGUI 0014"

Screen line......... 22

Information on where terminated

Termination occurred in the ABAP program "ZMM_SUBROUTINES" - in

"GET_AMT_IN_WORDS".

The main program was "RM_MEPO_GUI ".

In the source code you have the termination point in line 398

of the (Include) program "ZMM_SUBROUTINES".

The termination is caused because exception "CX_SY_CONVERSION_NO_NUMBER"

occurred in

procedure "GET_AMT_IN_WORDS" "(FORM)", but it was neither handled locally nor

declared

in the RAISING clause of its signature.

The procedure is in program "ZMM_SUBROUTINES "; its source code begins in line

358 of the (Include program "ZMM_SUBROUTINES ".

Source Code Extract

Line SourceCde

368 DATA: lt_spell LIKE spell.

369

370 READ TABLE in_tab WITH KEY 'CURR'.

371 IF sy-subrc = 0.

372 lf_curr = in_tab-value.

373 ENDIF.

374

375 READ TABLE in_tab WITH KEY 'NETWR'.

376 IF sy-subrc = 0.

377 lf_netpr_01 = in_tab-value.

378 REPLACE ',' IN lf_netpr_01 WITH ' '.

379 CONDENSE lf_netpr_01 NO-GAPS.

380

381 IF lf_curr = 'KWD'.

382 lf_netpr_kwd = lf_netpr_01.

383

384 CALL FUNCTION 'SPELL_AMOUNT'

385 EXPORTING

386 amount = lf_netpr_kwd

387 currency = lf_curr

388 filler = ''

389 language = sy-langu

390 IMPORTING

391 in_words = lt_spell

392 EXCEPTIONS

393 not_found = 1

394 too_large = 2

395 OTHERS = 3.

396

397 ELSE.

>>>>> lf_netpr = lf_netpr_01.

399 CALL FUNCTION 'SPELL_AMOUNT'

400 EXPORTING

401 amount = lf_netpr

402 currency = lf_curr

403 filler = ''

404 language = sy-langu

405 IMPORTING

406 in_words = lt_spell

407 EXCEPTIONS

408 not_found = 1

409 too_large = 2

410 OTHERS = 3.

411 ENDIF.

412 IF sy-subrc <> 0.

413 * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

414 * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

415

416 ELSE.

417

Contents of system fields

Name Val.

SY-SUBRC 0

SY-INDEX 17

SY-TABIX 1

SY-DBCNT 18

SY-FDPOS 1

SY-LSIND 0

SY-PAGNO 0

SY-LINNO 1

SY-COLNO 1

SY-PFKEY NORMAL

SY-UCOMM PREVOUTPUT

SY-TITLE Held Imp. Pur. O r - ESG 5000000021 Created by Fadi Sulaiman

SY-MSGTY A

SY-MSGID TD

SY-MSGNO 426

SY-MSGV1 NEXTPAGE

SY-MSGV2 ZMEDRUCK_PO

SY-MSGV3

SY-MSGV4

SY-MODNO 0

SY-DATUM 20080505

SY-UZEIT 190441

SY-XPROG SAPCNVE

SY-XFORM CONVERSION_EXIT

2 REPLIES 2

Former Member
0 Kudos
101

Hello not sure with the answer but i think you have to use another function to over come from this error unable to rememeber the function once i get the FM i will be back to you.

Thks

Former Member
0 Kudos
101

Hi Prasad,

Check the FM's

SPELL_AMOUNT --> for display in millions

HR_IN_CHG_INR_WRDS --> for display in lakhs and crores