2009 Feb 12 2:59 PM
Hi All,
we have a tcode IW31, in that one field(WBS element -PROID) is not mandatory. so we have written the following code to make it mandatory in a user exit EXIT_SAPLCOIH_010.It's triggering the error message, but it is going into disable mode. Please sugget me how to enable the screen after getting the error message triggering.
if not caufvd_imp-proid is initial.
select single * from t350 into wa_t350
where auart = caufvd_imp-auart
and imord = 'X'.
if sy-subrc is initial.
pspel = caufvd_imp-proid.
else.
call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
exporting
input = caufvd_imp-proid
importing
output = l_posid.
concatenate text-t10 l_posid text-t11
into l_textline1 separated by space.
message i208(00) with l_textline1.
endif.
else.
message e208(00) with 'Please maintain WBS element in Location Tab'.
endif.
Thanks
2009 Feb 13 6:58 AM
Hi,
Try using Function Exit EXIT_SAPLCOIH_004 of Enhancment IWO10004. This is used to validate the data.
See if this suits your requirement.
Regards,
Abhisek.
Hi All,
we have a tcode IW31, in that one field(WBS element -PROID) is not mandatory. so we have written the following code to make it mandatory in a user exit EXIT_SAPLCOIH_010.It's triggering the error message, but it is going into disable mode. Please sugget me how to enable the screen after getting the error message triggering.
if not caufvd_imp-proid is initial.
select single * from t350 into wa_t350
where auart = caufvd_imp-auart
and imord = 'X'.
if sy-subrc is initial.
pspel = caufvd_imp-proid.
else.
call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
exporting
input = caufvd_imp-proid
importing
output = l_posid.
concatenate text-t10 l_posid text-t11
into l_textline1 separated by space.
message i208(00) with l_textline1.
endif.
else.
message e208(00) with 'Please maintain WBS element in Location Tab'.
endif.
Thanks
2009 Feb 12 3:21 PM
If u use Exxx ie an error message it would go to disable mode
What u can try doing is use Ixxx ie informative message and use leave list-processing.
message i208(00) with l_textline1.
endif.
else.
message I208(00) with 'Please maintain WBS element in Location Tab'.
LEAVE LIST-PROCESSING
endif.
2009 Feb 13 5:44 AM
hi Dolly
what u can do is something like that.
message s(xxx) display like 'E'.
This is will display a sucess message as an error and ur screen will not be disabled
2009 Feb 13 6:46 AM
Hi,
Instead of error message use status message like
message s208(00) with 'Please maintain WBS element in Location Tab'.
Leave to screen sy-synnr.
This will allow to move to the screen and have in enable mode.
WIth Regards,
Dwaraka.S
Edited by: Dwarakanath Sankarayogi on Feb 13, 2009 7:46 AM
2009 Feb 13 6:58 AM
Hi,
Try using Function Exit EXIT_SAPLCOIH_004 of Enhancment IWO10004. This is used to validate the data.
See if this suits your requirement.
Regards,
Abhisek.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |