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

Select data from F4 help only from table and error while incorrect data entered manually

Former Member
0 Likes
565

Dear all ,

I have added user fields in network activity in project system , however i have created Ztable and Table maintenance for SM30. but problem is user can enter data manually (which is not maintained in table ) and save the project.

Here i want to populate data which is only available in Table field with F4 help otherwise system should pop up error.

i have used class builder and FM :  F4IF_INT_TABLE_VALUE_REQUEST .

Swapnil

2 REPLIES 2
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
501

Hi Swapnil

Why don't you check this in your program? For example, when a user-action happens. You can stop the execution of the action if the entry is invalid.

Another UI-side solution I can think of:

1. Make the field read-only

2. Place a button, e.g. "Select", next to your input field, which -when clicked- shows only the available values and lets the user select one.

I have seen examples where developers did not add an extra button and expected users to click the search help button or hit F4 of the read-only field. However, I would not recommend this as it is not intuitive.

Hope this helps.

*--Serdar

Read only

Former Member
0 Likes
501

Hi,

Change the field to a drop down list and populate the list using the VRM_SET_VALUES function module.  The user can then only select valid values or blank.

Rich