‎2006 Jun 28 5:50 PM
I am planning to write a program related to table control for updating/inserting/deleting a record into internal table or database table.
Is it must that the internal table or database should have a field called 'mark' with C type and length 1? For example, I see in the database table Mara, there is no field called 'mark' at all. Does that mean we can't insert/update/delete a record from Mara? Definitely not.
Can you please make it clear on this concept? Thanks in advance.
‎2006 Jun 28 5:55 PM
hi Nuren,
the mark that you are talking is the table control field not database field and you cannot find the same in the database so you need not bother about mark field to be present in the database
‎2006 Jun 28 5:53 PM
No, this field doesn't have to exist in the DB table, just in your Internal table. This MARK field is just a way for the program to know what lines of the table contol have been selected. That's it.
data: begin of iztab occurs 0.
data: mark(1) type c.
include structure ztab.
data: end of iztab.Regards,
Rich Heilman
‎2006 Jun 28 5:55 PM
hi Nuren,
the mark that you are talking is the table control field not database field and you cannot find the same in the database so you need not bother about mark field to be present in the database
‎2006 Jun 28 5:57 PM
hi nuren,
in the screen painter if you are specifying w/selcolumn for the table control, then u need to declare a mark TYPE c in the internal table, then u can write like
in pai.
IF v_check(is the name of w/selcolumn in the screen) = 'X'.
itab-chk = 'X'.
MODIFY itab index tc1-current_line.
ELSE.
CLEAR itab-chk .
ENDIF.
‎2007 Jan 24 11:25 AM
‎2007 Jan 24 11:29 AM