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

ALV Report - Issue

venkateswaran_k
Active Contributor
0 Likes
1,197

Hi

I developed one ALV Report using the Grid Class. However, after the report is displayed, I am not getting any standard menus in the Application Tool bar. That is I am getting Only System and Help.

The problem 1 - In the Application Tool bar I am getting only two menu options - System and Help

problem 2 - The title is displayed as SAP. Not the program name.

So I am not able to come out of the program. Kindly help me to get the standard tool bar in the application menu and how to get the report tile instead of 'SAP.

Regards,

Venkat

-


Moderator message: please use more descriptive subject lines from now on.

Edited by: Thomas Zloch on Sep 1, 2010 1:33 PM

Hi

I developed one ALV Report using the Grid Class. However, after the report is displayed, I am not getting any standard menus in the Application Tool bar. That is I am getting Only System and Help.

The problem 1 - In the Application Tool bar I am getting only two menu options - System and Help

problem 2 - The title is displayed as SAP. Not the program name.

So I am not able to come out of the program. Kindly help me to get the standard tool bar in the application menu and how to get the report tile instead of 'SAP.

Regards,

Venkat

-


Moderator message: please use more descriptive subject lines from now on.

Edited by: Thomas Zloch on Sep 1, 2010 1:33 PM

9 REPLIES 9
Read only

Former Member
0 Likes
1,153

Hi,

You have to set the PF-Status and title to fix this.

Let me know if you need more details.

Thanks,

Prabu

Read only

0 Likes
1,153

Dear Prabhu,

Thank you for the quick response. Yes I did crete the PF_STATUS. However it does not seems to be working. I do not know where I am missing. Can you please provide some example for PF_STATUS. Also let me know how to get rid of that default heading as 'SAP' instead i want to print my report name.

Regards,

Venkat

Read only

0 Likes
1,153

Hi You have to give some name in the exporting parameter I_CALLBACK_PF_STATUS_SET = ' ' & later open a subroutine of the same name as follows :-



FORM f4200_pf_status_set USING i_extab TYPE slis_t_extab.
REFRESH i_extab.
PERFORM f4210_exclude_fcodes CHANGING i_extab.
SET PF-STATUS 'STANDARD' OF PROGRAM 'SAPLSALV' EXCLUDING i_extab.
ENDFORM.


FORM f4210_exclude_fcodes USING i_extab TYPE slis_t_extab.
DATA: ws_fcode TYPE slis_extab.
CLEAR ws_fcode.
ws_fcode = '&EB9'. " Call up Report.
APPEND ws_fcode TO i_extab.
ws_fcode = '&ABC'. " ABC Analysis.
APPEND ws_fcode TO i_extab.
ws_fcode = '&NFO'. " Info Select.
APPEND ws_fcode TO i_extab.
ws_fcode = '&LFO'. " Information.
APPEND ws_fcode TO i_extab.
ENDFORM. " f4210_exclude_fcodes

Regards

Abhii

Read only

Former Member
0 Likes
1,153

Hi Venkat,

Your using "REUSE_ALV_GRID_ DISPLAY" Function Module?? If so then you have to get Application Tool Bar

automatically.. and that Grid Title you can set it by using EVENT - TOP-OF-PAGE or you can set the title in *GRID_TITLE parameter of this FM by assigning the name you want.

Let Me know whether ur using this FM or wat else??

Sample Code of FM.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' "Grid Display

EXPORTING

i_callback_program = sy-repid

i_grid_title = 'Employee List'

is_layout = ws_layout

it_fieldcat = fieldcat_tab[]

  • IT_SORT =

TABLES

t_outtab = it_final

EXCEPTIONS

program_error = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Give points if useful

Regards,

Vanitha P

Read only

0 Likes
1,153

Hi Vanitha,

Thank you for the reply. I am using the Method as below:

CALL METHOD gr_pr_table->set_table_for_first_display

EXPORTING is_layout = gs_layout

CHANGING it_outtab = it_disp_purchase_requesition

it_fieldcatalog = gt_fieldcat.

This of Grid Class cl_gui_alv_grid

Regards,

Venkat

Read only

0 Likes
1,153

IN PBO module write like below.

SET PF-STATUS '9101'.

SET TITLEBAR '101'.

Double click on 9101 and 101.

For title: Give the title name what u want.

For PF status: Give the function keys like NEXT, SAVE,EXIT, etc.

Activate the PF status and Title

Read only

Former Member
0 Likes
1,153

PROCESS BEFORE OUTPUT.
 MODULE STATUS_9000.
*
PROCESS AFTER INPUT.
 MODULE USER_COMMAND_9000.

Write this in screen you have created .douuble click on each module and write below code

MODULE status_9000 OUTPUT.

SET PF-STATUS 'ZPF9000'.

endmodule.

gv_save_ok = gv_ok_code.

CASE gv_save_ok.

      • when back button is clicked

WHEN c_value_back.

LEAVE TO SCREEN c_value_0.

      • when exit button is clicked

WHEN c_value_exit.

LEAVE PROGRAM.

      • when cancel button is clicked

WHEN c_value_canc.

LEAVE TO SCREEN c_value_0.

ENDCASE.

Read only

Former Member
0 Likes
1,153

For the problem no 2, you have to create a title bar in the main screen using the set titlebar.

For the problem no 1, I don't think we have anything to do with the ALV GRID. It has to be created in the main screen as well.

Hope it helps

Sujay

Read only

venkateswaran_k
Active Contributor
1,153

Dear All,

Thankyou all for the quick responses. Finally the solutions is arrived. This is how I did it.

1. SE80 -> Function Group -> SALV

2. Expanded the GUI Status and right click on the status "STANDARD" -> Copy...

3. Given the copy to program name and status (as required for my program)

4. Went back to SE41 and activated the GUI status just I copied earlier step.

5. Updated my prgram with correct GUI status name in my SET PF-STATUS command.

6. Activated and Executed.

Finally the things are set now.

Thankyou once again all.

I can now close this thread as resolved.

Regards,

Venkat