‎2006 Jul 26 4:21 PM
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
‎2006 Jul 26 6:18 PM
Try using WRITE statement to move the amount to the character field.
‎2006 Jul 26 6:37 PM
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
‎2006 Jul 26 7:02 PM
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?
‎2006 Jul 26 7:07 PM
‎2006 Jul 26 7:54 PM
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
‎2006 Jul 26 8:03 PM
‎2006 Jul 26 8:03 PM
Normally you should not get the error.
Have you tried with normal movement
wrbtr = itab-wrbtr.
Regds
Manohar
‎2006 Jul 26 8:21 PM
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
‎2006 Jul 26 8:26 PM