Code: Alles auswählen.
CALL METHOD EXITINTF->CHANGE_DATA_DETLIST
EXPORTING
IT_PURSLINE_MAB = IT_PURSLINE_MAB
IT_MATINFO = IT_MATINFO
IT_PURASN = IT_PURASN
IT_PURSLINE = IT_PURSLINE
IT_PURDOC = IT_PURDOC
IT_LPART = IT_LPART
IT_BSART = IT_BSART
IV_EINDTB = IV_EINDTB
IV_EINDTV = IV_EINDTV
IT_EKGRP = IT_EKGRP
IT_LIFNR = IT_LIFNR
IT_MATNR = IT_MATNR
IV_BERID = IV_BERID
IT_DISPO = IT_DISPO
IV_WERKS = IV_WERKS
CHANGING
OT_FIELDCAT = OT_FIELDCAT
OT_DETLIST = OT_DETLIST
EXCEPTIONS
GENERAL_ERROR = 1.
case sy-subrc.
Code: Alles auswählen.
LOOP AT ot_detlist ASSIGING FIELD-SYMBOL(<details>).
<details>-zzwerks = <details>-werks.
ENDLOOP.