on 05-29-2006 1:34 PM
Hello!
I have a problem with developing Web Dynpro application. I use the "BAPI_SALESODER_GETLIST" BAPI and mapped the value property of the InputFields onto the BAPI.
When running the application, it is not possible to type any information into the InputFields. It is possible to press the "Submit" button but nothing happens. We traced the web dynpro-user's activity in SAP R/3 and found out, that the BAPI is called but is not executed successfully because of the missing arguments.
What could be done wrong? The "enabled"-property is set to true! No other values except text and value have been changed.
Sincerelly,
Daniel Sippel
Hi Daniel,
You have to instantiate mode instance and bind it with your model node wich is bound to UI element. Model node element can not be initiated automaticaly.
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your fast reply, Maksim!
I think I instanciated Model node element with the following lines of code in CustomController's wdDoInit() method:
Bapi_Salesorder_Getlist_Input input = new Bapi_Salesorder_Getlist_Input();
wdContext.nodeBAPI_SALESORDER_GETLIST_INPUT().bind(input);
I also added the method "executeBAPI_SALESORDER_GETLIST()" in custom controller:
try {
wdContext.currentBAPI_SALESORDER_GETLIST_INPUTElement().modelObject().execute();
} catch (Exception ex) { ex.printStackTrace();
}
wdContext.nodeOutput().invalidate();
--
Later I execute the BAPI in View with:
wdThis.wdGetGetSalesOrderCustController().executeBAPI_SALESORDER_GETLIST();
Any further ideas?
Daniel
Message was edited by: Daniel Sippel
I added the following lines to wdDoInit() Method in View:
--
IPrivateGetSalesOrderCompView.ISales_OrdersNode node = wdContext.nodeSales_Orders();
Bapi_Salesorder_Getlist_Input input = new Bapi_Salesorder_Getlist_Input();
wdContext.nodeBAPI_SALESORDER_GETLIST_INPUT().bind(input);
wdContext.nodeBAPI_SALESORDER_GETLIST_INPUT().createBAPI_SALESORDER_GETLIST_INPUTElement(input);
--
Now i am able to type into the InputField but the BAPI is not working at all.
Message was edited by: Daniel Sippel
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.