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: 

T-code create PO ME21N: Runtime Error CONVT_NO_NUMBER at program SAPLMEPO include MM06EF0B_BUCHEN

Former Member
0 Kudos

Dear Experts,

When I'm creating a purchase order that have 10 items (or above), a runtime error occured. Below is the error message.


Category:          ABAP Programming Error

Runtime Errors: CONVT_NO_NUMBER

ABAP Program: SAPLMEPO

Include              MM06EF0B_BUCHEN

Application Component MM-PUR

An exception occurred that is explained in detail below.

This exception cannot be caught in the context of the current statement. The reason for the exception is:  An attempt was made to interpret value "*" as a number. As this value contravenes the rules for displaying numbers correctly, this was not possible.

Below is the code where an exception occurred:

DATA indx.

     indx = 1.

* Need to merge KNT and XEKKN

* algorithm is: if knt is old, use knt. Else use the equivalent from xekkn

     LOOP AT knt.

       IF knt-updkz EQ oldpos.

         MOVE-CORRESPONDING knt TO lt_ekkn.

       ELSE.

        READ TABLE xekkn INDEX indx.

         MOVE-CORRESPONDING xekkn to lt_ekkn.

         indx = indx + 1.

       ENDIF.

       APPEND lt_ekkn.

     ENDLOOP.                    "v 2068862

It seems that the data type of indx (char 1), but when PO item index = 9, then  index = 10 (actual value is * in debug mode ), so exception is happened.

How should I solve this problem?

Thanks!

Bang

2 REPLIES 2

former_member195402
Active Contributor
0 Kudos

Hi Bang,

you have implemented SAP note 2068862 in your system, which causes that issue.

You can solve your issue implementing SAP note

2096259  - Dump in MM06EF0B__BUCHEN: CONVT_NO_NUMBER

Regards,

Klaus

0 Kudos

Hello Klaus,


Many thanks for your help. I applied that note and now it's working fine.

Below is the code that SAP changed (just change data type of indx variabe)


*{   DELETE        

*\    DATA indx.

*}   DELETE

*{   INSERT       

    DATA indx TYPE sy-tabix.

*}   INSERT

    indx = 1.

Regards,

Bang