‎2013 Jun 18 1:27 PM
Actually once I am going to edit data in Table control it does not hold on screen, but showing in internal table, I am using this code :
MODIFY I_EKPO INDEX TC-CURRENT_LINE. please suggest me. I have attached also a screen shot of debugging of I_ekpo after entering data.
Message was edited by: Matthew Billingham - fixed title. Do not use all CAPITALS please, as it can lead to your posting being rejected.
‎2013 Jun 18 3:03 PM
Hi,
Try this one.
CONTROLS TC TYPE TABLEVIEW USING SCREEN 9000.
DATA COLS LIKE LINE OF TC-COLS. "TO MODIFY COLUMNS
MODULE USER_COMMAND_9000 INPUT.
CLEAR OK_CODE.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'EDIT'.
LOOP AT TC-COLS INTO COLS.
COLS-SCREEN-INPUT = '1'.
MODIFY TC-COLS FROM COLS INDEX SY-TABIX.
ENDLOOP.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPUT
‎2013 Jun 18 1:38 PM
‎2013 Jun 20 10:18 AM
Hi, Raymond,
Yes I have mapped my internal table using loop, and also put a loop PAI. ,after editing internal table holds the entry but Table control does not hold the changes.
‎2013 Jun 20 12:43 PM
‎2013 Jun 18 1:47 PM
Hi,
please check PBO when filling internal table.
put a varialble to fill internal table once in PBO.
IF l_mark EQ space.
* fill internal table here i_ekpo
l_mark = 'X'.
ENDIF.
‎2013 Jun 18 3:03 PM
Hi,
Try this one.
CONTROLS TC TYPE TABLEVIEW USING SCREEN 9000.
DATA COLS LIKE LINE OF TC-COLS. "TO MODIFY COLUMNS
MODULE USER_COMMAND_9000 INPUT.
CLEAR OK_CODE.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'EDIT'.
LOOP AT TC-COLS INTO COLS.
COLS-SCREEN-INPUT = '1'.
MODIFY TC-COLS FROM COLS INDEX SY-TABIX.
ENDLOOP.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPUT
‎2013 Jun 19 4:45 AM
Hi Kumar Krishna Sen,
Ensure that the screen field attribute "Output field" is ticked.
Regards.
‎2013 Jun 19 5:24 AM
Hi,
What code you have in your PBO? May be aftre editing and press enter your internal table is getting modify , but are you selecting the actual saved data from DB in the PBO which is again getting appear on the screen..
regards,
zafar
‎2013 Jun 19 5:27 AM
Hi Kumar,
You use PAI event to do this operation.put a break point and check what it is happening after pressing the save button.
Let me know if any clarification/help required.
Thanks & Best Regards.
Pavan Neerukonda.
‎2013 Jun 19 5:29 AM
Hi kumar,
Check in PBO weather the modified data is passing from internal table to screen.
Regards,
Satishreddy.
‎2013 Jun 20 10:27 AM
Hi Pavan,
I have used this code in PBO of Table control screen.
loop at i_ekpo with CONTROL tc
CURSOR tc-current_line. for mapping the TC should I need something more codes, if yes please help me out.
‎2013 Jun 20 3:44 PM
Hi kumar,
i think you changed the code that wizard generated, check the pbo-->loop-->
MODULE tc_enable_screen. if their check the modify statement is their or not,
thanks and regards
Sudhakar
‎2013 Jun 20 4:33 PM
Hi Krishna,
The flow logic in Module pool will be PBO--->PAI----->PBO.
So the PBO will trigger two times......
Whenever your are updating internal table try to pass this same internal table in PBO...so that data changes wil be reflected in Table control....
‎2013 Jun 21 5:58 AM
Hi.
IF you use table control wizard to display table control in module pool then it will automatically edit it..
Also check if you are clearing work area corresponding to internal table in PBO of screen..