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

Problem while Posting Assets through BAPI

Former Member
0 Likes
491

Hi,

I am using BAPI_ACC_DOCUMENT_POST to handle assets postings in SAP.Here whenever i am running BAPI from SE37 using asset_no with regular length which is 6digits[730011] bapi is giving me correct results and documents gets posted successfully with assets.

The same thing when I do it from my program by populating values and filling the asset_no correctly in BAPI Structure I am getting error as below

"Asset 730011 not found in Company 1001".

but the same assets works fine through SE37.

Could anyone let me know why is this happening?

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
445

Try adding leading zeros.

( When you test via SE37 you come across conv_exit_module / kind of screen exit )

Hope this helps,

Erwan

Read only

0 Likes
445

yup, done using same conversion routine but still no solution.