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

Runtime Error "MESSAGE_TYPE_X"

radhey_shyam
Participant
0 Likes
1,144

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

3 REPLIES 3
Read only

Former Member
0 Likes
762

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.

Read only

Former Member
0 Likes
762

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

Read only

former_member214709
Participant
0 Likes
762

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