on 06-12-2012 3:45 PM
I am using a method in which function module HR_INFOTYPE_OPERATION is there.
Through a normal SAP report i am able to insert/update records in infotype 0581 but with web dynpro application its giving dump.
The error is raised from the set_context method. Its raising exception CX_HRPA_VIOLATED_PRECONDITION and while excuting web dynpro application, its giving precondition violation.
The value of the a_context should be initial but in case of going through webdynpro but it is not initial.
I have searched in many places but unable to find any solution on this...................
Hi,
Based on the context node value, if it is expected to be 0 or more, make sure the cardinality is set as 0.n in node properties.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harshit,
Firstly, this is not Web Dynpro ABAP error. It should be in General ABAP. I would recommend you to move it there.
Coming to the issue, perhaps, you are calling the update in a loop, while keeping the locks and HR buffers unclean. Ideal way to call HR_INFOTYPE_OPERATION is as follows:
This ensures no conditions are violated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhijeet,
Actually from report i am able to update or insert record in 581 for any pernr, but while using it in my webdynpro application its giving error, so i posted it here.
This exception raised in a method set_context, checked some notes also but got nothing
And i have used all the FM u told, but still getting the same error....
I have changed the operation also, INS then LIS9 and MOD, but its not working for any of it.
Hi Sushiptha,
There is a discussion in the link u sent me but it lacks providing any solution for that problem.
I am still searching for a solution to sort out that issue.
Anyways thanks for reply.
Regards,
Harshit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.