‎2006 Dec 23 11:46 AM
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.
‎2006 Dec 23 11:08 PM
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
‎2006 Dec 23 11:08 PM
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
‎2008 Sep 25 9:47 PM
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.
‎2008 Sep 26 10:39 PM
I figured you can use sy-pfkey to know if you are in display or change mode.
‎2014 Mar 16 6:48 PM
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.