This action might not be possible to undo. Are you sure you want to continue?
This tutorial explains about creating HRFORMS in HR module of SAP using t code HRFORMS. A complete HR form is an executable report with its own selection screen in the SAP System. HRFORMS use the data available from Metanets.
Concept of Metanet, Metastar, Metadimension, Infonet, Infostar and Infodimension.
The MetaNet is a view SAP HR data which can be printed in a form – adobe interactive or smartform. It covers all the data in SAP HR module which can be printed. A MetaNet contains MetaStars, which are the individual data sources e.g. employee metastar would contain details about the employee, his address, name etc. The MetaStar is a view of data that can be read from a specific source of data e.g. from a particular infotype or from a particular HR table – for payroll or time. The metastar, in turn contain metadimensions and metafigures. The MetaDimension is a complete description of a business object and it contains the relevant business object data – metafields which are either key fields or attributes. A MetaDimension can be used in several MetaStars. MetaFields are the fields values or information that exist in a MetaDimension. Each MetaField is part of the key that specifies the MetaDimension in full, or an attribute, a further characteristic of the MetaDimension. Similarly, Infonets, Infostars, Infodimensions and Infofields are the objects which are available in the HRFORM for displaying HR data and are similar to Metanets, metastars, metadimensions and metafields. We can find more details about Metanets using the T code HRFORMS_METADATA.
The first screen of HRFORMS contains all the forms available. In order to create a new form, let us click on the create button.
TIME type forms would contain only time metastars and none or limited data about other types. The difference lies in the various types of metastars that would be available to us while creating the forms.It asks for form name. For instance. country grouping and form class. NONE type forms would show all metastars from which we can fetch data except time metastars. choose PAYSLIP. So as we chose PAYSLIP type. we see the following screen: . Give the details as shown and for form class. We can also go for other types of forms.
Click on the green tick mark and it takes us to the following screen: .
SAP provides a default metanet which contains HR data in various metastars and metadimensions. apart from the self generated driver program. there is little coding required to be done in smartform’s global definition initialization part. In Layout. and it shows METANET as SAP Standard Metanet. The Adobe based forms have a prerequisite is that we must have Adobe Live Server installed on our machine and we have required authorizations for the same. In our case we would choose form builder and make the forms with Adobe interactive forms.Let us take a look at the HR Form tab: It shows the form class which is PAYSLIP Remuneration in our case. we can choose SAP Smartform or Form Builder. Had we chosen the smartform option. The Form builder is the Adobe Interactive form interface and here we would not do much of coding but design the form and values would be automatically populated by the self generated driver program. .
it is ‘Remuneration Statement’ already chosen. We can create our own metanets and even inherit them from standard SAP default metanet by using the t code HRFORMS_METADATA. From form class. choose Form Builder in the layout structure and from Metanet dropdown. the ABAP dictionary structure. . choose SAP default metanet which is the default metanet available for us. in the HR forms tab. SAP form and print program are all inactive.Currently. Creating Adobe based HR form: On the main screen of HR Forms creation. It is for PAYROLL type HR FORM which we chose while we began the HR form creation.
Then we can drag the metadimensions of the metastar below the corresponding infostar and it would create the infodimensions. We can include (drag and drop) metastars under our form’s infonet to create infostars similar to the corresponding metastar. The metanet contain metastars which in turn contain metadimensions and metafigures. Now suppose we want to show ABSENCE data in our HRFORM .Data flow from metanet to the form: When SAP creates the HR form. The metadimensions contain metafields which could be a key field or attribute. The fields – keys and attribute would come in the structure of our form interface once we are on the form design page. it makes an Infonet with our form’s name (zform_ribz2 in this case).
Hence we see that our form’s infonet now contains absence infostar. Remember the thumb rule – ‘Metastar can go under infonet and metadimension can go under infostar which is made up of the respective metastar. .Click on the ABSENCE metastar in the SAP default Metanet and drag it into the infonet window and touch it to the infonet (zform_ribz2). Similarly drag all the metastars into our infonet.
Each infostar should contain at least one infodimension or infofigure.After creating the required infostars by dragging the metastars. . we must include various metadimensions into the corresponding infostars by opening the corresponding metastars and dragging the metadimension into the infostar.
.So. we drag the corresponding metadimensions and metafigures into out infostars to make infodimensions and infofigures We can rename or delete any infostar or infodimension.
. Infodimensions.We can even do the selection on our infodimensions. like metadimensions contain key fields and attributes and we can give selection criteria in order to fetch the required set of data. in our wagetype infodimension. E. suppose.g.
after selecting the metastars and metadimensions which we require in our form and dragging them into our infonet. and we give the wage type as ‘1001’ in the selection box. we click on the infodimension and then click on the insert selection button. we want to show only wagetype 1001. . Form Design and Layout: Now.under pay_result infonet. we click on the layout button on the top. we can do this by choosing the selection criteria of the infodimension: For this.
it starts generating the form structure in the data dictionary according to the object we dragged in the infonet and takes us to the Adobe interactive form screen. which is the same screen as t code SFP. It takes us to the context tab of adobe form initially. It creates the adobe form interface with the data we chose in the infonet before and includes all the infodimensions available there within structures starting with DIM and STAR. Basically this is all the data available to us for the form.As we press the layout button. On the left hand side is .
Now. Now click on the layout tab.the Import interface which contains the import structures in the type hrdata and on the right hand side is the form context which have all the structures having all structures under type hrforms. in the layout type. . Click on the dropdown and choose the Standard Layout. we can still deactivate that particular locked structure in the context area by right clicking and deactivating it. We can’t delete the structures in the context as they are all locked. Note that all the structures along with type hrdata from the import interface have been dragged to the context area and they are all locked. it is <unknown type> chosen over there. click on the properties tab and we see the following screen: Initially. If we do not want some of the data in our form. We can see the fields available to us by expanding the tree under the context node. which would take us to the design part of the interactive form.
.Here. we can drag and drop the fields available in the data view and work with their formatting and create tabular outputs with positioned or followed types: It is better if we put a ‘followed’ table in a new subform as it would contain random number of rows at runtime and it might even overflow if it is not included in a subform. We design our form as per our requirements and then activate the same.
.After that. Click on the button over there to completely activate the form. click on back button and it would take us to the ‘Change HRForm’ screen.
Now. Choose our form and click on the execute button. in order to test our form. Make the necessary inputs and click on the execute button.Now. all three are active and status of the form is also active. click on the back button and it takes us to the first screen of the HRFORMS t code – HR Forms Workplace where we see all the HRFORMS available. We see the following screen. . the ABAP structure and the SAP Smart form name. we see that the driver program.
Click on the print preview button and there we see the output of our HRFORM: Hence we are done with creating and designing the HR Forms!! .
This action might not be possible to undo. Are you sure you want to continue?