Application Development 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: 

modification on table control

Former Member
0 Kudos

Hi All,

Can any one please help me on this topic.

In table control i have one column 'serial number' it is having some values. i want to change the values of that column where ever i need(by over typing on that), then it has to display the changed serial number.

Can any one kindly help on this problem.

Thanks in Advance.

Thanks & Regards

Ramu.

2 REPLIES 2

gopi_narendra
Active Contributor
0 Kudos

in the PAI of the tab ctrl u need to use the modify statement..

and basic thing here is u need to is

move screen values to the internal table in PAI

and in PBO u need to move the internal table values to the screen for display

for reference use this programs

demo_dynpro_tabcont_loop and

demo_dynpro_tabcont_loop_at

anversha_s
Active Contributor
0 Kudos

hi,

kindly chk this.

PROCESS BEFORE OUTPUT.

MODULE status_9010.

LOOP WITH CONTROL tab_control.

MODULE move_data_to_table.

ENDLOOP.

PROCESS AFTER INPUT.

LOOP WITH CONTROL tab_control.

MODULE move_data_from_table.

ENDLOOP.

****************************

&----


*& Module move_data_to_table OUTPUT

&----


  • This is to move the data from the internal table to the table control

----


MODULE move_data_to_table OUTPUT.

  • This is to move the data from the internal table to the table control

zmpets_mode-modecode,zmpets_range-rangeid,zmpets_servfacto-factor are column name if *table control

*

READ TABLE int_factor INDEX tab_control-current_line.

IF sy-subrc = 0.

zmpets_mode-modecode = int_factor-modecode.

zmpets_range-rangeid = int_factor-rangeid.

zmpets_servfacto-factor = int_factor-factor.

ENDIF.

ENDMODULE. " move_data_to_table OUTPUT

**********************

&----


*& Module move_data_from_table INPUT

&----


  • Date is moved from the table control to the Internal Table

----


MODULE move_data_from_table INPUT.

  • To move the data from the table control to internal table 'INT_FACTOR.

int_factor-modecode = zmpets_mode-modecode.

int_factor-rangeid = zmpets_range-rangeid.

int_factor-factor = zmpets_servfacto-factor.

MODIFY int_factor INDEX tab_control-current_line.

IF sy-subrc NE 0.

APPEND int_factor.

CLEAR int_factor.

ENDIF.

ENDIF.

ENDMODULE. " move_data_from_table INPUT

for any clarifiaction pls mail me.

pls reward points, if this helped u.

regards,

anversha.

anversha.shahul@wipro.com