cancel
Showing results for 
Search instead for 
Did you mean: 

alv

Former Member
0 Kudos

HI can anybody help me how to add Spreadsheet icon in the output , I have to use REUSE_ALV_BLOCK_LIST_DISPLAY

Accepted Solutions (1)

Accepted Solutions (1)

eddy_declercq
Active Contributor
0 Kudos

Hi,

YOu will get quicker answers if you post this question in the ABAP forum.

Eddy

Answers (1)

Answers (1)

Former Member
0 Kudos

thanks eddie

former_member188685
Active Contributor
0 Kudos

HI,

in your program set the PF-satus using the FM.

REUSE_ALV_BLOCK_LIST_INIT

for this you pass the from

  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
      I_CALLBACK_PROGRAM = V_REPID
      <b>I_CALLBACK_PF_STATUS_SET = 'PFSTAT'</b>.


FORM PFSTAT USING P_EXTAB TYPE SLIS_T_EXTAB.

*- Pf status
  SET PF-STATUS 'PFSTAT'. 
"double click , and create it, save and activate.
"now add the following codes to application toolbar
<b> "&VEXCEL "download to excel 
  "&AQW      "word processing 
  "%PC       "PC spread sheet etc..
      </b>                       
ENDFORM.    

Regards

vijay

former_member188685
Active Contributor
0 Kudos

Hi,

There is anothe alternative is , Copy the PF status from some standard program using SE41.

here is one such..<b>SAPLKKBL</b>, PF status <b>STANDARD_FULLSCREEN</b>

Go to SE41, give the program, and pfstatus.

now click on copy button, give your program , and pfstaus .copy it and activate it.

now use it in your program..

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
      I_CALLBACK_PROGRAM = V_REPID
     <b> I_CALLBACK_PF_STATUS_SET = 'PFSTAT'.</b>



FORM PFSTAT USING P_EXTAB TYPE SLIS_T_EXTAB.
 
*- Pf status
  <b>SET PF-STATUS 'PFSTAT'</b>. "this is we copied
                          "it is having all you want     
ENDFORM.   

Regards

vijay