12-21-2006 11:31 AM
Hey gurus,
In Interactive ALV if i click for first time on any line in the first grid display,
second screen is displaying correctly...with line items.But when i click on back button and if click on the same line again the same line tems are displaying again..
waht may be the problem?..
For Ex:
ist scree.
vbeln vkorg kunr
4355 0001 1234
if click on this line..in the second scree.
matnr posnr netpr
p-001 0001 450
So after clicking on back button on the standard tool bar
and if i click on the same line in the 1st screen.the second screen is dispalying as follows.
matnr posnr netpr matnr posnr netpr
p-001 0001 450 p-001 0001 450
How to solve this?
p-001 0001 450
12-21-2006 11:34 AM
clear the workarea or the internal table header line
and also make sure the fieldcataloags are cleared and refreshed everytime
12-21-2006 11:33 AM
hi
try clearing the fieldcat table when u click back
regards
Balasubramanian .s
12-21-2006 11:33 AM
Hi,
If SY-UCOMM = 'BACK'.
Refresh the Itab or fields which you are storing and displaying in the secondary list
ENDIF.
12-21-2006 11:33 AM
refresh your fieldcat after the second list is displayed.
santhosh
12-21-2006 11:34 AM
clear the workarea or the internal table header line
and also make sure the fieldcataloags are cleared and refreshed everytime
12-21-2006 11:45 AM
Hi
Thanks.Even then it is not working.
See the code:
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
READ TABLE IT_VBAK INTO WA_VBAK INDEX RS_SELFIELD-TABINDEX.
DATA: ID LIKE SY-TABIX.
ID = RS_SELFIELD-TABINDEX.
PERFORM BUILD_CATALOG_VBAP.
PERFORM GET_DATA_VBAP.
PERFORM DISPLAY_VBAP_DATA.
WHEN 'BACK'.
REFRESH J_FIELDCAT.
REFRESH IT_VBAP[].
ENDCASE.
ENDFORM.
12-21-2006 11:53 AM
u have to REFRESH when u click the BACK in the secondary list i guess
12-21-2006 11:35 AM
hey refresh to item table in user command event when sy-ucomm =' Back'
12-21-2006 11:35 AM
Hi rao ,
Refresh u r internal table which contains the records which u r displaying .
write REFRESH internal tablename at the end of u r program, it solves u r problem
12-21-2006 11:37 AM
hi,
This is a refresh problem.Try refreshing the entries of the second screen display between screen operation.
Regards,
Sourabh
12-21-2006 11:58 AM
hi,
I can see that you are doing a read in a work area wa this is not defined in the form if it is defined in the screen module this behaves like a global variable in which case you will have to clear it. Also you subroutine does not have any parameters so you might be using global tables or work areas clear these in the double click even &ic1.
Regards,
Sourabh