Application Development and Automation 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: 
Read only

RFC Runtime Dump :- CONVERT_NO_NUMBER

Former Member
0 Likes
890

Dear Friends,

I have written a RFC with the below code.The problem is , when i execute the same RFC with input as SD

it throws a runtime error saying CONVERT_NO_NUMBER unable to interpret ''D' as a number.

After executing it show the result in the output table but when i try to click on the tables tab .its show the above DUMP.

I tried writing the table contents while in the select loop. it displays the output in console.

Note:- the shortdump is only shown when i try to display the out table list.

CODE:-


FUNCTION ZAPPLICATION_COMPONENT.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     VALUE(APP_COMPT) LIKE  DF14L-PS_POSID OPTIONAL
*"  EXPORTING
*"     VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
*"  TABLES
*"      APP_DETAILS STRUCTURE  ZAPP_COMP OPTIONAL
*"----------------------------------------------------------------------

data : begin of it_app occurs 10,
         ps_posid like df14l-ps_posid,
         name     like df14t-name,
         end of it_app.



select a~ps_posid
*        a~FCTR_ID
        b~NAME
        from df14l as a
        inner join df14t as b
        on a~fctr_id = b~fctr_id
        into corresponding fields of  app_details
        where a~ps_posid like APP_COMPT
        and b~LANGU = 'EN'
        order by a~ps_posid.

    write:/ app_details-name.
append app_details.
endselect.

ENDFUNCTION.


The   ZAPP_COMP structure contain only 2 fields  like ps_posid and name .

Thanks,

Reshali.

6 REPLIES 6
Read only

Former Member
0 Likes
816

Hi Reshali ,

THis error comes when you try to populate a character value (A-Z , special symbols like . , , / etc) into a fields declared of type anything other than string or character.

You first read a Dump and see for which line it is giving error.

If its in select query then check data type of every field in internal table and fields used in WHERE compareason.

You can cross check the datbase entries getting fetched and see for each field which field contains value as 'D' or containing 'D'. You need to change the data type of that field to string.

Tell me what is the data type of df14l-ps_posid,df14t-name, and APPCOMPT

Hope this is helpful.

Regards,

Uma Dave

Edited by: UmaDave on Jul 2, 2010 1:14 PM

Read only

0 Likes
816

Hai,

The data types of

import parameter:-

APP_COMPT like DF14L-PS_POSID :----- which is a CHAR 24

and in tabel parameter:-

ZAPP_COMP has 2 fields

PS_POSID .......... CHAR 24.

NAME -


CHAR 35.

thanks.

reshali.

Read only

0 Likes
816

the rfc works fine....

in the output result it shows 64 entries but when you try to click on the APP_COMPT tables ICON to vie wthe result...it goes to shortdump...

Read only

0 Likes
816

Can u share the Short dump log with us.

In your entire this program , do you have any field which is of type number , numc , int which getting used in this program any how?

Regards,

Uma Dave

Read only

Former Member
0 Likes
816

Hi,

I think you shou;d have define another internal table with similar structure as app_details.

Then get the data into that internal table and update or insert into destination.

Regards,

Pravin

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
816

Just hit the debug button in the dump screen for the exact line of code.

The reason for dump is as said by uma.