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 issue

Former Member
0 Likes
468

Hi all,

I am adding the sreadsheet,wordprocessing and local file icons in the application toolbar of my ALV GRID.

What exact FunctionModules are available for the corresponding icons,so that it works like the standard one.Can anyone help me in this .Thanx in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
419

Hi Satheesh,

When adding the ICONS to the toolbar assign standards function code so that you need not handle the functionality explicitly..say..in ur example sreadsheet(&XXL), wordprocessing(&AQW) and local file(%PC) are the function codes.

Regards,

Vidya

4 REPLIES 4
Read only

Former Member
0 Likes
420

Hi Satheesh,

When adding the ICONS to the toolbar assign standards function code so that you need not handle the functionality explicitly..say..in ur example sreadsheet(&XXL), wordprocessing(&AQW) and local file(%PC) are the function codes.

Regards,

Vidya

Read only

0 Likes
419

Hi experts,

I am adding the standard function codes even the it is not working.Kindly comment on this.

Read only

0 Likes
419

Hi ,

Do this it will work.

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_LIST_DISPLY'
    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

Read only

Former Member
0 Likes
419

Hi Sateesh,

it works when we assign standard fcodes.

check this...(just giving you pf-status code)

******************PF STATUS**************************

DATA : PF_STATUS TYPE SLIS_FORMNAME VALUE 'SET_PF_STATUS'.

mention this form name while calling..

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE = ' '

I_CALLBACK_PROGRAM = SY-REPID

I_CALLBACK_PF_STATUS_SET = PF_STATUS

I_CALLBACK_USER_COMMAND = USER_COMMAND

  • I_STRUCTURE_NAME =

IS_LAYOUT = WA_LAYOUT

IT_FIELDCAT = IT_FIELDCAT

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

I_SAVE = G_SAVE

IS_VARIANT = G_VARIANT

IT_EVENTS = G_EVENTS

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

T_OUTTAB = IT_VBAP

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.

write a form to create the pf-status

&----


*& Form SET_PF_STATUS

&----


  • text

----


FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.

SET PF-STATUS 'ZTEST_PFSTATUS' EXCLUDING EXTAB.

ENDFORM.

in 'ZTEST_PFSTATUS' create the required buttons and assign the above FCODES ... It works...

paste ur code otherwise so that we can check if anything is missing

Regards,

Vidya