cancel
Showing results for 
Search instead for 
Did you mean: 

Dependant variables - raising an Exception from a customer exit

Former Member
0 Kudos

Hi All,

I have a query with 5 variables. I am interested in 2 variables which I have to make dependant, that is, the user should be allowed to fill values for any one of them. If the user enters the value for both of them then I have to throw an error.

I have activated the customer exit and wrote the code for I_STEP = 3. I have populated the values from the two variables into 2 ranges objects and then performed a test for both not being initial. If this check qualifies then I am raising an Error Message.

The problem I am facing is the error message is not being displayed. Instead the connection breaks down with "SYSTEM ERROR". Can anyone suggest any work around or correct the approach I have taken.

What I do not understand is if I_STEP = 3 is for validating user input then how come the user be notified that his input is wrong?

Points will be rewarded.

Regards,

Kazmi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Guys,

Can anyone help me here?? I want to do certain validation and raise an error in the Exit under STEP 3 for a BEX Query. But when I raise the error, the connection with the BW Server breaks down. If I raise a warning or an information message, the query does not display any message and executes successfully.

Points will be rewarded.

Best regards,

Kazmi

Former Member
0 Kudos

Is the error not being displayed when the report is run the Web ? If yes, thats a known issue...the error messages raised in customer exit cannot be passed into web reports. These error messages can only be seen when you run the report in BEx. To my knowledge, there is no workaround for this...

Hope this helps!

Former Member
0 Kudos

Hi Sudheer,

I do not see the error message in BEx. In BEx the connection breaks down when the error is being raised. I am pretty sure that we can raise and see the error messages in BEx but why this is not working is a concern.

Are you aware of any other approach to make 2 variables dependant in such a way that either one of them alone could be populated by the user?

Regards,

Kazmi