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 Excel output missing fields

0 Likes
1,542

Dear All,

The output grid list of FM REUSE_ALV_GRID_DISPLAY is displaied correctly with all fields visible.

Problem happens when I try to display ALV output by clicking button "Excel Sheet", there some fields disappear and no way to include them.

The issue occurs after having implemented a ZSTANDARD gui and related SET PF-STATUS as refhesh button was missing.

Any advice on what to check would be really appreciated

Thanks for your support.

1 ACCEPTED SOLUTION
Read only

1,311

Actually, by copying status STANDARD_FULLSCREEN from program SAPLSLVC_FULLSCREEN solved my problem, just in case somebody will face same issue.

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,311

Did you create ZSTANDARD by copying the standard status STANDARD from function group SALV?

What code did you add?

Read only

0 Likes
1,311

right Sandra, I have copied the STANDAND from SALV adding ICON_REFRESH in application toolbar and that is my snippet:

FORM zf_display_alv.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'ALV_USER_COMMAND'
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
TABLES
t_outtab = tb_alv
EXCEPTIONS
program_error = 1
OTHERS = 2.

IF sy-subrc <> 0.
MESSAGE ID '00' TYPE 'I' NUMBER 001
WITH 'REUSE_ALV_GRID_DISPLAY call error: ' sy-subrc.
RETURN.
ENDIF.

ENDFORM.

FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTANDARD'. "Copy of standard ALV
ENDFORM.

Read only

0 Likes
1,311

If you do a comment under a question/answer and you want to target someone else than the question/answer' author, the only solution is to copy/paste their hyperlinked name so that the person receives a warning (NB: @ doesn't work)

Read only

1,312

Actually, by copying status STANDARD_FULLSCREEN from program SAPLSLVC_FULLSCREEN solved my problem, just in case somebody will face same issue.