Posted: Mon Feb 18, 2008 4:32 pm Post subject: Модификация внутренней таблицы
Здравствуйте.
Посмотрите, пожалуйста, почему не работает оператор MODIFY для внутренней таблицы?
Code:
DATA: BEGIN OF wa_table,
vstel TYPE likp-vstel,
route TYPE likp-route,
vsbed TYPE likp-vsbed,
inco1 TYPE likp-inco1,
kunnr TYPE likp-kunnr,
kunag TYPE likp-kunag,
vbeln TYPE lips-vbeln,
posnr TYPE lips-posnr,
matnr TYPE lips-matnr,
meins TYPE lips-meins,
brgew TYPE lips-brgew,
lgmng TYPE lips-lgmng,
vgbel TYPE lips-vgbel,
vgpos TYPE lips-vgpos,
END OF wa_table.
DATA: it_table LIKE TABLE OF wa_table.
DATA: l_adrnr TYPE vbpa-adrnr.
SELECT
k~vstel k~route k~vsbed k~inco1 k~kunnr k~kunag
p~vbeln p~posnr p~matnr p~meins p~brgew p~lgmng
p~vgbel p~vgpos
INTO CORRESPONDING FIELDS OF TABLE it_table
FROM likp AS k
INNER JOIN lips AS p ON p~vbeln = k~vbeln
WHERE k~vstel IN s_vstel
AND k~wadat_ist IN s_wadat
AND p~mtart IN s_mtart
.
LOOP AT it_table INTO wa_table.
SELECT SINGLE adrnr FROM vbpa INTO l_adrnr
WHERE vbeln = wa_table-vgbel
AND parvw = 'WE'.
SELECT city1 region post_code1 INTO CORRESPONDING FIELDS OF wa_table
FROM adrc WHERE
addrnumber = l_adrnr.
ENDSELECT.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.