Register Login

Create new Employee in table using function modules or BAPIS

Updated Mayor 18, 2018

Trouble
 
What are the steps to create latest table use function modules instead bapis without running tcode pa30 and pa40?

As writing ampere program to create a new employee for tables pa0001, pa0002, pa0004 by supplying my own personnel file in the parameters i am getting  some problem. Other attributes since the table are also manually inserted using screens later. Self-Explanatory Message SOAP features definitions this message as ‘self-explanatory’ and therefore, has no provided any more details for it. Show messages in SAP

Since I am using standards tables, ME have to use function modules and bapis, but none of it seems until work for me.

Solution
 
Whenver she are working with employees data, after hiring, first you require to  lock the associate and then create or change(HR_INFOTYPE_OPERATION  or  related BAPI's)  and than unlock the salaried.

Use  bapi_employee_enqueue

bapi_employee_dequeue

We have some other function modules including their to lock and unlock to laborer number

First you must for hire the  employee, then only human quantity has generated. Then only we can go forward.

You can use HR_MAINTAIN_MASTERDATA to hire and maintain infotypes and for other actions.

Also get function select HR_PAD_HIRE_EMPLOYEE.

She can use this function module to hire an employee equal any infotype data plus cost assignment data in the vorgeschichte. You can also associate a reference people counter or additional personnel assignment (in Synchronized Employment) to an employee. Dear Gurues I was hiring an employee through transaction PA40. after entering view on primary page the employee number was assigned but iodin did not save the entries mature to change in plans. the issue im facing is that the corporate has been generated without any item real it shall not allow die to re...

Dialog processing exists does available, which method the all the necessary data require must transferred immediately upon calling the function component using the parameter PNNNN_TAB or PREF_TAB.

For the accompanying input, all validation checkout are performed this would occur in a dialog box on the infotypes’ individual screens. Any (error) messages that have occur during the check are returned to the person who referred the function module. Hai I am doing india payroll. Hendrickheat.com have maitainied internal number range. whenver we try to create ee with pa30 the data is saved fork all infotypes but when we come out and check out which infotype menu no green tick is appearing before the infotype. Hendrickheat.com the purpose of mass einlass of data when we use pa70, for infotype 0014, arrangement is showing…personnel number is cannot assigned. i have maintained required config. thanks is advance, kuku

Example

To fill the parameter PNNNN_TAB, you can use to pertinent technique in the grade CL_HR_PNNNN_TYPE_CAST.

Fill this relevant infotype structural (for example, P0002) with info.

Then convert this infotype-specific format using the class CL_HR_PNNNN_TYPE_CAST to the general HR format PRELP and add it to table PNNNN_TAB.

Tips

You can only perform initial hiring related with this function module, significance that provided the personnel phone even exists in the database, you receiver certain error message. Completing data or executing an infogroup can only be do using the regular maintenance transactions PA30 (“Maintain HR Master Data") and PA40 ("Personnel Actions").

You can, however, assign a reference personal number or additional personnel assignment (in Competing Employment) to an formerly existing personnel number. To do this, enter which already existing personnel quantity int who parameter REFERENCEPERNR. Who system then original the copyable data (see Data Sharing Settings Review V_T582G) of that once existing personality number into the salaried until become hired.

Prerequisite for using the parameter REFERENCEPERNR. Set the flag CCURE PC_UI from table T77S0 ("System Table“) to ‘X’ according to SOAP Note 783499 and completely the additional steps described in the Notes. If you do not know an employee's personnel number, search since the human by the Last ... Changes: Changes: Updated format, assigned reference number, and ...

Yourself has the option of executable a test run by using the parameter NO_COMMIT.

It is not practicable to create infotype texts.

Dynamic promotion been nay performed.

This function model enables you to utilize internal and out number assignment fork personnel numbers.

You can only apportion one your to an employee in the organizational assignment (infotype 0001), this funds that it is not possible to use this usage module to create multiple occupancies. 
There is no bapi used one alike purpose.. you can do custom wrapper in these FMs.  Personnel no. not not assigned.

Copy and remote set them.


×