Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Disable custom push button created in screen exit

Former Member
0 Likes
987

Hello friends,

Can you please suggest me how to disable (make input = 0) the custom push buttons created in a screen exits.

Hello friends,

Can you please suggest me how to disable (make input = 0) the custom push buttons created in a screen exits.

5 REPLIES 5
Read only

Former Member
0 Likes
831

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

Read only

0 Likes
831

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'.

Read only

0 Likes
831

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

Read only

0 Likes
831

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

Read only

0 Likes
831

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