cancel
Showing results for 
Search instead for 
Did you mean: 

Set Deletion Indicator in PBIM using BAPI BAPI_REQUIREMENTS_CHANGE

former_member606638
Discoverer
0 Kudos

Hello Everyone,

I want to delete schedule lines and also set deletion indicator in PBIM. I am using BAPI BAPI_REQUIREMENTS_CHANGE, this deletes all the schedule lines but not able to set deletion indicator in PBIM.

Basically, I want delete the existing Planned independent requirement and create a new PIR with new requirements plan(Key field in PBIM) and line items. Please let me know if it is possible to set deletion indicator using this BAPI or any other BAPI?

Thanks

Vasuki

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member606638
Discoverer
0 Kudos

Hi Brahmankar,

"BAPI BAPI_REQUIREMENTS_CREATE is used to create planned independent requirements in mass, it will delete existing PIRs too."

I read this in SAP note and tried but it creates new PIR without setting deletion indicator for existing PIRs.

Please share if you have code samples.

Thanks

Vasuki

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

Please refer SAP KBA -2586076 - BAPI_REQUIREMENTS_CREATE deletes existing planned independent requirements

This is a standard system design. BAPI_REQUIREMENTS_CREATE deletes all existing planned independent requirements.

If you don't want to delete existing PIRs, please use the BAPI BAPI_REQUIREMENTS_CHANGE to change the planned independent requirements.

Best Regards,

R.Brahmankar

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

BAPI BAPI_REQUIREMENTS_CREATE is used to create planned independent requirements in mass, it will delete existing PIRs too.

Best Regards,

R.Brahmankar

lingaiahvanam
Active Contributor
0 Kudos

Hi,

You can use the following options to delete PIR's.

1. Reorganization of independent requirements - MD74, MD75 and MD76 transaction codes used to delete PIR's based on key date.

Refer to SAP note - https://launchpad.support.sap.com/#/notes/135807 - Reorganization of planned independent requirements

Best Regards,

Lingaiah