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: 

Selection-screen.

Former Member
0 Kudos

Hi all,

Can any one tell me <b>MODIF ID FNR</b> stands for......

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN:

COMMENT 1(20) TEXT-SYS FOR FIELD P_SYST1 MODIF ID FNR,

POSITION 33.

PARAMETERS:

P_SYST1 LIKE TJ02T-TXT04 MODIF ID FNR,

P_SYSH1 LIKE JEST-STAT NO-DISPLAY.

SELECTION-SCREEN

POSITION 39.

PARAMETERS:

P_KZ_E1 LIKE RCOSA-EXCL1 MODIF ID FNR.

SELECTION-SCREEN:

COMMENT 42(5) TEXT-EXC FOR FIELD P_KZ_E1 MODIF ID FNR,

COMMENT 52(3) TEXT-AND FOR FIELD P_SYST2 MODIF ID FNR,

POSITION 58.

PARAMETERS:

P_SYST2 LIKE TJ02T-TXT04 MODIF ID FNR,

P_SYSH2 LIKE JEST-STAT NO-DISPLAY.

SELECTION-SCREEN

POSITION 64.

PARAMETERS:

P_KZ_E2 LIKE RCOSA-EXCL1 MODIF ID FNR.

SELECTION-SCREEN:

COMMENT 67(5) TEXT-EXC FOR FIELD P_KZ_E2 MODIF ID FNR.

SELECTION-SCREEN END OF LINE.

        • END BY PRASANNA Q1

SELECTION-SCREEN : END OF BLOCK B.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

see the doc

SELECTION-SCREEN - COMMENT

Syntax

SELECTION-SCREEN COMMENT [/][pos](len)

{text|{[text] FOR FIELD sel}}

[VISIBLE LENGTH vlen]

[MODIF ID modid]

[ldb_additions].

Extras:

1. ... [/][pos](len)

2. ... FOR FIELD sel

3. ... VISIBLE LENGTH vlen

4. ... MODIF ID modid

Effect:

This statement creates an output field on the current selection screen and enters the content of text in this field. In text, either the name of the text symbol of the program can be specified in the form text-###, where ### is the three-digit ID for the text symbol, or a user-defined name with a maximum of eight characters. If a user-defined name is entered, the runtime environment generates a global variable of the same name with type c and length 83. If the specified text symbol is not found, no text is entered in the output field.

The additions ldb_additions can only be used in the selection include of a logical database.

Addition 1

... [/][pos](len)

Effect:

The position of the output field must be specified using [/][pos](len). The syntax and the meaning of [/][pos](len) are the same as in the generation of horizontal lines. In this case, len defines the length of the output field in the selection screen. If an output field extends beyond position 83 or sticks out of a block with a frame, the visible length is shortened accordingly and the content is displayed in the visible length.

Addition 2

... FOR FIELD sel

Effect:

If the addition FOR FIELD is used, the output field is linked to a parameter or sel selection criterion of the same program defined by PARAMETERS or SELECT-OPTIONS Its name sel must be specified directly. When this link is made, the field help or input help for sel is displayed when the user selects the output field using the function keys F1 and F4. The link also means that the output field is assigned to the same modification group. The output field is also hidden if sel is made invisible using a variant. If FOR FIELD is specified, text does not have to be specified. The output field is then filled either with the specified name sel, or, if it exists in the current text pool, with the corresponding selection text.

Addition 3

... VISIBLE LENGTH vlen

Effect:

The addition VISIBLE LENGTH defines the visible length vlen of the output field. vlen must be specified directly as a positive integer. If vlen is greater than len, the visible length is set to len. If vlen is smaller than len the output field is displayed in the length of vlen with movable content and a quick info of the whole content.

Addition 4

... MODIF ID modid

Effect:

The addition MODIF ID assigns the output field to the modification group modid, which is assigned to the column group1 of the system table screen. It can thus be modified using the statement MODIFY SCREEN before the selection screen is displayed.

Note:

The addition FOR FIELD causes the output field output field to behave in exactly the same way as the output fields generated automatically by PARAMETERS or SELECT-OPTIONS in response to parameters or selection criteria. Automatically generated fields are not displayed in a line if multiple elements are output, and can thus be replaced by user-defined lnked output fields.

Example:

Output fields, horizontal lines and empty lines on the standard selection screen of an executable program. The first output field is highlighted in the display.

SELECTION-SCREEN COMMENT /1(50) comm1 MODIF ID mg1.

SELECTION-SCREEN ULINE.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN COMMENT /1(30) comm2.

SELECTION-SCREEN ULINE /1(50).

PARAMETERS: r1 RADIOBUTTON GROUP rad1,

r2 RADIOBUTTON GROUP rad1,

r3 RADIOBUTTON GROUP rad1.

SELECTION-SCREEN ULINE /1(50).

