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: 

MESSAGES

Former Member
0 Kudos

i have 20000 records,i need to check authorization for that.while i am passing each record to a specific function module,when sy-subrc <> 0,i want to through message.

i am calling this function module in loop,for every failure it throughs message,but i want to put all messages at a time,how can i do this.

1 ACCEPTED SOLUTION

former_member223537
Active Contributor
0 Kudos

Hi,

Instead of using MESSAGE command... use APPEND command to append the messages to an internal table.

Finally loop over the internal table of messages & write the messages to screen.

Best regards,

Prashant

2 REPLIES 2

former_member598013
Active Contributor
0 Kudos

Hi Shekhar,

What you can do is if first create one FM module which will retunrn message as an internal table.

inside that FM call the actual FM which returns the FM.

Hope you understood the error.

Thanks,

Chidanand

former_member223537
Active Contributor
0 Kudos

Hi,

Instead of using MESSAGE command... use APPEND command to append the messages to an internal table.

Finally loop over the internal table of messages & write the messages to screen.

Best regards,

Prashant