Screen exit - field control
I want to control (editable /non editable) property of input field. I am creating a screen exit for CJ01/02. Through PBO/PAI function exit i am able to pass data between the custom screen and to the main structure every thing works fine till this point. Now i want to control the field editable property of this custom field. When i write loop at screen statement inside PBO Function exit, the custom screen fields are not available in it.
To control the field editable property of custom field do i need to write a module in PBO of custom screen to which custom fields are added and then control the custom screen fields?
max bianchi replied
Yes u need to insert the module PBO in the flow logic of your screen exit:
The fm EXIT_SAPLCJWB_002 is to transfer the data from main prgram to your exit: here u can find the import parameter SAP_DISPLAY_ONLY, u need to check it in order to decide the status of your screen exit.
So u need to create a flag in order to store the value of SAP_DISPLAY_ONLY:
FL_DISPLAY_ONLY = SAP_DISPLAY_ONLY.
In the PBO of the screen exit (I suppose the 0600) u need to insert the module I wrote before
MODULE LOOP_SCREEN. CHECK FL_DISPLAY_ONLY = 'X'. LOOP AT SCREEN. SCREEN-INPUT = 0. MODIFY SCREEN. ENDLOOP. ENDMODULE.