cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Mapping - How to test it

Former Member
0 Kudos

Hi,

I'm trying to test the SAP example found in document "How to use Abap-Mapping in XI 3.0". This one is:

class interface = Z_TEST_ABAP_MAPPING

method = IF_MAPPING~EXECUTE

But I cannot test it.

1. In IR, when I uses the "Test" option inside my Interface Mapping, I have the following error message:

"Unable to tes. You cannot execute program Z_TEST_ABAP_MAPPING in the test environnement".

2. and when I uses transaction SXI_MAPPING_TEST, I have first this message: <i><SUCCESS>Services Processed Without Error</SUCCESS></i> But in the Trace folder, there is that:

  <?xml version="1.0" encoding="iso-8859-1" ?> 
- <Top>
  <First>BeginTrace</First> 
  <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace> 
  <Trace level="2" type="T">......attachment XI_Context not found</Trace> 
  <Trace level="1" type="T">No mapping configured</Trace> 
  <Trace level="1" type="E">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace> 
  </Top>

Anybody can help me?

Regards.

Mickael.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185751
Contributor
0 Kudos

Hi,

Check this thread:

Regards,

Sridhar

Former Member
0 Kudos

In fact, I have already read and apply this topic !

But the namespace changing from "ns0" to "ns" didn't change something.

Mickael.

cdumont69
Contributor
0 Kudos

Hello,

Have you create a scenario in Integration Directory ?

Check in the Directory if in your interface determination you put correct information.

The sender service : SENDER

The sender interface : BookingOrders corresponding interface.

The sender namespace : http://sap.com/test/ABAPMapping

The receiver service : RECEIVER

Under Configured Inbound Interfaces, you can find :

The Inbound interface : MsgOut corresponding interface.

Interface mapping : BookingOrders2MsgOut that use your ABAP Mapping.

I am not sure the Receiver determination is necessary.

Then if it's OK, check that you put exactly the same information in transaction SXI_MAPPING_TEST :

Sender Service : SENDER

Sender Interface Namespace : http://sap.com/test/ABAPMapping

Sender Interface Name : BookingOrders corresponding interface.

Receiver Service : RECEIVER

Receiver Interface Namespace : namespace where you define your MsgOut Interface.

Receiver Interface Name : MsgOut corresponding interface.

Regards,

Chris

Former Member
0 Kudos

Euh... I found my error: when I have created my variant on transaction SXI_MAPPING_TEST, I realized a very little error of writing but an error :-(((

Thanks all.

Mickael.

Former Member
0 Kudos

Hi Christophe

I am trying to do the ABAP mapping example as well. I am trying to find the examples objects i.e. interfaces ABAPMappingOut/ABAPMappingIn, the data type for BookingOrders etc.

In what software component does the namespace 'http://sap.com/test/ABAPMapping' reside?

Regards

Daniel