cancel
Showing results for 
Search instead for 
Did you mean: 

Hit Enter Key in webdynpro alv table

Former Member
0 Kudos

Hi

My alv table contains material, quantity, sales unit, price(alv is editable).

i will enter material no it will fetch sales unit and price from master table.

we should enter quantity manually. my aim is want change price some case.

consider basic price 406 i am changing it as 400 without hit enter key then i will press save

button its updated in table correctly. my aim is i am changing it as 400 then hit enter key it should be 400.

instead of 400 its showing 406.

Please help me,

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

Hi bala,

In your first case, if you click on save then it will update in database,

your requirement is if you press on enter, then it should show new values, then create ONENTER action for input field button,

write the update coding in that action,then your issue wil solve.

Regards

Srinivas

Former Member
0 Kudos

Hi,

You need to creat ONACTIOn on the input field and update the node in that particular ONACTION...

Hope this helps.

Former Member
0 Kudos

I am using alv. in that how i can write code in input field.

Former Member
0 Kudos

Hi

In ALV we dont have access to inputfield onenter in alv..

ON_DATA_CHECK:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c8/6c80dbedfe42d1a93f8e6df1d7244a/frameset.htm

This event trigger for any press of ENTER, so it generally works like the Input Field onEnter.

also check ON_CELL_ACTION:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/12093591152464e10000000a1553f7/frameset.htm

Please go through this.. discussed same

http://forums.sdn.sap.com/click.jspa?searchID=72677199&messageID=8637489

Cheers,

Kris.

former_member199125
Active Contributor
0 Kudos

Hi bala,

You can use ON_CELL_ACTION or onCLICK action, these are the event handlers of alv table.

Create a event handler of type above actions.. and write a code in that action.

You have to reuse the alv in view properties in order to avail that actions.

Regards

Srinivas

Former Member
0 Kudos

Hi

My Problem Solved...

Thanks

Bala G

Former Member
0 Kudos

Hi

My Problem Solved...

Thanks

Bala G

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bala,

Raise an event handler on the press of enter on that price input field.

On the enter method, you need to set the changed values to the node.

The problem with your present scenario is it is not updated in the node.

Thanks & Regards,

Arun.