2011 Apr 26 6:07 AM
Hello friends,
Can you please suggest me how to disable (make input = 0) the custom push buttons created in a screen exits.
2011 Apr 26 6:29 AM
Hi,
In the PBO module of the screen in which you have made changes, loop at screen and make the screen-inactive = 0.
Here is a sample code am pasting for your refernec that I have used in IW21 . Here based on the notification type some fields are made invisible. Itr is always easier if you assign your custom button to a screen group.
IF VIQMEL-QMART = 'Z6'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 <> 'Z6'.
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
SCREEN-OUTPUT = '0'.
ELSE.
SCREEN-INPUT = L_DISPLAY_MODE.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
endif.
Regards,
Nagraj
2011 Apr 26 7:22 AM
Hi nagraj,
we have to write the logic in the PBO module of the sub screen created in the screen exit or in the PBO function exit for that enhancement? I have tried in both.
And the object 'SCREEN' does not have the component INACTIVE'.
2011 Apr 26 7:50 AM
Hi Abhi,
You have to write the code in the PBO of the subscreen. And about the field, sorry instead of writing ACTIVE i have written inactive.
You can also use SCREEN_INVISIBLE field as I have done in the example pasted.
If this does not work , please activate the function group once by going to hierarchy and check. I have faced a similar issue while making changes for me23n transaction. Hope this works for you.
Regards,
Nagraj
2011 Apr 27 9:13 AM
Hi Nagraj,
I have tried by written the code in PBO of subscreen and also in every Function Exit, but still I am not getting the soln.
Can you tell me how to identity the Function group & activate it. Im confused.
Thanks & Regards,
Abhishek
2011 Apr 27 9:24 AM
Hi,
While you are in the Flow Logic screen of the subscreen click on the hierarchy button. That will show you the function group on the left side panel. Activate that function group and then try.
About disabling the field on the screen, i think you have to write the code in the subscreen modules and not function exits. I may be wrong but function exits are usually provided for the flow of data between the screen and the system like storing the user entered values in the database and retrieving for display like that. Also check the documentation of the exit. That will provide you the better picture of how the exit is gonna function.
Thanks,
Nagraj