Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete Basic Pay through PA30 (SAP-HR)

former_member226520
Participant
0 Kudos

Dear Friends,

I have to delete Basic pay of an employee for a year , If I am performing this by PA30 in development server(100)

then the record is deleted but when I am deleting the record from Quality server (009) then it showing following warning

Basic salary is not part of the pay components

it's not allowing me to delete the record, and my requirement is to delete the record in quality server,

Pls do needfull.

Regards,

Rihan

SAP-abaper

6 REPLIES 6

Former Member
0 Kudos

Hi Rihan

In PA30 go to Edit there u can see the delete option by using this option you can able to delete the BASIC PAY.

Regards

Gopinath Subramanyam

0 Kudos

Dear Friend,

when I am deleting then this warning message is occurring on screen and record is not deleted in

quality server :

Message:

"Basic salary is not part of the pay components"

hope you understand .

Regards,

Rihan

SAP-abaper

0 Kudos

Hi

This is not a development issue, you should talk with your Functional Consultant to get more info on the error.

In the meantime you can check those links and see if they can help

You can also debug yourself the cause of the error, this is the relevant code.

Include MP00083IN


MODULE P0008_IN INPUT.

  DATA: AL_GRP LIKE T7INA1-ALGRP,
        BASWT  LIKE T7INB1-BASWT.

* CHANGING THE IT8 STRUCTURE INTO AN INTERNAL TABLE
  PERFORM REP_STRUCT_TO_INT_TABLE TABLES CUR_TABLE.
* FINDING OUT THE ALLOWANCE GROUPING FOR THE PERSON
  PERFORM FIND_ALGRP USING P0008 CHANGING AL_GRP.
* FINDING OUT THE BASIC SALARY WT FOR THE ALGRP.
  SELECT SINGLE BASWT INTO  BASWT
                      FROM  T7INB1
                      WHERE ALGRP  = AL_GRP
                      AND   ENDDA >= P0008-BEGDA
                      AND   BEGDA <= P0008-BEGDA.
* FINDING OUT WHETHER THE LIST OF WAGETYPES INCLUDE BASIC SALARY
  READ TABLE CUR_TABLE WITH KEY PAYWT = BASWT.
  IF SY-SUBRC <> 0.
    MESSAGE W135(HRPADIN01).
  ENDIF.

ENDMODULE.                 " P0008_IN  INPUT

Former Member
0 Kudos

Hello,

how many entries do you have in your infotype ?

If you have only one entry then you can not delete it due to infotype time constraint

BR,

0 Kudos

Thanks to all Problem has been solved

this is a warning message , neglect it and press enter data will be deleted

Thanks a lot for your support

Rihan

former_member226520
Participant
0 Kudos

Thanks to all