01-09-2006 3:13 AM
HEllo I recently had an assignment where I have to create a user exit with an error message. I had no problems with the error message but after an error occurs, with this line:
<b> MESSAGE ID 'ZSD' TYPE 'W' NUMBER '002'.</b>
the fields have become disabled and there seems to be no way to enable the fields for changing. Is there a way to fix this. Thanks people and take care!
01-09-2006 3:20 AM
Oh, TYPE E, when issuing an error message, all fields are disabled unless you tie it to a field or group of fields. This is commonly done by using the CHAIN...ENDCHAIN statements in the PAI of the screen. Do you have access to this? I assume that you are issueing the message from within a MODULE, right? You are probably calling this module in the PAI flow logic of the screen. You will need to do something like this.
Here P_BUKRS is the screen field and CHECK_BUKRS is the module where you are checking the value and issuing the error message. Using the CHAIN, you can tie other fields to the check so that they are also enabled when the error message is issued.
CHAIN.
field p_bukrs module check_bukrs.
ENDCHAIN.
Regards,
Rich Heilman
01-09-2006 3:14 AM
sorry i mean the line is
MESSAGE ID 'ZSD' TYPE '<b>E</b>' NUMBER '002'.
01-09-2006 3:15 AM
01-09-2006 3:18 AM
Sorry that was a type. What I meant to put was <b>E</b> not <b>W</b>
01-09-2006 3:20 AM
Oh, TYPE E, when issuing an error message, all fields are disabled unless you tie it to a field or group of fields. This is commonly done by using the CHAIN...ENDCHAIN statements in the PAI of the screen. Do you have access to this? I assume that you are issueing the message from within a MODULE, right? You are probably calling this module in the PAI flow logic of the screen. You will need to do something like this.
Here P_BUKRS is the screen field and CHECK_BUKRS is the module where you are checking the value and issuing the error message. Using the CHAIN, you can tie other fields to the check so that they are also enabled when the error message is issued.
CHAIN.
field p_bukrs module check_bukrs.
ENDCHAIN.
Regards,
Rich Heilman
01-09-2006 3:28 AM
Im issueing the message in a user exit (im assuming imbedded in a module). Unfortunatley I dont have access to the main abap program since its a sap standard one.
01-09-2006 3:32 AM
01-09-2006 4:04 AM
01-09-2006 5:11 AM
sorry im not familiar with User Exits but I think this is it <b>FUNCTION exit_saplito0_002</b>