2007 Mar 30 11:56 AM
hi ,
Kindly let me know what is the exact purpose of MODIF ID.. we use to write for Selection-screen fileds like below.
s_vtweg FOR vbak-vtweg MODIF ID sl2,
s_spart FOR vbak-spart MODIF ID sl2,
Thanx in Advance.
Akshitha.
hi ,
Kindly let me know what is the exact purpose of MODIF ID.. we use to write for Selection-screen fileds like below.
s_vtweg FOR vbak-vtweg MODIF ID sl2,
s_spart FOR vbak-spart MODIF ID sl2,
Thanx in Advance.
Akshitha.
2007 Mar 30 11:57 AM
As from SAP help -
... MODIF ID modid
Effect
The addition MODIF ID assigns all the screen elements of the parameter to the modification group modid, which is assigned to the column group1 of the system table screen. This enables them to be modified before the selection screen is displayed, using the statement MODIFY SCREEN. The name of the modification group modid must be directly specified and can have a maximum length of three characters.
Note
The modification groups that are assigned to columns group2 and group3 of the system table screen are set when the system generates a selection screen and are described in the screen elements of a selection screen.
Example:
The elements of block b2 are assigned to the modification group bl2. A checkbox show_all allows the user to select whether or not these elements are displayed. The display is changed immediately, as selecting the checkbox triggers the event AT SELECTION-SCREEN. The function code is not required. Instead, the content of show_all is evaluated during PBO.
PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p1(10) TYPE c,
p2(10) TYPE c,
p3(10) TYPE c.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p4(10) TYPE c MODIF ID bl2,
p5(10) TYPE c MODIF ID bl2,
p6(10) TYPE c MODIF ID bl2.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF show_all <> 'X' AND
screen-group1 = 'BL2'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Regards,
Amit
2007 Mar 30 11:57 AM
HI Akshithta
This Modif id is used to make the variables into one group
You can change these two variables in a single step
as
Loop at Screen
IF screen-group1 = 'SL2'.
SCREEN-ACTIVE = 0.
ENDIF.
endloop.
WITH THIS CODE ALL THE VARIABLES BELONGS TO THIS MODIF ID S1 WILL BE EFFECTED
If it helps reward with points
Regards Rk
Message was edited by:
Rk Pasupuleti
2007 Mar 30 11:58 AM
Hi Akshita,
MODIF ID is used to group a set of fields under the name associated with it.
Hope this resolves your query.
Reward all the helpful answers.
Regards
2007 Mar 30 11:59 AM
By specifying the modif id, we are logically grouping a set of parameters of the selection screen.
If you want tose ta screen property for a set of fields, dynamically, you can simple use the modif id value as follows.
To make a group of fields input disabled at run time
at selection-screen output.
loop at screen.
if screen-group1 = 'SI2'.
screen-input = 0.
modify screen.
endif.
endloop.Regards,
Ravi
2007 Mar 30 12:01 PM
Hi....
In Selection screen MODIF ID represents the Group Name..
Grouping Certain Screen Elements by unique Name..
Try this Example,,
SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS: number(10) TYPE c MODIF ID gr1.
SELECTION-SCREEN : END OF BLOCK blk1.
SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: name(10) MODIF ID gr2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN : END OF BLOCK blk2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN .
IF screen-group1 EQ 'GR2'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards
Bala..
2007 Mar 30 12:03 PM
Its like grouping set of fields and if u want change the properties of the group u can do it dynamically in one shot.
loop at screen.
if screen-group1 = 'Groupname'.
screen-input = 0.
modify screen.
endif.
endloop.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |