The easiest solution would be for the BAPI developer to define the BAPI's interface first (without necessarily writing the ABAP code behind the interface). This would allow you to retrieve the metadata in JCo (through the JCO.Repository class). You can also create the metadata in JCo, but you have to use one of the constructor with parameters (and set these parameters correctly!) An example for hardcoded metadata can be found in sample program Example5.java, supplied with JCo.
Dig Deeper on SAP Java and J2EE
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.