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

Re: CHECK BOX IN TABLE CONTROL

$
0
0

In the PAI of main screen you should have written something like

* Here function defined as exit (back, cancel, etc.)
* so no check of data required

MODULE USER_COMMAND AT EXIT-COMMAND.
* Here PAI of subscreen
CALL SUBSCREEN sub_area.
* ...

* Same module, but here applicative functions only will triggger
MODULE USER_COMMAND.

In the PAI of the subscreen (tab with table control)

* Loop at table control  LOOP AT itab.      CHAIN       FIELD itab-box1.       FIELD itab-box2.       " check only one box checked       MODULE check_one_box.     ENDCHAIN.     " update internal table    MODULE modify_itab.  ENDLOOP.

Then

  • In the check box module raise an error if two boxes are checked (the checknoxes will be input allowed)
  • In the user command during "SAVE" (not defined as exit but as applicative function) processing you can loop at modified table and update database.

Alternative :

  • Add a third box "keep" or "ignore" defaulted as checked during initialization, and group all three boxes in a radiobutton group.

 

Regards,

Raymond



Viewing all articles
Browse latest Browse all 10482

Trending Articles



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