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

parameters in selection screen

Former Member
0 Likes
1,357

hi all,

1) i want to make parameters in selection screen to be non-editable

2) tell me difference between check table and value table.

8 REPLIES 8
Read only

Former Member
0 Likes
762
1. data : p_matnr like mara-matnr.

 at selection-screen output.
 loop at screen.
   if screen-name = 'P_MATNR'.
    screen-input = 0.
    modify screen.
   endif.
   endloop.
 endloop.

2. The Check Table is the dependent table to which the relationship is defined using foreign keys. The contents of the check table field are shown in the input help for the referenced field.

The Value table is the table attached to a field at the domain level, where the entry to the field can be only from the value table. They are not used in the Input Help.

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
762
Read only

Former Member
0 Likes
762

parameters : p1 like mara-matnr.

at selection-screen output.

loop at screen.

if screen-name = 'P1'.

screen-input = '0'.

modify screen.

endif.

endloop.

2) Check table checking the value by primary key foreign key relationship and validate that.

but value table only take the values when you press F4. it is not involve in any validation.

regards

shiba dutta

Read only

former_member188829
Active Contributor
0 Likes
762

1) parameters:p_matnr like mara-matnr.

at selection-screen output.

loop at screen.

if screen-name = 'P_MATNR'.

screen-input = 0.

modify screen.

endif.

endloop.

use p_matnr as CAPITAL LETTERS.

2)http://www.sap-img.com/abap/difference-between-a-check-table-and-a-value-table.htm

Message was edited by:

Vishnu Reddy

Read only

Former Member
0 Likes
762

Hi Manish,

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.

Check table : use in foregin key relationship or we can say field level checking in F4 help.

Value table : use in donain or we can say domain level of checking in f4 help

Read only

Former Member
0 Likes
762

Hi,

Check Table: The check table will give u the possible entries as well as it wont allow you to enter any value other than the possible entries.

Value Table: This will just give you the possible entries. But it wont restrict you to choose the possible values. You can enter some other values other than the possible set of values.

Hope this will help u. If u need more infn then write it.

U. Uma

Read only

Former Member
0 Likes
762

manish,

write below code.

at selection-screen output.

loop at screen.

if screen-name = 'P_XXXX'.

screen-input = 0.

modify screen.

endif.

endloop.

endloop.

Pls. Mark for all useful ans.

Read only

Former Member
0 Likes
762

PARAMETERS p_matnr type mara-matnr no-display.