2005 Sep 05 9:47 AM
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.
2005 Sep 05 9:58 AM
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
2005 Sep 05 9:58 AM
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
2005 Sep 05 10:11 AM
Hi Max,
I am not using any GUI for the above code.
Regards Deepak.
2005 Sep 05 10:18 AM
Have you defined those codes by SELECTION-SCREEN.... USER-COMMAND statament?
If it's so you doesn't check sy-ucomm, but structure SSCRFIELDS.
2005 Sep 05 4:03 PM
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
2005 Sep 06 5:10 AM
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.
2005 Sep 06 5:26 AM
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
2005 Sep 06 5:29 AM
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.
2005 Sep 06 5:36 AM
can u let me know how many fields do u hv in input screen ?
regards
gv
2005 Sep 06 5:43 AM
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
2005 Sep 06 6:00 AM
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.
2005 Sep 06 6:06 AM
in the 5th select option press Multiple selection button & check the sy-ucomm. U will get '%005'.
regards
gv
2005 Sep 06 6:11 AM
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
2005 Sep 05 10:03 AM
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.
2005 Sep 05 10:13 AM
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..