on 03-01-2013 3:17 PM
Hi,
i have created several query operations by using GW Data Model, linked to different RFMs.
Every time a business error message is raised from FM in the backend (for any reason: missing configurations, data, etc.), GW system saves this message in the log and always sends to SharePoint the same standard message ("Exception with code 1000 has been raised by RFC").
Do you know whether there is a standard way to get into SP the message passed by backend FM?
Thanks in advance,
Nicola
Hi Nicola,
This depends on your development approach:
1) If you use RFC Mapping wizard in the Service Builder (transaction SEGW) then the mapping tool will automatically identify the table that contains the messages. Prerequisite is that the table has type BAPIRET2. Some more information here:
http://help.sap.com/saphelp_gateway20sp06/helpdata/en/35/742a9541d040ac92e0e4550c026cea/frameset.htm
2) If you do custom development then you need to add the message to the message container yourself. You can use coding similar to this:
Data: lo_message_container TYPE REF TO /iwbep/if_message_container,
...
lo_message_container = mo_context->get_message_container( ).
lo_message_container->ADD_MESSAGES_FROM_BAPI( return ).
There are a number of ADD_MESSAGE* methods.
Hope this helps.
Cheers, Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nicola,
My response holds true also for Duet Enterprise 1.0, if you are following the new OData development paradigm. You can find more information in our Self-pace Learning at http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=272531786.
How are you developing right now? Are you using the Generic Channel and GSDO?
If you are still using one of these older development approaches, then I really want to urge you to switch over to the new approach, which should make your development work much easier.
Cheers, Alex
Hi Nicola,
In this (old) document we cover the error message handling in chapter 6:
http://scn.sap.com/docs/DOC-5636
I hope you can find some helpful informaiton there.
Cheers, Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.