AT SELECTION-SCREEN OUTPUT.

comm1 ='Selection Screen'.

comm2 ='Select one'.

LOOP AT SCREEN.

IF screen-group1 = 'MG1'.

screen-intensified = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Reward points for useful Answers

Regards

Anji

3 REPLIES 3

Former Member
0 Kudos

Hi Alex,

MODIF ID modid

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 TYPE c LENGTH 10,

p2 TYPE c LENGTH 10,

p3 TYPE c LENGTH 10.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.

PARAMETERS: p4 TYPE c LENGTH 10 MODIF ID bl2,

p5 TYPE c LENGTH 10 MODIF ID bl2,

p6 TYPE c LENGTH 10 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.

Former Member
0 Kudos

Hi

see the doc

SELECTION-SCREEN - COMMENT

Syntax

SELECTION-SCREEN COMMENT [/][pos](len)

{text|{[text] FOR FIELD sel}}

[VISIBLE LENGTH vlen]

[MODIF ID modid]

[ldb_additions].

Extras:

1. ... [/][pos](len)

2. ... FOR FIELD sel

3. ... VISIBLE LENGTH vlen

4. ... MODIF ID modid

Effect:

This statement creates an output field on the current selection screen and enters the content of text in this field. In text, either the name of the text symbol of the program can be specified in the form text-###, where ### is the three-digit ID for the text symbol, or a user-defined name with a maximum of eight characters. If a user-defined name is entered, the runtime environment generates a global variable of the same name with type c and length 83. If the specified text symbol is not found, no text is entered in the output field.

The additions ldb_additions can only be used in the selection include of a logical database.

Addition 1

... [/][pos](len)

Effect:

The position of the output field must be specified using [/][pos](len). The syntax and the meaning of [/][pos](len) are the same as in the generation of horizontal lines. In this case, len defines the length of the output field in the selection screen. If an output field extends beyond position 83 or sticks out of a block with a frame, the visible length is shortened accordingly and the content is displayed in the visible length.

Addition 2

... FOR FIELD sel

Effect:

If the addition FOR FIELD is used, the output field is linked to a parameter or sel selection criterion of the same program defined by PARAMETERS or SELECT-OPTIONS Its name sel must be specified directly. When this link is made, the field help or input help for sel is displayed when the user selects the output field using the function keys F1 and F4. The link also means that the output field is assigned to the same modification group. The output field is also hidden if sel is made invisible using a variant. If FOR FIELD is specified, text does not have to be specified. The output field is then filled either with the specified name sel, or, if it exists in the current text pool, with the corresponding selection text.

Addition 3

... VISIBLE LENGTH vlen

Effect:

The addition VISIBLE LENGTH defines the visible length vlen of the output field. vlen must be specified directly as a positive integer. If vlen is greater than len, the visible length is set to len. If vlen is smaller than len the output field is displayed in the length of vlen with movable content and a quick info of the whole content.

Addition 4

... MODIF ID modid

Effect:

The addition MODIF ID assigns the output field to the modification group modid, which is assigned to the column group1 of the system table screen. It can thus be modified using the statement MODIFY SCREEN before the selection screen is displayed.

Note:

The addition FOR FIELD causes the output field output field to behave in exactly the same way as the output fields generated automatically by PARAMETERS or SELECT-OPTIONS in response to parameters or selection criteria. Automatically generated fields are not displayed in a line if multiple elements are output, and can thus be replaced by user-defined lnked output fields.

Example:

Output fields, horizontal lines and empty lines on the standard selection screen of an executable program. The first output field is highlighted in the display.

SELECTION-SCREEN COMMENT /1(50) comm1 MODIF ID mg1.

SELECTION-SCREEN ULINE.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN COMMENT /1(30) comm2.

SELECTION-SCREEN ULINE /1(50).

PARAMETERS: r1 RADIOBUTTON GROUP rad1,

r2 RADIOBUTTON GROUP rad1,

r3 RADIOBUTTON GROUP rad1.

SELECTION-SCREEN ULINE /1(50).

AT SELECTION-SCREEN OUTPUT.

comm1 ='Selection Screen'.

comm2 ='Select one'.

LOOP AT SCREEN.

IF screen-group1 = 'MG1'.

screen-intensified = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Reward points for useful Answers

Regards

Anji

Former Member
0 Kudos

Hi,

In the code that u have submitted,

the following screen elements have been grouped together

P_SYST1

P_KZ_E1

P_SYST2

P_KZ_E2

so if you want to show/hide these fields based on some conditions you can directy use the MODIF ID & all of them will be enabled/disabled together.

this MODIF ID is used in the following manner

LOOP AT SCREEN.

if screen-group1 = 'Your Modif ID'.

<your processing enable /disable>

endif.

modify screen.

endLOOP.

But the bottom line is that they have been used to group them together for further processing (collective) later on .

Regards,

Guarav