2009 Apr 09 4:41 PM
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
2009 Apr 09 6:29 PM
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.
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
2009 Apr 09 6:29 PM
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.
2009 Apr 11 1:28 PM
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
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |