01-11-2006 8:07 PM
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.
01-11-2006 8:22 PM
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
01-11-2006 8:13 PM
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
01-11-2006 8:22 PM
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