cancel
Showing results for 
Search instead for 
Did you mean: 

how to make a field editable in webdynpro

former_member670836
Participant
0 Kudos

hi experts,

i have one webdynpro page ,which contains these 3 fields

The fields contained int the section are:

- "Manual SPI" - number field up to 2 decimal. Should be editable if user click on "modify" button. otherwise read-only.

- "Manual CPI" -- number field up to 2 decimal. Should be editable if user click on "modify" button. otherwise read-only.

- "Last updated" - Date field. Should always be read-only. once user click on the "save" button, this field should be automatically set to the current date (user or system).

can anybody give the logic for modify action and save action....

regards,.

praveena..

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hai Praveena....

Check out the following steps.

1) Take two attributes of type WDY_BOOLEAN. One for SPI and CPI.

2) Set these attributes to the Read Only property of the Input Fields ( SCI and CPI ).and set Read Only property of Last_Updated field get checked.( default) ( in layout section )

3) In intialise Method

set these attributes with abap_true.

4) In the OnAction_Modify Method( )

Set these attributes to the abap_false. (for SCI and CPI)

5) In OnAction_Save Method( )

update the "last Updated " fields with system time &

Set the two attributes to abap_true.

this will works

former_member670836
Participant
0 Kudos

Hi aneel,

Thanks For giving your reply....my problem was solved...Thanks a lot..

Edited by: s.praveena on Jun 14, 2010 7:44 PM

ChrisPaine
Active Contributor
0 Kudos

Hello s.praveena,

It would be nice if you could mark the message as solved and acknowledge the person who gave you the solution.

Thanks.

Chris