Ansicht
Dokumentation

PA_XX_ERD_070 - BAdI: Transformation of Infotype Data to Own Format

PA_XX_ERD_070 - BAdI: Transformation of Infotype Data to Own Format

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

The Business Add-In (BAdI) HRPAD_B_ERD_SPEC_DATA_INFTY enables the conversion of the infotype data into another format. The infotype data is converted from the format in which the records are saved in the database under PAnnnn into any other format that is defined in the dictionary as DDIC structure and in which the Information of Employee-Related Data program (RPLERDX0) is to display the data. Note that this function is not available for secondary infotypes.

The BAdI also provides the option of defining the field labels for individual fields within the program output. This function is also available for secondary infotypes.

The BAdI has the number of the infotype as the filter value and can therefore be implemented for individual infotypes.

The system uses the interface IF_HRPAD_ERD_SPEC_DATA_INFTY to provide the methods TRANSFORM_DATA and GET_FIELD_LABELS.

For both methods, a filter value that enables cross-infotype implementation is available via the importing parameter iv_infotype. This means that rather than an implementation for each filter (infotype), you only need one implementation without specification of a filter value.

If necessary, create your own implementation of the BAdI for individual infotypes to enable the output of data in another structure or to adjust texts for specific field labels to suit your requirements. To do this, enter the number of the infotype as the filter value in the first step.

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.

The method TRANSFORM_DATA has the importing parameter IS_STRUCT_CONTENT, which contains a record of the infotype, and uses the changing parameter CS_OUTPUT_CONTENT to return the transferred data to any DDIC structure. The GET_FIELD_LABELS method has the changing parameter CT_OUTPUT_FIELDTEXT, which contains a table consisting of component names (not the data elements) of the relevant infotype and the field labels to be used. You can define the required texts for individual fields for the infotype specified using the filter value.

If you want to implement only one of the two methods, you define the two-line coding, consisting of METHOD and ENDMETHOD, for the other method. You must create this minimal implementation.

In the standard system, default implementations are defined for the infotypes Electronic Data Exchange (0700) and Pension Equalization Payment (0785). The implementation HRPAD_ERD_SPEC_DATA_0700 for the infotype 0700 uses the method TRANSFORM_DATA to convert the unstructured data for the output according to the subtype. The implementation HRPAD_ERD_SPEC_DATA_0785 for the infotype 0785 uses the method GET_FIELD_LABELS to specify the texts for the field labels that contains the following pay scale information:

  • At the point in time of the end of the marriage
  • On January 1, 1990
  • On January 1, 2008





ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 4460 Date: 20240523 Time: 203229     sap01-206 ( 133 ms )