‎2014 Apr 29 8:05 PM
myself sudip ...i have a problem doing table control scroll down.problem is..In a screen data is retrived from table(let say vbak) into table control at pbo...to see all data i have to scroll down..that's ok..but i have to modify then save..when i edit the data in one portion..after that i have to scroll down to edit other data..but when i scroll up to check the editing, i saw new data cleared,,the data are retrived from table,are present..the editing cleared...how to solve this issue..please help....
‎2014 Apr 30 4:28 AM
hi sudip,
make sure you are modifying the internal table which your passing to the pbo, The values which your are editing must be passed to the internal table.. so that it may be triggered same in Pbo also.
Regards,
Sivaganesh
‎2014 Apr 30 6:50 AM
hi Sivaganesh,
problem is i have to modify & save all data at a time.case is i have edited some portion in the upper & then scroll down & edit some data...then save...when i scroll down, PAI called..the editing made in the upper portion cleared...
‎2014 Apr 30 6:53 AM
Hi Sudip,
Please check your PAI. I guess you have written some functionality for sy-ucomm = ' '. So, when you are scrolling through the table control, it's executing that code and going for the PBO of the screen again. That's why your new data is getting cleared up and only fetched values are there. Please check once and let me know.
Thanks,
Anubhab
‎2014 Apr 30 7:05 AM
FLOW LOGIC:--
PBO
MODULE STATATUS_9001.
loop at itab with control tab1.
endloop.
PAI
MODULE USER_COMMAND_9001.
loop at itab.
module v1.
endloop.
-----------------------------------------------------------------------------
MODULE V1 INPUT.
CASE OK_CODE.
WHEN 'MODIFY'.
modify itab index tab1-current_line.
modify mara from table itab.
ENDCASE.
ENDMODULE.
‎2014 Apr 30 7:21 AM
Hi Sudip,
In PBO, within the LOOP, there should be a module to transport the changes from screen to internal table.
LOOP AT itab WITH CONTROL tab1.
MODULE modify_itab.
ENDLOOP.
MODULE modify_itab.
DESCRIBE TABLE itab LINES tc-lines.
IF tc-current_line > tc-lines.
APPEND itab.
ELSE.
MODIFY itab.
ENDIF.
ENDMODULE.
And also please take a look at this report: RSDEMO02. Hope this might help.
Thanks,
Anubhab
‎2014 Apr 30 6:46 PM