cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI BAPI_REQUISITION_CREATE Relase Strategy Missing

0 Kudos

Hi, im using the above to create a purchase requisition. All works fine except the release strategy tab is missing in the header. When I create manually in me51n it automatically adds this upon save button, so its like this logic is missing in the BAPI. Is there a specific table in the bapi or something else I can run after the initial create to generate it?


Thanks,

Dave

0 Kudos

Do you know if this other BAPI creates the release strategy before I change the code and start using it?

nabheetscn
Active Contributor
0 Kudos

you can do a quick test in SE37 with the new BAPI. Ideally it shall work without a doubt.

0 Kudos

Hi Nabheet and Raymond,


I have the BAPI working correctly now but again it doesn't create a release strategy. I manually went into me51n and create the PR with the exact same data as the BAPI (I even did copy and paste) and that DOES create the release strategy.


So it seems the BAPI wont create the release strategy. Any solutions of workarounds? Even if business did and edit of the PR after the bapi create in order to 'trigger' the release tab would be sufficient. I tried this and the re-save after change wont trigger it.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

I finally figured it out, I was passing in the incorrect document type (in the header). I was passing NB instead of ZNB which is the clients custom doc type. You'll see its a drop down at the very top of the PR.

And then the doc type gets linked to the release strategy.

I also found this solution works with both the obsolete and new BAPI.

Thanks everyone.

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor

Did you try to call ME51 and not ME51N... This BAPI is obsolete (correspond to non-enjoy transactions such as ME51) use BAPI_PR_CREATE (ME51N)

Ref: 1803189 - FAQ: End of Support of ME21, ME51, and BAPI_PO_CREATE etc.