cancel
Showing results for 
Search instead for 
Did you mean: 

Locking PA using PA30

nishantbansal91
Active Contributor
0 Kudos

Hi,

How we can create LOCKED record using PA30 not from PORTAL for Personal Details and BANK Details.

Is there any exit or BADI for this.

Thanks and Regards,

Nishant Bansal.

Accepted Solutions (1)

Accepted Solutions (1)

jagan_gunja
Active Contributor
0 Kudos

Hi everyone

As a standard business practice, data like personal details and bank details should be changed/entered by employees through ESS only and not via the txn PA30.  This will be approved depending on the type of data.  Normally employees are not allowed to use the R/3 front end.

Transactions PA30, PA40, etc should be for business users or administrators in HR, or Payroll department.

Regards,

JG

Answers (3)

Answers (3)

former_member185540
Active Participant
0 Kudos

Hi,

Simply create a dymanic action. Thats the simplest way I think. No need for FM etc

Thanks,

Andy

Former Member
0 Kudos

Does the following help?

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE' "Lock employee

  EXPORTING

  number = " bapip0001-pernr Personnel number

  IMPORTING

  return = " bapireturn1 Structure for return code

  . " BAPI_EMPLOYEE_ENQUEUE

ShrutiJoshi
Active Contributor
0 Kudos

Hi Nishant

You simply need to open the infotype in change mode and then select Edit-->Lock. Alternately you can press Shift+F12 to lock the record.

nishantbansal91
Active Contributor
0 Kudos

Hi,


I need to implement the same using BADI or EXIT.


Thanks

NIshant

ShrutiJoshi
Active Contributor
0 Kudos

If its available as a standard functionality then why do u need it as a badi or exit?

nishantbansal91
Active Contributor
0 Kudos

Hi,

Actually we have to developed one workflow, we will need to trigger that workflow if any user changes any personnel details using Portal. But currently we  have not configured portal so we are trying the do the same using PA30 .So, is there any way that if user changes in the 0002 infotype automatically that record will be saved in LOCKED mode.


Thanks and Regards,

Nishant

ShrutiJoshi
Active Contributor
0 Kudos

I dont think it can be done functionally. You will have to ask your abap consultant to write an exit for you.

leelamohan_kavali
Active Contributor
0 Kudos

Dear Nishant,

As Shruti said hope there is no standard functionality for your requirement. it will be done with Custom program by ABAPER. now what you will do is, Just explain the scenario to ABAPER then he can guide you how to do it.

Ur's Mohan