Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with Remotely Invoked Function Module

Former Member
0 Likes
403

Hi All,

I have a requirement to develop a Remote Enabled Function Module in SAP R/3 which will be invoked from an XI environment via an XML message.

The purpose of this FM is to validate the incoming data(which comes as a pair of values) by comparing it with values in a corresponding SAP Table.

If the incoming data is consistent with the values in the SAP Table, i need to return the data in the same format as it is passed. If any inconsistent record is encountered, then i just need to delete that particular record and return the rest of them.

I used a TABLE for the Input/Output in the FM and tried it. Though it works fine stand-alone, when invoked from the XI environment, the calling system is able to receive only the name of the Table Structure that is used in the FM for I/O.

I am unable to comprehend the format the input comes into SAP when the FM is invoked. So I'm not able to exactly pin-point the place where the problem arises.

Please suggest a solution.

Any pointers in this regard will be helpful.

Thanks in Advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
384

Hi,

You can view the incoming message in the local XI Message Monitor SXMB_MONI. There you will see if the input table parameter is correctly filled. In the same transaction, you can also see the reply that is sent to XI. If that is OK, you know that your function works correctly. When you are sure of that, and the calling system does not get the same parameters returned as you could see, that means the mapping in XI is wrong.

good luck,

Peter Glas

2 REPLIES 2
Read only

Former Member
0 Likes
385

Hi,

You can view the incoming message in the local XI Message Monitor SXMB_MONI. There you will see if the input table parameter is correctly filled. In the same transaction, you can also see the reply that is sent to XI. If that is OK, you know that your function works correctly. When you are sure of that, and the calling system does not get the same parameters returned as you could see, that means the mapping in XI is wrong.

good luck,

Peter Glas

Read only

0 Likes
384

Hi Peter,

Thanks for your input.

But what if i dont see any XML message in SXMB_MONI when i check for statistics?

I mean, there will definitely be a log in the transaction for any message processed for the day, in any one of the categories like processes, failed etc. right?

Thanks & Regards,

Keerthi