‎2007 Jul 27 7:52 AM
Hi guys,
I wanted to know why and when is screen-group4 used and what is the difference between screen-group1, screen-group2, screen-group3, screen-group4.
Thank you.
Regards,
Frank.
‎2007 Jul 27 7:57 AM
Hi,
Screen Groups are used <b>to group the screen elements</b> to do the processing common to these groups.
These processing may contains raising the error for <b>validation</b> or for <b>display purpose</b> i.e. <b>inactivating some screen elements</b> as per requirements
And these 4 figure for screen group is by SAP only.
Regards,
Ranjit Thakur.
<b>Please Mark The Helpful Answer.</b>
‎2007 Jul 27 7:58 AM
Hi,
It is nothing but the grouping of fields avaiable in four groups. Tecnhniaclly no difference.
like,
First Group may have radio buttons of one category:
MALE or FEMALE
Second may have:
Other category can not fit into first.
Reward if useful!
‎2007 Jul 27 7:58 AM
<b>Overview of all SCREEN fields:</b>
Field Length Type Meaning
SCREEN-NAME 30 C Field name
SCREEN-GROUP1 3 C Evaluation of
modification group 1
SCREEN-GROUP2 3 C Evaluation of
modification group 2
SCREEN-GROUP3 3 C Evaluation of
modification group 3
SCREEN-GROUP4 3 C Evaluation of
modification group 4
SCREEN-REQUIRED 1 C Field input mandatory
SCREEN-INPUT 1 C Field ready to accept input
SCREEN-OUTPUT 1 C Field will be displayed
SCREEN-INTENSIFIED 1 C Field highlighted
SCREEN-INVISIBLE 1 C Field invisible
SCREEN-LENGTH 1 X Field length
SCREEN-ACTIVE 1 C Field active
<b>So all the Groups have the same characteristics...</b>
-
Refer this sample example to have a better understanding of the groups...
selection-screen begin of block b1.
parameters:p1 type c as check box modif id 'ABC'.
selection-screen end of block b1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN .
IF SCREEN-GROUP1 = 'B1'. " block B1
IF SCREEN-GROUP2 = 'ABC'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
Regards,
Pavan
‎2007 Jul 27 7:59 AM
Hi
SAP has provided you some 4 Groups to use for the screen elements
for example on your screen there are some 15 elements and you can groups them into 4 SCREEN GROUPS and put some conditions on them to display/not to display.
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 27 7:59 AM
Modification groups 1 to 4 allows you to group fields together. You can process them all at the same time in the program using SCREEN modification statements.
If, for example, you want to make all fields that of the modification group 2 with the ID 222 invisible, you can define the following code in the PBO module:
LOOP AT SCREEN.
IF SCREEN-GROUP2 = '222'.
SCREEN-INVISIBLE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDLOOP.
If your question is answered kindly close the thread and award points.
Cheers
Shafiq
‎2007 Jul 27 8:00 AM
Hi,
A screen group is nothing but containing 'N' no.of screen elements will be available. That means text box, table control ,label like taht only.
For that particular screen group u can maintain loop at screen like that.
regards,
Omkar.