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

Save Button

Former Member
0 Likes
393

Hello experts,

I have develop one simple screen , in which i have two buttons

1.SAVE on standard toolbar

2. Edit in appliaction toolbar.

I want one click of save button save button get disabel and edit button get enabled.

Plz suggest,

Priyanka

2 REPLIES 2
Read only

Former Member
0 Likes
353

if ok_code = 'SAVE'. (or sy-ucomm)

loop at screen.

if screen-name = 'EDIT'.

screen-active = 0.

endif.

endloop.

u have to code sthg like this...

Read only

Former Member
0 Likes
353

Hi,,

When you click the save button, then write the code:-

set pf-status '<status_name>' excluding '<func_code_for_save_button>'.

OR

And write your Logic in 'PAI' module for saving.

CASE ok_code.

WHEN 'SAVE'.

do saving.

ENDCASE.

Regards ,

Ansari