Ansicht
Dokumentation

ERC_CORRESP_CONVERT - BAdI: Converter for Correspondence

ERC_CORRESP_CONVERT - BAdI: Converter for Correspondence

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

You can use the Business Add-In (BAdI) HRRCF00_CORRESP_CONVERTER (Converter for Correspondence) to control within SAP E-Recruiting the converter for file formats that is required when using the correspondence editor.

For a description of the BAdI methods, see the documentation of the associated interface IF_EX_HRRCF_CORRESP_CONVERTER.

The system saves letter templates as Smart Form templates with text modules (letter sections). The user can change these letter sections. The system reads the text modules when loading in Interchange Text Format (ITF) format. This cannot be displayed with Web Dynpro. The FormattedTextEdit control (Control for Editing of Letter Sections) used by SAP expects a subset of XHTML as the code for the formatted text display.
Therefore it is necessary to convert the ITF format to HTML format, which can be interpreted by FormattedTextEdit.

The system likewise needs the reverse conversion from HTML to ITF to display the entire letter in the preview, to print the letter, and to send the letter by e-mail.

The BAdI is called by the class CL_HRRCF_CORR_UTIL_UI in which there is one method for each of the two conversion directions.

The difference between paragraph formatting and character (inline) formatting also has to be taken into account during the conversion.

You have performed the Customizing activity Specify ITF-HTML Mapping. You define the mappings stored there for each style. The system uses the class CL_HRRCF_CORR_UTIL_UI to read the mappings.

Note
The meaning of a hard and soft line break differs in HTML and ITF. In HTML and in ITF, a hard line break means a new paragraph is started.
When displaying using the HTML editor, a blank line is displayed between two paragraphs without the actual need for a separate paragraph tag.
When displaying using the ITF table, however, a paragraph tag is required to display a blank line between two paragraphs. To create a paragraph tag after the conversion from HTML to ITF, you have to implement this paragraph change in the conversion methods for the paragraph tags.

In the standard system, SAP provides the CL_IM_HRRCF00_CORR_CONVERTER sample implementation.

This supports all formattings of the FormattedTextEdit control. You can map these formattings to corresponding formats according to the information stored in the mapping. Tags that are not supported are not included.

Note the following restrictions:
  • Indents are supported for HTML standard paragraphs only.

  • In the sample implementation, lists are displayed without any indents.

  • Lists that are indented manually with the editor are handled like lists with no indents.

  • Hard line breaks are taken into account.
    This means that two successive HTML paragraphs are converted to two successive ITF paragraphs and vice versa. However, a blank line is displayed between the paragraphs in the FormattedTextEdit control, whereas this blank line does not appear in either the ITF table or in the formats generated from the table.

The BAdI implementation is inactive by default.

Activate the BAdI implementation or create and activate your own implementation.






Fill RESBD Structure from EBP Component Structure   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 4205 Date: 20240523 Time: 213745     sap01-206 ( 80 ms )