Skip to Content
avatar image
Former Member

No commit perameter in Hr_infotype_operation

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 10, 2009 at 07:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded