Quantcast
Channel: SCN : All Content - All Communities
Viewing all 3228 articles
Browse latest View live

ABAP HR: Payroll results evaluation

$
0
0

Before jumping directly to the code, lets go into some basics. First, Time management data and Payroll data is stored in (data) clusters on the database and not directly in the transparent tables we are used to. The info about the clusters is stored in transparent table PCL2 as follows:

 

Pic1_PCL2.jpgPCL2: Payroll cluster table

 

RELID (Relations ID) is the 2-character name of the cluster e.g.CU, RD (Payroll results-US), RX (Payroll results-International), B2(Time management results), ZL(Personal shift plan), PS(Generated schema), PT(Texts for generated schema), etc.

 

SRTFD stores the key for the table PCL2. SRTF2 is the sort field so as to store a duplicate key.

 

PGMID is the name of the program which carried out the last update on the cluster and CLUSTD stores the data.

 

The standard country-specific payroll programs (RPCALCn0 - n stands for country version) write the results to PCL2. An overview of the payroll results can be accessed from the cluster directory in cluster CU for a specified period. Every employee on the payroll has its records in the cluster directory. Its structure as follows:

 

Pic2_PC261.jpgPC261: Cluster directory

 

SEQNR denotes the running sequence numbers for payroll results with next payroll result against the next sequence number. FPPER stores the period for which payroll run was carried out and INPER stores in which period it was carried out. For retroactive accounting, you can carry out payroll run for the past period/s in the current period.

 

This cluster directory from the cluster CU is stored in a database table HRPY_RGDIR (Directory for Payroll results) redundantly so that Logical database PNP can access it for evaluating payroll results.

 

Pic3_HRPY_RGDIR.jpgHRPY_RGDIR: Directory for Payroll results

 

There is another transparent table HRPY_WPBP which stores data from the table WPBP (Work Place / Basic Pay) of the cluster RX, redundantly for Logical database PNP again. The structure for the table in the cluster is represented by structure PC205.

 

Pic4_HRPY_WPBP.jpgHRPY_WPBP: Work place Basic pay

 

Let us now talk about evaluating payroll results. To help in accessing the payroll results, there are country-specific logical structures which are filled during evaluation process. Evaluation process may involve the use of Function modules or GET PAYROLL event of the PNP logical database. This logical structure is represented by PAYXY_RESULT, where XY represents the ISO code of the country which is stored in table T500L as follows:

 

Pic5_T500L.jpg

T500L: Personnel country grouping

 

The table T500L above also displays the country specific cluster name in the PCL2 table. Coming back to logical structure PAYXX_RESULT, it is PAYUS_RESULT from the above table, shown below :

 

Pic6_PAYUS_RESULT.jpgPAYUS_RESULT: Definition of payroll result

 

During run-time, Structure EVP holds the data from the directory of cluster CU. Structures INTER and NAT are deep structures and hold international and national component of the payroll. PAYUS_RESULT-INTER has further sub-structures/tables like VERSC (payroll status information), WPBP, RT(Results table), CRT(Cumulative Results table), etc.

 

Cluster CU has a table RGDIR which stores a row for each payroll run per employee. Standard report H99_DISPLAY_PAYRESULT can be used to display payroll results.

 

Following is a sample program for fetching payroll results using Function modules CU_READ_RGDIR and PYXX_READ_PAYROLL_RESULT. You can simply copy and paste the code from here and execute it and check the functionality. It throws an ALV output using class CL_SALV_TABLE. Debug it to understand the flow.

 

*&---------------------------------------------------------------------*

*& Report  ZTEST

*&

*&---------------------------------------------------------------------*

*&

*&

*&---------------------------------------------------------------------*

 

REPORT  ztest.

 

TABLES : pernr.

 

DATA : it_rgdir TYPE TABLE OF pc261 INITIAL SIZE 0,

        wa_rgdir LIKE LINE OF it_rgdir,

        it_rt TYPE payus_result-inter-rt,

        wa_rt LIKE LINE OF it_rt,

        wa_payrollresult TYPE payus_result,

        v_molga TYPE molga.

 

