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

How to get back the deleted order in EBP in to SRM-for which R/3 ord.exists

Former Member
0 Likes
670

Hi Sap gurus,

We have implemented extended classic scenario in SRM 5.5. The issue is one of the local EBP order is deleted from our SRM system. As a general rule the backend order is also to be deleted from the system. But to our strange the backend order is not deleted in the R/3 system. Now we want to get back the local EBP order in to our system. Is there a way we get this again in our EBP system?

In BBP_PD tcode we have one entry as below. By using the GUID of this order can we get the order back in to EBP?

HEADER I1040 DELETED X

Thanks & Regards

Satish

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hi

http://wiki.sdn.sap.com/wiki/display/SRM/HowtodeleteaPOinbackendfromSRM

from Aline Marchetti ,

i think you are looking for the same

Muthu

Former Member
0 Likes

Note 1402592 - Deleted items in PO cannot be transferred

A purchase order was created with all items referring to a contract. This initial version is correctly ordered and transferred to the backend. When one or more items are deleted in SRM the status of the purchase order remains "awaiting approval" and if extended Classic Scenario, the deletion is not transferred to the backend.

Other terms

Update termination, BBP_PD_OBJ_REL_UPDATE_VB, Abort

Reason and Prerequisites

CHECK

Former Member
0 Likes

Hi Govindsamy,

Actually the scenario is that the EBP order is deleted at the header level not at the item level. When we enquire the Process Purchase orders we get that order does not exist. However in the back end R/3 we have the order still existing.

Now we want to reload the EBP order back in to EBP. Is there a way that we can reload by using the GUID of the order?

Thanks & Regards

psamp

Former Member
0 Likes

Hi All,

FM META_PO_DELETE will delete the order from EBP and also order will be deleted from backend R/3 .

Similarly is there any FM which brings back the deleted order in EBP

rgds

psamp

Former Member
0 Likes

When you delete the PO at header level in SRM , Dont set the deletion level item in ECC po? .

laurent_burtaire
Active Contributor
0 Likes

Hello psamp,

If your PO has status 'Deleted' in SRM, at header level, field DOC_CLOSED from BBP_PDHGP table should be set.

For PO status change, you can use CRM_STATUS_UPDATE function module with two rows in table JEST_UPD:

- one to inactive deleted status :

  • MANDT = your client,

  • OBJNR = PO Guid,

  • STAT = 'I1040',

  • INACT = 'X',

  • CHGNR = existing value + 1

- one to active ordered status:

  • MANDT = your client,

  • OBJNR = PO Guid,

  • STAT = 'I1043',

  • INACT = ' ',

  • CHGNR = existing value + 1

For header level, see BBP_HDRPROC_SET_STATUS_FLAGS function module.

Regards.

Laurent.

Former Member
0 Likes

Hi Laurent,

Thanks a lot for your expert comments.

We have tried the same in our test environment, FM CRM_STATUS_UPDATE is working and updating the table CRM_JEST, however the table BBP_PDHGP never getting changed. The value DOC_CLOSED in table BBP_PDHGP not getting changed. We also tried the FM BBP_HDRPROC_SET_STATUS_FLAGS with all the possible values (I_DOC_CLOSED = 'X' , ' ', 'R' ) but the database table BBP_PDHGP not getting changed. We have checked the code of FM BBP_HDRPROC_SET_STATUS_FLAGS and noted that code is there only to modify the internal table and not the database table.

Could you please advise us how to change value in table BBP_PDHGP.

Regards.

psamp1.

laurent_burtaire
Active Contributor
0 Likes

Hello,

Try with BBP_PROCDOC_STATUS_CHANGE function module.

With this function module, no need to use CRM_STATUS_UPDATE anymore.

Check with BS23 transaction which business transaction must be used for importing parameter I_ACTIVITY accordingly to system status you want.

Regards.

Laurent.

Former Member
0 Likes

Hi

give some more clues for others.

1.what type of PO it was ? like LIMIT PO

2. is PO created form SC or Process PO or catalog PO

3. In your environment if you delete PO at header level and the same was not replicated to ECC.

4.is it for all POs or one POs.

5. Can you recreate the same in your environment?

Former Member
0 Likes

Hi Govind,

This is extended classic scenario

1. Not a limit a PO.

2. PO created from catalog. PO has only one item.

3.This PO is also replicated to backend.

Issue is : EBP order is deleted from the system. However the R/3 back end order is available without any items deleted.

(Normally when you delete the EBP PO at header level, in the back end order will get replicated by deleting the all items in the order).

4. Now we want to get the EBP order which is deleted.

5. This was happened only with one order.

We appreciate your expert suggestion.

Regds

psamp1

Former Member
0 Likes

Thanks .

Understand the system difficulty.

I have no comments since you could not replicate the same issue.

kindly check PO change history and try to recreate the problem and report to SAP.

or backend method set the deletion indicator forcely in ECC.

Muthu

Former Member
0 Likes

Hi ,

Run the funciton module BBP_PD_PO_TRANSFER_EXEC_V2 and so that it will transfer the po to backend system .

Regards

Rama.