2008 Jan 08 1:13 PM
Hi,
I have req callled ,I have two parameters statements.
If I givr wrong entry in first parameter statement it has to show error messag and other option should go for display mode.
With warm regards,
khadar.
Hi,
I have req callled ,I have two parameters statements.
If I givr wrong entry in first parameter statement it has to show error messag and other option should go for display mode.
With warm regards,
khadar.
2008 Jan 08 1:17 PM
Hi
You can do one thing While checking whether the value you hav entered is correct or not
You can place a
IF your parameter contain the desired value
Then do the desired processing
ELSEIF
Made that parameter in display mode
ENDIF
Reward points if helpful
Hitesh
2008 Jan 08 1:18 PM
Hi Khadar,
Use:
AT SELECTION-SCREEN ON <name of your parameter>.
IF <wrong entry>.
MESSAGE <your message>
ENDIF.
If the message is displayed your other parameter will go in display mode.
Regards,
John.
2008 Jan 08 1:19 PM
Hi pls check out this,
Selection screen then it is possible.
for that you have to use AT SELECTION-SCREEN output. event..
See the below code and use it according to your requirement.
======================================
tables: pa0000, pa0001.
parameters: p_rad1 radiobutton group rad1 default 'X' user-command rusr,
p_rad2 radiobutton group rad1.
selection-screen: begin of block blk1 with frame.
select-options: s_pernr for pa0000-pernr modif id ABC.
selection-screen: end of block blk1.
selection-screen: begin of block blk2 with frame.
select-options: s_stat2 for pa0000-stat2 modif id DEF.
select-options: s_werks for pa0001-werks modif id DEF.
selection-screen: end of block blk2.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ABC'.
IF p_rad1 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'DEF'.
IF p_rad2 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
=====================================
with regards,
Hema.
pls reward if helpful.
2008 Jan 08 1:20 PM
loop at screen
case screen-group1.
when ''
.....
screen-active = '' or screen-invisible = ''.
modify screen.
endloop.
2008 Jan 08 1:29 PM
TABLES: mara.
SELECTION-SCREEN BEGIN OF BLOCK b.
PARAMETERS: p_p1 TYPE matnr,
p_p2 TYPE matnr.
SELECTION-SCREEN END OF BLOCK b.
DATA: flag(1) TYPE c.
AT SELECTION-SCREEN ON p_p1.
SELECT SINGLE *
FROM mara
WHERE matnr = p_p1.
IF sy-subrc <> 0.
MESSAGE 'Invalid Material' TYPE 'I'.
flag = 'X'.
ELSE.
flag = space.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'P_P2'.
IF flag = 'X'.
screen-input = 0.
MODIFY SCREEN.
ELSE.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |