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

BAPI_REQUISITION_CREATE

Former Member
0 Likes
620

Hi

I am calling this BAPI to create a purchase requisition.

When I run it from SE37, it works fine.

But when I call it from my program, using exactly the same parameters used in SE37, I got error message below:

'Control indicators for controlling area H001 do not exist'

I have already checked paremeters (left zeros and other common mistakes).

What else could be wrong?

Thanks,

Ronaldo.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
528

Your message is coming from a missing entry in the table TKA00. Probably there is no record for your controlling area and the Fiscal Year combination. I don't think you explicitly give 'Fiscal Year' value, but it may be derived from your entry for date. See if you are entering the dates in internal format or external format and verify in debugging, how the system is interpreting your input.

Also, put a breakpoint in the function module 'K_KOKRS_READ' and see what value is coming to it for GJAHR.

Srinivas

2 REPLIES 2
Read only

Former Member
0 Likes
528

Hi Ronaldo,

pass this parameter <b>SKIP_ITEMS_WITH_ERROR</b> also to the BAPI.


If the indicator has been set, faulty items are skipped and only the error-free items are created.

regards

vijay

Read only

Former Member
0 Likes
529

Your message is coming from a missing entry in the table TKA00. Probably there is no record for your controlling area and the Fiscal Year combination. I don't think you explicitly give 'Fiscal Year' value, but it may be derived from your entry for date. See if you are entering the dates in internal format or external format and verify in debugging, how the system is interpreting your input.

Also, put a breakpoint in the function module 'K_KOKRS_READ' and see what value is coming to it for GJAHR.

Srinivas