2008 Aug 28 8:24 PM
Hi All,
I have used below FM :'REUSE_ALV_HIERSEQ_LIST_DISPLAY'.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = WS_C_REPID
I_CALLBACK_USER_COMMAND = 'F0019_PROCESS_USER_COMMAND'
I_CALLBACK_PF_STATUS_SET = 'F0018_STATUS'
IS_LAYOUT = WS_LAYOUT
IT_FIELDCAT = I_FIELDCAT
I_TABNAME_HEADER = 'I_UOM1'
I_TABNAME_ITEM = 'I_SCND_DATA1'
IS_KEYINFO = WS_KEYINFO
I_SAVE = 'A'
TABLES
T_OUTTAB_HEADER = I_UOM1
T_OUTTAB_ITEM = I_SCND_DATA1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS .
It is working fine as required.But when i press REFRSH button it will call 'F0019_PROCESS_USER_COMMAND' and execute logic under f-code REFRESH and again display in ALV.
Now the Problem is if press Refresh 3 times and then press BACK button it will call 3-times and then goto selection screen instead of single press BACK button..
I dont know how to handle this.
Please suggest me how to handle this.
Thanks.
2008 Aug 28 8:34 PM
Hi,
what exactly are you doing when the refresh button is pressed..
Thanks
Naren
Hi All,
I have used below FM :'REUSE_ALV_HIERSEQ_LIST_DISPLAY'.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = WS_C_REPID
I_CALLBACK_USER_COMMAND = 'F0019_PROCESS_USER_COMMAND'
I_CALLBACK_PF_STATUS_SET = 'F0018_STATUS'
IS_LAYOUT = WS_LAYOUT
IT_FIELDCAT = I_FIELDCAT
I_TABNAME_HEADER = 'I_UOM1'
I_TABNAME_ITEM = 'I_SCND_DATA1'
IS_KEYINFO = WS_KEYINFO
I_SAVE = 'A'
TABLES
T_OUTTAB_HEADER = I_UOM1
T_OUTTAB_ITEM = I_SCND_DATA1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS .
It is working fine as required.But when i press REFRSH button it will call 'F0019_PROCESS_USER_COMMAND' and execute logic under f-code REFRESH and again display in ALV.
Now the Problem is if press Refresh 3 times and then press BACK button it will call 3-times and then goto selection screen instead of single press BACK button..
I dont know how to handle this.
Please suggest me how to handle this.
Thanks.
2008 Aug 28 8:34 PM
Hi,
what exactly are you doing when the refresh button is pressed..
Thanks
Naren
2008 Aug 28 8:40 PM
It will refresh and clear all internal table and workarea and fetch data again from start-of-selection.
In short, it will start logic again from Start-of-selection.
2008 Aug 28 8:43 PM
form F0019_PROCESS_USER_COMMAND using ucomm type sy-ucomm selfield type slis_selfield.
"i hope you are calling peform and fetching the data again
"then in that case
"at the end
selfield-exit = 'X'. "<--------------this is very very important.
selfield-refresh = 'X'.
endform.
2008 Aug 28 8:39 PM
form F0019_PROCESS_USER_COMMAND using ucomm type sy-ucomm selfield type slis_selfield.
"i hope you are calling the alv again isn't it..?
"just confirm this is what you are doing.
"or post the code here..
endform.
2008 Aug 28 8:41 PM
Hi Vijay,
You are right.
I am again calling ALV into this perform.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |