cancel
Showing results for 
Search instead for 
Did you mean: 

No commit perameter in Hr_infotype_operation

Former Member
0 Kudos

Hi all,

When i am passing 'X' to no commit parameter in Hr_infotype_operation its not roll bakcing the data ,eventhough i am writing

explicitely rollback work .Please suggest me how can i roolbak the data.

data p_test type c value 'X'.

ALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = '0077'

number = ls_0077-pernr

validityend = ls_0077-endda

validitybegin = ls_0077-begda

record = ls_0077

operation = 'INS'

nocommit = p-test

  • dialog_mode = '2'

IMPORTING

return = lv_return.

if p_test is not initia.

rollbak work.

endif.

Thanks and regards

Venkat

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member40425
Contributor
0 Kudos

In FM HR_INFOTYPE_OPERATION if you see source code, There you wil find following code. Its written so you need not to write explicitely.

IF NOT NOCOMMIT IS INITIAL.
ROLLBACK WORK.
ENDIF.

Try giving the value of p_test as space(' ')

data p_test type c value ' '.

I hope it helps.

Regards,

Rohit

Former Member
0 Kudos

I have alrady tried this ,but there is no output.

former_member40425
Contributor
0 Kudos

Hi,

Go to the following threads. there are similar problem as Yours

I hope it helps.

Regards,

Rohit