cancel
Showing results for 
Search instead for 
Did you mean: 

Sample size quantity getting rounded up

Former Member
0 Kudos

Dear All,

I am using sampling procedure with sampling type 400- Percentage sample. The sample percentage is 15.

This has assigned to the MIC in the inspection plan.

However while creating inspection lot & calculating the sample size, the sample size quantity is getting rounded up to the next whole number. For ex. if the inspection lot quantity is 50 then the sample size is 8 in place of 7.5.

Please do note that the UOM is having allowed decimal place 3 & rounding decimal places are 3.

I have searched the SCN & SAP market place but couldn't find the satisfactory answer.

Has SAP designed the sample size calculation in this way only? Will you please help to resolve this?

Manoj P.

Accepted Solutions (1)

Accepted Solutions (1)

anand_rao3
Active Contributor
0 Kudos

Possibly the function module QDRS_PERCENTAGE_SAMPLE decides that! Check below path,

QCC0 > Quality Planning > Basic Data > Sample, SPC > Define Sample Determination > Adapt Rules for Sample Determination > Double click on Sample percentage > You would notice the FM assigned to it.

You should be careful if you are planning to modify the same or trying to develop a customized one. It would affect the entire system being client level changes!

Anand

Former Member
0 Kudos

Hi,

I had already checked that. Will it be the reason?

Manoj P.

anand_rao3
Active Contributor
0 Kudos

Yes, I think so!

Martin_H
Contributor
0 Kudos

I do not understand what you mean with "will it be the reason"?

But if you check the FM mentioned by Anand you will see that there is a special form (STPRUMFANG_RUNDEN) that takes care of rounding up the sampling sizes. In the corresponding form (STIPROUMF_PROZ_BERECHNEN) the code comments (they are in german....) state "The sampling size is integer. It will only be rounded up.".

Regards

MH

Former Member
0 Kudos

Martin,

I mean to say that the function module is designed to round up the sample size. You cleared that doubt.

Manoj P.

Answers (0)