Code: Alles auswählen.
ls_material_id-objkey = equi-equnr. "Equipmentnummer
ls_material_id-objtype = 'EQUI'.
ls_material_id-logsys = sy-sysid.
CREATE OBJECT Anlage.
ls_material_id-objtype = 'EQUI'.
CALL METHOD Anlage->create_attachment
EXPORTING
is_object = ls_material_id.
Code: Alles auswählen.
call method go_myobject->start_service_direct
exporting
ip_service = 'CREATE_ATTA'
is_object = ls_object.
Code: Alles auswählen.
SET HANDLER: Referenz auf Behandlerobjekt darf nicht NULL sein.
Vielen Dankls_material_id-objkey = equi-equnr. "Equipmentnummer
ls_material_id-objtype = 'EQUI'.
ls_material_id-logsys = sy-sysid.
CREATE OBJECT anlage.
CALL METHOD anlage->start_service_direct
EXPORTING
ip_service = 'CREATE_ATTA'
* IS_BC_OBJECT =
is_object = ls_material_id
* IO_CONTAINER =
* IP_CHECK_AVAILABLE =
* IMPORTING
* EP_AVAILABLE =
* EXCEPTIONS
* NO_OBJECT = 1
* OBJECT_INVALID = 2
* EXECUTION_FAILED = 3
* others = 4
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.