Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9239

Re: Not Able to delete data from internal table to Data Base Table in table control

$
0
0

Dear Abdul,

 

refer the below code, as i have created 3 work area, moved the records of respective table to that work area, and then tried to delete from the database table, that is not working.

 

WHEN 'DELE'.

       MESSAGE 'This will delete entire row,still you want to continue' TYPE 'W'.

       READ TABLE it_main2 INTO wa_main2 WITH KEY mark = 'X'.

       READ TABLE it_zexp_advice1 INTO wa_zexp_advice1 WITH KEY eorder = wa_main2-eorder

                                                                         mark = 'X'.

 

 

       DELETE it_main2 WHERE mark = 'X'.

       DESCRIBE TABLE it_main2 LINES tc_it_main2-lines.

 

         MOVE-CORRESPONDING wa_main2 TO  wa_vbap1.

         MOVE-CORRESPONDING wa_main2 TO wa_zexp_advice2.

         MOVE-CORRESPONDING wa_main2 TO wa_zea_packaging2.

 

   BREAK ABAP_BFL.

 

         DELETE vbap FROM wa_vbap1.

         DELETE zexp_advice FROM wa_zexp_advice2.

         DELETE zea_packaging FROM wa_zea_packaging2.


Thanks and Regards

Jai


Viewing all articles
Browse latest Browse all 9239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>