2022 Aug 14 2:03 PM
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.
2022 Aug 14 2:08 PM
Please provide the complete set of code what you have written in PBO.
2022 Aug 14 2:23 PM
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