05-13-2005 3:10 PM
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
05-13-2005 7:57 PM
Are you calling a BAPI or the transaction itself through your web dynpro application?
05-13-2005 7:57 PM
Are you calling a BAPI or the transaction itself through your web dynpro application?
05-13-2005 9:24 PM
05-13-2005 9:47 PM
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
05-13-2005 9:59 PM
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
05-13-2005 10:12 PM
Hi Srinivas:
I had to pass leading zeros for the cost center to make it work.
Thanks for your help.
Sriram
05-13-2005 10:19 PM