cancel
Showing results for 
Search instead for 
Did you mean: 

Not possible to type into InputField

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

former_member182372
Active Contributor
0 Kudos

Hi Daniel,

What is bound to UI element "text" attribute, what context attribute?

Best regards, Maksim Rashchynski.

pravesh_verma
Active Contributor
0 Kudos

Hi Daniel,

In the views wdDoInit() method, add these statement:

<b>wdContext.node<where_InputField_Attribute_is_present>.createAndAddElement();</b>

I hope this solves your problem.

Regards

Pravesh

PS: Please consider rewarding points if helpul and solved.

Former Member
0 Kudos

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

former_member182372
Active Contributor
0 Kudos

Daniel, please send your project to rastchinskym at mail dot ru and I will try to resolve the issue.

Former Member
0 Kudos

I sent it to you by mail. If you can solve the problem, I would be pleased if you post the solution here.

Please send also the corrected program back to me by mail. Thank you

Answers (0)