cancel
Showing results for 
Search instead for 
Did you mean: 

call sap program

Former Member
0 Kudos

I know how to call BAPI/IDOC, how do make call to SAP Program via XI?

Does it need to enable for RFC? and how do we get message structure? any one has steps to configure to make this type of call?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you can call sap programs from RFC call (or abap proxy)

and you know how to call RFC right?

Regards,

michal

Former Member
0 Kudos

Can u explain steps to do this, i know how to do BAPI only with little bit confusion (Registering program-id part).

Thanks,

moorthy
Active Contributor
0 Kudos

HI Kumar,

For RFC-

/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step

For Proxies-

/people/siva.maranani/blog/2005/04/03/abap-server-proxies

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Regards,

Moorthy

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

no registering it's XI - RFC (r3) not r3 - XI

use:

CALL TRANSACTION in the rfc and pass all the needed

parameters

Regards,

michal

Former Member
0 Kudos

hi Michal,

Yes it is XI->R/3 (understand no program-id reg). thanks for clarifying.

1. how do i get target message structure(SAP Program) to do mapping ?

2. where do i use 'call transaction', adapter config does not provide this?

Thanks,

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>. where do i use 'call transaction', adapter config does not provide this?

in the RFC

Regards,

michal

Former Member
0 Kudos

Hi Michal,

thanks for ur reply. Can you explain me on how to do this,I am sorry that i did not understand in RFC?

FILE-XI-R/3(SAP Program) - this is my requirement.

We can use RFC Receiver Adapter in this scenario, that provides connectivity.

1. if it was BAPI, u could get target message structure, since it is program, do i have to mannaylly code the message structure?

2. how to call this specific program ? do i need any ABAP development to trun this program as RFC Enabled ? Even then From XI, i do not understand how to call this specific program ?

Thanks,

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

inside this RFC write call transaction

to execute the abap program

Regrds,

michal

sam_raju
Contributor
0 Kudos

Hi Kumar,

This way you will end up with lot of custom coding in R/3.

Have you checked for any RFCs/BAPIs in R/3 that has the same functionality as your SAP(ABAP) Program?

That will make your life easier.

<i>2. how to call this specific program ? do i need any ABAP development to trun this program as RFC Enabled ? Even then From XI, i do not understand how to call this specific program ?</i>

You can not call this program directly from XI.

Like Michal was suggesting, You have to create a RFC( with import, export and table parameters) using SE37. In the source code of the RFC you have to use Call Transaction to call this program passing the values.

You then have to import the structure of this custom RFC into your XI Integration Directory.

Rgds,

Sam Raju

Former Member
0 Kudos

Hi Kumar,

I dont see you rewarding answers with points.

Thanks.

Raj.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

If you have to create a new RFC, you have to do it in SE37. Go to the attributes tab in the RFC and select remote enabled radio button. This will make sure that your RFC is remote enabled.

To import this RFC into your Software component.

Go to imported objects and import the RFC you require. This is the message structure which you will have to use for mapping.

Regards,

Smitha.