08-14-2008 12:58 AM
I have 3 screens. 100, 200 and 300. screen 300 is my table control, and the selction screen is screen 100. Moving from 100 - 300 is not a problem, but the line selectability feature which is my MARK field, does not display the data into screen 300 when i select it.
MODULE TC_STATS2_MARK INPUT.
data: wa_player_stats type itab .
clear itab.
IF tc_stats2-line_sel_mode = 1.
LOOP AT itab into wa_player_stats.
if wa_player_stats-mark = 'X'.
exit.
endif.
ENDLOOP.
ENDIF.
ENDMODULE.
That is the code, any ideas?
08-14-2008 4:47 AM
Hi ,
Use the following code.
loop at <table> assigning <wa>.
*&SPWIZARD: access to the component 'FLAG' of the table header
*
assign component p_mark_name of structure <wa> to <mark_field>.
if <mark_field> = 'X'.
delete <table> index syst-tabix.
if sy-subrc = 0.
<tc>-lines = <tc>-lines - 1.
endif.
endif.
endloop.
In the table control , i have given the the mark as wa-mark
08-14-2008 4:23 AM
<removed_by_moderator>
Please read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting.
Edited by: Julius Bussche on Aug 14, 2008 6:40 AM
08-14-2008 4:47 AM
Hi ,
Use the following code.
loop at <table> assigning <wa>.
*&SPWIZARD: access to the component 'FLAG' of the table header
*
assign component p_mark_name of structure <wa> to <mark_field>.
if <mark_field> = 'X'.
delete <table> index syst-tabix.
if sy-subrc = 0.
<tc>-lines = <tc>-lines - 1.
endif.
endif.
endloop.
In the table control , i have given the the mark as wa-mark