cancel
Showing results for 
Search instead for 
Did you mean: 

Default physical sample storage information

former_member235613
Participant
0 Kudos

Hi all. We recently started using physical samples for one of  our plants. We have them created when the lot is created via a sample drawing procedure set in the inspection plan. Is there a way to set a default sample location and storage duration? All the samples get stored in the same place and for the same amount of time, so it would be good for this to be automatically filled instead of having to use QPR7. thanks for any help.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member42743
Active Contributor
0 Kudos

I think you'll have to use a user exit for that.  There is screen control in config that can make the fields optional or even hidden entirely.  That might be an option for the sample location since you can define that by business procedure.  But probably wouldn't work for storage duration since you need something in there.

In QPR7 you can define a user variant to make it easier for your users to run QPR7.

Taking the variant concept one step farther, another possibility would be to create a user variant for a batch job.  Set up the program so that it would look for all new samples created in the say the past ten minutes, or all samples created since the time of the last batch job.  It could also look for all samples where no sample duration or sample location is defined.  Whatever logic is used, get a list of sample numbers

Than use those physical sample numbers an run QPR7 with the variant that has the sample location and storage duration defined in it for just those sample numbers.  Run the job every ten or fifteen minutes.

Craig

former_member235613
Participant
0 Kudos

From the QPR7 documentation "You cannot predefine the storage data on the initial screen with a user variant for technical reasons." 

former_member42743
Active Contributor
0 Kudos

Well that sucks.

Craig

former_member42743
Active Contributor
0 Kudos

Sorry. that was my bad.. I assumed the variant could be created there and didn't realize it was limited.

You should still be able to use a batch job for this but you'll have to have the batch job put in the values instead of pulling them from a variant.

Craig

former_member235613
Participant
0 Kudos

No worries. That is normally a safe assumption! Is there a way for us normal people to write batch jobs that insert values and such? or does it take ABAP access?

former_member42743
Active Contributor
0 Kudos

You would need an ABAP'er.

Craig