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: 

Table Control Wizard - 'MARK' field not working

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

<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

Former Member
0 Kudos

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