‎2012 Oct 22 8:33 AM
Hello Experts,
I am having a runtime error "MESSAGE_TYPE_X" while inserting records into infotype 2001. Every record insertion are done through FM "HR_INFOTYPE_OPERATION".
Every time this dump is not coming but sometimes with that same operation this dump comes. not able to find the reason for this dump.
a detailed file attached of dump for reference.
Regards,
Radhey
‎2012 Oct 23 10:43 AM
Hi,
Can you provide some coding? how have you declared your input table? Have you enqueued the employee first? Is it a mass process? If yes have you call the FM HR_PSBUFFER_INITIALIZE first?
As an alternative, you can also use the BAPIs from function group HRTIM00BAPIABSATT (e.g. BAPI_PTMGRATTABS_MNGCREATION).
Kr,
Manu.
‎2012 Oct 23 11:16 AM
Hello,
Sometimes record updation takes time due to system slow or could be anyone other reason. Due to this runtime error occur.
an explicit COMMIT WORK statement before the function call to HR_INFOTYPE_OPERATION or even a WAIT UP TO 10 SECONDS might help.
You can replace the function HR_INFOTYPE_OPERATION with BAPI_PTMGRATTABS_MNGCREATION & BAPI_TRANSACTION_COMMIT.
I have found similar article, check if this helps u
http://wiki.sdn.sap.com/wiki/display/BI/Solution+for+ABAP+Dump+MESSAGE_TYPE_X+CL_RSQ_ISET_SERVICE
Let me know if this solution is helpful.
Regards,
Deepti
‎2012 Oct 23 11:34 AM
Dear Radhey,
Check the input parameters as i think the input parameters are in conflict with the Function module parameters. That is why the system is throwing this kind of an error. As you mentioned that in many cases it is working fine but in some cases is causing error.
Just un comment the messages after the function module is called at the end of exceptions:
message id sy-mdgid type sy-msgty number sy-msgno with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
Regards
Dinesh