Application Development 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: 

ABAP RUNTIME ERROR MESSAGE_TYPE_X AFTER COMMIT WORK AND WAIT

Former Member
0 Kudos

Hi experts,

I am getting one dump in a z-program like MESSAGE_TYPE_X  when sy-subrc check with statement COMMIT WORK AND WAIT.

COMMIT WORK AND WAIT.
   IF sy-subrc NE 0.
     MESSAGE x009(z13m) WITH 'some text'.  ----- Dump is here
   ENDIF.

Please provide the solution to this issue.

Regards,

MKP

5 REPLIES 5

DirkAltmann
Active Participant
0 Kudos

Hi,

please read the help for message type. Type x will raise a dump.

Regards

Dirk

0 Kudos

Hi,

Yes. I just checked message type X allows you to force a program termination.

In the above case, what you can suggest to solve the issue.

Regards,

Mkp


0 Kudos

If you do not want a dump, but a program determination use message type "A". If you do not want to leave the program use message type "E". For more details or the other message types like I, W and S see the documentation.

former_member217544
Active Contributor
0 Kudos

Hi,

Please go through this link.

Message type 'X' go for dump based on usage.

http://help.sap.com/abapdocu_702/en/abapmessage_options.htm

http://help.sap.com/abapdocu_702/en/abenabap_messages_types.htm

Thanks & Regards,

Swarna

kesavadas_thekkillath
Active Contributor
0 Kudos

Please read sap help

You have specified the AND WAIT addition, and the updating of the update function modules was
not successful.
The COMMIT WORK statement always sets sy-subrc to 0 if the AND WAIT addition is not specified.

Please try to trouble shoot it yourself.