Application Development 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: 

Get a RFC Code via a RFC

Former Member
0 Kudos

Hi, I'd like to make a documentator of RFC, with a special format for my company. I'm using the RFCs: RFC_FUNCTION_SEARCH, RFC_GET_FUNCTION_INTERFACE.

But I have to get 2 things important for the project:

- The code of a RFC

- The information of (CreatedBy, CreateDate, ModifyBy, ModifyDate)

Can any body say me, how can I get this information?

Thanks!!!!

Martin

1 ACCEPTED SOLUTION

Former Member
0 Kudos

SAP XI

1) RFC Destination (SM59)

a) Choose create.

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#.

e) Enter the Gateway host as same details above SID/URL.

f) Gateway service is 3300+system number#.

g) In the Logon /Security tab, enter the client user & Password details of Destination system.

h) Test the connection and remote logon.

2) Create Port (IDX1)

a) Select create new button

b) Enter the port name as SAP+SID (The starting char should be SAP)

c) Enter the destination client.

d) Enter the RFC Destination created in SAP R/3 towards other system.

e) Save

3) Load Meta Data for IDOC (IDX2)

a) Create new

b) IDOC Message Type

c) Enter port created in IDX1.

SAP R/3

1) RFC Destination (SM59)

a) Choose create.

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#.

e) Enter the Gateway host as same details above SID/URL.

f) Gateway service is 3300+system number#.

g) In the Logon /Security tab, enter the client user & Password details of Destination system.

h) Test the connection and remote logon.

2) Create Port (We21)

a) First Select Transactional RFC and then click create button

b) Enter the destination port name as SAP+SID (The starting char should be SAP)

c) Enter the destination client.

d) Enter the RFC Destination created in SAP R/3 towards other system.

e) Save

3) Create Partner Profile (WE20)

a) Create New

b) Create the Partner no. name as same the logical system name of the destination system.

c) Select Partner type LS

d) Enter details for Type: US/USER, Agent, and Lang.

e) Click on the + button to select the message type.

f) Select Partner no. and LS which ever create above.

g) Select Message type

h) Select Process code related to the Message type.

I) save.

In SLD – System Landscape Directory

TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.

Ts for Third Party (Logical system):-

BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.

BS for Third Party (Logical system):-Enter the XI logical system name.

7 REPLIES 7

Former Member
0 Kudos

hi Martin

just refer to the link below

http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g

hope this link will help u some or the other way. pleasae go through it once.

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Former Member
0 Kudos

SAP XI

1) RFC Destination (SM59)

a) Choose create.

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#.

e) Enter the Gateway host as same details above SID/URL.

f) Gateway service is 3300+system number#.

g) In the Logon /Security tab, enter the client user & Password details of Destination system.

h) Test the connection and remote logon.

2) Create Port (IDX1)

a) Select create new button

b) Enter the port name as SAP+SID (The starting char should be SAP)

c) Enter the destination client.

d) Enter the RFC Destination created in SAP R/3 towards other system.

e) Save

3) Load Meta Data for IDOC (IDX2)

a) Create new

b) IDOC Message Type

c) Enter port created in IDX1.

SAP R/3

1) RFC Destination (SM59)

a) Choose create.

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#.

e) Enter the Gateway host as same details above SID/URL.

f) Gateway service is 3300+system number#.

g) In the Logon /Security tab, enter the client user & Password details of Destination system.

h) Test the connection and remote logon.

2) Create Port (We21)

a) First Select Transactional RFC and then click create button

b) Enter the destination port name as SAP+SID (The starting char should be SAP)

c) Enter the destination client.

d) Enter the RFC Destination created in SAP R/3 towards other system.

e) Save

3) Create Partner Profile (WE20)

a) Create New

b) Create the Partner no. name as same the logical system name of the destination system.

c) Select Partner type LS

d) Enter details for Type: US/USER, Agent, and Lang.

e) Click on the + button to select the message type.

f) Select Partner no. and LS which ever create above.

g) Select Message type

h) Select Process code related to the Message type.

I) save.

In SLD – System Landscape Directory

TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.

Ts for Third Party (Logical system):-

BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.

BS for Third Party (Logical system):-Enter the XI logical system name.

Former Member
0 Kudos

Hi Martin ,

1. In order to get the information about the function , first you need to find out

the name of the program .

You have table TFDIR for that .

SELECT SINGLE PNAME

FROM TFDIR

WHERE FUNCNAME = your function

2. For the attributes , you use table REPOSRC with the program from the previous select.

3. If you want to read the source code of a program , you can use the command

READ REPORT prog INTO itab .

Hope this helps ....

Former Member
0 Kudos

MEREP_SBUILDER_GENFORMS08 is the program name which uses RFC_FUNCTION_SEARCH.

RPR_CREATE_RESOURCE_FILES is the program name which uses RFC_GET_FUNCTION_INTERFACE.

And regarding the code of the RFC, you'll get it in the source code itself.

Goto SE37 and type RFC name and you have the source code......

Regarding the details of the user, GOTO main program and then check the ATTRIBUTES.

Hope this is helpful to you.....

Regards,

Pavan

Former Member
0 Kudos

Let me explain in a better way what I want.

I'd like to consume a RFC to get the Code from another RFC.

I going to use "this RFC" to get the code from any RFC (not a program) from a Java Program.

So, do you know any RFC to get the code from another RFC?

Thanks

Martin

0 Kudos

Hi,

The function RFC_GET_ATTRIBUTES will allow you to get attributes of your current RFC link.

For all the RFC link, try /BDL/_GET_RFC_DESTINATIONS... It may works...

0 Kudos

Hi Martin ,

If you have an ABAP Programmer in your site ,

You can have him write a simple RFC which gets an RFC name

and returns you all the data that you need by the instructions I gave you earlier .

I don't think it should take him very long ....

The only function I know that gets a program code is SCWB_GET_ABAP_CODE_OF_OBJECT

but it's not an RFC so anyway you will need an ABAP programmer that will

have to copy it to a ZSCWB_GET_ABAP_CODE_OF_OBJECT

so I think that the first suggestion is the better one .

Best Regards .