Ansicht
Dokumentation

EHPRC_IMPORT_FACTORY - BAdI: Supported File Formats for Import

EHPRC_IMPORT_FACTORY - BAdI: Supported File Formats for Import

General Data in Customer Master   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in Product Compliance for Discrete Industries. You can use it to extend the supported file formats for importing material declaration data.

The BAdI provides the following methods:

  • GET_SUPPORTED_FILE_FORMATS: This method returns a table, which describes the supported file formats. Each file format can also include a link to a documentation object that is visible on the UI to provide information before the import starts.
  • GET_IMPORT_HANDLER: This method analyses the file content of the imported file and detects the corresponding file format. A format-specific file handler has to be returned (interface: IF_EHPRC_IMPORT_HANDLER).

You have noted the important information given in SAP Note 3133253.

The standard implementation supports the following file formats:

  • IPC 1752A XML (Version 2.0)

Create a new BAdI implementation that replaces the default implementation.

We recommend creating the implementation as a subclass of the default class CL_EHPRC_IMPORT_FACTORY_DEFto ensure that the standard file formats are still supported.

If the additional file format is based on XML, you can override the method IDENTIFY_XML_HANDLERand detect the file format by its XML content. If your logic is not able to identify the file, call the SUPER method of CL_EHPRC_IMPORT_FACTORY_DEFto preserve the standard XML identification.

The default implementation CL_EHPRC_IMPORT_FACTORY_DEFcan also serve as example code for your implementation.

Refer to class CL_EHPRC_IMPHDL_IPC_175X_20for an example of a format-specific handler implementation.






Addresses (Business Address Services)   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 1872 Date: 20240606 Time: 133619     sap01-206 ( 36 ms )