2008 Feb 27 8:09 AM
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.
2008 Feb 27 8:18 AM
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
2008 Feb 27 9:02 AM
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.
2008 Feb 27 10:45 AM
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
2008 Feb 27 8:19 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |