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
1,213

hi,

my save button is not getting activated in my screen in module pool . how it gets activeted so that when i click on it my data gets saved into table successfully.

Thanks & Regards,

Syam

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,164

HI,

for that u need to set PF status in the PBO of particular screen.

goto pbo->module status_0100.->set pf-status 'xxxx'.

u need to remove these xxxx and give a Zname. like ZPFSTAT.

now double click on it..

create pf status...

in the next screen select function keys---->and assign a function code for SAVE field.

Now in the pai u can use it..

like...

case sy-ucomm.

when 'SAVE'.

-


---

endcase.

8 REPLIES 8
Read only

Former Member
0 Likes
1,164

Did you define and SET your GUI PF Status?

Read only

Former Member
0 Likes
1,165

HI,

for that u need to set PF status in the PBO of particular screen.

goto pbo->module status_0100.->set pf-status 'xxxx'.

u need to remove these xxxx and give a Zname. like ZPFSTAT.

now double click on it..

create pf status...

in the next screen select function keys---->and assign a function code for SAVE field.

Now in the pai u can use it..

like...

case sy-ucomm.

when 'SAVE'.

-


---

endcase.

Read only

Former Member
0 Likes
1,164

Only if you set the status , then only it will activated.

In the PBO module you will have to do that.

SET PF-STATUS 'STATUS'.

just click on the status and create or if it created then go there

expand the Function keys and Activate the SAVE button by providing the Function code and text.

save and Activate the status and now check it./

Read only

Former Member
0 Likes
1,164

hi,

You have to create a GUI status for this purpose. Right click on your module program and create a gui status , let say 'STATUS1' . Now in function keys , under the save button, specify its assosiated function code, let say 'SAVE1'.

in PBO you have to code like this.

SET PF-STATUS 'STATUS1'.

in PBO you have to code like this.

if sy-ucomm = 'SAVE1'.

< do these operations>

endif.

Read only

former_member787646
Contributor
0 Likes
1,164

Hi,

Double click on the line "SET PF-STATUS" and assign a

FUNCTION CODE to the SAVE Button under Standard Tool

Bar in Menu Painter. Add the necessary code to SAVE the record in the DB.

Hope this helps.

Murthy

Read only

former_member200872
Active Participant
0 Likes
1,164

Hi,

Make sure you Activate the GUI Status after creating it.

Also, use the same fcode (in CAPITAL letters) in your PAI processing as given for the Save Button in GUI Status.

Regards,

Wajid Hussain P.

Read only

Former Member
0 Likes
1,164

Hi,

Set your PF status in PBO event.

PF Status > Function Keys> give the function code for the SAVE button

save and activate your PF status.

regards

padma

Read only

Former Member
0 Likes
1,164

THANKS FOR ALL THOSE WHO HELPED ME