Skip to Content
0
Former Member
Feb 09, 2012 at 01:01 PM

IDOC error ( Get details from previous status records with status 26 )

922 Views

Hi gurus!

I added extension segment to IDOC COAMAS01 Activity type. I filled the extension fields in BADI:

METHOD if_ex_badi_coom_ci_csla_idoc~customer_fields_fill.

****

  • Transfer data from UDF fields of table CSLA to IDOC Segment ZE1CSLAM.

****

DATA: BEGIN OF ls_csla_ex,

zzco_stream TYPE zco_stream_t,

zzco_role TYPE zco_role_t,

zzco_relate TYPE zco_relate,

zzco_local_expat TYPE zco_local_expat,

END OF ls_csla_ex.

ls_csla_ex-zzco_stream = i_ci_csla-zzco_stream.

ls_csla_ex-zzco_role = i_ci_csla-zzco_role.

ls_csla_ex-zzco_relate = i_ci_csla-zzco_relate.

ls_csla_ex-zzco_local_expat = i_ci_csla-zzco_local_expat.

e_idoc_data-mandt = sy-mandt.

e_idoc_data-segnam = 'ZE1CSLAM'.

e_idoc_data-sdata = ls_csla_ex.

ENDMETHOD.

While sending the IDOC I recieved:

Error during syntax check of IDoc (outbound)

Get details from previous status records with status 26

What's wrong?