DATA : BEGIN OF wa_out,

         pernr TYPE pernr-pernr,

         gross TYPE pc207-betrg, "Amount

         net TYPE pc207-betrg,

        END OF wa_out,

        it_outtab LIKE TABLE OF wa_out.

 

START-OF-SELECTION.

 

GET pernr.

   wa_out-pernr = pernr-pernr.

 

   CALL FUNCTION 'CU_READ_RGDIR'

     EXPORTING

       persnr          = pernr-pernr

     IMPORTING

       molga           = v_molga     "if required

     TABLES

       in_rgdir        = it_rgdir

     EXCEPTIONS

       no_record_found = 1

       OTHERS          = 2.

   IF sy-subrc = 0.

 

     LOOP AT it_rgdir INTO wa_rgdir

                      WHERE fpbeg GE pn-begda AND

                            fpend LE pn-endda AND

                            srtza EQ 'A'.  "Current result

       CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'

         EXPORTING

           clusterid                    = 'RU'  "US

           employeenumber               = pernr-pernr

           sequencenumber               = wa_rgdir-seqnr

         CHANGING

           payroll_result               = wa_payrollresult

         EXCEPTIONS

           illegal_isocode_or_clusterid = 1

           error_generating_import      = 2

           import_mismatch_error        = 3

           subpool_dir_full             = 4

           no_read_authority            = 5

           no_record_found              = 6

           versions_do_not_match        = 7

           error_reading_archive        = 8

           error_reading_relid          = 9

           OTHERS                       = 10.

       IF sy-subrc = 0.

         LOOP AT wa_payrollresult-inter-rt INTO wa_rt.

           CASE wa_rt-lgart.

             WHEN '/101'.  " Gross

               wa_out-gross = wa_out-gross + wa_rt-betrg.

             WHEN '/560'.  " Net

               wa_out-net = wa_out-net + wa_rt-betrg.

           ENDCASE.

           APPEND wa_out TO it_outtab.

           CLEAR wa_out.

         ENDLOOP.

       ENDIF.

     ENDLOOP.

   ENDIF.

 

END-OF-SELECTION.

* ALV Output

   DATA : r_alv TYPE REF TO cl_salv_table.

 

   CALL METHOD cl_salv_table=>factory

     EXPORTING

       list_display   = if_salv_c_bool_sap=>false

*        r_container    =

*        container_name =

     IMPORTING

       r_salv_table   = r_alv

     CHANGING

       t_table        = it_outtab.

 

   CALL METHOD r_alv->display.

 

*&---------------------------------------------------------------------*


Error during Phase MAIN_NEWBAS/XPRAS_AIMMRG upgrade to CRM 7 EhP4

$
0
0

All,

 

Upgrading CRM 7.02 to CRM 7.04/NW7.50. Getting below error. Please help ASAP. Kernel 7.45 patch 100. Updated tp and R3trans to 116 patch. still getting error in Windows/SQL 2012 environment. Found some OSS note advising to downgrade tp; tried patch 100 and 116. But which version 7.22_EXT tp is not working, that is my old tp. Please help ASAP!!!!!!!!!!!

 

Checks after phase MAIN_NEWBAS/XPRAS_AIMMRG were negative!

 

Last error code set: Detected 3 aborted activities in 'XPRASUPG.ELG' Calling 'F:\usr\sap\CRX\DVEBMGS00\exe/tp' failed with return code 12, check F:\SUM\SUM\abap\log\SAPup.ECO for details:

 

Detected the following errors:

 

# F:\SUM\SUM\abap\log\SAPR750XPRA90000225.CRX:

 

1 ETP109 version and release : "380.44.20" "745"

 

1 ETP198

 

2 EPU126XPost-import methods for change/transport request: "SAPK750XPRA90000225"

 

4 EPU111 on the application server: "SAPCRMSBX"

 

2 EPU122XPost-import method "/CTSPLUG/ACT_AFTER_IMP" started for "PLGD" "L", date and time: "20160521204826"

 

1AETR012XProgram canceled (job "RDDEXECL", number "20482600")

 

