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

modify screen

Former Member
0 Likes
5,175

pls tell the perameters to modify screen?like screen-intensified.....pls give atleast some

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,484

Hi,

MODIFY SCREEN

Syntax

MODIFY SCREEN .

Effect

This statement can be used in the statement block after LOOP AT SCREEN only and makes sense only during PBO processing. If FROM is not specified, MODIFY SCREEN modifies the attributes of the current screen element with the values from the predefined screen work area. If a wa work area is specified, its contents are used for the modification.

The wa work area must have the same data type as screen. The name component must contain the name of the current screen element, otherwise the statement is not executed. nweisung nicht ausgeführt. Up to the group1 to group4 and length components, all remaining components of screen and wa must contain either the value 0 or 1. The value 0 deactivates the corresponding field attribute, and 1 activates it.

If MODIFY SCREEN is executed during PBO processing, the modified attributes for the display of the screen affect the current dynpro after PBO processing. The attributes of the screen element of the dynpro are reset to their static attributes at the start of each PBO processing, so that the execution of MODIFY SCREEN during PAI processing does not effect the display of the following screen.

The active component

The active component is used to set the input, output and invisible components at once. At the start of PBO processing, the active component always has the value 1. If active is set to 0 with MODIFY SCREEN, input and output are automatically set to 0 and invisible is set to 1. Other values in input, output and invisible are ignored. Conversely, setting input and output to 0 and invisible to 1 automatically sets active to 0 and a different value in active is ignored.

Modifications in Table Controls and Step Loops

During processing of a table control or a step loop, the changes affect the current line of the table control or the current step loop group. Before the processing of a table control, the change to the attributes of a screen element that is part of a line in the table control does not effect the table control, since the values are transferred from the structure created using CONTROLS. Before a step loop is processed, the change to the attributes of a screen elements that is part of a step loop group affects all groups in the step loop.

Modifications to Tabstrip Controls

If the active component for a tab title of a tabstrip control is set to 0, the whole tabstrip page is hidden.

Example

In the following PBO module, an input field called val is made mandatory and converted to display in the foreground.

MODULE modify_0100 OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'VAL'.

screen-required = '1'.

screen-intensified = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDMODULE.

Reward points if useful

thanks,

Muthu

9 REPLIES 9
Read only

Former Member
0 Likes
3,484

Hi Ramnarayana,

<b>name</b> 132 c Name Name

<b>group1</b> 3 c Group1 Modification group

<b>group2</b> 3 c Group2 Modification group

<b>group3</b> 3 c Group3 Modification group

<b>group4</b> 3 c Group4 Modification group

<b>required</b> 1 c Required-entry field Mandatory field

<b>input</b> 1 c Input input-enabled field

<b>output</b> 1 c Output display field

<b>intensified</b> 1 c Intensified intensified field

<b>invisible</b> 1 c Invisible invisible element

<b>length</b> 1 x visLength Field length

<b>active</b> 1 c Input/Output/Invisible active field

<b>display_3d</b> 1 c Two-dimensional Box

<b>value_help</b> 1 c Input help Input help key

<b>request</b> 1 c - Input exists

<b>values_in_combo</b> 1 c Dropdown listbox Value help exists

Reward if useful!

Read only

Former Member
0 Likes
3,485

Hi,

MODIFY SCREEN

Syntax

MODIFY SCREEN .

Effect

This statement can be used in the statement block after LOOP AT SCREEN only and makes sense only during PBO processing. If FROM is not specified, MODIFY SCREEN modifies the attributes of the current screen element with the values from the predefined screen work area. If a wa work area is specified, its contents are used for the modification.

The wa work area must have the same data type as screen. The name component must contain the name of the current screen element, otherwise the statement is not executed. nweisung nicht ausgeführt. Up to the group1 to group4 and length components, all remaining components of screen and wa must contain either the value 0 or 1. The value 0 deactivates the corresponding field attribute, and 1 activates it.

