Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

re: alv grid display.

Former Member
0 Likes
488

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
465

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.

2 REPLIES 2
Read only

Former Member
0 Likes
466

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.

Read only

Former Member
0 Likes
465

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.