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

Module-pool ....display to Edit mode

Former Member
0 Likes
3,308

In Selectio-screen .....after clicking ===> Display it show table in display mode

i used the code to display mode .IN .PBO

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'GR1'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

i used module-pool to display data in table

In this table after selecting a line in the table and click on EDIT ( push button ) .. it should be show in Edit mode ( only that perticular line in the table ).

shall you send the piece of code where to write in PAI.

In Selectio-screen .....after clicking ===> Display it show table in display mode

i used the code to display mode .IN .PBO

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'GR1'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

i used module-pool to display data in table

In this table after selecting a line in the table and click on EDIT ( push button ) .. it should be show in Edit mode ( only that perticular line in the table ).

shall you send the piece of code where to write in PAI.

4 REPLIES 4
Read only

Former Member
0 Likes
1,599

you do one thing that in pai when your table try is selected then capture ok_code for edit.

then in pbo inside loop for table control write a module

if MARK = 'X'.

case ok_code.

when 'edit'.

LOOP AT SCREEN.

if screen-group = g1.

screen-input = 1.

endif.

endloop.

endcase.

endif.

i hope u know about MARK.

<REMOVED BY MODERATOR>

vivek

Edited by: Alvaro Tejada Galindo on Feb 27, 2008 4:30 PM

Read only

0 Likes
1,599

Mr. vivak

i dint get what is that Mark..........

if MARK = 'X'.

case ok_code.

when 'edit'.

LOOP AT SCREEN.

if screen-group = g1.

screen-input = 1.

endif.

endloop.

endcase.

endif.

Read only

0 Likes
1,599

see when you make table control in its attributes you watch a field named like w/l selection . give name MARK there and then in your report program declare a field MARK type charcter now you can select fields according to MARK value whereever it is X.

<REMOVED BY MODERATOR>

VIVEK

Edited by: Alvaro Tejada Galindo on Feb 27, 2008 4:31 PM

Read only

Former Member
0 Likes
1,599

Hi Madhu,

The group/modif ID for screen display modifications are assigned to table control columns and not rows. Hence if you switch the group ID for display or edit mode, the entire column would change mode.

If you want to achieve this, however you can do this. Create some additional independent fields below the table control, basically all fields displayed from the table control row (like you have when you double click on a record in SE16 table view).

Then when user selects a row in the table control and clicks on edit, the row is read from table control

READ TABLE itab INTO wa INDEX tabcon-current_line.

and populate the respective fields into the independent fields below. Assign a group/modif ID to these indenepdent fields, such that when EDIT is clicked the fields are populated and opened for input. Once values are changed, you can update the table control internal tabel using them.

Cheers,

Aditya