Skip to Content
author's profile photo Former Member
Former Member

Table Control Wizard - 'MARK' field not working

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2008 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2008 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.