cancel
Showing results for 
Search instead for 
Did you mean: 

Enter Value in a Table Even After Throwing Error message in Webdynpro Application

csayak
Explorer
0 Kudos

Hello All,

I have a Validation screen in my portal where there is a (read-only) INPUT-FIELD which shows Order quantity (fetched from a previous screen), A TABLE (where user can input values), A Button to validate a condition.

Now, on successful validation, a success message is shown in the previous screen and if the validation fails an error message is displayed in the same screen.

CONDITION -> The number of Token Value entered should be equal to Order Quantity

1. Suppose, the Order quantity is "2" and the user enters 3 token values.

Here, the error message in displayed but the 3 field in the table where the token value had been entered still remains editable (while the rest become non-editable). Now, if the user deletes one value (among the entered 3) and tries to validate. Validation successfully happens. [See Screenshot-1 & Screenshot-2]

2. Now suppose, Order quantity is "2" and the user enters 1 token value.

Here, the error message is displayed and all the fields of the table (Except the one where User has entered Token value) turns NON-EDITABLE. [See Screenshot-3]

Here, lies the issue as the user is no more able to enter another value to validate successfully. The only way out is to go back to the previous screen and do all the steps all-over again.


CAN SOMEONE TELL ME HOW TO MAKE THE FIELDS OF THE TABLE REMAIN EDITABLE (ATLEAST AS MANY FIELDS AS EQUAL TO THE ORDER QUANTITY) EVEN AFTER THE ERROR MESSAGE IS DISPLAYED?

Sandra_Rossi
Active Contributor

Screenshots are really too small. Please crop them like this:

Sandra_Rossi
Active Contributor
0 Kudos

(and the last one)

Sandra_Rossi
Active Contributor

If I understand you well, you are asking how to make "all" the lines editable.

It depends both on the component LINES of your CONTROLS structure, and on the contents of the internal table.

There are several solutions but the SAP preferred solution is to define a given number of empty lines at the end of the internal table. Each time the lines are full, the user may press Enter to add new empty lines.

csayak
Explorer
0 Kudos

Hello Sandra,

I have resized the screenshots now.

The issue is that whenever any message is displayed in my webdynpro application it is making all the fields NON-EDITABLE

csayak
Explorer
0 Kudos

I want to let the fields of the table remain EDITABLE even after the error message is displayed on the screen after failed validation.

All I am doing here is appending blank work areas to an internal table and then feeding the internal table to the context node, so that they are displayed as blank input fields in the table.

I have already tried setting the read-only property of the table dynamically but it did not work and also I had done the same with the enable option in the properties of the Table (UI element) but once again it did not work.

THE REQUIREMENT HERE IS NOT TO ADD NEW FIELDS TO THE TABLE, BUT TO LET ALL THE EXISTING FIELDS OF THE TABLE REMAIN EDITABLE EVEN AFTER ERROR MESSAGE IS DISPLAYED ON FAILURE OF THE VALIDATION CHECK.

Accepted Solutions (0)

Answers (1)

Answers (1)

vinita_kasliwal
Active Contributor
0 Kudos

Hi Sayak

Try this

MESSAGE text-e02 TYPE 'S' DISPLAY LIKE 'E'.

This should help solve the problem as it would display as Error but would be a S message

Let me know if that helped.

Regards

Vinita

csayak
Explorer
0 Kudos

Hello Vinita,

I am using the Interface (if_wd_message_manager) to generate the message in my webdynpro application.

However, I tried with all types of messages (Success & warning) even.

But every time a message is displayed, the fields of the table where there is no entry turns non-editable.

Any thoughts on this, how I can fix?