Code: Alles auswählen.
* Tabelle definieren
DATA:
i_table type table of SAP_TAB_OR_STRUC.
* Statische Workarea
DATA:
w_table like line of i_table.
* Bearbeiten
LOOP AT i_table into w_table.
ENDLOOP.Code: Alles auswählen.
FIELD-SYMBOLS:
<i_table> like line of i_table.
* Damit kann man die Tabelle "entlangsurfen" und hat
* quasi garkeine Workarea mehr.
LOOP AT i_table ASSIGNING <i_table>.
ENDLOOP.
* Ach noch was: Einfügen neue Zeile mit Feldsymbol:
APPEND INITIAL LINE TO i_table ASSIGING <i_table>.
* und auf geht's ...
* Jeder Zugriff auf <i_table> schreibt sofort in die Tabelle!!!
Code: Alles auswählen.
TYPES:
BEGIN OF y_table,
...
...
END...
DATA:
i_table TYPE TABLE OF y_table.
* weiter wie obendiese Form kannte ich auch noch nicht...babap hat geschrieben:......Code: Alles auswählen.
FIELD-SYMBOLS: <i_table> like line of i_table. ... * Ach noch was: Einfügen neue Zeile mit Feldsymbol: APPEND INITIAL LINE TO i_table ASSIGING <i_table>. * und auf geht's ... * Jeder Zugriff auf <i_table> schreibt sofort in die Tabelle!!!
Gruß
babap
habe das jetzt in mein Prog. implementiert,babap hat geschrieben:Code: Alles auswählen.
FIELD-SYMBOLS: <i_table> like line of i_table. * Damit kann man die Tabelle "entlangsurfen" und hat * quasi garkeine Workarea mehr. LOOP AT i_table ASSIGNING <i_table>. ENDLOOP. * Ach noch was: Einfügen neue Zeile mit Feldsymbol: APPEND INITIAL LINE TO i_table ASSIGING <i_table>. * und auf geht's ... * Jeder Zugriff auf <i_table> schreibt sofort in die Tabelle!!!
Code: Alles auswählen.
DATA: g_it_out_lf TYPE TABLE OF lin_output_lieferung.
FIELD-SYMBOLS: <out_lf> TYPE lin_output_lieferung.
append initial line to g_it_out_lf assigning <out_lf>.Code: Alles auswählen.
DATA:
gt_mara TYPE TABLE OF mara.
FIELD-SYMBOLS:
<mara> LIKE LINE OF gt_mara.
APPEND INITIAL LINE TO gt_mara ASSIGNING <mara>.Eventuell mal sehen, ob alle Hotpackages drin sind.RiffRaff hat geschrieben:Hallo,
habe das jetzt in mein Prog. implementiert,bekomme aber leiderCode: Alles auswählen.
DATA: g_it_out_lf TYPE TABLE OF lin_output_lieferung. FIELD-SYMBOLS: <out_lf> TYPE lin_output_lieferung. append initial line to g_it_out_lf assigning <out_lf>.den Fehler:
Nach "G_IT_OUT_LF" wurde "." erwartet.
Hab ich da was übersehen???
mfg
Richard
Code: Alles auswählen.
FIELD-SYMBOLS: <out_lf> LIKE LINE OF g_it_out_lf.Code: Alles auswählen.
APPEND INITIAL LINE TO gt_itab.
READ TABLE gt_itab
ASSIGNING <gs_wa>
INDEX sy-tabix.
Richtig schön wäre:Gast hat geschrieben: das hat den Vorteil, dass man die parameter in den Forms direkt typisieren kann.
perform myform using git_table.
form myform using pit_table type tit_type.
endform.
Code: Alles auswählen.
form myform using value(pit_table) type tit_type.
endform.