QUESTION POSED BY: craig.cmehil@hella.com on 14 April 2003
Using the examples of JCo and RFC functions found on this site I am trying to create a small JSP page that will retrieve the contents of some tables for me. I am very new to SAP but not to Java.
My code is the following:
// Get a function template from the
//repository
IFunctionTemplate ftemplate = repository.getFunctionTemplate("RFC_READ_TABLE");
// Create a function from the template
JCO.Function function = new JCO.Function(ftemplate);
JCO.ParameterList tables = function.getTableParameterList();
out.println(tables);
If I understand correctly the output should show something? but I only get:
----------------- | PARAMETERS 'TABLES' ----------------- | DAT| FIELD| OPTION| ----------------- |0123|456789|0123456| ----------------- |TAB5|RFC_DB|RFC_DB_| -----------------
...Which leads me to believe I have not set a property or value or something? In the ST03 transaction you have the option to "Survey Graphics". This is the data that I'm trying to retreive and store in secondary database. Any help or at least a direction to head in?
|