SAP ABAP IMG Activity FMDM_USMD_DATA_TRANS (BAdI: Prepare Data for Download File)
Hierarchy
MDG_FND (Software Component) MDG Foundation
   CA-MDG-AF (Application Component) Application Framework
     USMD0 (Package) Master Data: Common Objects
IMG Activity
ID FMDM_USMD_DATA_TRANS BAdI: Prepare Data for Download File  
Transaction Code S_SE4_70000051   (empty) 
Created on 20080618    
Customizing Attributes FMDM_USMD_DATA_TRANS   BAdI: Prepare Data for Download File 
Customizing Activity FMDM_USMD_DATA_TRANS   BAdI: Prepare Data for Download File 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name USMD_DATA_TRANSFER    

Use

This Business Add-In (BAdI) is used in the MDG Financials (CA-MDG-APP-FIN) application component.

You can use this BAdI to prepare the file for downloading data from the central system.

The PROCESS_DOWNLOAD instance method is called for master data (attributes and language-dependent texts) after the data has been read from the database tables and, if necessary, converted to the external format. The parameters of the method have the following meanings:

  • IO_MODEL_EXT Returns metainformation. (The field properties are located, for example, in the parameter under DT_FPROP).
  • I_MODEL Indicates the name of the data model.
  • I_TRVARI Indicates the data transfer variant.
  • I_ENTITY Indicates the entity type for which the download is to take place.
  • IS_DOWNLOAD_SETTINGS Indicates the technical settings of the download.
  • ITS_FIELD Indicates the sequence of the fields in the file.
  • IT_SEL Returns the selection for the download.
  • ET_MESSAGE Returns error and information messages. The BAdI can populate this table. The messages are written to the application log.
  • IT_DATA_INT Returns data in the internal format. This data cannot be changed.
  • CT_DATA_EXT Returns data in the external format. The data items are separated by the predefined separation character. This data can be changed.

Requirements

Standard settings

In the standard system, the BAdI implementation USMD_DATA_TRANSFER_EX is activated. The standard code is executed automatically.

The BAdI is not filter-dependent.

The BAdI is not designed for multiple use.

BAdI Implementation

USMD_DATA_TRANSFER_EX

Activities

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

Example

The global class CL_USMD_DATA_TRANSFER_BADI implements the standard behavior.

Access to the data in IT_DATA_INT can be dynamic (for example).

Access to the table for master data and language-dependent texts:

data:

lr type ref to data,

ls_field like line of its_field.

field-symbols:

<ls_data> type data,

<l_value> type data.

create data lr like line of it_data_int.

assign lr->* to <ls_data>.

loop at it_data_int into <ls_data>.

* assign all components of <ls_data>.

loop at its_field into ls_field.

assign component ls_field-fieldname of structure <ls_data> to <l_value>.

"read <l_value>

endloop.

endloop.

See also

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

Business Attributes
ASAP Roadmap ID 203   Establish Master Data 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20091016 
SAP Release Created in 604