Skip to Content
0
Apr 03, 2007 at 01:40 PM

Sometimes idoc is sent in status 3,others in 30

46 Views

Hello!

i dont' understand why sometimes I send an idoc correctly and others it remains in status 30.

I have too other struct that is sent fragmented in smaller idocs. Some idocs are sent in status 3 and others in 30 and always the last idocs are the idocs with status 3.

I think the problem is related with the other. I have thought about any problem with commit work. Do you have any idea?

I already have reviewed idoc type, message type, distribution, ports and system logic (we20) and all is correct.

CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'

EXPORTING

master_idoc_control = idoc_control

TABLES

communication_idoc_control = t_idoc_comm_control

master_idoc_data = t_idoc_data

EXCEPTIONS

error_in_idoc_control = 01

error_writing_idoc_status = 02

error_in_idoc_data = 03

sending_logical_system_unknown = 04.

IF sy-subrc EQ 0.

  • CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'.

DESCRIBE TABLE t_idoc_comm_control LINES comm_control_lines.

created_comm_idocs = comm_control_lines.

ENDIF.

Thx in advance