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

Scroll Down Problem in module pool table control-----

Former Member
0 Likes
2,136

hi,

      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....

6 REPLIES 6
Read only

sivaganesh_krishnan
Contributor
0 Likes
1,593

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

Read only

0 Likes
1,593

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...

Read only

anubhab
Active Participant
0 Likes
1,593

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

Read only

Former Member
0 Likes
1,593

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.

Read only

anubhab
Active Participant
0 Likes
1,593

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

Read only

Former Member
0 Likes
1,593

thanks