Skip to Content
0
Former Member
Nov 28, 2008 at 07:43 AM

How to create a generic TYPES?

1021 Views

hello!

what i try to do is following

eg:

when i call my function the user has the possibility to check the flag "show_button = 'X', and exports a table

when this flag is checked i want to display an icon in the first row of this table, so i need to extend the table structure which i import and add another attribute.

what i actually tried to achieve is this (but this is not working of course)

function

import:

i_outtab type standard table.

field-symbols:
      <itab> type standard table.

assign i_outtab to <itab>.

TYPES: begin of mytyp.
   types: i_bt type iconname.
  INCLUDE STRUCTURE <itab>
TYPES: end of mytyp.

and then i create a table with the type mytyp (which is not working, but i shows what i try to do)

so is there a way to do this genericly?