Quantcast
Channel: SCN : Document List - SAP ERP Human Capital Management (SAP ERP HCM)
Viewing all articles
Browse latest Browse all 672

Customer fiedls in payslip (PE51)

$
0
0

The printing of the payslip in thePayrollmoduleof SAP (HR-PY) is performedthroughRPCEDTE0reportfor Spain(withRPCEDTX0programsin other countries,whereXcorresponds to the country, for example,PPortugal;U: USA, GEngland, etc.). The maintenanceof the formsis fromthe transactionPE51,where we havedifferent sections ofreceiptwherewe want topaint thedisplayinformationto employeesregarding theirpay.

 

 

 

 

recibo1.png

 

Basically we have the following items in a typical form:

 

 

For if we have the need to include new fields that are not in the standard, Sap leaves a door open in the print program through the includes:The technology is a bit old receipts and quite limited in the face of the inclusion of new fields or fields incorporating capital calculated in a special way, as well as with regard to the design of the form (including images or logos, files signature, etc.).

 

 

Background: fixed texts that appear on the form and are always printed.
Individual fields: information is always printed in the same place, and that will vary by employer we are trying (for example, employee number, name, address, social security number, total payment, etc).
Window: section for printing the salary (table). Lines are defined by defining the concepts that include print and format (arrangement of lines).
Line arrangement: format for printing the salary in the window.
Accumulation Identifiers: totalizamos accumulators where different elements of pay (eg accruals, deductions, withholding, social security, etc.) and you can also use the form for printing.
Texts: definition of texts may then be used in the form.
Rules: We do not allow printing or certain information if certain rules.

 

 

RPCEDDZ9: include for defining data structures.
RPCEDSZ9: include programming for filling these new data structures or additional routines.

These includes can define fields or data structures that later use in the form, and Abap code for filling those fields.
Besides programming, you have to perform additional customizing to tell the system to these new fields are available and in place of receipts that we will be able to use. To do this, use the transaction PE51_CHECKTAB.

 

 

PRACTICAL EXAMPLE:NEWADDRESSFIELDSFOREMPLOYEEWORKPLACE.


We createdin infotype6addressesa newkind of leadership,Z1where we will storethe address of theplace of workof employeeswho are not inthe

headquartersof the company(which is whatremainsat the Divisional/Branchstaff).We then performthe changeofthe includes:

 

IncludeRPCEDDZ9:includethe record wherewe will storetheaddress datarecovered ofthe employee.

 

 

DATA: BEGIN OF Z500P,

         STRAS TYPE T500P-STRAS,

         PSTLZ TYPE T500P-PSTLZ,

         ORT01 TYPE T500P-ORT01,

       END OF Z500P.

 

Include RPCEDSZ9: in form POS-FIX-DATA-MOD

 

 

FORM POS-FIX-DATA-MOD USING $FOUND LIKE BOOLEAN

                             FLD_INFO TYPE TR_FLD_INFO.

   $FOUND = TRUE.

   CASE FLD_INFO-LNAME-STRNG.

     WHEN '$1'.

       PERFORM POS-$1.

    WHEN 'Z500P'.

       PERFORM fill_z500p using wpbp.

 

 

 

This is notenough to make thefield availableat the timeof designingthe form.For newfieldsare visible,the tablesmust beparameterizedT514,ThroughPE51_CHECKTABtransaction.ForSpainpayrollforms, we will workwithcountriesgrouper04 andFormclassCEDT.

 

recibo2.png

 

 

 

 

 

 

 

 

 

 

 

 

Inthis case, beinga record withmultiple fields,we will include itinthe Tables section(Fieldflagmarking theindividual,which is thesection of the formwhere youuse).Also, we will includeeach of thefieldsin the Fields section.Once theparameterization,we canedit the formand positionin the desirednew fields.

 

 

 

 

recibo3.png

 

ADDITIONALNOTE:We canalsousethe includeRPCEDSZ9(CHECK_PRINT_MOD routine) to includeadditional selection criteriainthe printing ofpayslips(toselect the valuein the fieldAZPrintcurrent period).We can, forexample,createa routine thatonlyprintpayrollfor whichpayment has been madeorany  similar funcionality.

 


Viewing all articles
Browse latest Browse all 672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>