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: 

Data not displayed in tablecontrol in abap modulepool after change_col_attr

former_member38147
Discoverer
0 Kudos
642

I am fetching and displaying data in table control. If I don't change the column attribute then it is displayed fine with the data. All columns are input enabled by default.

However, if I try to change it; no data is displayed. In debug, data is present in the table.

The below code is written in the change_col_attr module inside a loop at table control columns for the screen in the PBO. I am calling the below in a form since I need multiple logic. And those forms are in the loop. What am I missing?

I am fetching and displaying data in table control. If I don't change the column attribute then it is displayed fine with the data. All columns are input enabled by default.

However, if I try to change it; no data is displayed. In debug, data is present in the table.

The below code is written in the change_col_attr module inside a loop at table control columns for screen in the PBO I am calling the below in a form since I need multiple logic. And those forms are in the loop. What am I missing?

IF p_screen-screen-name IN lr_invisible. "range containing fields
p_screen-screen-active = 0.
p_screen-screen-invisible = 1.
p_screen-invisible = 1.
ELSEIF p_screen-screen-name IN lr_inactive.
p_screen-screen-active = 0.
p_screen-screen-invisible = 0.
ELSE.
p_screen-screen-active = 1.
p_screen-screen-invisible = 0.
ENDIF.
2 REPLIES 2

venkateswaran_k
Active Contributor
0 Kudos
576

Please provide the complete set of code what you have written in PBO.

venkateswaran_k
Active Contributor
0 Kudos
576

Hi arunk89

In your PBO of screen you might be code like below:
PROCESS BEFORE OUTPUT.

 MODULE inits_0100 OUTPUT.

*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TC_DATA'
  MODULE TC_DATA_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TC_DATA_CHANGE_COL_ATTR.
  LOOP AT   IT_DATA
       INTO WA_DATA
       WITH CONTROL TC_DATA
       CURSOR TC_DATA-CURRENT_LINE.
    MODULE TC_DATA_GET_LINES.
*&SPWIZARD:   MODULE TC_DATA_CHANGE_FIELD_ATTR
  ENDLOOP.
In the module inits_0100 output. you write a perform statement called PERFORM hide_display.In the hide_displayyou write your hide code. However, I am not sure about what you are trying to do.If you want to make readonly, then put only input = 0.Regards,Venkat