Skip to Content
0
Former Member
Dec 19, 2003 at 06:15 PM

Table dosn't load R/3 data

68 Views

Hallo,

I'm evaluating WAS 6.30 Sneak Preview,and I'm asking myself why my custom project, EXACTLY modelled on the "Flights" tutorial, doesn't load data obtained from a RFC call (BAPI_SALESORDER_GETLIST).

In the "Search" view two input fields pass SALES_ORGANIZATION and CUSTOMER_NUMBER import parameters.

The "SalesorderList" table of the "Results" view, bound to the "Output" Controller Context attribute shold display some Bapiorders data, but it doesn't work! (the table columns remain blank..)

This is the code which should be manually written (according to the tutorial), I don't know if it's allright!! (something missing? wrong?):

public void wdDoInit()

{

//@@begin wdDoInit()

Bapi_Salesorder_Getlist_Input input = new Bapi_Salesorder_Getlist_Input();

wdContext.nodeBapi_Salesorder_Getlist_Input().bind(input);

input.setCustomer_Number("1172");

input.setSales_Organization("1000");

// (data obviously hidden..)

client = JCO.createClient("800", "username", "pwd", "en", "sapsrv00", "00");

model = (SalesorderGetlistModel) WDModelFactory.getModelInstance(

SalesorderGetlistModel.class, WDModelScopeType.APPLICATION_SCOPE);

model.setJcoClient(client);

}

public void getList( ) {

//@@begin getList()

// Connects to remote SAP System

client.connect();

try {

// Calls remote Function Module BAPI_SFLIGHT_GETLIST

wdContext.currentBapi_Salesorder_Getlist_InputElement().modelObject().execute();

} catch (Exception ex) {

ex.printStackTrace();

} finally {

client.disconnect();

}

// Invalidates the output context node

wdContext.nodeOutput().invalidate();

//@@end

}

Can someone tell me why it doen't load data??

Thanks in advance

Gianluca