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: 

Error "Not possible to determine a consumption account"

Former Member
0 Kudos

Hi

I have created a webdynpro application to create a requisition. I used a dataset to create a requisition successfully in the R3 system via MEW0 and ME51.

When I use the same dataset to create a requisition from the webdynpro application, I get the error "Not possible to determine a consumption account".

I am using Cost Center (K) for account assignment category and am also entering data for the cost center number (Field Name: COST_CTR), the G/L account number(G_L_ACCT) and the Controlling Area (CO_AREA).

Please help.

Thanks

Sriram

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Are you calling a BAPI or the transaction itself through your web dynpro application?

6 REPLIES 6

Former Member
0 Kudos

Are you calling a BAPI or the transaction itself through your web dynpro application?

0 Kudos

Hi Srinivas:

I am calling Bapi_Requisition_Create.

Thanks

Sriram

0 Kudos

Did you use the same BAPI in R/3 when you are testing your data or did you just use it directly in the transaction?

The reason for asking this is that if you ran the transaction in R/3 with the data, system may be defaulting certain data that you didn't enter. When you are calling the the BAPI from your application, that defaulting is not happening. Try executing the BAPI in R/3 using your file.

If you used the BAPI in R/3 as well, then did you used it in a test program or did you test it from SE37? Depending on that SAP will or will not do conversions from external to internal formats(SE37 testing does the conversion for you, whereas in a a program you may have to do). Not all BAPIs need data in internal format, but may be this one needs.

Check in these aspects and let me know.

Srinivas

0 Kudos

Hi Srinivas:

I did not use the BAPI in R3. I entered data using MEW0 and ME51 to create a requisition successfully in both the cases. As you said the system defaulted the controlling area based on my selection. So, I decided to pass the Controlling area information as well. But this did not help either.

So, I guess the format is wrong as you suggested. I have not executed a bapi in R3 before. I will give it a try.

Thanks

Sriram

0 Kudos

Hi Srinivas:

I had to pass leading zeros for the cost center to make it work.

Thanks for your help.

Sriram

0 Kudos

Hi Sriram,

Glad to hear that. Have a good weekend.

Srinivas