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

Adding Tool bar...

Former Member
0 Likes
663

How to add the Tool bar for the Selection-Screen.

Thanx in Advance.

Akshitha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
623

Hai,

write set pf-status 'status_name'.

double click on 'status_name',

Then a window appearswhere you can set your:

1.User-interface

2.Application toolbar

3.Menu bar

For more information click below links:

http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/801d43454211d189710000e8322d00/content.htm

http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/801dab454211d189710000e8322d00/content.htm

I hope you got some idea.

Reward points if it helps you.

Regds,

Rama.Pammi

5 REPLIES 5
Read only

Former Member
0 Likes
623

pls go through this

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/content.htm</a>

regards

shiba dutta

Read only

Former Member
0 Likes
623

Hi Akshitha,

you can use statement


SET PF-STATUS 'NAME'.

Create this PF-Status in SE41. In this Z PF-STATUS you can insert your own button..

But you need to handle this button click in your report.

Thanks and Regards,

Kunjal

Read only

Former Member
0 Likes
623

Hi....

Use the statement

SELECTION-SCREEN FUNCTION KEY X.

X must be between 1 and 5.

see this example:

REPORT demo_sel_screen_function_key.

TABLES sscrfields.

PARAMETERS: p_carrid TYPE s_carr_id,

p_cityfr TYPE s_from_cit.

SELECTION-SCREEN: FUNCTION KEY 1,

FUNCTION KEY 2.

INITIALIZATION.

sscrfields-functxt_01 = 'LH'.

sscrfields-functxt_02 = 'UA'.

AT SELECTION-SCREEN.

CASE sscrfields-ucomm.

WHEN'FC01'.

p_carrid = 'LH'.

p_cityfr = 'Frankfurt'.

WHEN 'FC02'.

p_carrid = 'UA'.

p_cityfr = 'Chicago'.

ENDCASE.

START-OF-SELECTION.

WRITE / 'START-OF-SELECTION'.

Reward points if useful......

Suresh.....

Read only

RaymondGiuseppi
Active Contributor
0 Likes
623

You have two solutions

<b>-1- Create a status </b>

and use it in AT SELECTION-SCREEN OUTPUT with SET PF-STATUS.

<b>-2- Use FUNCTION KEY</b>

<i>Pushbuttons in the Application Toolbar Locate the document in its SAP Library structure

In the application toolbar of the standard GUI status of the selection screen, five pushbuttons are predefined with the function codes FC01 to FC05, but are inactive by default. You can activate them during the definition of the selection screen as follows:

SELECTION-SCREEN FUNCTION KEY <i>.

The numbering <i> must be between 1 and 5. The individual function texts must be assigned to the FUNCTXT_0 components of structure SSCRFIELDS before the selection screen is called. You must declare this structure as an interface work area using the TABLES statement.

If the user chooses one of these buttons, the runtime environment triggers the AT SELECTION-SCREEN event and the function code FC0 is placed into the component UCOMM of the structure SSCRFIELDS.

After the AT SELECTION-SCREEN event has been processed, the system displays the selection screen again. The only way to exit the selection screen and carry on processing the program is to choose Execute (F8). Consequently, the pushbuttons on the application toolbar are more suitable for controlling dynamic modifications of the selection screen than for controlling the program flow.

Example</i></i></i>

REPORT demo_sel_screen_function_key.

TABLES sscrfields.

PARAMETERS: p_carrid TYPE s_carr_id,
            p_cityfr TYPE s_from_cit.

SELECTION-SCREEN: FUNCTION KEY 1,
                  FUNCTION KEY 2.

INITIALIZATION.
  sscrfields-functxt_01 = 'LH'.
  sscrfields-functxt_02 = 'UA'.

AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
      WHEN'FC01'.
      p_carrid = 'LH'.
      p_cityfr = 'Frankfurt'.
    WHEN 'FC02'.
      p_carrid = 'UA'.
      p_cityfr = 'Chicago'.
  ENDCASE.

START-OF-SELECTION.
  WRITE / 'START-OF-SELECTION'.

<i>This defines a standard selection screen with two parameters. In the application toolbar, two pushbuttons are assigned the texts LH and UA and activated.

When the user clicks one of the buttons, the AT SELECTION-SCREEN event is triggered and there the input fields are preassigned correspondingly. </i>

Regards

Read only

Former Member
0 Likes
624

Hai,

write set pf-status 'status_name'.

double click on 'status_name',

Then a window appearswhere you can set your:

1.User-interface

2.Application toolbar

3.Menu bar

For more information click below links:

http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/801d43454211d189710000e8322d00/content.htm

http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/801dab454211d189710000e8322d00/content.htm

I hope you got some idea.

Reward points if it helps you.

Regds,

Rama.Pammi