1AEPU320 See job log"RDDEXECL""20482600""CRX"

 

 

### Phase MAIN_NEWBAS/XPRAS_AIMMRG:
SAPup> Starting subprocess in phase 'XPRAS_AIMMRG' at 20160521204618
    ENV: DBMS_TYPE=mss
    ENV: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    ENV: PATH=F:\usr\sap\CRX\DVEBMGS00\exe;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;P:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;P:\Program Files\Microsoft SQL Server\110\Tools\Binn\;P:\Program Files\Microsoft SQL Server\110\DTS\Binn\;P:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;P:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;F:\usr\sap\CRX\SYS\exe\uc\NTAMD64
    ENV: RSEC_SSFS_DATAPATH=\\SAPCRMSBX\sapmnt\CRX\SYS\global\security\rsecssfs\data
    ENV: RSEC_SSFS_KEYPATH=\\SAPCRMSBX\sapmnt\CRX\SYS\global\security\rsecssfs\key
    ENV: SAPSYSTEMNAME=CRX
*DBENV: dbs_mss_schema=crx
    ENV: rsdb_ssfs_connect=0
*DBENV: (auth_shadow_upgrade)
    PWD: F:\SUM\SUM\abap\tmp

EXECUTING F:\usr\sap\CRX\DVEBMGS00\exe\tp.EXE "pf=F:\SUM\SUM\abap\var\XPRASUPG.TPP" put CRX
This is F:\usr\sap\CRX\DVEBMGS00\exe\tp.EXE version 380.44.20 (release 745, unicode enabled)
Looking for effective putsteps ... ... ready (looking for putsteps)
stopping on error 12 during EXECUTION OF REPORTS AFTER PUT

tp returncode summary:

TOOLS: Highest return code of single steps was: 12
WARNS: Highest tp internal warning was: 0118
tp finished with return code: 12
meaning:
  A tool used by tp aborted
ERROR: stopping on error 12 during EXECUTION OF REPORTS AFTER PUT
SAPup> Process with PID 3940 terminated with status 12 at 20160521204848!

 

 

 

SAPup> Starting subprocess in phase 'XPRAS_AIMMRG' at 20160521204848
    ENV: DBMS_TYPE=mss
    ENV: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    ENV: PATH=F:\SUM\SUM\abap\exe;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;P:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;P:\Program Files\Microsoft SQL Server\110\Tools\Binn\;P:\Program Files\Microsoft SQL Server\110\DTS\Binn\;P:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;P:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;F:\usr\sap\CRX\SYS\exe\uc\NTAMD64
    ENV: RSEC_SSFS_DATAPATH=\\SAPCRMSBX\sapmnt\CRX\SYS\global\security\rsecssfs\data
    ENV: RSEC_SSFS_KEYPATH=\\SAPCRMSBX\sapmnt\CRX\SYS\global\security\rsecssfs\key
    ENV: SAPSYSTEMNAME=CRX
*DBENV: dbs_mss_schema=crx
    ENV: rsdb_ssfs_connect=0
*DBENV: (auth_shadow_upgrade)
    PWD: F:\SUM\SUM\abap\tmp

EXECUTING F:\SUM\SUM\abap\exe\tp.EXE extrdocu CRX "pf=F:\SUM\SUM\abap\var\DEFAULT.TPP" "if=F:\SUM\SUM\abap\tmp\MSGIN.LST" "of=F:\SUM\SUM\abap\tmp\MSGOUT.LST"
This is F:\SUM\SUM\abap\exe\tp.EXE version 380.44.20 (release 745, unicode enabled)
HALT 20160521204849

tp returncode summary:

TOOLS: Highest return code of single steps was: 16
ERRORS: Highest tp internal error was: 0233
tp finished with return code: 233
meaning:
  SAP-System not installed properly (HEAD SYST)
ERROR: SAP System not installed properly. Systems name (ALL) is different from name in TADIR (CRX)
ERROR: EXIT(16) -> process ID is: 5732
SAPup> Process with PID 5732 terminated with status 233 at 20160521204849!

 

Thanks,

Kavitha Rajan

