Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Re: module pool programming

$
0
0

Hi Sai,

 

I want to know where you have s trucked while delete and change.

 

 

PROCESS PAI.

 

 

   LOOP AT ITAB.

      FIELD ITAB-MARK.

      MODULE MODIFY_ITAB.

   ENDLOOP.

 

 

   MODULE USER_COMMAND.

 

*****************************************

 

MODULE MODIFY_ITAB.

 

* Save all data from screen

   MODIFY ITAB INDEX <TABLE CONTROL>-CURRENT_LINE.

 

ENDMODULE.

 

 

MODULE USER_COMMAND.

 

  CASE OK_CODE.

 

    WHEN 'DELETE'.

       LOOP AT ITAB WHERE MARK = 'X'.

         * Delete database record

           DELETE Z<TABLE> FROM ITAB.

        * Delete internal table record

          DELETE ITAB.

     ENDLOOP.

       COMMIT WORK

  

WHEN 'MODIFY'.

       LOOP AT ITAB WHERE MARK = 'X'.

      * Modify database record

       MODIFY Z<TABLE> FROM ITAB.

       ENDLOOP.

       COMMIT WORK.

ENDMODULE.

 

 

Thanks & Regards,

Manoj.


Viewing all articles
Browse latest Browse all 3125

Trending Articles



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