Application Development 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: 

Urgent

Former Member
0 Kudos
93

can any one tell how to use the keyword " MODIF ID " in the normal screen(module pool) for the group of fields so that i can call that group based on the group name.

7 REPLIES 7

Former Member
0 Kudos
58

Whatever name you specify for MODIF ID will be the group name of a field.

After that when you want to change screen elements at run time

LOOP AT SCREEN.

IF SCREE-GROUP1 = 'XXX'.

.....

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Regards,

Ravi

Former Member
0 Kudos
58

hi,

please check program DEMO_SEL_SCREEN_PARAM_MODIF

anversha_s
Active Contributor
0 Kudos
58

Former Member
0 Kudos
58

ckeck this code

tables :kna1.

select-options : kunnr for kna1-kunnr DEFAULT '100' modif id scr.

at selection-screen output.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'SCR' . SCREEN-INPUT = '0'.

screen-ACTIVE = '1'.

MODIFY SCREEN.

CONTINUE.

ENDIF.

endloop.

regards,

aswin.

Former Member
0 Kudos
58

Please check this from documentation:

Assigning a Modication Group on the Selection Screen

Addition

... MODIF ID modid

Effect

This addition assigns screen objects ( Comment, Underscore line, Parameter, ...) to a modification group and hence allows dynamic modification of the selction screen display.

The modification group name modid must be specified directly and must be no longer than 3 characters. The addition MODIF ID assigns modid to the column SCREEN-GROUP1 of the predefined internal table SCREEN. Parameters assigned to a modification group can be changed together using the LOOP AT SCREEN and MODIFY SCREEN statements at the event AT SELECTION SCREEN OUTPUT or in the subroutine PBO of the database program of the assigned logical database.

You can use this addition with:

- SELECTION-SCREEN COMMENT

- SELECTION-SCREEN ULINE

- SELECTION-SCREEN PUSHBUTTON

- PARAMETERS

- SELECT-OPTIONS

In each case all relevant screen objects are assigned to the modification group.

Without the MODIF ID addition, the SCREEN-GROUP1 component is empty. The remaining three fields for modification groups in the SCREEN table are populated by the runtime environmentand can be analyzed:

GROUP2 contains the value "DBS" for elements that are defined in a logical database.

GROUP3 contains the following values depending on the screen element:

BLK for SELECTION-SCREEN ... BLOCK ...: Block

COF for SELECTION-SCREEN COMMENT ... FOR FIELD ...: Field-related comment

COM for SELECTION-SCREEN COMMENT: Comment

HGH for SELECTION-OPTIONS: Interval upper limit

ISX for PARAMETERS ... AS SEARCH PATTERN: Komplex selection

LOW for SELECTION-OPTIONS: Interval lower limit

OPU for SELECTION-OPTIONS: Selection option icons

PAR for PARAMETERS: Parameters

PBU for SELECTION-SCREEN PUSHBUTTON ...: Pushbutton

TAB for SELECTION-SCREEN TAB: Tab title

TOT for SELECTION-OPTIONS: Text of interval upper limit

TST for SELECTION-SCREEN ... TABBED ...: Tabstrip

TXT for PARAMETERS, SELECT-OPTIONS: Selection text

ULI for SELECTION-SCREEN ULINE: Horizontal Line

VPU for SELECT-OPTIONS: Pushbutton for multiple selection

GROUP4 is intended solely for internal use.

Kind Regards

Eswar

Former Member
0 Kudos
58

parameters: a type c modif id '001',

b type c modif id '001',

c type c modif id '001',

d type c,

e type c radiobutton group g1 .

At selection-screen ouput.

loop at screen.

if e is not initial.

if screen-group1 = '001'.

...

endif.

modify screen.

endif.

endloop.

jayanthi_jayaraman
Active Contributor
0 Kudos
58

Hi,

As suggested,you have to use the same inside the loop for modifying screen.

loop at screen.

if screen-group1 = 'Z1' and screen-name = 'P1'.

screen-input = 1."Enable P1 for input

else.

screen-input = 0.

endif.

modify screen.

endloop.