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