cancel
Showing results for 
Search instead for 
Did you mean: 

Business Error Messages on RFC Query Operations

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Alexander,

thanks for your reply.

You meant a system based on Duet Enterprise 2.0 using OData technology.

My request is related on a system with Duet Enterprise 1.0 using SOAP technology.

Cheers,

Nico

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Alex,

I know that i can use it with Duet Enterprise 1.0, but thanks a lot.

I cannot immediately swicth cause we have implementations working with Generic Channel and it will be done in future.

Do you have any information about my request using Generic Channel?

Cheers

Nico

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Alex,

i did not have time to test it properly but i will asap.

At first glance, it seems to be helpful.

Thanks a lot,

Nico