If MODIFY SCREEN is executed during PBO processing, the modified attributes for the display of the screen affect the current dynpro after PBO processing. The attributes of the screen element of the dynpro are reset to their static attributes at the start of each PBO processing, so that the execution of MODIFY SCREEN during PAI processing does not effect the display of the following screen.

The active component

The active component is used to set the input, output and invisible components at once. At the start of PBO processing, the active component always has the value 1. If active is set to 0 with MODIFY SCREEN, input and output are automatically set to 0 and invisible is set to 1. Other values in input, output and invisible are ignored. Conversely, setting input and output to 0 and invisible to 1 automatically sets active to 0 and a different value in active is ignored.

Modifications in Table Controls and Step Loops

During processing of a table control or a step loop, the changes affect the current line of the table control or the current step loop group. Before the processing of a table control, the change to the attributes of a screen element that is part of a line in the table control does not effect the table control, since the values are transferred from the structure created using CONTROLS. Before a step loop is processed, the change to the attributes of a screen elements that is part of a step loop group affects all groups in the step loop.

Modifications to Tabstrip Controls

If the active component for a tab title of a tabstrip control is set to 0, the whole tabstrip page is hidden.

Example

In the following PBO module, an input field called val is made mandatory and converted to display in the foreground.

MODULE modify_0100 OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'VAL'.

screen-required = '1'.

screen-intensified = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDMODULE.

Reward points if useful

thanks,

Muthu

Read only

Former Member
0 Likes
3,484

Hi,

screen-input

screen-invisible

screen-intensified

code:

loop at screen

if screen-group = 'X'

screen-input = 'o' "only diaplay

modify screen

endif

endloop.

regards

Deepak

Read only

Former Member
0 Likes
3,484

Hi Ramanarayana

To modify the appearance of an input field on the selection screen, you must assign the parameter to a modification group as follows:

PARAMETERS <p> ...... MODIF ID <key> ......

The name of modification group <key> should be a three-character variable name without quotation marks. The MODIF ID addition always assigns <key> to the SCREEN-GROUP1 column of internal table SCREEN. Parameters assigned to a modification group can be processed as an entire group with the LOOP AT SCREEN and MODIFY SCREEN statements during the AT SELECTION-SCREEN OUTPUT event.

For more information on modification groups and internal table SCREEN, see Modifying the Screen.

check this code


PARAMETERS: TEST1(10) MODIF ID SC1,
TEST2(10) MODIF ID SC2,
TEST3(10) MODIF ID SC1,
TEST4(10) MODIF ID SC2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
  IF SCREEN-GROUP1 = 'SC1'.
    SCREEN-INTENSIFIED = '1'.
    MODIFY SCREEN.
    CONTINUE.
  ENDIF.
  IF SCREEN-GROUP1 = 'SC2'.
    SCREEN-INTENSIFIED = '0'.
    MODIFY SCREEN.
  ENDIF.
ENDLOOP.

check this link it will help you alot

http://www.erpgenie.com/abap/selection_screens.htm

Reward all helpfull answers

Regards

Pavan

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
3,484

Hi,

Check this

name Name

group1- Group1 Modification group

group2- Group2 Modification group

group3- Group3 Modification group

group4- Group4 Modification group

required- Required-entry field Mandatory field

input- Input input-enabled field

output- Output display field

intensified- Intensified intensified field

invisible- Invisible invisible element

length- visLength Field length

active- Input/Output/Invisible active field

display_3d- Two-dimensional Box

value_help- Input help Input help key

request- Input exists

values_in_combo- Dropdown listbox Value help exists

Regards,

Sesh

.

Read only

Former Member
0 Likes
3,484

hi

in se38 type screen and press f1 on in.

u will get the details .....

LOOP AT SCREEN [INTO wa].

...

ENDLOOP.

Effect

The statements LOOP AT SCREEN ... ENDLOOP define a loop around a statement block. For every screen element of the current dynpro, to which a dynpro field is assigned, one loop pass is executed. After the LOOP statement either the predefined workarea screen or the workarea wa (when using INTO) contains the properties of the respective screen element. wa must have the same data type as screen.

