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

Error in BAPI_ASSET_RETIREMENT_POST

Former Member
0 Likes
1,966

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

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,440

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

5 REPLIES 5
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,441

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

Read only

Former Member
0 Likes
1,440

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

Read only

Former Member
0 Likes
1,440

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

Read only

0 Likes
1,440

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

Read only

0 Likes
1,440

It is solved. actually I was missing one input field that is base unit of measure in BAPI.

After its input its working fine.