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

Custom control - invalid sapgui input data:

TJRP
Participant
0 Likes
919

I have a common screen which is used on two tabs.

I want to display certain fields boxes and custom controls on the tabs.

Tab 1 requires fields and boxes

Tab 2 requires a custom controls

I can remove the fields and boxes by looping at the screen from Tab 2.

I have an issue with custom controls on Tab 1.

The custom control is created on Tab 2 only and the control is destroyed on Tab 1, when Tab 1 is selected.

If the user clicks on the screen area where the custom control has not been created, an error is generated "invalid sapgui input data:".

Is there any way that the custom control can be hidden, just like the fields can be made in active by looping at the screen

I only wish to create the object on the second tab

I have created a custom control and I wish it not to be displayed on certain tab, is there anyway that I can hide the custom control

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
896

Can you try using the method SET_VISIBLE of class CL_GUI_ALV_GRID?

0 =  Not Visible
1 =  Visible

Regards,

Rich Heilman

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
897

Can you try using the method SET_VISIBLE of class CL_GUI_ALV_GRID?

0 =  Not Visible
1 =  Visible

Regards,

Rich Heilman

Read only

0 Likes
896

Hi Rich,

The class that I'm using is C_TEXTEDIT_CONTROL, sorry I didn't make it very clear.

Is there anyway to get useful documentation on the class as I am finding it very difficult

cheers

J-J

Read only

0 Likes
896

Hi Jim

I repeat, I think you don't need to destroid you custom control if you want hide it when you go to another tab.

I had done a program with many tabs where different GRIDs are displayed and I didn't need to do what you want to do.

Every grid is loaded in own subscreen and every subscreen is triggered when the user push its tab.

In this way the system show'll only the fields of the subscreen is triggered.

You should do what you want to do only if the fields and custom controls are in the same tab.

Max

Read only

0 Likes
896

Max,

Thanks for the info.

I am trying to workout what I need to do with the subscreen in order to set up the data on the tabs

Cheers

J-J

Read only

0 Likes
896

Please use the CL_GUI_TEXTEDIT class instead, then you will have these methods available to you.

Regards,

RIch Heilman

Read only

0 Likes
896

Max

Thanks for your help, I used your solution and it worked a treat

Cheers

J-J

Read only

Former Member
0 Likes
896

Hi

You should create two subscreen:

- Subscreen 1 is actived for TAB1

- Subscreen 2 is actived for TAB2

In this way you don't need remove anything and so you don't need to destroid your custom control.

Infact in SUBSCREEN 1 you insert your insert the fields boxes and in SUBSCREEN 2 insert the custom control.

Max