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

system message

Former Member
0 Likes
569

Hi Gurus,

I am using a SAP defined function module in my program. This function module is used to load data into a table, If the table used by another user a lock occurs, and this function module displays a information message stating that a lock has occured and when i click ok on the information message furthur processing of the program occurs. What i want to do is that i should come out of the program when i click OK in the information.

Regards,

Raghavendra.

5 REPLIES 5
Read only

Former Member
0 Likes
523

give your message type as 'X'. or 'A'.

Read only

Former Member
0 Likes
523

Hi,

Try THis.

Check sy-subrc after the call of FM.

if sy-subrc NE 0.

EXIT.

Else.

.........

.......

endif.

Awrd Points if Useful

Bhupal

Read only

Former Member
0 Likes
523

Hi Ramu,

my function module is a standard SAP defined function module. In that function module the message is defined as type I. i do not have access key to change that.

Regards,

Raghavendra.

Read only

0 Likes
523

may i know the FM name....then we can check whether it has any exception variables or not...

Read only

Former Member
0 Likes
523

Hi Bhupal,

the value of sy-subrc = 0 even when this message is displayed.