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

to copy std application toolbar buttons

Former Member
0 Likes
1,278

hi friends,

I copied guistatus in std program to zprogram.

I activated them also. BUt still that buttons are not coming in application toolbar.

can anybody help me out?

hi friends,

I copied guistatus in std program to zprogram.

I activated them also. BUt still that buttons are not coming in application toolbar.

can anybody help me out?

4 REPLIES 4
Read only

Former Member
0 Likes
1,001

Hi,

First goto standard tool bar.Open one more screen and got to tool bar of your copied program.

In Application tool bar whatever the Function codes are there type same function code in your zprogram.Now activate it....

Read only

Former Member
0 Likes
1,001

Hi

Double Click on the status name and activate

when copying the status bar will not get activated goto the same activate

Regards

Shiva

Read only

Former Member
0 Likes
1,001

Hi,

After copying the gui and activating do the following in ur code.

in ur top include,

data: rt_extab type slis_t_extab.

in ur form include,

peform event_pf_status_set.

FORM event_pf_status_set USING rt_extab TYPE slis_t_extab.

SET PF-STATUS 'ZZSTANDARD'."'MAIN100' EXCLUDING rt_extab.

here, "zzstandard" is the name given while copying the gui.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_background_id = 'ALV_BACKGROUND'

i_buffer_active = 'X'

i_callback_program = g_repid

i_callback_pf_status_set = 'EVENT_PF_STATUS_SET'

it_fieldcat = gt_fieldcat

is_layout = gs_layout

i_save = g_save

is_variant = gs_variant

it_events = gt_events[]

is_print = gd_prntparams

IMPORTING

e_exit_caused_by_caller = g_exit_caused_by_caller

es_exit_caused_by_user = gs_exit_caused_by_user

TABLES

t_outtab = gt_outtab

EXCEPTIONS

program_error = 1

OTHERS = 2.

and pass the value in the fm "REUSE_ALV_GRID_DISPLAY'.

please reward points if useful.

regards

sandhya

Read only

Former Member
0 Likes
1,001

Hi after copying,

edit of your new gui status you have the option:

Menu - Extras -> Adjust Template -

Regard

Anuja