How to make a query on connected A/R Credit to Sales Order?

$
0
0

Dear Experts,

 

I'm trying to make a query report of all sales order with ar invoice & ar credit amount? Please help me with this.

 

Regards

PB 12.6 eval. Can I update EBF

$
0
0

Hi Guys,

 

Doing a trial with build 3506 and finding quite a few bugs.  Is it possible to update to something newer to test with?

 

Cheers Michael

Workflow Mail Text Alignment Issue

$
0
0

Hi Experts,

 

I am sending a mail to users using workflow mail step . When I checked mail using Gmail it is displaying properly, But  in outlook it is  not displaying properly. 

 

Thanks in  Advance.

 

Thanks & Regards,

Shiva.....

Object name is not allowed to be empty

$
0
0

Hello,

 

I am getting error while loading data in 0MATERIAL hierarchy.

The error message is "Object name is not allowed to be empty".I could saa lots of post related to this error,but nothing helped.

 

The scenario si :

 

We are extracting data in a flat file from one of the DSO in BW and loading flat file data to 0MATERIAL hieararchy.

Now I can understand where the issue is.For one of the Node ID,the infoofbject field has no value assigned to it.

 

Now I don't understand how to handle the error.The job is failing regularly due to this.Please help

 

Regards,

 

Neetu

CRM Lead Deletion Issue

$
0
0

Friends

 

We have * in authorization object 'CRM_Lead,' but I don't know what I am missing, system is not allowing me to delete lead document.

 

Can you pls mention what is the authorization object relevant for lead document deletion in web UI ? and what value has to be mentioned in authorization object and all.

 

Unfortunately I didn't get correct info through my research. Thanks in advance     

Design Philosophy

$
0
0

I ask a lot of questions to people on this site so if I get over bearing just tell me to shut up and go away.  I'm in the process of trying to evaluate PB for future enterprise applications, figuring out what it can do and how well.

 

One of the tools in my tool bag that I use extensively is the master / detail data window combination, where the master shows rows from the table and the detail provides a means of updated, inserting, or deleting a row.  But I sometimes find that there is a need to provide multiple detail data windows for one master.  For example, an employee has demographic data, address data, and objectives.  The employee, addresses, and objectives are in three different tables. 

 

This could be three separate windows, each using the same master list data window, accompanied by the appropriate data window for the function.  Or it could be one window where the data window is dynamically selected - but to the user it still appears as three separate windows, probably requiring separate menu items to select them.  Another possible approach is to use something like a tab control on the window with the master data window above it and one page for each of the detail data windows, all keying off the row selected in the master data window.  Thus a list of employees in the master data window with the detail displayed for the selected row in three tabs, demographics, addresses, and goals, accessing the three tables.

 

So my question is simply, is there a good standard way of presenting this to the user that is easiest for them to understand and use which is not overly complicated?  Also, placing all of those controls on one window may make things technically challenging from an operational or code maintenance perspective?


Bank account number length Error: AR212

$
0
0

Hi All,

 

I need to update a bank account number in vendor master (FK02). Reducing the number of digits from 10 to 08 digits, but every time I do it I got the error message:

Bank account number or bank number are not of valid length - AR212.

I already made changes in transaction OY17 changing some country specific  checks, try changing the "checking rule" and "bank account number length also. but I still get the same error message.

Does anybody has an idea what the problem can be?

I already delete the bank account and try to recreate it, also did the same creating a new house bank, but also get the same error message.

 

Thank you so much for any help.

 

Deepu K James.

why xswidget is empty?

$
0
0

Dear friends,

        I create a UIS Catalog but it's empty

QQ截图20150908152719.png

 

 

I check the development guide, it should like this :

QQ截图20150908155227.png

 

Best Regards

Zhang

Account Creation Through ELM

$
0
0

Friends

 

Is there a option to run ELM in simulation mode before running it in creation mode?.

 

Thanks

Error Dump during copy of PO in ME21N

$
0
0

Hi,

 

Im encountering error dump during copy of PO in ME21N. after i drag nd drop the PO number in the basket in ME21N, an error dump occur.

 

***************************************************************

