‎2011 Oct 01 6:35 AM
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
‎2011 Oct 01 7:44 AM
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
‎2011 Oct 01 10:28 AM
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
‎2011 Oct 01 12:06 PM
Hi Arif,
You have to make a custom bapi and have to update the custom table.
Regrads,
Madhu.
‎2011 Oct 01 12:36 PM
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.