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

Button in Application Toolbar ALV

Former Member
0 Likes
4,036

   Hello All,

I Know its annoying as it must have been asked multiple times....but i am stuck with this.

i don't know whats happening or what i am missing.

The requirement is as simple...i just want to add a button in Application toolbar.

here is the code:

i have created 'ZPF' as new gui status and i want to add refresh button on application toolbar.


and finally the application toolbar has no button.

please tell me what i am missing

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,865

Hi Abhishek,

Can you define ur Refresh Icon in Application  Toolbar ? Check below Screen Shot .

Regard's

Smruti

   Hello All,

I Know its annoying as it must have been asked multiple times....but i am stuck with this.

i don't know whats happening or what i am missing.

The requirement is as simple...i just want to add a button in Application toolbar.

here is the code:

i have created 'ZPF' as new gui status and i want to add refresh button on application toolbar.


and finally the application toolbar has no button.

please tell me what i am missing

10 REPLIES 10
Read only

Former Member
0 Likes
2,865

Hi Abhishek

Copy a standard GUI staus into z.And then add a pushbutton in Application tool bar and assign a Function code. Call the Gui using set pf-status<name>.

Regards

Suganya

Read only

0 Likes
2,865

i dont want to copy the standard gui status...i want to make my custom gui status.

Read only

0 Likes
2,865

and the wiered thing is that these function codes are getting triggered on Keyboard commands(F5)

Read only

Former Member
0 Likes
2,865

Hi Abhishek,

u r giving wrong Function code. give like below

F5 - REFR - REFRESH. I HOPE IT WILL WORK.

if its work , dont forget to give points.

suresh

Moderator Message: Never ask for points here

Message was edited by: Kesavadas Thekkillath

Read only

0 Likes
2,865

these function codes are not predefined.man we can define the way we like!

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,865

Yes, this has already been answered many times, and the solution is explicitly written in the REUSE_ALV_GRID_DISPLAY documentation, so first read (again ?) the documentation on parameter I_CALLBACK_PF_STATUS_SET...

Regards,

Raymond

Read only

Former Member
0 Likes
2,866

Hi Abhishek,

Can you define ur Refresh Icon in Application  Toolbar ? Check below Screen Shot .

Regard's

Smruti

Read only

0 Likes
2,865

Oh! man....i was doing such a silly mistake.

Read only

Former Member
0 Likes
2,865

ALV Function Codes always start with & eg &REF.

And I hope you have defined it in Application Toolbar section of Menu painter.

It is always recommended that you copy the standard GUI of ALV and then make changes to it. Its not difficult with lesser probability of errors

Read only

Former Member
0 Likes
2,865

thanks for....problem solved..

Not to mention it was silly error :

i was assigning button in wrong place.

i have assigned it in freely assigned keys.>> that why they are getting triggered on keyboard command....