‎2006 Aug 24 12:56 PM
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.
‎2006 Aug 24 1:15 PM
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
‎2006 Aug 24 1:15 PM
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
‎2006 Aug 24 3:34 PM
Hi experts,
I am adding the standard function codes even the it is not working.Kindly comment on this.
‎2006 Aug 24 4:02 PM
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
‎2006 Aug 24 3:45 PM
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