cancel
Showing results for 
Search instead for 
Did you mean: 

Passing RFC Table parameters from XI

Former Member
0 Kudos

Hi

I imported a RFC (Function Module) in XI that has a table as parameter.

But when the BAPI is called from XI, tha table data is not passed.

Whitin the ABAP code I save the data outside a loop to verifiy the RFC is called from XI, and it is true, but within the loop for table it not work, the table parameter passed from XI is empty... but in the message monitoring I see the payload?

PS: The Function module was executed from R/3 with table parameters filled and it work fine.

Thanks

Rakesh

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Have you changed the RFC at any time? Then you have to force the XI to load the RFC meta data again.

I think de-activating and activating the RFC channel should help.

Regards

Stefan

Former Member
0 Kudos

Thanks a lot Stephan and Chilla,

De-activating and activating the RFC Channel solved my problem

Points awarded. !!

Thanks

Rakesh

Answers (4)

Answers (4)

Former Member
0 Kudos

check both structre of XI payload and our structre where your takingthe dat from xi and putting in a table

Former Member
0 Kudos

Hi Rakesh,

Check your request mapping. Check the contexts of the source and target nodes in the hierarchical order. Test your mapping in the IR.

regards,

Ansar.

Former Member
0 Kudos

Hi Rakesh,

Check these links. It may help you:

Regards,

Subhasha Ranjan

bhavesh_kantilal
Active Contributor
0 Kudos

Rakesh,

Check the output of your mapping. The request messge that hits the RFC. Is the table parameter filled up with the corect values.

Even if you do no want to give values make sure that the TABLE tag is atleast created in the request mesage.

Regards

Bhavesh

Former Member
0 Kudos

Thanks Bhavesh...

As you mentioned, I do not see the TABLE tag created.

<?xml version="1.0" encoding="UTF-8"?>

<ns0:ZBAPI_COMPANY_GETDETAIL1 xmlns:ns0="urn:sap-com:document:sap:rfc:functions">

<COMPANYID_LIST>

<item>

<ZCOMPANYCODE>0001</ZCOMPANYCODE>

</item>

<item>

<ZCOMPANYCODE>0002</ZCOMPANYCODE>

</item>

</COMPANYID_LIST>

</ns0:ZBAPI_COMPANY_GETDETAIL1>

The above is the request xml (which is going to hit RFC) that is created after mapping in XI.

In my RFC enabled function module.

COMPANYID_LIST -- Is the Table parameter field Name

ZCOMPANYCODE -- is the data type.

Is the above correct, correct me if I am wrong.

Thanks

Rakesh Teki

bhavesh_kantilal
Active Contributor
0 Kudos

Rakesh,

Dont remember exactly. But just check in the RFC request XML in your IR. Does the XML contain the TABLE tag? If no, then the request XML is correct. If yes, then make sure that the tag is generated in the mapping.

Also, try to test the RFC from Se37 by giving the same data and in this message and see what the issue is.

Also, can you let us know the error you are getting? Check ST 22 on the R3 system for any dumps when the RFC is called from XI

Regards

Bhavesh

Former Member
0 Kudos

Bhavesh

As I mentioned, when i tested the RFC from se37, it works fine.

No the generated XML tag does not have the TABLE tag. not sure how to have it formed.

Thanks

bhavesh_kantilal
Active Contributor
0 Kudos

Rakesh,

Sorry for the confusion. If the RFC metatdata does not have the Table tag , then you need not / should not create one.

Did you check ST 22 with the User ID as * and the appropriate time on the SAP system for any dumps? What is the error message you are getting?

Regards

Bhavesh

Former Member
0 Kudos

Hi,

is the table contains the Primary key and table is existed in structure?

see the belowlink

http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm

Regrads

Chilla

Former Member
0 Kudos

Hi Chilla

Yes, the table contains the Primary and the table exists.

Moreover the below link talks about JDBC configuration.

Please let me know if you have worked on this before, If yes please let me know how did u handle.

Former Member
0 Kudos

HI,

RFC is sending the table name , check.What are all the Return values in terms of structure and also check the struture of the return /response message,

http://help.sap.com/saphelp_erp2005vp/helpdata/en/67/6d0540ba5ee569e10000000a155106/content.htm

Rgards

Chilla