Skip to Content
0
Former Member
May 10, 2016 at 04:52 AM

Creating purchase requisitions with BAPI_POSRVAPS_SAVEMULTI3

374 Views

Dear all,


I'm in desperate need of help with creating PRs via BAPI.


We're currently trying to create purchase requisitions by using BAPI_POSRVAPS_SAVEMULTI3 ("SaveMultiple2"). The transaction is between the purchasing plant and production plant. The PRs need to have both receipts and requirements so that they're linked with Sales Orders and get sent to the corresponding source locations (production plants) as PReqRels.


So far, we've:

1. Created the PRs as SNP orders (EXTENSION_IN table)
2. Configured settings via SE37 to fill in the "source location" in the PR (LOCATION in the REQUIREMENTS table)


The problem is that the BAPI PRs mentioned above lack requirements, and because of this PReqRels don't show up in the planning book of the production plant. We need the PRs to have issue elements as well, not just receipt elements.


Is it not possible to create purchase requisitions that generate the same document flow as when created manually? Are there any particular settings we need to look at?


If you know a way to get around this problem or happen to know anything about BAPIs and PRs, please help me out, it'd be great.
I'm also new to this forum so if there's any piece of information missing in this post, please let me know.


Thank you.


Regards,
Saki