cancel
Showing results for 
Search instead for 
Did you mean: 

Required field not picking data directly

faisal_khan
Participant
0 Kudos

Hi,

I have made the Functional Location field required for a specific Notification type. It works fine. The problem arises when an Equipment is entered and the Functional location is not picked directly from Equipment master data. The system still require the field to be filled manually.

If i make the F.Location field optional then when equipment is entered then F.Location is picked automatically.

Business requirement is that the Functional Location should always be present for a specific Notification type. How to cater for this problem that Functional location is mandatory and also picked once Equipment is entered.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

sunil_mundhe3
Contributor
0 Kudos

Hi Faisal,

In SPRO setting of Notification what is the Reference Object setting selected?

It should have FL & Equipment?

SPRO=

Plant Maintenance and Customer Service

     Maintenance and Service Processing

           Maintenance and Service Notifications

           Overview of Notification Type

select Particular Notification Type and left hand pan =>Screen Areas in Notification Header

In "scrn Type object" SELECT "O100"

Rgds

Sunil

faisal_khan
Participant
0 Kudos

It has O100 already selected as shown below:

You may see below that though an equipment (with F.Location in its master data) is entered, the system rather than picking the value from Equipment  master data is giving message that 'Fill in all required field'

Former Member
0 Kudos

Hi Faisal,

This issue is nothing to do with configuration.This is the Std.SAP functionality.As you instructed system, That FLOC field is mandatory, so you have to fill this field first manually.

I suggest,if possible please make Equipment field mandatory and after filling Equipment, all required data will be populated in respective field.

Regards

Vivek Patil.

faisal_khan
Participant
0 Kudos

I thought about making Eqpt field mandatory but sometimes there is work only on F.Location only.

Thanks for your inputs, they have been useful

peter_atkin
Active Contributor
0 Kudos

Faisal Khan,

This is why we sometimes use a user-exit (in your case QQMA0014) to check that the FLoc has been populated when saving the notification.

PeteA

Answers (1)

Answers (1)

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Faisal khan,

Perhaps I am joining late. Because I understood your requirement and used the solution for this in several Notification types, I'm giving the user-exit (QQMA0014) solution. Attaching a recent case where I used this, making both Assembly as well as the Functional Location mandatory.

In your case you need to put the following code in the include ZXQQMU20  of the user exit QQMA0014.


IF  i_viqmel-tplnr IS INITIAL.
     MESSAGE: 'Functional Location field can not be blank' TYPE 'E' DISPLAY LIKE 'I'.
   ENDIF.

This displays an error pop-up asking to fill the F/Locn field. This will satisfy the requirment.

Regards

KJogeswaraRao