Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When the master data are sent from SAP to the Cloud (e.g. Activity Codes based on SAP Inspection Catalog Codes), the IDocs are generated – every IDoc corresponds to one master data object. The IDoc contains the main segment (different one, depending on the object type). The segment contains a field playing the role of an identifier of the object. E.g. in case of Activity Code based on SAP Inspection Catalog Codes the IDoc with IDoc Type /PACG/ECM_ITYPE_SRERRCOD is issued for every Activity Code. The IDoc contains a segment /PACG/ECM_IS_SRERRCOD, the field ID identifies uniquely the object in the Cloud:Image Removed

...


Every FSM Cloud Connector IDoc contains a segment /PACG/ECM_IS_CONTROL, playing a role of a control segment. The field TRANSACTION_TYPE informs the Cloud whether the object is to be created in the Cloud (or updated, if it exists) or deleted:

  • 'C' – corresponds to the creation/update request,

  • 'D' – corresponds to the deletion request.

Image RemovedImage Added

If you want to delete the given object in the Cloud, you must create an IDoc with TRANSACTION_TYPE = 'D'.

...

Many programs sending master data from SAP to the cloud contain a checkbox "Delete flag", e.g.:Image Removed

...

In that case the selected objects will be sent with TRANSACTION_TYPE = 'D' – they will be actually deleted in the Cloud. This approach can be useful if we have the master data object in SAP and we want to send it together with the information that it is to be deleted.

...


In that case the IDoc with IDoc Type /PACG/ECM_ITYPE_OPERATION, Message Type /PACG/ECM_OBJDELREQ is used. The IDoc is generic, its data contains the object type used in the Cloud (e.g. ACTIVITYCODE) and the identifier sent by SAP (e.g. G5ZKAMCAU2).Image Removed

...


Tip: Open the XSLT Transformation and locate the node "idElement" to find out, what Cloud Message Type should be used:Image Removed

...

Deleting the objects for the given identifiers

You know, that you want to delete the Activity Codes with the identifiers X1 and X2. Execute the Transaction /PACG/ECM_SEND_DELRQ with the following Selection Screen:Image Removed

...


You provide the identifiers in the field "Object key":Image Removed

...


The following protocol is generated:Image Removed

...

Deleting the objects based on the IDocs sent

You don't know the identifiers of the objects which are to be deleted. Instead the objects which have been created by the outgoing IDocs should be retrieved from the database, their identifiers should be collected and then the deletion request should be sent. You execute the program providing the selection criteria for the IDocs search:Image Removed

...

Enter the following fields:

  • Basic type: the IDoc type of the IDoc:

...

  • Segment type: The Segment name, in which the Identifier is passed:

...

  • Field name: field holding the identifier of the object:

...

  • Created on: date range, when the IDocs were created.

It is good practice to execute the program with the parameter 'Write Identifiers on Screen" = X and "Test Mode" = X. In that case the outgoing IDocs will not be created and the identifiers determined by IDoc search will be written on the screen:Image Removed

...


Once you have verified the identifiers, you can uncheck the "Test Mode" – the IDoc with deletion request will be sent to the Cloud:Image Removed

...

Message Broker administration

...