While processing a table control or a step loop (that is, within a LOOP loop of the dynpro flow logic), for its screen elements the current properties are determined in the current row or group. Outside of the processing of a table control or step loop, for its screen elements the statically predefined properties of all rows or groups are determined.

The table below shows the components of screen and their assignment to the field properties in the dynpro.

Component Description

name Name

group1 Modification group

group2 Modification group

group3 Modification group

group4 Modification group

required Required-entry field Mandatory field

input input-enabled field

output display field

intensified intensified field

invisible invisible element

length visLength Field length

active Input/Output/Invisible active field

display_3d Two-dimensional Box

value_help Input help key

request - Input exists

values_in_combo Dropdown listbox Value help exists

The component name in the loop contains the name of the current dynpro field. The components group1 to group4 can contain three-character IDs, which were assigned to the current screen element in its definition. These IDs allow you to combine the screen elements in up to four different modification groups. In the statement block after LOOP AT SCREEN, these can be queried in logical expressions in order to process several elements in the same way.

The other components of table screen represent the display properties of the current screen element. With the exception of length, they can contain 0 or 1, where 1 is "active" and 0 is "inactive".

Except active, all components of structure screen directly correspond to one attribute of the current screen element. The component active has no match in the attributes. If you change its content with MODIFY SCREEN, this affects the attributes Input, Output and Invisible and thus the components input, output and invisible of structure screen.

Read only

Former Member
0 Likes
3,484

Hi,

screen-input is 0 / 1.

screen-group1 is char

screen-group2 is char

screen-invisible is 0 / 1

screen-inactive is 0 / 1.

madhu

Read only

Former Member
0 Likes
3,484

HI.

refer this code.

It is not required of you to create and maintain different dialog screen for each screen functions for Create, Change, Delete and Dispaly. You can shared the used of a single Dialog Screen and used the MODIFY SCREEN to make the Field to be modify or not. Modifications and maintenance will be easier when user request you to change any screen layout.

PROCESS BEFORE OUTPUT.

MODULE 0250_STATUS.

LOOP.

MODULE STATUS_0120.

ENDLOOP.

LOOP.

MODULE STATUS_0110.

ENDLOOP.

LOOP.

MODULE STATUS_0100.

ENDLOOP.

PROCESS AFTER INPUT.

MODULE REFRESH_0250.

LOOP.

MODULE USER_COMMAND_0120.

ENDLOOP.

LOOP.

MODULE USER_COMMAND_0110.

ENDLOOP.

  • For example, if the user enter the Delete Screen, you will make all the Fields non-Editable.

&----


*& Module 0250_STATUS OUTPUT

&----


  • text *

----


MODULE 0250_STATUS OUTPUT.

SET PF-STATUS 'Z250'.

SET TITLEBAR 'Z250'.

IF OKSAVE = 'DEL'.

  • Make the SAVE Menu button inactive

SET PF-STATUS 'Z250' EXCLUDING 'SAVE'.

  • Make all the Fields non-Editable

LOOP AT SCREEN.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

  • For example, if the user enter the Modify Screen, you will make all the Fields Group 1 that

  • have a 'M' non-Editable.

  • You specify the 'M' for Group 1 using the Screen Painter Attribute

IF OKSAVE = 'MOD'.

  • Make the DELE Menu button inactive

SET PF-STATUS 'Z250' EXCLUDING 'DELE'.

  • Make all the Fields Groups 'M' non-Editable

LOOP AT SCREEN.

check screen-group1 = 'M'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

CLEAR OKCODE.

ENDMODULE.

Reward all helpfull answers.

Regards.

Jay

Read only

Former Member
0 Likes
3,484

hi,

give screeen command in our program and put a break point before this statement or in this statement. in debugging u can get all fields of screen or goto se11-> give screen as table name-> check all fields.

if useful reward some points.

with regards,

Suresh.A