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

Mass Create/Update/Delete for planned orders

Former Member
0 Likes
1,539

Hey All,

I am looking for a RFC/BAPI which creates/updates/deletes multiple planned orders in the same call. We have a non SAP planning tool which does the planning and based on the planning run creates planned orders in ECC. The existing planned order BAPI does only one planned order at a time.

Developing a custom wrapper is our last option if we dont find any standard solution.

Any input is highly appreciated.

Thanks

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,148

Look at this documentation [BAPIs for Mass Data Transfer (CA-BFA)|http://help.sap.com/saphelp_nw04/helpdata/EN/4c/4c0e8a725311d396a80004ac96334b/frameset.htm]

If there is no SaveReplicaMultiple method for your object, the wrapper will be the only available solution.

Regards,

Raymond

Hey All,

I am looking for a RFC/BAPI which creates/updates/deletes multiple planned orders in the same call. We have a non SAP planning tool which does the planning and based on the planning run creates planned orders in ECC. The existing planned order BAPI does only one planned order at a time.

Developing a custom wrapper is our last option if we dont find any standard solution.

Any input is highly appreciated.

Thanks

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,149

Look at this documentation [BAPIs for Mass Data Transfer (CA-BFA)|http://help.sap.com/saphelp_nw04/helpdata/EN/4c/4c0e8a725311d396a80004ac96334b/frameset.htm]

If there is no SaveReplicaMultiple method for your object, the wrapper will be the only available solution.

Regards,

Raymond

Read only

0 Likes
1,148

Raymond,

Thank you for your input. The Planned order object doesnt have any SaveReplicaMultiple Method. We are currently using RFC CLOI_CHANGES_UPL_45 from the POIL interface, but this RFC is pretty old, poorly documented and doesnt support some of our scenarios. Wanted to know if there is any newer RFC on these lines.

Read only

0 Likes
1,148

I dont know your RFC module, used to call (Business Object BUS2004) BAPI_PLANNEDORDER_CREATE, _CHANGE and DELETE, there is a flag in header for collective update.(USECOLL_UPD) - look also at [Note 484823 - BAPI planned order generates deadlocks in table MDVM/DBVM|https://service.sap.com/sap/support/notes/484823] to avoid deadlock in collective mode

For your FM i only found [Note 545860 - FAQ: CLOI_CHANGES_UPL_31 and COMMIT control (COMMITFLG)|https://service.sap.com/sap/support/notes/545860] which stipulate that no collective mode is available. (31 and 45 are similar)

Regards,

Raymond

Read only

0 Likes
1,148

Thank you again for your input. The collective update feature you are talking about still needs me to call the Bapi in a loop for which i need to develop a custom RFC.

About the CLOI_CHANGES_UPL_45 RFC I am using currently, this takes multiple planned orders as input in table form, so there is no looping required. The Non-SAP system send all the plannedd order it needs to create/change/update in one call with no customization needed. But since this interface is old and not may references are available, it is difficult to exploit it.

It looks like a custom RFC is the only alternate solution I have. Will wait for other inputs if any before closing the thread.

Thanks