Application Development and Automation 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: 
Read only

creat action infotype

Former Member
0 Likes
1,006

Hi

I am getting error "personnel number" yet not assigned when am trying to create an employee with this from hr_infotype_operation.

Do we have any other option other than bdc to create 'pernr'.

Pls help me .

Regards

Meeta

Hi

I am getting error "personnel number" yet not assigned when am trying to create an employee with this from hr_infotype_operation.

Do we have any other option other than bdc to create 'pernr'.

Pls help me .

Regards

Meeta

7 REPLIES 7
Read only

Former Member
0 Likes
969

HR_INFOTYPE_OPERATION cannot be used to hire new employees. It can be only used to modify infotypes for existing employees.

If you want to create a new employee, use HR_MAINTAIN_MASTERDATA directly. I am sure you should find some samples if you search in the forum with this FM name.

One other option is to make a custom FM Z_HR_INFOTYPE_OPERATION and add the NO_EXISTENCE_CHECK flag to the interface.

The first option would be recommended though.

Read only

Former Member
0 Likes
969

hi,

To create a new Hiring Entry you have to use

HR_MAINTAIN_MASTERDATA.

Refer to the link.

http://help.sap.com/saphelp_nw04/helpdata/en/f1/0ce464dc8b11d2803800c04f99fbf0/content.htm

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
969

HI

Txs for your response

but even after using HR_MAINTAIN_MASTERDATA am getting the same message that personnel number yet not

assigned.

pls help me out

Regards

Meeta

Read only

0 Likes
969

Hi meeta,

1. while calling the FM HR_MAINTAIN_MASTERDATA

also pass the parameter

NO_EXISTENCE_CHECK = 'X'.

meaning that it will not check for existence of personnel number.

regards,

amit m.

Read only

Former Member
0 Likes
969

Hi

Txs for quick response

am able to create new pernr but,a new problem is coming

and asking for proper combination of personnel area and sub area and when i give the same combination via PA40 it accept

but dont know why not taking from this FM my code is like this

VALUES-INFTY = '0000'.

VALUES-FNAME = 'P0000-MASSG'.

VALUES-FVAL = '01'.

APPEND VALUES.

clear values.

VALUES-INFTY = '0000'.

VALUES-FNAME = 'P0001-BTRTL'.

VALUES-FVAL = '0001'.

APPEND VALUES.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

EXPORTING

PERNR = p_pernr

MASSN = '03'

ACTIO = 'INS'

TCLAS = 'A'

BEGDA = SY-DATUM

ENDDA = '99991231'

  • OBJPS =

SEQNR = '000'

  • SPRPS =

  • SUBTY =

WERKS = 'DE10'

PERSG = '1'

PERSK = 'DC'

PLANS = '00000001'

DIALOG_MODE = '1'

LUW_MODE = '1'

NO_EXISTENCE_CHECK = 'X'

NO_ENQUEUE = 'X'

IMPORTING

  • RETURN =

RETURN1 = w_bapireturn

  • HR_RETURN =

TABLES

PROPOSED_VALUES = values.

  • MODIFIED_KEYS =

Regards

Meeta

Read only

Former Member
0 Likes
969

Hi

Am giving all the required details in this FM now pernr is creating for me but then its taking me to 0006 screen and am getting error 'No entry in table T591A for key 0006 ' but when i see this table i can see there few entries for 0006 with relevant subtypes.

the code is like this,

VALUES-INFTY = '0000'.

VALUES-FNAME = 'P0000-MASSG'.

VALUES-FVAL = '01'.

APPEND VALUES.

clear values.

VALUES-INFTY = '0001'.

VALUES-FNAME = 'P0001-BTRTL'.

VALUES-FVAL = '0001'.

APPEND VALUES.

VALUES-INFTY = '0006'.

VALUES-FNAME = 'Q0002-ANREX'.

VALUES-FVAL = 'Mr'.

APPEND VALUES.

VALUES-INFTY = '0006'.

VALUES-FNAME = 'P0002-VORNA'.

VALUES-FVAL = 'Uma'.

APPEND VALUES.

VALUES-INFTY = '0006'.

VALUES-FNAME = 'P0002-NACHN'.

VALUES-FVAL = 'Shankar'.

APPEND VALUES.

VALUES-INFTY = '0006'.

VALUES-FNAME = 'Q0002-GBPAS'.

VALUES-FVAL = '19950203'.

APPEND VALUES.

VALUES-INFTY = '0006'.

VALUES-FNAME = 'P0002-NATIO'.

VALUES-FVAL = 'German'.

APPEND VALUES.

VALUES-INFTY = '0006'.

VALUES-FNAME = 'P0006-ORT01'.

VALUES-FVAL = 'berlin'.

APPEND VALUES.

VALUES-INFTY = '0006'.

VALUES-FNAME = 'P0006-PSTLZ'.

VALUES-FVAL = '56789'.

APPEND VALUES.

VALUES-INFTY = '0007'.

VALUES-FNAME = 'P0007-SCHKZ'.

VALUES-FVAL = 'NORM'.

APPEND VALUES.

VALUES-INFTY = '0105'.

VALUES-FNAME = 'P0105-USRID'.

VALUES-FVAL = '22'.

APPEND VALUES.

VALUES-INFTY = '0105'.

VALUES-FNAME = 'P0105-USRID_LONG'.

VALUES-FVAL = 'mailaddress'.

APPEND VALUES.

VALUES-INFTY = '0105'.

VALUES-FNAME = 'P0105-USRID'.

VALUES-FVAL = '22'.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

EXPORTING

PERNR = p_pernr

MASSN = '03'

ACTIO = 'INS'

TCLAS = 'A'

BEGDA = SY-DATUM

ENDDA = '99991231'

  • OBJPS =

SEQNR = '000'

  • SPRPS =

  • SUBTY =

WERKS = 'DE10'

PERSG = '1'

PERSK = 'DC'

PLANS = '00000001'

DIALOG_MODE = '1'

LUW_MODE = '1'

NO_EXISTENCE_CHECK = 'X'

NO_ENQUEUE = 'X'

IMPORTING

  • RETURN =

RETURN1 = w_bapireturn

  • HR_RETURN =

TABLES

PROPOSED_VALUES = values.

  • MODIFIED_KEYS =

.

Regards

Meeta

Read only

Former Member
0 Likes
969

no useful response