Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8830

Is there any tutorial for SAP Java Backend Development?

$
0
0

Hi everyone,

 

I am following the "How To - Part 1: Build an Agentry based app from scratch connecting to a SAP ERP back-end" to learn Agentry by myself.

 

There are some Java code when creating the Steplet, StepHandler and Bapi that I dont understand. I would like to know if there is any document or tutorial to learn how to write  such Java code. I already know the Agentry stuffs like fetch, step, etc.

 

 

For example, why do we need the processResult or setParameter method? Why do we need JCO.Table? Where is the table "ET_FLT_SCHEDULE"

 

 

public class FlightScheduleBapi extends AbstractFetchBAPI{

 

public User user = null;

public FlightScheduleBapi(User u, GregorianCalendar lu) throws Exception {

super(u, lu);

user = (User) u;

  }

 

@Override

 

public ArrayList<SAPObject> processResults() throws Exception {

ArrayList<SAPObject> spfliTab = new ArrayList<SAPObject>();

JCO.Table _sTab = _tables.getTable("ET_FLT_SCHEDULE");

 

int rows = _sTab.getNumRows();

for(int i = 0; i<rows; i++)

{

_sTab.setRow(i);

FlightSchedule spfliLine = new FlightSchedule(_sTab);

spfliTab.add(spfliLine);

}

  return spfliTab;

  }

 

@Override

public void setParameters(SAPObject obj) throws Exception {

  super.setParameters(obj);

try {

  } catch (Exception e) {

user.rethrowException(e, true);

}

}

}

 

 

 

Thank you very much.

 

Tags edited by: Michael Appleby


Viewing all articles
Browse latest Browse all 8830

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>