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

INFOTYPE 0005 - failed to insert using HR_MAINTAIN_MASTERDATA

former_member207153
Participant
0 Likes
1,032

1. im trying to insert record into infotype 0005 using HR_MAINTAIN_MASTERDATA

CALL FUNCTION 'ENQUEUE_EPPRELE'

EXPORTING

MODE_PREL = 'E'

MANDT = SY-MANDT

pernr = run_pernr

infty = '0005'

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

EXPORTING

pernr = run_pernr

massn = ' '

actio = 'INS'

tclas = 'A'

dialog_mode = '0'

luw_mode = '1'

no_existence_check = 'X'

no_enqueue = 'X'

IMPORTING

return = RETURNBAPI

RETURN1 = RETURNBAPI1

HR_RETURN = HRRETURN

TABLES

proposed_values = PROPOSED_VALUES.

CALL FUNCTION 'DEQUEUE_EPPRELE'

EXPORTING

MODE_PREL = 'E'

MANDT = SY-MANDT

pernr = run_pernr

infty = '0005'.

    • But process failed when input screen required Q0005-UANSP to be update, but seem FM failed to pass value from PROPOSED_VALUES from P0005-UAN01.

Please kindly adv how to avoid this problem. appreciate any help.

2. I Notice that CALL FUNCTION 'DEQUEUE_EPPRELE' is not working properly even return code as '0'. because when i try to execute BDC process , it mention to me that PREL table still lock.

what actually happen for this ? appreciate any help.

3. Can we use ROLLBACK after HR_MAINTAIN_MASTERDATA return as error?

4. what is COMMIT WORK AND WAIT for? is it useful during FM HR_MAINTAIN_MASTERDATA?

is it related with LUW_MODE parameter?

Appreciate any help for this,

1. im trying to insert record into infotype 0005 using HR_MAINTAIN_MASTERDATA

CALL FUNCTION 'ENQUEUE_EPPRELE'

EXPORTING

MODE_PREL = 'E'

MANDT = SY-MANDT

pernr = run_pernr

infty = '0005'

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

EXPORTING

pernr = run_pernr

massn = ' '

actio = 'INS'

tclas = 'A'

dialog_mode = '0'

luw_mode = '1'

no_existence_check = 'X'

no_enqueue = 'X'

IMPORTING

return = RETURNBAPI

RETURN1 = RETURNBAPI1

HR_RETURN = HRRETURN

TABLES

proposed_values = PROPOSED_VALUES.

CALL FUNCTION 'DEQUEUE_EPPRELE'

EXPORTING

MODE_PREL = 'E'

MANDT = SY-MANDT

pernr = run_pernr

infty = '0005'.

    • But process failed when input screen required Q0005-UANSP to be update, but seem FM failed to pass value from PROPOSED_VALUES from P0005-UAN01.

Please kindly adv how to avoid this problem. appreciate any help.

2. I Notice that CALL FUNCTION 'DEQUEUE_EPPRELE' is not working properly even return code as '0'. because when i try to execute BDC process , it mention to me that PREL table still lock.

what actually happen for this ? appreciate any help.

3. Can we use ROLLBACK after HR_MAINTAIN_MASTERDATA return as error?

4. what is COMMIT WORK AND WAIT for? is it useful during FM HR_MAINTAIN_MASTERDATA?

is it related with LUW_MODE parameter?

Appreciate any help for this,

5 REPLIES 5
Read only

Former Member
0 Likes
940

Dear Rudy,

you can use BAPI_EMPLOYEE_ENQUEUE and BAPI_EMPLOYEE_DEQUEUE also.

this will lock the Employee.

Just try HR_INFOTYPE_OPERATION for updating the I0005.

Regards,

Chandrashekhar

Read only

0 Likes
940

i did try it using BAPI , its not working. its still lock when UNLOCK (view using SM12 while debug).

is this something got to do with COMMIT WORK AND WAIT.?

Read only

former_member207153
Participant
0 Likes
940

case closed, thanks

Read only

0 Likes
940

hi rudy,

have u got anything to ROLLBACK the Transaction using HR_MAINTIAN_MASTEREDATA ??

Read only

former_member557553
Participant
0 Likes
940

Hello Rudy, how did you solved this problem? I have a similar one.

Regards, Christian