Application Development and Automation 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: 
Read only

RFC Function Module

Arif1
Active Participant
0 Likes
594

Hi ,

any built in RFC enable function module or BAPI to insert data into ztable ?

Moderator Message: Please (re)search before posting your question. Thread locked & points unassigned.

Edited by: Suhas Saha on Oct 1, 2011 5:24 PM

4 REPLIES 4
Read only

Former Member
0 Likes
566

hi arif,

Any Remote enabled function module can be used as BAPI. I assume you want to update the ZTABLE from an external system.

While creating the function module, in the attributes, under processing type you need to select the radio button remote-enable module.

Firstly when u want to create a BAPI you will be going to se11 and creating a structure there. Basically when creating custom BAPI's we will be including some fields in that structure. So, include your ZTABLE fields in your structure. Then you should go to se37 and create a function group which again you have to create function module by giving parameters. After that you will be writing the code in editor of the another client or the system. Then you have to specify RFCDEST also.

Example:

parameters: mat like zbapi_swamy-matnr.

data : bapiretn like bapiret2.

data: begin of item occurs 0.

include structure zbapi_swamy.

data: end of item.

CALL FUNCTION 'ZBAPI_FM'

EXPORTING

MATERIAL = mat

IMPORTING

RETURN = bapiretn

TABLES

ITAB = item.

loop at item.

write:/ item-matnr, item-meins,item-mbrsh.

endloop.

hope this helps

thanks,

chaitanya

Read only

Former Member
0 Likes
566

Hi,

Go with the above process mentioned by Chaitanya after creation of that go to the 'SWO1' tcode.

We need to place our customized fumction module in BOR.

You can find the following step by step procedure in saptechnical.You will find steps for SWO1.

Regards

G.Aditya

Read only

madhu_vadlamani
Active Contributor
0 Likes
566

Hi Arif,

You have to make a custom bapi and have to update the custom table.

Regrads,

Madhu.

Read only

0 Likes
566

Dear All ,

My main objective s insert data from client to sap ztable using SAP.NET Controller .

could you please give ma a link for step by step.