I am trying to change a screen field from output only to input capable, and vice versa, depending upon the value...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
in another screen field. For example, if the user changes the plant number to a specified value, allow them to input into the Region field. But if they change the plant to a different value, change the Region code back to Output only. Is there a way to do this?
In a module in the PBO of the flow logic of your screen, you need to use a LOOP AT SCREEN. For example:
LOOP AT SCREEN. IF SCREEN-NAME EQ "REGION". IF PLANT EQ ????. SCREEN-INPUT = 1. ELSE. SCREEN-INPUT = 0. ENDIF. MODIFY SCREEN. ENDIF. ENDIF.
Dig Deeper on SAP ABAP
Related Q&A from Matthew Billingham
An SAP user is trying to run a report in an SAP ALV Grid online and wants to know how to get the data in the report to appear along with the header.continue reading
An SAP user needs information on how to change the password on several SAP user accounts from a central location.continue reading
An SAP user needs to transfer customer purchase order spreadsheet data to SAP VA01 to create a new sales order.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.