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

Problem in HierSeq list ALV

Former Member
0 Likes
842

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
804

Hi,

what exactly are you doing when the refresh button is pressed..

Thanks

Naren

Hi,

what exactly are you doing when the refresh button is pressed..

Thanks

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
805

Hi,

what exactly are you doing when the refresh button is pressed..

Thanks

Naren

Read only

0 Likes
804

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.

Read only

0 Likes
804
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.
Read only

Former Member
0 Likes
804
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.
Read only

0 Likes
804

Hi Vijay,

You are right.

I am again calling ALV into this perform.