Creating and designing HR Forms-00

本文介绍了如何使用 SAP 的 HRFORMS 事务代码创建 HR 表单。详细讲解了 Metanet、Metastar 和 MetaDimension 等概念,并演示了创建 Adobe 互动表单的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

By Ribhu Ahuja, TCS

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.

TCode HRFORMS:

The first screen of HRFORMS contains all the forms available. In order to create a new form, let us click on the create button. 

 

It asks for form name, country grouping and form class. Give the details as shown and for form class, choose PAYSLIP. We can also go for other types of forms. The difference lies in the various types of metastars that would be available to us while creating the forms. For instance, NONE type forms would show all metastars from which we can fetch data except time metastars. TIME type forms would contain only time metastars and none or limited data about other types. So as we chose PAYSLIP type, we see the following screen:

Click on the green tick mark and it takes us to the following screen

 

Let us take a look at the HR Form tab: 

 

 

 

 

It shows the form class which is PAYSLIP Remuneration in our case, and it shows METANET as SAP Standard Metanet. SAP provides a default metanet which contains HR data in various metastars and metadimensions. In Layout, we can choose SAP Smartform or Form Builder. In our case we would choose form builder and make the forms with Adobe interactive forms.  

 

 

 

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. Had we chosen the smartform option, there is little coding required to be done in smartform’s global definition à initialization part, apart from the self generated driver program.  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. 

 

Currently, the ABAP dictionary structure, SAP form and print program are all inactive.

Creating Adobe based HR form: 

On the main screen of HR Forms creation, in the HR forms tab, choose Form Builder in the layout structure and from Metanet dropdown, choose SAP default metanet which is the default metanet available for us. 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, it is ‘Remuneration Statement’ already chosen. It is for PAYROLL type HR FORM which we chose while we began the HR form creation.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值