10-10-2007 8:41 AM
Hi Abapers,
I am running one customized report in DEV and QAS ( Same Report amd Same Version). In Dev there is no error working fine , but in QAS I got Abap dump error.
This one is ASSET LISTING REPORT.
ERROR :
Unable to interpret 'MV' as number.
I got the error in IF condition as follows:
******************************
GET ANLAV.
CLEAR: IT_ASSET.
Check acquisition date
CHECK ANLAV-ZUGDT LE P_DATE.
If it_asset_temp-asset no is not empty means it has not updated so
*append to display low value asset.
IF IT_ASSET_TEMP-ANLN1 NE 0. ( GOT ERROR HERE)
APPEND IT_ASSET_TEMP. CLEAR IT_ASSET_TEMP.
ENDIF.
Check deactivation date.
IF ANLAV-DEAKT NE '00000000' OR
ANLAV-GPLAB NE '00000000'.
CHECK ANLAV-DEAKT GT P_DATE.
CHECK ANLAV-GPLAB GT P_DATE.
ENDIF.
GET ANLZ.
MOVE-CORRESPONDING ANLAV TO IT_ASSET_TEMP.
MOVE-CORRESPONDING ANLZ TO IT_ASSET_TEMP.
GET ANLCV.
PERFORM GETDEPRECIATION.
IT_ASSET_TEMP-ACQ_VALUE = X-GJE_KANSW.
IT_ASSET_TEMP-KNAFA = X-NAFAP + X-NABWB + X-KNAFA.
IT_ASSET_TEMP-BK_VALUE = X-GJE_BCHWRT.
APPEND IT_ASSET_TEMP. CLEAR IT_ASSET_TEMP.
END-OF-SELECTION.
If it_asset_temp-asset no is not empty means it has not updated so
*append to display low value asset.
IF IT_ASSET_TEMP-ANLN1 NE 0.
APPEND IT_ASSET_TEMP. CLEAR IT_ASSET_TEMP.
ENDIF.
*************************
Anyone help me ?
Thanks
Nathan
10-10-2007 8:44 AM
Hi,
may be the some data present in quality is type character and you are trying to pass it to a field which is of type I.MV is being passed into field whose type is I.You cant pass char fields.
Message was edited by:
Raghu Reddy
10-10-2007 8:47 AM
GET ANLAV.
CLEAR: IT_ASSET.
Check acquisition date
CHECK ANLAV-ZUGDT LE P_DATE.
If it_asset_temp-asset no is not empty means it has not updated so
*append to display low value asset.
IF IT_ASSET_TEMP-ANLN1 NE 0. ( GOT ERROR HERE)
APPEND IT_ASSET_TEMP. CLEAR IT_ASSET_TEMP.
ENDIF.
Check deactivation date.
IF ANLAV-DEAKT NE '00000000' OR
ANLAV-GPLAB NE '00000000'.
CHECK ANLAV-DEAKT GT P_DATE.
CHECK ANLAV-GPLAB GT P_DATE.
ENDIF.
GET ANLZ.
MOVE-CORRESPONDING ANLAV TO IT_ASSET_TEMP.
MOVE-CORRESPONDING ANLZ TO IT_ASSET_TEMP.
GET ANLCV.
PERFORM GETDEPRECIATION.
IT_ASSET_TEMP-ACQ_VALUE = X-GJE_KANSW.
IT_ASSET_TEMP-KNAFA = X-NAFAP + X-NABWB + X-KNAFA.
IT_ASSET_TEMP-BK_VALUE = X-GJE_BCHWRT.
APPEND IT_ASSET_TEMP. CLEAR IT_ASSET_TEMP.
END-OF-SELECTION.
If it_asset_temp-asset no is not empty means it has not updated so
*append to display low value asset.
<b>IF IT_ASSET_TEMP-ANLN1 <i>NOT INITIAL</i>.</b>
APPEND IT_ASSET_TEMP. CLEAR IT_ASSET_TEMP.
ENDIF.
No Rewards Plz...
10-10-2007 9:04 AM
Hi ,
My question is in Dev there is no error , Why the error in QAS ?
Same code.
Thanks
Nathan
10-10-2007 9:09 AM
Hi,
As I told you , in quality
instead of maintaining anln1 as type i , they might be maintaining type c values.What is the type of IT_ASSET_TEMP-ANLN1.
10-11-2007 11:20 AM
Hi All,
Thanks for your inputs .
The problem solved . I found that error is due to some incorrect input parameters.
Thanks
Nathan