‎2009 Jun 25 7:25 AM
Hi,
I created a Z bapi.I need to give to my java Team .they will use my z bapi and update my Ztable in SAP.
What are the prereqisites need to be done By ABAP team to make use of ZBAPI with Java Team.
Regards
Rasheed
Edited by: Rasheed salman on Jun 25, 2009 10:12 AM
‎2009 Jun 25 9:20 AM
You can make use of an simple RFC or create a BAPI.
JAVAa can call both and treats them the same way.
create FM in Se37, and in the attributes tab, select the radio-button for 'Remote enabled'.
Just remember a few points like
- There should be no changing parameter
- There should be no RAISE EXCEPTION in your RFC
- Theres should be no explicit COMMIT WORK
- All error messgae to be returned via RETURN parameters (of type BAPIRET2)
This will just create the RFC,
If wou eed to create a BAPI, then go to SWO1, and create an object type, and add the FM as a method to the object, release and implement both the Object type and the Object via Edit-> Change Release Status
once you have done so, you will be able to view your newly create z-BAPI under transaction BAPI (BAPI explorer)
Hope this helps.
‎2009 Jun 25 10:50 AM
Hi,
Already done this.I need how my bapi can connect to java.
do abapers need to do any thing or we need to give details of bapi function module to java programer
Regards
Rasheed
‎2009 Jun 25 10:55 AM
Who will invoke the BAPI/RFC?
If a method from Java would be doin it, then you dont need to do anything.
Just provide the name of ur RFC/BAPI to the Java developer and he will take care of the rest