Application Development 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: 

BAPI_PR_CREATE Cannot create PR under Asset Category

Former Member
0 Kudos
338

Hi,

Need your help or exprienced to solve my problem. I used BAPI_PR_CREATE to post PR from customize applications.

I'm having diffculties to post PR under asset category.

when i post PR under Asset category, error returned "Asset XXXX 0 not in company code 1000".

but this asset actly exist and already registered under that company code.

thanks in advance

-Azm

1 ACCEPTED SOLUTION

Former Member
0 Kudos
84

Check again for the asset to exist under that company code.

That is the only reason why it is giving that reason

Regards,

Lalit Mohan Gupta.

2 REPLIES 2

Former Member
0 Kudos
85

Check again for the asset to exist under that company code.

That is the only reason why it is giving that reason

Regards,

Lalit Mohan Gupta.

0 Kudos
84

Thanks Lalit Mohan, the asset already created and exist in the company. After long troubleshooting and debugging the code, my problem already fixed.

Solution:

Passing parameter for asset should be exactly similiar with SAP asset no (Char 12) stored in table.

here is my pieces code (JAVA) to fix the issue.

..

assetNo ="660000765"; //asset value returned from other function.

..

Plant="1000";

ASSETNO = "000"+assetNo; //Add "000" in front

SUBNumber= "0000"; // Previous code subNumber ="0";

..

Other BAPi that useful for displaying asset : BAPI_FIXEDASSET_GETDETAIL

My problem solved..

tq

-Masri