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

Delete SRM PO from ECC

Former Member
0 Likes
1,296

Hi All,

I've a requirement to delete SRM PO from ECC. I've tried using function ' BBP_PO_DELETE' but it dumps saying:  

                              "Function module "BBP_PO_DELETE" not found."

I'm not sure if it is possible to delete PO in SRM using function in ECC. If yes, any suggestions on how to go about this.

Hi All,

I've a requirement to delete SRM PO from ECC. I've tried using function ' BBP_PO_DELETE' but it dumps saying:  

                              "Function module "BBP_PO_DELETE" not found."

I'm not sure if it is possible to delete PO in SRM using function in ECC. If yes, any suggestions on how to go about this.

6 REPLIES 6
Read only

Former Member
0 Likes
1,190

Hi,

The Functions in SRM are different than ECC.

Please use BBP_PD_PO_DB_DELETE but this is not a RFC enabled FM.

You would need to create a wrapper RFC FM in SRM for this and then call this from ECC to delete the SRM POs.

Thanks,

Zuber

Read only

0 Likes
1,190

Hi Zuber,

I'm passing GUID to BBP_PD_PO_DB_DELETE, but it is not deleting PO.

Read only

0 Likes
1,190

Hi Leena,

If you are using this FM in SRM system then use a BAPI_TRANSACTION_COMMIT after this.

And if you are calling this FM from ECC system then you would need to create a Z Function in SRM which will internally call BBP_PD_PO_DB_DELETE with IV_SAVE_ON_DB as 'X' and a Commit after this FM.

Let me know if you are successful in this.

Thanks,

Zuber

Read only

0 Likes
1,190

Called BAPI_TRANSACTIon_COMMIT. I'm not sure why it is not working

Read only

0 Likes
1,190

Please let me know the code how you have called these FMs.

For just testing goto SE37 -> Menu Bar -> Function Module -> Execute -> Test Sequence

Give the BBP_PD_PO_DB_DELETE and BAPI_TRANSACTION_COMMIT

and execute.

Get the GUID for any PO from BBP_PD and pass to FM BBP_PD_PO_DB_DELETE.

After executing the PO is deleted from data base.

Else please give the code here that you are using to delete.

- Zuber

Read only

0 Likes
1,190

I'm using Test Sequence only for testing... I'm checking in tcode BBP_PD, line item is not marked for deletion. I hope I'm checking at the right place