2008 Oct 14 9:12 AM
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.
2008 Oct 14 9:15 AM
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
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.
2008 Oct 14 9:15 AM
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
2008 Oct 14 9:15 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |