Code: Alles auswählen.
* Idoc erzeugen ------------------------------------------------------ *
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
master_idoc_control = gs_edidc
TABLES
communication_idoc_control = gt_comm_idoc
master_idoc_data = lt_edidd
EXCEPTIONS
error_in_idoc_control = 01
error_writing_idoc_status = 02
error_in_idoc_data = 03
sending_logical_system_unknown = 04.
IF iv_packtisch NE space.
CALL FUNCTION 'DB_COMMIT'.
CALL FUNCTION 'DEQUEUE_ALL'.
COMMIT WORK.
ENDIF.