Application Development and Automation 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: 
Read only

How to enable the screen after triggering the error message

Former Member
0 Likes
1,720

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,088

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.

4 REPLIES 4
Read only

Former Member
0 Likes
1,088

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.

Read only

Former Member
0 Likes
1,088

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

Read only

Former Member
0 Likes
1,088

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

Read only

Former Member
0 Likes
1,089

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.