Short text

    Exception condition "FAILURE" raised.

 

 

 

What happened?

    The current ABAP/4 program encountered an unexpected

    situation.

 

 

 

Error analysis

    A RAISE statement in the program "CL_PO_ITEM_HANDLE_MM==========CP" ra

     exception

    condition "FAILURE".

    Since the exception was not intercepted by a superior

    program, processing was terminated.

 

    Short description of exception condition:

 

 

    For detailed documentation of the exception condition, use

    Transaction SE37 (Function Library). You can take the called

    function module from the display of active calls.

 

 

Trigger Location of Runtime Error

    Program                                 CL_PO_ITEM_HANDLE_MM==========CP

    Include                                 CL_PO_ITEM_HANDLE_MM==========CM00G

    Row                                     29

    Module type                             (METHOD)

    Module Name                             GET_DATA

 

******************************************************************

 

Thanks...

james

FAGLBW03 : FI data source creation for non leading ledger / Memoranda ledger based on FAGLFLEXT table

$
0
0

Hello Everyone,

 

I wanted to generate Finance report in BI based on Memoranda Entry ledger (Z1) as mentioned in below screenshot. FAGLFLEXT table is having transaction data for Z1 ledger but 0FI_GL_10 data source doesn't bring Z1 ledger information.

 

Img 1.JPG

I have gone through certain threads and found out that we will have to generate our own data source for any other ledger. I went to FAGLBW03 t-code in ECC as mentioned in below screenshot but couldn't find Z1 ledger.

 

Img 2.JPG

 

Can anyone provide input on how to generate data source based on FAGLFLEXT table based on Z1 Ledger ?

 

Thanks in advance.

Display BEx column name in Webi

$
0
0

I have a BEx column with the name Forecasted Collection Units and Actual Collected Units, I want this names to be my header for my table in Webi. Is there a way to do this?

 

 

Or is there a way in BW to create a field that displays the month and year

(ex. 01.2016) based on the selected date from the prompts?

workflow work on cloud or not?

$
0
0

Dear All

 

Do you know workflow module can work on cloud?

 

Regards

Edmund


不更新的EXL数据怎么做为WEBI源

$
0
0

财务那边有一些EXL表,这些是手工更新的,想问下,这种EXL数据怎么做为WEBI源,直接点EXL源创建会报错,请问该怎么解决。

Restrict release of refurbishment order, if the planned cost is 60% or more than that of the cost of new equipment.

$
0
0

Hello Gurus,

                 My client requirement is Ex: if a new equipment cost is 100 rs and if my refurbishment cost of that equipment is 60 rs or more, then refurbishment order should not be saved/ released.

How can this be achieved?

user defined table type master data vs document

$
0
0


Hi All,

 

What are the use case scenarios and the difference between master data vs document type of user defined tables? both can link the row level sub table so what's the difference in a practical scenario?

 

Thanks

Process chain event should trigger only after success

$
0
0

Hi Gurus,

 

I have a meta chain with local chains as you can see in the picture.The process chain is designed in such a way that when the 1st step fails or goes to success the 2nd step is triggered. I am trying to set the event to success so that when the 1st step fails the process chain shouldnt trigger the 2nd step. I have no dependecy from 1->3, so even if 1 fails 3 should run, but when 1 fails 2 cannot run. So i am trying to change the event to success from 1->2  and from 1->3 it can be either success/failure. It doesn't allow me do it , it allows only 1 event status at a time i.e. success for both 2 and 3 or success/failure for both 2 and 3.

 

Help will be rewarded with points. Thanks in advance.

PC.PNG

Regards,

FM.

MDG Upgrade and Data Model Activation

$
0
0

Hello , We are upgrading our co deployed MDG from 6.1 version to 8.0 version . We are running though configuration guide and activated the services and Business functions as mentioned in SAP config document . After Business functions are activated , we still see the data model as the "Same" .

 

We have tried activating the same many times but everytime we get successful message by the datamodel is same as in 6.1 version . We have adjusted the data mode etc . Any suggestions ?

 

Binoy

Viewing all 3228 articles
Browse latest View live


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