cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for creating planned order on a specific resource

Former Member
0 Kudos
1,153

Hi,

I am struggling to find this out, I guess I searched properly in the forum and in the BAPI docs, without a success, any idea?

Even a way to modify afterwards its creation could be helpful.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks all!

As you can see I asked it to be moved to the right space, sorry. I created it too quickly

On the other hand the solution about using the product version to indicate the resource, it is not 100% fine, as sometimes there can be different resources used within the same product version.

Any idea how can I indicate the exact resource when creating the planned order?

Thanks a lot!

MarianoCabalen
Active Contributor
0 Kudos

Hi Alexis,

You can't have different different resources linked to the same production version.

You should have one production version for each combination of BOM and Routing/Recipe.

Kind Regards,

Mariano

Former Member
0 Kudos

True, but not in my APO box

I will have to search for a way, as in PPT1 we are able to choose between one or another resource, so there must be a way.

Thanks for your help anyway!

Former Member
0 Kudos

Hi,

I did not post before, becasue I was not sure if it was the right option to my problem.

But I can say now that function /SAPAPO/RRP_ORDER_CREATE_FINDS  made the trick.

Unfortunately the Bapis could not help me, as we said, we have not an unique resource for a production version.

So if someone has to specify the resource when creating the planned order and the production version is  not enough....

Use it, with is_mpsched parameter filled. PPT1 internally is using the same one really.

Of course /SAPAPO/RRP_SIMSESSION_CREATE & /SAPAPO/RRP_SIMSESSION_GET are needed before it. And afterwards:  /SAPAPO/RRP_COMMIT.

Thanks to all for the support!

Regards!

Answers (1)

Answers (1)

MarianoCabalen
Active Contributor
0 Kudos

Hi Alexis,

You can use BAPI: bapi_plannedorder_create.

You have to enter the material, the quantity and the production date. In order to assign a resource you can also enter the production version (structure HEADERDATA) and this way you will be assigning a resource.

Kind Regards,

Mariano

Former Member
0 Kudos

Thanks a lot for the answer, but I need it in the APO box.

So I guess I can do the same with: BAPI_MOSRVAPS_SAVEMULTI3  , not?

I will try to do it that way!

Thanks!

former_member244427
Active Contributor
0 Kudos

Hello

You need to post this in APO Forum. However...

For SNP orders you can use below ones....

BAPI_POSRVAPS_CREATESNPORDER   Create or Change Stock Transfers or Purchase Requisitions for SNP

BAPI_MOSRVAPS_CREATESNPORDER   Create or Change orders with SNP PPMs

For PP/DS BAPI_MOSRVAPS_SAVEMULTI3 can be used.

Regards

Abhishek

MarianoCabalen
Active Contributor
0 Kudos

Hi Alexis,

Sure. It would be convenient to move this thread to APO space:

SAP APO - Demand and Supply Network Planning | SCN

Kind Regards,

Mariano