09-30-2021 4:50 PM
Hi ,
I have created a table via table control wizard. I want to dynamically disable/enable a field based on value of another field. I have written code in PBO, inside loop and endloop of table control . The whole column is getting disabled instead of particular row alone.
PROCESS BEFORE OUTPUT.
LOOP AT it_stop INTO wa_stop WITH CONTROL contrl.
MODULE get_lines.
ENDLOOP.
MODULE get_lines.
IF wa_stop-matnr <> 'X'.
LOOP AT SCREEN .
IF screen-name = 'WA_STOP-PLANT'.
screen-input = 0.
MODIFY SCREEN .
ENDIF.
ENDLOOP.
ENDIF.
ENDMODULE.
09-30-2021 5:21 PM
Your code successfully makes the cell PLANT in read-only mode in every row that has MATNR <> 'X' i.e. all rows except those ones which have MATNR = 'X', so maybe your condition is wrong.
EDIT: I adapted my answer to be coherent with the latest edit made to the question.
09-30-2021 5:21 PM
Your code successfully makes the cell PLANT in read-only mode in every row that has MATNR <> 'X' i.e. all rows except those ones which have MATNR = 'X', so maybe your condition is wrong.
EDIT: I adapted my answer to be coherent with the latest edit made to the question.
10-01-2021 5:28 AM
Hi Sandra,
I have written the code in the module that you have shared only and also, I am checking for field value only of it is 'X' I am modifying
the screen , where do you want me to specify row number ? Can you kindly guide me.
09-30-2021 5:21 PM
Please edit your question, select your code and press the "CODE" button to make it correctly colorized/indented, so that it's easier for us to analyze it. Thank you.
10-01-2021 6:30 AM
Your code successfully makes the cell PLANT in read-only mode in every row that has MATNR <> 'X'. What is your exact question please?