Show TOC

Background documentationFeeder and Document Container Classes


In every HR Reporting scenario, there must be a feeder class and a Document Container class. The feeder class is the processing workhorse of your implementation. The Document Container class is just a container, and also a singleton, principally to hold the document, once your feeder class has produced it.


Figure 2 shows how the Feeder and Document Container classes interact with the WD Application.

At runtime, the end user makes entries in the fields provided by your FORM GUIBB configuration, or selects an entry from the table defined in your LIST GUIBB configuration (depending on your scenario). This information is available at runtime in your feeder class. The feeder class processes the user selection information, generates a form, and puts the finished form into the Document Container class.

During the FPM event loop, when the Document Display UIBB is built, the component controller of the Document Display UIBB reads this container and displays the form in the Document Display UIBB.

Whenever you use one of the FPM GUIBBs, the component configuration requires you to provide a feeder class for it. This is your class, and works a little bit like a Business Add-In (BAdI), in that you can partake of the FPM event loop in the FPM OVP component.

You can implement your own code in the interface methods in your class, so that you can influence the processing at various given points (for example INITIALIZE for things needed at screen build, GET_DATA to run your report in the backend, etc.).

SAP provides two super classes which provide services you can use in your feeder class and your feeder class must inherit from one of these, depending on the FPM GUIBB you intend to use:



Caution Caution

These super classes have the super class AC_HRGRT_REPORTING for services generic to both. You must not use AC_HRGRT_REPORTING as your feeder’s direct super class!

End of the caution.

The Document Container CL_HRGRT_DOCUMENT_CONTAINER class is a reuse service class provided by SAP.

Note Note

Currently the only document types supported are Acrobat PDF and Microsoft Office.

End of the note.