‎2009 Nov 04 8:13 AM
‎2009 Nov 04 8:19 AM
You may add a function code for refresh in your status or a copy of the standard status (SE41, SET PF-STATUS in the FORM defined by parameter <a class="jive-link-external" href="http://forums.sdn.sap.com/search.jspa?objID=c42&q=I_CALLBACK_PF_STATUS_SET" target="_newWindow">I_CALLBACK_PF_STATUS_SET</a>)<br />
<br />
Then in the USER_COMMAND form (defined by parameter <a class="jive-link-external" href="http://forums.sdn.sap.com/search.jspa?objID=c42&q=I_CALLBACK_USER_COMMAND" target="_newWindow">I_CALLBACK_USER_COMMAND</a>) set the field RS_SELFIELD-REFRESH.<br />
<br />
Also perform some search at sdn, there are samples like in <a class="jive-link-external" href="https://wiki.sdn.sap.com/wiki/display/Snippets/autorefreshalv+Program" target="_newWindow">auto refresh alv Program </a><br />
<br />
Regards,<br />
Raymond
‎2009 Nov 04 9:15 AM
Hi Manish,
<li>Use two events pf_status_set and user_command.
<li>Copy PF status of the given program below. When you copy Refresh button appears. You have to write logic to refresh using USER_COMMAND events
<li>
*&---------------------------------------------------------------------*
*& Form PF_STATUS_SET
*&---------------------------------------------------------------------*
FORM pf_status_set USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'TEST'.
* 1. When you set Pf status ZTEST, standard application tools will be removed.
* 2. Goto SE41 give program 'SAPLKKBL' and status 'STANDARD_FULLSCREEN'.
* 3. Copy the status from those to ZTEST of our program. Now you will see all standard functions.
ENDFORM. "PF_STATUS_SET
Thanks
Venkat.O*------------------------------------------------------------------*
* FORM USER_COMMAND *
*------------------------------------------------------------------*
FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
* Check function code
CASE r_ucomm.
WHEN '&REFRESH'. "user presses SAVE
rs_selfield-refresh = 'X'.
ENDCASE.
ENDFORM. "user_command