Ansicht
Dokumentation

J_1UFDI_XML_MATCHING - BAdI: XML Linking

J_1UFDI_XML_MATCHING - BAdI: XML Linking

CPI1466 during Backup   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used for the Electronic Reporting Mode of the Register of Tax Invoices program for Ukraine.

You can use this BAdI to check if the XML files and accounting documents can be linked.

This BAdI definition contains BAdI methods:

  • CHECK_DOC_XML is used to check if a link is possible between one XML file and one accounting document. The method performs the following checks:
  1. Checks if the Company Code, Partner and Fiscal Year (determined by XML file and accounting document creation date) match.
  2. Checks that both the XML file and the accounting document are corrections or tax invoices (so that there is no links between a correction and a tax invoice).
  3. Checks if total amounts and credit amounts match.
  4. Checks that the files and documents are not reversed or parked and deleted.
Import parameters are:
  • IS_MODE - Linking mode (1 - manual, 2 - automatic)

  • IS_XML_KEY - XML file key

  • IS_XML_DATA - XML file header data

  • IS_FI_DATA - Accounting document data relevant for linking

  • IS_FI_BKPF - Accounting document header data

Export parameters are:
  • C_MATCH_FLAG - Indicator that is set if the XML file and the accounting document match.

  • E_MSGTY - user-defined message

  • E_MSGID - user-defined message

  • E_MSGNO - user-defined message

  • E_MSGV1 - user-defined message

  • E_MSGV2 - user-defined message

  • E_MSGV3 - user-defined message

  • E_MSGV4 - user-defined message

  • FIND_DOCS_FOR_XML is used to check if a link is possible between an XML file and a group of accounting documents. The method performs the same checks as the CHECK_DOC_XML method.
Import parameters are:
  • IS_XML_KEY - XML file key

  • IS_XML_DATA - XML file header data

Export parameters are:
  • CT_FI_DOC_MATCH - Indicator that is set if the XML file and the accounting document match.

  • E_MSGTY - user-defined message

  • E_MSGID - user-defined message

  • E_MSGNO - user-defined message

  • E_MSGV1 - user-defined message

  • E_MSGV2 - user-defined message

  • E_MSGV3 - user-defined message

  • E_MSGV4 - user-defined message

  • SET_FI_FILTER
Import parameters are:
  • IS_XML - XML file for linking

Export parameters are:
  • E_ACTIVE - Indicator that there is a custom relevancy filter

  • APPLY_FI_FILTER
Import parameters are:
  • IS_DOC - FI document

  • IS_XML - XML file for linking

Export parameters are:
  • E_OK - Indicator that labels a document as relevant

  • CM_SRC_DOCS_FOR_XML
Import parameters are:
  • IT_XML_TAB - table with ALV items for distributed cash method

  • IT_DOC_TAB - payment document data for distributed cash method

Export parameters are:
  • EV_ACTIVE - indicator that the BAdI is active and table ET_RELEVANT_DOC_KEY_TAB contains current data

  • ET_RELEVANT_DOC_KEY_TAB - relevant source FI document keys

  • CM_PAYM_DOCS_FOR_XML
Import parameters are:
  • IT_XML_TAB - table with ALV items for distributed cash method

  • IT_DOC_TAB - payment document data for distributed cash method

Export parameters are:
  • EV_ACTIVE - indicator that the BAdI is active and table ET_RELEVANT_DOC_KEY_TAB contains current data

  • ET_RELEVANT_DOC_KEY_TAB - relevant payment document keys

  • CM_ASG_PAYM_TO_XML
Import parameters are:
  • IT_XML_MNT - table with XML file header and amounts

  • IT_PAYM- payment document data for distributed cash method

Export parameters are:
  • ET_XML_PAYM_ASG - table with XML and payment document assignment amounts

  • CM_IS_ASSIGMENT_ACTIVE is used to determine whether the assignment is active.
  • GET_INCOME_CUSTOMIZING
Import parameters are:
  • I_BUKRS - Company Code

  • I_LIFNR - account number of Vendor or Creditor

  • IT_BSEG - table type for table BSEG

Export parameters are:
  • CS_SUM_REL - definition of invoices relevant for tax document

  • MASS_GET_FI is used to search for FI documents for the XML files during Mass Creation of Tax Invoices or Corrective Tax Invoices
Import parameters are:
  • IS_XML - XML file for linking

  • IT_DOC - source FI document data

  • I_DIRECT_CASH - indicator whether the direct cash method of accounting is used

Export parameters are:
  • CS_TAX_DOCS - tax-relevant document data

  • CT_MSGTAB - messages for documents

  • MAP_TI_ITEM - is used to fill controlling data for the creation of Tax Invoices or Corrective Tax Invoices
Import parameters are:
  • IN_ITEM - FI document items

Export parameters are:
  • OUT_ITEM - Incoming Tax Invoice Items

In the standard system, there is no activated BAdI implementation.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

To display the sample code, choose Goto -> Sample Code -> Display.

This BAdI uses the interface J_1UFDI_XML_MATCHING_IF. For more information, display the interface in the Class Builder.






General Material Data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 9538 Date: 20240523 Time: 190403     sap01-206 ( 118 ms )