Ansicht
Dokumentation

IDMX_CFDI_OUTBNDPROC - BAdI: Outbound IDoc Processing

IDMX_CFDI_OUTBNDPROC - BAdI: Outbound IDoc Processing

ABAP Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the following components:

  • Sales and Distribution (SD)
  • Financial Accounting (FI)

You can use this Business Add-In (BAdI) is used to create and trigger sending of the outbound IDocs. For example, you can use the BAdI to replace the standard logic for determining the outbound port for sending the IDocs with your own logic.

  • Get IDoc Control Record for FI (GET_IDOC_CONTROL_FI)
You can use this Business Add-In (BAdI) method to replace the logic for identifying the outbound port definition for the outbound IDocs.
Result
If you implement this method, the outbound port is identified by the implementation. This port definition is then used for creating the outbound IDocs.
Parameters
Import Parameters
The input parameters, which are listed below, contain the data of the FI document. Using these input parameters, you can implement your own logic:
  • IS_BKPF: Accounting Document Header

  • IT_BSEG: Table Type for BSEG

  • IT_BSET: BSET Table Type

  • IT_BSEC: BSEC Table Type

Changing Parameters
  • CS_IDOC_CONTROL: Control record (IDoc)

Using this parameter, you can make changes to the IDoc control record. The fields MESTYP and IDOCTP are prefilled with the values for message type and base type in the function module IDMX_CFDI_GET_IDOC_CONTROL. Do not change the base type. As a minimum, the fields RCVPRN and RCVPRT must be filled.
  • CV_IDOC_CONTROL_IDENTIFIED: IDoc control records identified

Using this parameter, you can indicate that the control record is filled correctly and that the standard logic in the caller function module must not overwrite the data.
  • Get IDoc Control Record for SD (GET_IDOC_CONTROL_SD)
Method for the case where the CFDI solution is reused for SD invoices

You have completed the following Customizing activities:

  • In Customizing for Cross-Application Componentsunder General Application Functions -> Cross-Application Document Numbering -> Mexico -> Automatic Document Numbering.
  • In Customizing for Sales and Distributionunder Billing -> Billing Documents -> Country-Specific Features for Mexico -> Digital Invoice.

There are no implementations in the standard system.

The Business Add-In is not filter-dependent.






CPI1466 during Backup   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 3579 Date: 20240523 Time: 210326     sap01-206 ( 48 ms )