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: 

Can any one tell me When SY-UCOMM will have..........

Former Member
0 Kudos
818

Hi,

Can any one tell me when SY-UCOMM will have '%005', '%006', '%007'.

This i was using in AT SELECTION-SCREEN.

check: not sy-ucomm = '%005',

not sy-ucomm = '%006',

not sy-ucomm = '%007'.

Thanking you,

Deepak.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
209

I don't seem there are those functions code in standard GUI status (that is generated for selection screen).

Which status gui are you doing?

Message was edited by: max bianchi

14 REPLIES 14

Former Member
0 Kudos
210

I don't seem there are those functions code in standard GUI status (that is generated for selection screen).

Which status gui are you doing?

Message was edited by: max bianchi

0 Kudos
209

Hi Max,

I am not using any GUI for the above code.

Regards Deepak.

0 Kudos
209

Have you defined those codes by SELECTION-SCREEN.... USER-COMMAND statament?

If it's so you doesn't check sy-ucomm, but structure SSCRFIELDS.

0 Kudos
209

In your data declarations, have this statement

tables: sscrfields.

Then in your AT SELECTION-SCREEN.

CASE sscrfields-ucomm.

WHEN '%005'.

WHEN '%007'.

WHEN others.

ENDCASE.

Please post your selection-screen code so that the forum will be better equipped to assist you.

Srinivas

0 Kudos
209

Hi,

*----


at selection-screen.

*----


check: not sy-ucomm = '%005',

not sy-ucomm = '%006',

not sy-ucomm = '%007'.

IF S_SAKNR IS INITIAL.

LOOP AT S_SAKNR.

IF S_SAKNR-SIGN NE 'I' OR S_SAKNR-OPTION NE 'EQ'.

message e000 with text-e02.

ENDIF.

ENDLOOP.

ENDIF.

This is my code.

can any one tell when sy-ucomm will have the above values...

Thanking you.

0 Kudos
209

these ucomm's are systems assigned. this kind of ucomm's will come when you click the <b>multiple selections</b> button in select-options to add multiple values.

Hope this answers your question.

Regards

Raja

0 Kudos
209

the pattern i have noticed is

if there is only only select-option in the screen then the sy-ucomm of multiple selection willbe %000

if you have for example three parameters and then a select-option then the sy-ucomm of multiple selection will be %003

it is basically the order of the select-options in the screen. (where the number starts from %000)

Hope this is clear.

Regards

Raja

If your question is answered, reward points and close the thread.

0 Kudos
209

can u let me know how many fields do u hv in input screen ?

regards

gv

0 Kudos
209

for eg

SELECT-OPTIONS: S_field1 FOR ...

S_field2 FOR ...

S_field3 FOR ...

S_field4 FOR ...

S_field5 FOR ...

S_field6 FOR ...

S_field7 FOR ...

*----


at selection-screen.

*----


check: not sy-ucomm = '%005',

not sy-ucomm = '%006',

not sy-ucomm = '%007'.

IF S_SAKNR IS INITIAL.

LOOP AT S_SAKNR.

IF S_SAKNR-SIGN NE 'I' OR S_SAKNR-OPTION NE 'EQ'.

message e000 with text-e02.

ENDIF.

ENDLOOP.

ENDIF.

Meaning:

do not perform this operation if the ok-code is multiple selections of field field5,field6,field7.

regards

gv

Message was edited by: Venkat

0 Kudos
209

Hi Raja,

Here I have only one select-option in my selection screen.

I have no parameters also.

And I tried with Multiple selection also but i cant find when this Sy-ucommm will '%005'.....

Thanking you.

0 Kudos
209

in the 5th select option press Multiple selection button & check the sy-ucomm. U will get '%005'.

regards

gv

0 Kudos
209

sy-ucomm %005 will be for the 6the element in the screen

for example

parameter 1

parameter 2

select-options 1

select-options 2

parameter 3

selection-options - 3

in the above example if multiple option for selection-options 3 is clicked the sy-ucomm will be %005

You are saying that its the only element in the scree and still you get %005 this could be because the other elements are hidden.(confirm that)

Regards

Raja

Former Member
0 Kudos
209

Hi Deepak,

Could you be more clear . I could not understand the problem.Do we get such values in sy-ucomm in at selection screen event.

Regards ,

Nagaraju Donikena.

0 Kudos
209

Hi Nagaraju,

You can see them when At SELECTION_SCREEN.

If you put a break point in At SELECTION_SCREEN you can see, but the values which i posted i am unable to see when they will be.

Thanks..