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

ZBAPI for JAVA TEAM.

Former Member
0 Likes
559

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

3 REPLIES 3
Read only

Former Member
0 Likes
527

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.

Read only

0 Likes
527

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

Read only

0 Likes
527

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