2009 Jan 15 5:20 AM
Hi,
I am using BAPI_ASSET_RETIREMENT_POST for asset write off (tcode ABAVN).
I have created a test progra for this bapi with hardcoded values but after its execution it says (return-message) that "Asset 600000002 0 not in company code 467B".
But this asset is ther I hv checked in ANLA table.
Please help me out.
Is ther any other FM or way for asset write off.
Bye,
Divya
2009 Jan 15 11:29 AM
Hello Divya
Both fields ANLN1 and ANLN2 have an ALPHA conversion (in the domain). Thus, if you hard-code any values they must have leading zeros otherwise the system will not recognize them.
The ALPHA conversion occurs automatically when you execute the program/fm via SAP-GUI.
Regards
Uwe
Hi,
I am using BAPI_ASSET_RETIREMENT_POST for asset write off (tcode ABAVN).
I have created a test progra for this bapi with hardcoded values but after its execution it says (return-message) that "Asset 600000002 0 not in company code 467B".
But this asset is ther I hv checked in ANLA table.
Please help me out.
Is ther any other FM or way for asset write off.
Bye,
Divya
2009 Jan 15 11:29 AM
Hello Divya
Both fields ANLN1 and ANLN2 have an ALPHA conversion (in the domain). Thus, if you hard-code any values they must have leading zeros otherwise the system will not recognize them.
The ALPHA conversion occurs automatically when you execute the program/fm via SAP-GUI.
Regards
Uwe
2009 Jan 16 5:29 AM
Thanks Uwe the problem is solved but now Im getting a different eror thst is
" Asset 467B 6000000002-0 does not manage quantity, entering quantity not allowed ".
But I'm entering correct input in quantity (menge) field.
Reply soon.
bye
Divya
2009 Jan 16 5:29 AM
Another error occurs while running Bapi_asset_retirement_post
" Asset 467B 6000000002-0 does not manage quantity, entering quantity not allowed ".
But I'm entering correct input in quantity (menge) field.
Reply soon.
bye
Divya
Edited by: Divya on Jan 16, 2009 6:30 AM
2009 Jan 16 6:15 AM
Hello Divya
Assuming that your input for the BAPI is correct then the error message does not say your quantity is incorrect but not allowed at all. Thus, it seems that this is a business related property of the asset. However, here I must quit because you need to talk to a business consultant (and not to a techie like me...).
Regards
Uwe
2009 Jan 16 7:14 AM
It is solved. actually I was missing one input field that is base unit of measure in BAPI.
After its input its working fine.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |