2008 Nov 13 2:18 AM
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,
2008 Nov 13 4:09 AM
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
2008 Nov 13 4:28 AM
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.?
2009 Jun 08 4:18 AM
2011 Mar 16 11:56 AM
hi rudy,
have u got anything to ROLLBACK the Transaction using HR_MAINTIAN_MASTEREDATA ??
2011 Nov 02 1:09 PM
Hello Rudy, how did you solved this problem? I have a similar one.
Regards, Christian
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |