‎2012 Dec 20 4:57 AM
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
‎2012 Dec 20 5:06 AM
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
‎2012 Dec 20 5:48 AM
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).
‎2012 Dec 20 5:52 AM
‎2012 Dec 28 5:39 AM
‎2012 Dec 28 5:39 AM
‎2012 Dec 20 5:40 AM
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.