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 issues ME299-Error in commitments check

eduardo_gironas
Participant
0 Likes
2,533

Hello:

We have SAP R/3 4.6c with FI-FM implemented. We also have an external .net program that invokes BAPI_REQUISITION_CREATE. Technically all is working fine, however we have a functional problem: when one the "n" purchase requisition (PR) material lines has exceeded in the budget for a certain combination of commitment item and fund center, the function issues the message error "ME299 indicating an error in the commitment check" but, there is no way to know in which PR line the error occured. I was looking at the function BAPI_ACC_PURCHASE_REQUI_CHECK to use as a complement but seems it only works when we have the PR "created" in SAP, we also, can not determine the values to type in the fields: COMPO_ACC, OBJ_TYPE, OBJ_KEY and OBJ_SYS. Do you have some solution or at least a suggestion about our problem?

Thanks!!

3 REPLIES 3
Read only

venkata_ramisetti
Active Contributor
0 Likes
1,291

Hi,

I just want to give a clue.

Try the same scenario in a ABAP Program with N lines.

Looks like the error is ocuuring from the program LEBNEF07.

Please check the line no 92. (MESSAGE e299(me) RAISING open_item_error.)

Put a break-point here and try to run manually.

Thanks,

Ramakrishna

Read only

0 Likes
1,291

Ramakrishna:

Thanks for your help.

The error message is right, it happens with some frequency, if the PR has one or 2 lines it is easy to know where was the exceeded budget, but when the purchase requisition has 50 lines for example, with different commitment items and/or funds center each one and, when the cited error occurs after invoking the function BAPI_REQUISITION_CREATE, there is no way to know in which of the 50 lines we have the budget exceeded.

Best regards.

Read only

vinothkumar_g
Product and Topic Expert
Product and Topic Expert
0 Likes
1,291

Hello,

I am also facing this same problem. How did you rectified the problem.?

Points will be awarded.

Regards,

Vinoth.