‎2006 Aug 14 7:43 PM
Hi All,
IF it_vbak IS NOT INITIAL.
SELECT matnr meinh umrez umren FROM marm
INTO TABLE it_marm
FOR ALL ENTRIES IN it_vbak
WHERE matnr = it_vbak-matnr
and meinh = it_vbak-zieme.
SORT it_marm BY matnr meinh.
DELETE ADJACENT DUPLICATES FROM it_marm.
ENDIF.
This simple select statement gives me an dump saying
<b>Error in the module RSQL accessing the database interface. </b>
What is wrong with this statement.
Thanks In Advance.
‎2006 Aug 14 7:52 PM
Hi Jr Abaper.
Check the definition of it_marm, the fields should be in the same order as the select field list.
Hope it Helps.
Jesus
‎2006 Aug 14 7:52 PM
Hi Jr Abaper.
Check the definition of it_marm, the fields should be in the same order as the select field list.
Hope it Helps.
Jesus
‎2006 Aug 14 7:55 PM
Make sure you are checking it_vbak[] not initial instead of it_vbak. The way it is written now will attempt the select if there is anything in the header of your internal table even if the table is emtpy.
Message was edited by: Michael Malvey
‎2006 Aug 14 7:59 PM
‎2006 Aug 14 7:58 PM
Hi,
Please try this.
IF NOT IT_VBAK[] IS INITIAL.
...
ENDIF.Regards,
Ferry Lianto