2008 Jan 17 12:51 AM
How to create bapi to update Ztable.
Is there any standard example in system ? Please tell me how to do that ?
Thanks
2008 Feb 27 6:02 AM
BAPI Programming guide: -
http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
BAPI user guide: -
http://help.sap.com/saphelp_46c/helpdata/en/7e/5e115e4a1611d1894c0000e829fbbd/frameset.htm
BAPI STEP BY STEP PROCEDURE: -
http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
Example:-
http://www.erpgenie.com/abap/bapi/example.htm
PDF download: -
list of all bapis
How to create bapi to update Ztable.
Is there any standard example in system ? Please tell me how to do that ?
Thanks
2008 Feb 26 2:34 PM
Hi,
I think You need to build your logic in Bapi FM.
Regards
Ajay
2008 Feb 26 5:20 PM
Hi, You can check the below link..it is given step by step to create BAPI.
http://www.erpgenie.com/abap/bapi/example.htm
Reward if it is useful.
Thanks,
Srinivas
2008 Feb 26 6:37 PM
Hi Anee,
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. Hope this helps.
Regards,
Kasthuri Rangan Srinivasan
2008 Feb 27 6:00 AM
Hi Anee,
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.
Thanks & Regards,
SwamyKunche.
Reward if useful.
2008 Feb 27 6:02 AM
BAPI Programming guide: -
http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
BAPI user guide: -
http://help.sap.com/saphelp_46c/helpdata/en/7e/5e115e4a1611d1894c0000e829fbbd/frameset.htm
BAPI STEP BY STEP PROCEDURE: -
http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
Example:-
http://www.erpgenie.com/abap/bapi/example.htm
PDF download: -
list of all bapis