Thursday, July 25, 2013

V_T556W - View to maintain compensation method against quota and WTs for IT0416

View: V_T556W

This is the view to maintain the configurations for Wagetypes against Quotas that will be compensated. This is used for IT 0416.

Wednesday, July 24, 2013

Setting Key Date dynamically to current date in a variant

Setting Key Date dynamically to current date in a variant

We had a problem setting the variant to have the Key Date field as today's date for program RHPROFL0 so that everytime this background job runs, this program would check all valid positions based on the key date and synchronized the roles into the userids in SU01.

In order to do this, go to Variant Attributes by clicking on Save from the program's selection screen.
  1. Then press 'F4' at Selection variable. The field is lightblue/greyed out, and it's misleading. But it is possible to select a value from the F4 popup.
  2. Then type in or select Current Date in the Name of Variable.
  3. Click on Save.

When you re-enter into this screen again, the = sign will appear under Option.

Tuesday, July 16, 2013

SAP Australia - Higher Duties Allowance

Higher Duties Allowance are a type of allowance payment if you are working on a higher level position. You record the position and the duration in IT509. The calculation of salary difference is displayed in the Infotype.

This wagetype is configured with Processing Class 21 = B (Lump Sum B Tax) and is usually paid out during Termination.

However, it is also taxed when there is a retro across financial year.

WT3021 = $546.92

Take 5% from $546.92 = $27.34

$27.34 / 26 (payroll periods) = $1.052

Add $1.052 to Average /109  $2937.69 = $2938.74

Use ATO calculator to get the tax for $2938.74 = $676

The current tax /410 is $674 therefore the difference is $676 - $674 = $2

Multiply $2 X 26 (payroll period) = $52

/421 = -$52

Technically, payroll schema checks whether this wagetype is across financial year or in DT via Operation QRDT2 which is located in QTR2. Then payroll will process QTRR. Then QTRB will process the calculation into /421 wagetype.

Friday, July 12, 2013

Program to save spool as PDF

There are some standard SAP programs that generates forms on screen. However, they do not provide you with the option to download or save it as PDF file that you can keep.

1. There's a workaround for this. When you print the form, tick the New Spool Request checkbox in the Print popup box (where you normally enter the LOCL). Then proceed to print button.

2. Then go to tcode SP01 and search for the spool number that was generated.

3. Now go to tcode SA38 and launch program RXTXPDFT4.

4. Enter the spool number and file to download the pdf. Execute the program and the PDF file is downloaded to your pc.

Program: RXTXPDFT4

Thursday, July 11, 2013

User Exits - PBO and PAI (ZXPADU01) and (ZXPADU02)

The standard way to implement Process before output (PBO) - Defaulting of fields and Process After Input (PAI) is to write your code into two programs:-


In SAP FM EXIT_SAPFP50M_002 and EXIT_SAPFP50M_001 it will trigger the includes ZXPADU01 and ZXPADU02

Some code snippets that may be useful is as below. Use this to convert structure into a variable and convert it back at the end of the code

 DATAi0011 TYPE p0011.

   WHEN '0011'.      "ext bank transfers
     CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
         prelp innnn
         pnnnn i0011.

* Set endda to begda by default
       i0011-endda i0011-begda.

       CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
           pnnnn i0011
           prelp innnn.

Tuesday, July 9, 2013

Configuring Action's Reason

View: V_T530

Configuring Reason Codes to Action Codes used in PA40 can be done in V_T530.
This view provides you with the Action Code, Reason Code and Reason Text Description


Action Code Action Description Reason Code Reason Description
ZH                 Separation                37                    Redundancy - Voluntary