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

Modif Id?

Former Member
0 Likes
1,098

What i modif id statement ? Why this syntax used in ABAP ?

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
985

MODIF ID is used to assign the group to selection screen parameters. By MODIF ID you can include more than one field in the group.

LIKE:

PARAMETERS: P_R1 RADIOBUTTON GROUP RD1 USER-COMMAND RD1,
P_R2 RADIOBUTTON GROUP RD1.

PARAMETERS: P_DATE_R1 LIKE BKPF-BUDAT MODIF ID GP1,
P_MATNR LIKE MARA-MATNR MODIF ID GP2.

AT SELECTION-SCREEN.
  LOOP AT SCREEN.
     IF P_R1 = 'X'. 
       IF SCREEN-GROUP1 = 'GP1'.
         SCREEN-ACTIVE = 0.
       ENDIF.
     ELSEIF P_R2 = 'X'.
       IF SCREEN-GROUP1 = 'GP1'.
         SCREEN-ACTIVE = 0.
       ENDIF.
    ENDIF.
   MODIFY SCREEN.
  ENDLOOP.

Regards,

Naimesh Patel

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
986

MODIF ID is used to assign the group to selection screen parameters. By MODIF ID you can include more than one field in the group.

LIKE:

PARAMETERS: P_R1 RADIOBUTTON GROUP RD1 USER-COMMAND RD1,
P_R2 RADIOBUTTON GROUP RD1.

PARAMETERS: P_DATE_R1 LIKE BKPF-BUDAT MODIF ID GP1,
P_MATNR LIKE MARA-MATNR MODIF ID GP2.

AT SELECTION-SCREEN.
  LOOP AT SCREEN.
     IF P_R1 = 'X'. 
       IF SCREEN-GROUP1 = 'GP1'.
         SCREEN-ACTIVE = 0.
       ENDIF.
     ELSEIF P_R2 = 'X'.
       IF SCREEN-GROUP1 = 'GP1'.
         SCREEN-ACTIVE = 0.
       ENDIF.
    ENDIF.
   MODIFY SCREEN.
  ENDLOOP.

Regards,

Naimesh Patel

Read only

0 Likes
985

thanks nirmal.