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

Bapiekkn

Former Member
0 Likes
920

Hi,

I am having a problem with Bapiekkn. On execution to create a Purchase order I get the following message:

Asset 40061 1 not in company code.

40061 is the Asset_No and 1 is the Sub_Number

What could possibly be wrong? Is there a certain combination of Asset_No and Sub_Number that I can get the back end to accept or is this something that needs to be set in the back end? Not very familiar with SAP backend so thanks for your help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
863

Hi,

Note the Error message no then go to system->status ->Double click -> take prog name -> search message no in the main prog check wat validation written there , u will understand.

Cheers.

5 REPLIES 5
Read only

Former Member
0 Likes
864

Hi,

Note the Error message no then go to system->status ->Double click -> take prog name -> search message no in the main prog check wat validation written there , u will understand.

Cheers.

Read only

Former Member
0 Likes
863

Brian,

Your guess is right.

If you look at the back end, the organization if divided into company codes and each asset in the organization belongs to a specific company code.

So, when you create a PO you specify the company code in the PO header data. And when you specify the account assignment data the asset that you are specifying should belong to the same company code.

The data ideally should be given to you by the SAP functional consultant, or alternatively you can look at the data in the existing PO's and use the same to test your functionality.

regards,

Ravi

Note - Please mark all the helpful answers

Read only

Clemenss
Active Contributor
0 Likes
863

Hi,

smells like customizing. Ask SAP functional consultant or department person if this is just a BAPI or a common problem.

Regards,

Clemens

Read only

Former Member
0 Likes
863

Thanks all for the help. We found the solution and it was not directly related to the Bapiekkn but rather some other logic in the code.

Read only

Former Member
0 Likes
863

Question answered.