2005 Nov 21 9:40 AM
Hi,
I need to provide the functionality to allow some entries in table control in edit mode and some of the entries in display mode in a single table control.
Early response is appreciated.
2005 Nov 21 9:43 AM
Hi Syed,
Maybe you have to play with Field-Exit, the input and output is manage in different place.
Have fun
Frédéric
2005 Nov 21 9:46 AM
Hi,
you can set some columns as input fields in this way:
in PBO:
TCONTROL-COLS[1]-SCREEN-INPUT = '1'
where TCONTROL is the table control you're using
it sets the first column as input field
Regards Manuel
2005 Nov 21 9:47 AM
Hi Syed,
In the PBO section of the screen in which the table control is there, write dynamic screen modification statement,based on a condition.
eg
loop at data with table contol...
module ..
module..
module dynamic_screen_modifications.
endloop.
module dynamic_screen_modifications.
if condition.
if screen-group = <Groupname>.
screen-output = space.
scren-input = 'X'.
modify screen.
endif.
endif.
endmodule.
REgards,
Ravi
2005 Nov 21 9:49 AM
Hi,
In the PBO of the screen call a form like this.
Screen:
PROCESS BEFORE OUTPUT
MODULE modify_protect.
.......
The module should be:
&----
*& Module modify_protect OUTPUT
&----
MODULE modify_protect OUTPUT.
loop at screen.
if SCREEN-NAME = 'xxxxx'. 'You can modify individually
if SCREEN-GROUP = 'gr01'. 'You can group the fields
screen-input = '0'. 'Deprotect or protect the field
modify screen.
endif.
endloop.
ENDMODULE.
2005 Nov 21 10:21 AM
Hi,
Check this link.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table control in abap.pdf
In this,I am making some fields as editable and some fields as non-editable.
Kindly reward points by clicking the star on the left of reply,if it helps.
2005 Nov 21 10:27 AM
Hi use this in PBO to get the desired functioality.
tablecontrol-screen-input = '0' or '1' based on ur requirement.
Satish
2005 Nov 21 10:48 AM
Hi,
First 2 columns of table control are in display mode and the next fields are in change mode when we click change button.
Check out the program which meets ur requirement in ABAPDOCU.
BC-ABAP programming -> Abap user dialogs -> Screens -> Complex screen elements -> Table control with modifications.
Report name : DEMO_DYNPRO_TABCONT_LOOP_AT
Regards,
Sailaja.