Code: Alles auswählen.
ls_fcat-fieldname = 'MATNR1'.
ls_fcat-ref_field = 'MATNR'.
ls_fcat-ref_table = 'MARA'.
append ls_fcat to lt_fcat.
ls_fcat-fieldname = 'MATNR2'.
ls_fcat-ref_field = 'MATNR'.
ls_fcat-ref_table = 'MARA'.
append ls_fcat to lt_fcat.