Application Development 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: 

alv

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

clear the workarea or the internal table header line

and also make sure the fieldcataloags are cleared and refreshed everytime

10 REPLIES 10

Former Member
0 Kudos

hi

try clearing the fieldcat table when u click back

regards

Balasubramanian .s

Former Member
0 Kudos

Hi,

If SY-UCOMM = 'BACK'.

Refresh the Itab or fields which you are storing and displaying in the secondary list

ENDIF.

Former Member
0 Kudos

refresh your fieldcat after the second list is displayed.

santhosh

Former Member
0 Kudos

clear the workarea or the internal table header line

and also make sure the fieldcataloags are cleared and refreshed everytime

0 Kudos

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.

0 Kudos

u have to REFRESH when u click the BACK in the secondary list i guess

Former Member
0 Kudos

hey refresh to item table in user command event when sy-ucomm =' Back'

Former Member
0 Kudos

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

sourabhshah
Advisor
Advisor
0 Kudos

hi,

This is a refresh problem.Try refreshing the entries of the second screen display between screen operation.

Regards,

Sourabh

sourabhshah
Advisor
Advisor
0 Kudos

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