‎2008 Jun 04 5:15 AM
hi all,
i am a very interesting problem.I need to execute two blocks of code.
If i get an error in first block then i dont hv to stop the execution(i have to move to second block), and also have to give an error message.
I hv found half of solution. Use EXIT statement when we error occur(dont show the message,instead store it and show it after execution of second block.
Now, my question is how do I store a message.
Any other solution is also welcome.
thanks in advance.
‎2008 Jun 04 5:25 AM
Hello
If you have to store many message and the might have a hierarchical structure then I would recommend to use interface IF_RECA_MESSAGE_LIST (available since SAP release >= 6.20).
For an example see my Wiki posting [ Message Handling - Finding the Needle in the Haystack|https://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/MessageHandling-FindingtheNeedleintheHaystack]
Alternatively, you may use the function modules of function group SMSG:
- MESSAGES_INITIALIZE
- MESSAGE_STORE
- MESSAGES_SHOWPlease note that you can use IF_RECA_MESSAGE_LIST to save the collected messages as persistent application log (transaction SLG1 ).
Regards
Uwe
‎2008 Jun 04 5:22 AM
Hi,
You could easily do it by using an ALV. Store the error messages in an internal table and then diplay it by using the ALV.
Thanks
Nayan
‎2008 Jun 04 5:24 AM
Even I thought of this solution but didnt go ahead since this has to be run i background...
‎2008 Jun 04 5:25 AM
Hello
If you have to store many message and the might have a hierarchical structure then I would recommend to use interface IF_RECA_MESSAGE_LIST (available since SAP release >= 6.20).
For an example see my Wiki posting [ Message Handling - Finding the Needle in the Haystack|https://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/MessageHandling-FindingtheNeedleintheHaystack]
Alternatively, you may use the function modules of function group SMSG:
- MESSAGES_INITIALIZE
- MESSAGE_STORE
- MESSAGES_SHOWPlease note that you can use IF_RECA_MESSAGE_LIST to save the collected messages as persistent application log (transaction SLG1 ).
Regards
Uwe
‎2008 Jun 04 6:38 AM
‎2008 Jun 10 10:25 AM
Hi, can you please explain me how the issue got solved. I am eager to know this concept. Kindly share this with me please.