Decoupled Infotypes. Что это такое?

Технологии не стоят на месте, и даже на таком островке стабильности, плотно покрытом слоем нафталина, как кадровое администрирование, появляются новые «веяния», которые со временем начинаешь познавать и использовать. Итак, Decoupled Infotypes. Что это такое?

Простите, что?

На сегодняшний момент существует два метода создания PA инфо-типа (дальше будет немного смешно): старый метод и новый. Под старым методом понимается, что бизнес-логика и пользовательский интерфейс инфо-типа находятся в одном месте, а именно в пуле модулей. Под новым методом понимается разделение бизнес-логики и пользовательского интерфейса инфо-типа. Последний метод имеет название «decoupled».

См. Decoupling Infotypes

There is an old method and a new method for creating and defining infotypes. The new method does away with the previous close link between the business logic and the user interface, that is, the visual display of the data (ABAP screens). Infotypes that are created using the new method are also known as "decoupled" infotypes.

Вместо пула модулей, при работе с новым методом создания инфо-типов, теперь необходимо использовать классы преобразований (conversion class)

См. Decoupling Infotypes

The infotype-specific business logic for decoupled infotypes is programmed in ABAP Objects classes instead of in the module pool. A check class is created for each infotype; the check class is addressed by the infotype framework.For the interface-relevant elements of the infotype, a conversion class is created that formats the business logic data for display in the user interface.

См. Conversion Class

Definition

Class that converts screen structures to structures that can be interpreted by the business logic (processing logic).

Use

Screen structures contain all interface-relevant fields of an infotype that can be displayed or edited on the user interface.Therefore, the fields of an infotype structure must be converted to a relevant format. This function is taken on by the conversion class (see example).

Так называемый класс преобразований (conversion class) теперь выступает в роли посредника между бизнес-логикой и пользовательским интерфейсом (backend-ом и frontend-ом).

См. Conversion Class

Example

Conversion of the date for output on forms, for example, in three separate fields:

  • Current Date

  • Name of month

  • Year

Стоит обратить внимание на то, что некоторые приложения сервисов самообслуживания сотрудников (ESS) в новых версиях системы, а также сервисы, используемые в функциональности HR Administrative Services, работают уже с новыми типами кадровых инфо-типов, о чем свидетельствует официальное справочное руководство вендора.

См. Decoupling Infotypes

However, newer applications such as some ESS scenarios or the HR Administrative Services are based on the decoupled infotype framework, and can only process decoupled infotypes.

This means that if you want to use a customer-specific infotype within this framework, the infotype must be decoupled.

When you create a new infotype, you should therefore always create a decoupled infotype.

См. Conversion Class

The conversion class for an infotype is called at runtime by the various applications such as the XSS adapter for the self-service scenarios or the adapter for HR Administrative Services . Each infotype uses at least one conversion class. Different country versions use different conversion classes.

Как же создать decoupled инфо-тип?

Создать decoupled инфо-тип возможно посредством транзакции PM01, активировав на селекционном экране опцию Check Class (BAdI)

Рисунок 1.

Нажмите на кнопку  и подтвердите создание новых объектов

[Рисунок 2.

Определите поля нового инфо-типа, заполнив PS* структуру

Рисунок 3.

Проверьте наличие записи о новом инфо-типе в настроечной таблице T582A

Рисунок 4.

А также наличие записи о новом инфо-типе в таблице T588UICONVCLAS

Рисунок 5.

В целом, все готово, о чем свидетельствует успешное создание нового инфо-типа через транзакцию PA30

Рисунок 6.

Что же делать дальше?

А дальше необходимо поглощать документацию, любезно предоставленную вендором

См. UI Programming Guidelines for Infotypes
См. Business Logic Guidelines for Creating and Migrating Infotypes

Крепко обнимаю! Ваш, ignatov.

Read more