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

HR_INFOTYPE_OPERATION - Commit

raja_thangamani
Active Contributor
0 Likes
1,008

Hello,

I am using FM- HR_INFOTYPE_OPERATION to update the infotype but i dont want to commit the changes till i do the explicit commit to handle logical unit of work. Though i am passing the NOCOMMIT = 'X', still it commiting on its own. Could anyone help on this same.

Thanks & Regards,

Raja

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
770

Hi,

The parameter you are passing is correct. And if NO_COMMIT is X, then FM wont do Commit.

It seems after the FM is called, you are using some DDL statement, which is doing auto commit. Check whether any DDL statement is used immediately after FM HR_INFOTYPE_OPERATION.

Best regards,

Prashant

5 REPLIES 5
Read only

Former Member
0 Likes
771

Hi,

The parameter you are passing is correct. And if NO_COMMIT is X, then FM wont do Commit.

It seems after the FM is called, you are using some DDL statement, which is doing auto commit. Check whether any DDL statement is used immediately after FM HR_INFOTYPE_OPERATION.

Best regards,

Prashant

Read only

0 Likes
770

Prashant,

I am not using any DDL statements FM HR_INFOTYPE_OPERATION and I am using BAPI_TRANSACTION_ROLLBACK to Roll back the work which is not happening.

Raja T

Read only

0 Likes
770

Even I face the same problem with HR_INFOTYPE_OPERATION .

So, I went for FM HR_MAINTAIN_MASTERDATA, the interface is a little different...but, it works...

Read only

0 Likes
770

Surya kiran,

I used HR_MAINTAIN_MASTERDATA to save without Commit, still SAP is committing. Could you add your comments?

Thanks & Regards,

Raja T

Read only

Former Member
0 Likes
770

Hi raja,

1. HR_INFOTYPE_OPERATION

won't work on the logical unit of work concept.

2. So its better to use this FM,

AT THE LAST.

3. When u are sure everything has gone allright,

and u want to finally do explicit COMMIT WORK,

just before that,

use this FM,

(without nocommit)

regards,

amit m.