cancel
Showing results for 
Search instead for 
Did you mean: 

Query on RFC Function Module

former_member234749
Participant
0 Kudos

Hi All,

I have a query on Idoc to Idoc scenario  based on the input field values from sender idoc i need to access SAP R/3 table and send the corresponding value to target side (IDOC).

Can you please suggest what is the best way of accessing the SAP tables either by creating the RFC Function Module which can be used in the UDF to access the table or any chance of  writing UDF to access directly the SAP R/3 table.

Please help me on this.

Thanks in advance

Prathi

Accepted Solutions (0)

Answers (1)

Answers (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>Can you please suggest what is the best way of accessing the SAP tables either by creating the RFC Function Module which can be used in the UDF to access the table or any chance of  writing UDF to access directly the SAP R/3 table.

Create function module and do the lookup in the mapping to access the table. what PI version do you use? If your PI version is 7.1 and above, you can use RFC lookup readily available as graphical lookup function.  If your version is below 7.1., then you need to use UDF in the mapping.

RFC lookup link

http://scn.sap.com/docs/DOC-3805

former_member234749
Participant
0 Kudos

Hi Baskar,

I am using 7.0

rajasekhar_reddy14
Active Contributor
0 Kudos

Not possible to access SAP Tbale directly,hence you need Function module,take help from ABAP team to create Function module .

SEARCH IN SCN RFC LOOK UP IN PI 7.0 , you need write JAVA code to perform RFCLookup in PI 7.0

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Then you can write udf for the RFC lookup. You might want to see this code snippet for doing this.,,

http://wiki.sdn.sap.com/wiki/display/Snippets/User-defined+Mapping+Function+for+RFC+Lookup