3 weeks ago
I have a table control in my custom abap program where I have 7 columns. I want to achieve the below layout for input/output disabled/enabled where green is input allowed and red is input disabled. I have searched google and sap community for solutions and tried out many but nothing seems to be working.
Based on column 7, I am trying to make the row editable/disabled. If it is true, then input disabled. If it is false then input enabled. And by default, a new row will have column 7 as false. I tried to put my code inside a module within the Loop itab with table control in my PBO, but that doesn't seem to be working.
Please help with this. It is quite urgent.
Thanks in advance!!
What exactly have you coded in the PBO logic?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FIELD-SYMBOLS: <lfs_cntrl> TYPE scxtab_column.
LOOP AT sch_chain-cols ASSIGNING <lfs_cntrl>.
IF <lfs_cntrl>-screen-name EQ 'GW_CHAIN_JOB-JOBNAME' OR <lfs_cntrl>-screen-name EQ 'GW_CHAIN_JOB-START_TIME' OR
gw_chain_job-scheduled EQ gc_schedule .
<lfs_cntrl>-screen-input = 1.
ELSEIF gw_chain_job-scheduled EQ gc_scheduled.
<lfs_cntrl>-screen-input = 0.
ENDIF.
ENDLOOP.
sch_chain is my table control and scheduled is my column 7 flag
The above code is within my PBO loop with table control
User | Count |
---|---|
67 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.