Hi,
You Can Copy it from Se41 Tcode..
Hi
Just tr this...it will be usefull....to you...
Copy the standard gui status in ur program using tcode SE51
->user interface
and add a button there.Use FM 'REUSE_ALV_EVENTS_GET' to get user-command event.
sample code :
form Z8_EVENTCAT using p_i_eventcat TYPE SLIS_T_EVENT.
DATA : L_EVENT TYPE SLIS_ALV_EVENT.
FOR GETTING ALL 17 EVENTS
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = P_I_EVENTCAT
EXCEPTIONS
LIST_TYPE_WRONG = 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.
CLEAR L_EVENT.
READ TABLE P_I_EVENTCAT WITH KEY NAME = SLIS_EV_PF_STATUS_SET INTO L_EVENT.
IF SY-SUBRC = 0.
MOVE 'Z8_PF_STATUS' TO L_EVENT-FORM.
APPEND L_EVENT TO P_I_EVENTCAT.
ENDIF.
CLEAR L_EVENT.
READ TABLE P_I_EVENTCAT WITH KEY NAME = SLIS_EV_USER_COMMAND INTO L_EVENT.
IF SY-SUBRC = 0.
MOVE 'Z8_USER_COMMAND' TO L_EVENT-FORM.
APPEND L_EVENT TO P_I_EVENTCAT.
ENDIF.
form Z_MENU using p_extab type slis_t_extab.
SET PF-STATUS 'MENU_LIST'.
endform. " Z_MENU
form z8_user_command using p_ucomm type sy-ucomm
p_selfield type slis_selfield.
case p_ucomm.
WHEN '&IC1'.
call screen 100.
endcase
endform.
Use these links it will be usefull..
http://help.sap.com/saphelp_nw04s/helpdata/en/74/121ecb6094104bbc78263c1e396b51/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/47/d4fed1c60a9743ade3b4cf306d5d48/frameset.htm
Thanks,
Sakthi C
*Reward points if helpful.*
Message was edited by:
Sakthi Saravanan C
Add a comment