Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Add a column (checkbox) in Module pool programming

Former Member
0 Likes
1,012

Hello Genius,

How are you friends....

I got one problem in Module pool program.I am using table control wizard.

within a table control wizard display some field from Ztable. but now am add one column(checkbox) for this table control.

after adding the one cloumn(checkbox) , delete the selected row for this display table as well as should be modify the ztable record while enter, after selection the row (checkbox).

my case :

     am add one column : text box name : status.

                                     I/O box name : wa_OBOOKING-bookstatus

I add this coding in PAI.  but while debugging time the status field still blank , but am mark in check box.

MODULE USER_COMMAND_0204 INPUT.
   OK_CODE =  SY_COMM.
     LOOP AT IT_OBOOKING INTO WA_OBOOKING .
         IF wa_obooking-bookstatus = 'X'.


           UPDATE ZFDRBOOKING SET BOOKSTATUS = WA_OBOOKING-BOOKSTATUS.


           DELETE IT_OBOOKING INDEX SY-TABIX.


        ENDIF.
      ENDLOOP.
ENDMODULE.


<Priority normalized by moderator>


Message was edited by: Vinod Kumar

6 REPLIES 6
Read only

vinoth_aruldass
Contributor
0 Likes
795

hi ,

There is a problem in your sy-tabix.

first declare one variable in top include.

data: lv_tabix type sy-tabix

MODULE USER_COMMAND_0204 INPUT.
   OK_CODE =  SY_COMM.
     LOOP AT IT_OBOOKING INTO WA_OBOOKING .

lv_tabix = sy-tabix.
         IF wa_obooking-bookstatus = 'X'.


           UPDATE ZFDRBOOKING SET BOOKSTATUS = WA_OBOOKING-BOOKSTATUS.


           DELETE IT_OBOOKING INDEX lv_tabix.


        ENDIF.
      ENDLOOP.
ENDMODULE.

hope it helps,

Vinoth

Read only

0 Likes
795

hi Vinoth....

while debugging , didn't enter for this true condition.but i select particular row.

  IF wa_obooking-bookstatus = 'X'. ( its always false only).


Read only

0 Likes
795

hi,

I didnt get your clear  requirement.?

Read only

0 Likes
795

i have comple the work

Read only

0 Likes
795

i have comple the work

Read only

Former Member
0 Likes
795

Hi Subramani,

     I thought  you missed to copy the  wa_OBOOKING-bookstatus field inside your loop in PAI.

I mean that there will be two mandatory loops we should have to write for Table control one at PBO and one at PAI. May be you missed to copy the field in loop of PAI.

Once check it.