Show TOC

Determining the Language FieldsLocate this document in the navigation structure

Use

IDocs are transferred between an MDMP system and a Unicode system using tRFC.

Since messages are to be supported that contains segments with different code pages for IDoc transfers from MDMP to Unicode, it is important that it is possible to make a setting in the sending system that defines the field that contains the language information for language-dependent segments.

It is also important that you do not use the standard process to send the IDocs. Only in this way do you have control of the IDocs, which are first only generated and collected in the system, and only then sent using this extra report.

Prerequisites
  • IDocs that are to be sent with the report created specifically for Unicode/MDMP communication, RSEOUT00_MDMP, must first be collected. To achieve this, in transaction WE20, make the following settings for all language-dependent message types that are to be sent using this MDMP/Unicode communication:

    • Receiver Port: A tRFC port that exists in transaction WE21, with a tRFC destination for the recipient system created in transaction SM59. The destinations for the recipient system must have an explicit logon language.

    • No queue processing can have been set up.

    • Output Mode: Collect IDocs (never send immediately)

    • The values for Segment Release and Application Release are not required.

  • Ensure that the IDocs are not sent using the standard process, such as by report RSEOUT00.

Activities

In the sending system in each case, you need to set the field that contains the language information for language-dependent segments. Proceed as follows:

  1. Call transaction WE86.

  2. Specify a message type by choosing Start of the navigation path Edit Next navigation step Message Type Next navigation step Enter Assignment for Message Type End of the navigation path.

    If language fields exist (domain SPRAS), the segments and language fields are automatically determined.

    However, if the segment contains a language field that does not have the expected domain SPRAS, you can add this segment by choosing Start of the navigation path Edit Next navigation step Segment Next navigation step Add Segment to Message Type End of the navigation path.

    If a segment does not contain a field that carries language information, you can provide the language by implementing the BAdI IDOC_DATA_SPRAS_MDMP.

Result

In the sending system, you have set the field that contains the language information for language-dependent segments. This means that messages that contain segments with different code pages are supported when transferring IDocs between MDMP and Unicode systems.

In the Unicode system, in addition to determining the language field (transaction WE86), you also need to maintain transaction WE87 to load MDMP codepage information.

Example

The section Example of Language Field Determination shows how you can provide the language for a segment that does not contain a field with language information by implementing the BAdI IDOC_DATA_SPRAS_MDMP.