I know this is an extremely old post, but it is unanswered and the answer is not to be found anywhere on SCN. Also, there are very few posts regarding this BAPI and this post led me to attempt the call with invalid inputs.
The issue is with the inclusion of REQUIREMENT_GROUP_INDEX_IN - 1 when no groups are provided. If you leave that field blank on the input, the call will complete successfully.