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

Reg the CONVT_NO_NUMBER Runtime Error

Former Member
0 Likes
1,107

Dear all,

I have been trying to upload the G/L account information and using BDC. I have reduced my input fields to Header Data, PK, Acct Number, Amount and KOSTL. When I call the transaction I get the runtime Error. I learnt its because of the Number Interpretation, and so did the coding. But still it says the same error.

I declared a character field and moved the amount, filled the zeros for SAKNR and KOSTL but still throws the error.

Any help will be appreciated, plss..

Thanks in advance,

Leo

9 REPLIES 9
Read only

Former Member
0 Likes
1,058

Try using WRITE statement to move the amount to the character field.

Read only

0 Likes
1,058

Hi Matt,

I did declaring a character field and used write statement but still it shows the error. Is there any other means this error occurs with Acct No, Amt, PK, KOSTL as inputs.

Thanx and Regards

Leo

Read only

0 Likes
1,058

Leo,

Have you looked at the short dump? I'm guessing that it is the amount field that is causing the error. What value is being written to the amount field?

Read only

0 Likes
1,058

Make sure that the values, do not contain any thousands separator, you can get rid of this using TRANSLATE.

translate amount using ', '. condense amount no-gaps.

Regards,

Rich Heilman

Read only

0 Likes
1,058

Dear all,

Here I have pasted the code. Can you please check with amount.... The code is in FM.

<u><b>INPUT VALUES</b></u>

ITAB-BSCHL = '40'.

ITAB-SAKNR = '812070'.

ITAB-WRBTR = '30881.00'.

*ITAB-GSBER = '1162 '.

ITAB-KOSTL = '11620009'.

<u><b>Date Validations</b></u>

MOVE P_BUDAT(4) TO TEM+4(4).

MOVE P_BUDAT+4(2) TO TEM(2).

MOVE P_BUDAT6(2) TO TEM2(2).

MOVE P_BUDAT(4) TO TEM+4(4).

MOVE P_BUDAT+4(2) TO TEM(2).

MOVE P_BUDAT6(2) TO TEM2(2).

MOVE P_BLDAT(4) TO TEM1+4(4).

MOVE P_BLDAT+4(2) TO TEM1(2).

MOVE P_BLDAT6(2) TO TEM12(2).

MOVE P_BLDAT(4) TO TEM1+4(4).

MOVE P_BLDAT+4(2) TO TEM1(2).

MOVE P_BLDAT6(2) TO TEM12(2).

<u><b>AMOUNT</b></u>

  • WRBTR IS CHARACTER OF LENGHT 16.

WRITE ITAB-WRBTR TO WRBTR.

translate WRBTR USING ','.

CONDENSE WRBTR NO-GAPS.

<u><b>SAKNR AND KOSTL Validations</b></u>

IF ITAB-KOSTL+8(2) EQ SPACE.

MOVE ITAB-KOSTL TO HOLD_KOSTL+2(8).

MOVE '00' TO HOLD_KOSTL(2).

ELSE.

MOVE ITAB-KOSTL TO HOLD_KOSTL.

ENDIF.

FIELD_LENGTH = STRLEN( ITAB-SAKNR ).

IF FIELD_LENGTH EQ 10.

MOVE ITAB-SAKNR TO HOLD_SAKNR.

ELSE.

MOVE ITAB-SAKNR(6) TO HOLD_SAKNR+4(6).

MOVE '0000' TO HOLD_SAKNR(4).

ENDIF.

<u><b>BDC</b></u>

PERFORM NEW_DYNPRO USING 'SAPMF05A' '0100'.

PERFORM NEW_FIELD USING 'BKPF-BUDAT' TEM.

PERFORM NEW_FIELD USING 'BKPF-BLDAT' TEM1.

PERFORM NEW_FIELD USING 'BKPF-MONAT' P_MONAT.

PERFORM NEW_FIELD USING 'BKPF-WAERS' 'USD'.

PERFORM NEW_FIELD USING 'BKPF-BUKRS' P_BUKRS.

PERFORM NEW_FIELD USING 'BKPF-BKTXT' P_BKTXT.

PERFORM NEW_FIELD USING 'RF05A-NEWBS' ITAB-BSCHL.

PERFORM NEW_FIELD USING 'RF05A-NEWKO' HOLD_SAKNR.

*PERFORM NEW_FIELD USING 'BDC_OKCODE' '/11'.

PERFORM NEW_DYNPRO USING 'SAPMF05A' '0300'.

PERFORM NEW_FIELD USING 'BSEG-WRBTR' WRBTR.

PERFORM NEW_DYNPRO USING 'SAPLKACB' '0002'.

PERFORM NEW_FIELD USING 'COBL-KOSTL' HOLD_KOSTL.

PERFORM NEW_DYNPRO USING 'SAPMF05A' '0300'.

PERFORM NEW_FIELD USING 'RF05A-NEWKO' ' '.

PERFORM NEW_FIELD USING 'RF05A-NEWBS' ' '.

PERFORM NEW_FIELD USING 'BDC_OKCODE' '/11'.

CALL TRANSACTION 'F-02' USING BDCDATA MODE 'A' UPDATE 'A'.

*****************

It says CONVT_NO_NUMBER occurs.

Please help me in this, I know its simple but couldnt find the place of the error. Your help will be appreciated.

Thanks & Regards

Jay

Read only

0 Likes
1,058

Does it say what field it is dumping on?

Regards,

Rich Heilman

Read only

0 Likes
1,058

Normally you should not get the error.

Have you tried with normal movement

wrbtr = itab-wrbtr.

Regds

Manohar

Read only

0 Likes
1,058

I executed as FM so it displays a message that Runtime Error CONVT_NO_NUMBER occurs....

It doesnt show any dump message, but tried the same input in F-02 Transaction.....(manual entry with the same set of values).....it says the program attemped to intrepret the value "BC-000001" as a number....

and yeah I tried with the normal movement.....

Thanx and Regards

Jay

Read only

0 Likes
1,058

You need to debug you data and figure out where BC-000001 is coming from, the value must not be moved to a numeric field or a part of a calculation, this is the reason for your error.

Regards,

Rich Heilman