SAP Function SWU_OBJECT_PUBLISH - Obsolete: Use cl_gos_manager for Publications

Parameter Reference Type Length Default Optional Text
CREATOR SWHACTOR u 14 SPACE X Event creator
METHOD SWOTRM-METHOD C 32 SPACE X Method for mail
MODE SGS_RWMOD C 1 'E' X SGOS: Display/Change Mode of Generic Object Services
OBJKEY 0 ID (key) of triggering object
OBJTYPE 0 Type of triggering object

Parameter Reference Length Optional Text
CONTAINER SWCONT 297 X Data container of event

Exception Text
OBJTYPE_NOT_FOUND Triggering object type not found

Functionality
This function module publishes the object ID of the object currentlybeing processed in the memory. Thus the user can process the objectadditionally to the functions that offer the current transaction withthe Generic Object Services
.

Example
Publication of material master currently being processed in thetransaction 'MM02 - display material master':
data: object_type type c, object_key type c.
object_type = 'BUS1001'.
object_key = mara-matnr.
call function 'SWU_OBJECT_PUBLISH'
exporting
objtype = object_type
objkey = object_key
exceptions
others = 1.

Notes
Implementation proposal
Identify the object assigned to the transaction.
Use the transaction SWO1 - Business Object Repositoryfor this purpose.
Check whether the object is released (Display, Goto Basic Data).
Install the function module.
The function module should be called as soon as the object ID is known.Repeated calling of the function module within a context with the sameimport parameter is not critical.

Further information
For further information see the documentation for the function moduleSWU_OBJECT_RESTORE.
INCLUDE DOKU_GOS OBJECT DOKU ID TX

304541Display of originals does not work in purchasing
1142984Billing and 'Services for object'
1425790VF27: "Services for Object" function not available
1342206VF03: "Attachment list" function is no longer available
1288533VF07: Function "Attachment list" no longer available
589098VF07: Display of too many linked documents
406750FB13, FB09: Double object service icons