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: 

Call BAPI in Custom ZRFC

Former Member
0 Kudos

Hi all,

My requirement is create a one ZRFC, inside RFC

call BAPI sales order creation.

How to call BAPI in side RFC.

please give step by step.

Thanks,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

First create a RFC FM and than call this BAPI in RFC. the following r the steps.

1. Create a FM using tcode SE37. go to Attributes TAB --. make Processing type as Remote enabled module.

2. In the Source ocde of this FM, call the BAPI FM...

Hope it is clear to u.

Regards,

Deepthi.

Edited by: deepthi dandibhotla on Sep 23, 2008 1:51 PM

3 REPLIES 3

Former Member
0 Kudos

hi,

First create a RFC FM and than call this BAPI in RFC. the following r the steps.

1. Create a FM using tcode SE37. go to Attributes TAB --. make Processing type as Remote enabled module.

2. In the Source ocde of this FM, call the BAPI FM...

Hope it is clear to u.

Regards,

Deepthi.

Edited by: deepthi dandibhotla on Sep 23, 2008 1:51 PM

Former Member
0 Kudos

To Call the BAPI inside the ZRFC.

1. Click on button 'Pattern' and paste the name of the BAPI you want to call in the ZRFC. The intefcae will get copied over in your code.

2. Populate the parameters.

Good to Go.

A

Former Member
0 Kudos

Hi

1.Create structures as per your requirement

2Create rfc and put those structures in import,export,tables parameter

3.If you are paasing one record to the rfc put the structure in import parameters

4.If you are passing multiple record put that structure in tables parameter

5Pass the values to the structure

6call the bapi

7.pass these structure values to the bapi

regrads

venkat