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

Problem in Tabstrip Control

Former Member
0 Likes
824

Hi All,

i had created an Custom Infotype.

In that infotype i had created Tabstrip control with 2tabs.

Each Tab contain 4 fields.

When creating( F5) a record in transaction PA30, it allowing me create a record and the record is available in Data base table.

1. My doubt is, when Display the Record through F7 and Change mode (F6), Still the fields are in editable mode. But not in Display Mode ( Editable Mode ).

How to Disable the Fields for this Tab Strip Control. I have not used any Group Field for this. Can we need to Main tain anything.

But SAVE option is automatically disabled.Iam not able to SAVE when i press F7 but in Editable is the My Problem.

2. And one more query is, when press F5 or F6 or F7 it is show the following message at End screen,i.e.

Protected tab titles are not supported (tab MENU_TABSTRIP title PUSH1) . But MENU_TABSTRIP is My Tab Strip control text Name and PUSH1 is my Tab1 , Function code.

How to remove this message.

Points will be rewarded.

Thanks,

N.L.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
589

For the first problem,

You can use field to be grouped up in screen painter.

Give the same name in the group field for the fields you want to make disabled.

Then in your program,

You can use screen property

screen-input = '0'.

the code for that is: " Write it in PBO event on some condition or use

if sy-tcode = 'PA30'.

Loop at screen.

if screen-group1 = 'GRP'.

screen-input = '0'.

modify screen.

endif.

endloop.

For Second Problem

The problem seems to be with GUI Status,

So try exploring it more.

Good Luck,

Smiles from Miles,

Regards,

Amandeep Kumar

4 REPLIES 4
Read only

Former Member
0 Likes
590

For the first problem,

You can use field to be grouped up in screen painter.

Give the same name in the group field for the fields you want to make disabled.

Then in your program,

You can use screen property

screen-input = '0'.

the code for that is: " Write it in PBO event on some condition or use

if sy-tcode = 'PA30'.

Loop at screen.

if screen-group1 = 'GRP'.

screen-input = '0'.

modify screen.

endif.

endloop.

For Second Problem

The problem seems to be with GUI Status,

So try exploring it more.

Good Luck,

Smiles from Miles,

Regards,

Amandeep Kumar

Read only

Former Member
0 Likes
589

The answer for the second question is:

You can go to the layout and change the groups of the tabs to 01F.

That should get rid of the protected tables message.

Did you ever figure out how to hide the fields when in display mode?

The problem I am having is when I get to the infotype I dont know if I am in display mode or not.

Read only

Former Member
0 Likes
589

I figured you can use sy-pfkey to know if you are in display or change mode.

Read only

0 Likes
589

I have faced the same problem and solved in simple manner///

thought of updating this thread which will help others

in PBO, PAI of sub-screens please add the below code.

pbo.

**inserted new**

module modify_subscreen.(this will be called in standard program mppersoo).

*End of new insertion**

pai.

**inserted new**

chain.

module input_status_subscreen on chain-request.

endchain.

**end of new insertion**

Just add above 2 module statements this will be fixed.