2008 Feb 01 4:11 PM
Hi All,
Instead of OBLIGATORY function in SELECTION SCREEN, how can I achieve in the other way.
Thanks & Regards
Santhosh
Hi All,
Instead of OBLIGATORY function in SELECTION SCREEN, how can I achieve in the other way.
Thanks & Regards
Santhosh
2008 Feb 01 4:16 PM
2008 Feb 01 4:17 PM
May be this way
at selection-screen.
if sy-ucomm eq 'ONLI'. "check when execute or f8 press
perform f_check_bukrs.
endif.
form f_check_bukrs.
if p_bukrs is initial.
message e999(yxxx) .
" Invalid company code
endif.
endif.
endform.
a®
2008 Feb 01 4:17 PM
Hi,
Write u r own logic in at selection-screen event.
at selection-screen
if field is initial.
message ' ' type 'E''.
endif.
Pls reward points.
Regards,
Raghu
2008 Feb 01 4:24 PM
What I wanted is When I execute the program it shoud not display until unless the condition is satisfied. But no message type as 'E'.
Thanks & Regards
Santhosh
Edited by: Santosh Subbanna on Feb 1, 2008 5:25 PM
2008 Feb 01 4:30 PM
misunderstood the requirement
thread deleted
a®s
Edited by: a®s on Feb 1, 2008 11:33 AM
2008 Feb 01 4:30 PM
Ok, but it is better to give a message to the user. But if you simply don't want to show the report, then you can use the STOP statement instead of the MESSAGE statement.
REPORT zrich_0001.
parameters: p_field type c.
at selection-screen.
if p_field is initial.
stop.
endif.
start-of-selection.
write:/ 'Report'.
Regards,
Rich Heilman
2008 Feb 01 4:37 PM
Can't I use any LEAVE LIST-PROCESSING or something like that. I hope using STOP is not a good practice.
Thanks & Regards
Santhosh
2008 Feb 01 4:40 PM
Ok..try like this...
DATA : mat LIKE marc-matnr.
PARAMETERS : p_matnr TYPE marc-matnr.
AT SELECTION-SCREEN ON p_matnr.
SELECT SINGLE matnr INTO mat FROM marc WHERE matnr EQ p_matnr.
IF sy-subrc EQ 0.
"do nothing
ELSE.
MESSAGE 'Enter valid material' TYPE 'S'.
SUBMIT (sy-repid) VIA SELECTION-SCREEN.
ENDIF
2008 Feb 01 4:42 PM
2008 Feb 01 4:52 PM
2014 Aug 28 10:40 AM
2008 Feb 01 4:34 PM
PARAMETERS: p_x TYPE c.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
screen-required = 1.
MODIFY SCREEN.
ENDLOOP.
Put u r logic accordingly and then change screen required.
Pls reward points if useful.
Regards,
Raghu
2008 Feb 01 5:18 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |