on 2009 Sep 10 7:19 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.