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: 

Regarding Tabl;e control

Former Member
0 Kudos

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.

7 REPLIES 7

FredericGirod
Active Contributor
0 Kudos

Hi Syed,

Maybe you have to play with Field-Exit, the input and output is manage in different place.

Have fun

Frédéric

manuel_bassani
Contributor
0 Kudos

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

former_member181962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi use this in PBO to get the desired functioality.

tablecontrol-screen-input = '0' or '1' based on ur requirement.

Satish

Former Member
0 Kudos

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.