2007 Mar 19 1:08 PM
Hi All,
I have a final alv grid display and i have two fields which are edited by clicking the EDIT button given on the output PF-Status.
now i want to disable this EDIT button when the user changes the value of these two fields. after which user presses the save button to save the updated list.
Please let me know any method or any parameter which has to be passed or any SAMPLE CODE to do this.
satisfactory answers will be rewarded.
Thanks,
Naveen
2007 Mar 19 1:12 PM
hi,
in the code of 'save'.
u've to change the field cat as non-editable and u should call the grid agin.
there is no other way.
regards,
bharat.
hi,
in the code of 'save'.
u've to change the field cat as non-editable and u should call the grid agin.
there is no other way.
regards,
bharat.
2007 Mar 19 1:12 PM
hi,
in the code of 'save'.
u've to change the field cat as non-editable and u should call the grid agin.
there is no other way.
regards,
bharat.
2007 Mar 19 1:29 PM
Try this to deactivate the button..
Set pf-status 'STATUS' excluding itab. <---Populate the itab with EDIT Button
double click on STATUS, goto -> attributes -> push button assignment -> display all.
Now when you use the excluding itab the buton gets deactivated but not completely removed
As your requirement is when the field gets changed
IF ... <---------------Write the condition here if the field get changed
Set pf-status 'STATUS' excluding itab
else.
Set pf-status 'STATUS'.
endif.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |