Friday 2 December 2022

Quick check when IDOC not generated for FIDCC2

Once IDOC has not been generated correctly for message types like FIDCC2, especially for new company code at rollout project. The quickest way to check this:

SAP ABAP Career, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification

1. EXIT_SAPLF050_005 controls whether FIDCC2 Outgoing IDoc should be sent out or not.

SAP ABAP Career, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification

Here setting parameter NO_DISTRIBUTION as ‘1’ will prevent IDOC generation for FIDCC2.

*Include ZX050U04
CASE message_type.
  WHEN 'FIDCC2'.
    READ TABLE fi_document_header ASSIGNING FIELD-SYMBOL(<fs_header>) INDEX 1.
    IF sy-subrc EQ 0.
      IF <fs_header>-bukrs EQ 'ABCD'.  "custom check
        no_distribution-boole = '1'. "not generate Idoc!
      ENDIF.
    ENDIF.
ENDCASE.

This user exit will be called inside FM: FI_IDOC_PREPARE.

SAP ABAP Career, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification

2. Distribution Model setting for the new entity at BD64

SAP ABAP Career, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification

The checking point when Idoc been processed:

SAP ABAP Career, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification

Table model_data_c2 is the Distribution Model setting fetched by ‘ALE_MODEL_INFO_GET’.

SAP ABAP Career, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Certification

No comments:

Post a Comment