cancel
Showing results for 
Search instead for 
Did you mean: 

Sampling scheme: usage indicator dependency

Martin_H
Contributor
0 Kudos

1.) I have removed the last reference to a sampling scheme X in a sampling procedure

2.) Table QDSV is not showing any references to scheme X any longer

3.) Nevertheless QDP2/3 is still showing "Used in procedure" as checked

Does anyone have an idea why this is the case? Will this flag never go away, even if no references exist any longer?

Thanks

Martin

Accepted Solutions (1)

Accepted Solutions (1)

Martin_H
Contributor
0 Kudos

Another finding I have is that in note 520981 (Sampling procedures) the same behavior of the respective indicator for procedures and their use in inspection plan is existing. I did not find a note for the sampling schemes though.

Martin

former_member42743
Active Contributor
0 Kudos

I've never looked at this specifically so i can't say for sure. But none of your findings surprise me. Having seen how SAP has done some things over the years, my guess would be that once it is set as "used", there is no process to reset the indicator. If SAP would do that it would have to be check when archiving is done. Once things are archived and off the system, they would have to identify affected items, recheck their usage and reset the flags. Very doubtfull if they would do that. It could be argued that once it is used, you can never untick it because you'd have objects in the archive that used it.

FF

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Martin,

QDP2 --> lease check your Sampling procedure. If you used even one sampling procedure which contains its sampling type = Use Sampling Scheme then used in procedure will tick in Usage Indicator.

-Sandip

Martin_H
Contributor
0 Kudos

Hello Sandip,

I do not get your point...what exactly do you want to state? There is no reference to sampling scheme X in any existing sampling procedure, so why is the sampling scheme X still insisting it is "used in a procedure"?

Regards

Martin

Former Member
0 Kudos

Dear Martin,

I want to explain that,

1) You have remove sampling scheme from all sampling procedure.

2) But you check that sampling procedure which you were used sampling scheme. is there any used of this sampling procedure in inspection plan ?

Means if you were used your sampling procedure (which were contains the sampling scheme) in inspection plan and if it is already used for any inspection lot then usage indicator check box is active. So, You need to cancel all inspection lot in which this sampling procedure were used. And it is not possible.

3) Also need to delete inspection plan in which this sampling scheme and sampling procedure is used.

4) Best things to do that create new sampling procedure for which you want for sampling scheme.

Regards,

Sandip

Martin_H
Contributor
0 Kudos

Hello Sandip,

can you also tell me from where SAP gets the information that the scheme is still used in old inspection plans/lots? The reference itself over the procedure is not there any longer...so there has to be a different place where this information is still present, right?

Digging a bit in the ABAP coding, I could only find the place where the indicator is set(MQDSVF10):

FORM BUCHEN_QDSV_STPRPLAN_VW_KZ.
* QDPK nachlesen.
  CALL FUNCTION 'QDTA_QDPK_READ'
       EXPORTING  I_STPRPLAN = QDSV-STPRPLAN
       IMPORTING  E_QDPK     = QDPK
       EXCEPTIONS NOT_FOUND  = 1.
*      Fehlerbehandlung
       IF SY-SUBRC EQ 1.
         MESSAGE E224 WITH QDSV-STPRPLAN.
       ENDIF.
* Verbuchung des Kennzeichens anstossen, wenn nocht nicht gesetzt.
  IF QDPK-KZVWPKSV IS INITIAL.
    MOVE KREUZ TO QDPK-KZVWPKSV.
    CALL FUNCTION 'QDBU_QDPK_USAGE_IND_POST' IN UPDATE TASK
         EXPORTING I_QDPK = QDPK.
  ENDIF.
ENDFORM.

And there is only a place where the usage indicator is deactivated, that is when you copy the sampling scheme in a new one (MQDSPF10).

--> So I rather wonder if SAP has really planned that the indicator is reset at all. I assume that it is rather a "one time used, indicator is checked for ever".

Regards

Martin

Former Member
0 Kudos

Dear Martin,

Please check in T.Code QDV6 (where used list of sampling procedure).

-sandip

Former Member
0 Kudos

Yes ..This indicator is set immediatly "When first time you assign sampling scheme to sampling procedure".

As per my understanding you can block Sampling scheme but can not remove this Tick. !

Martin_H
Contributor
0 Kudos

Hello Sandip,

this cannot be the way SAP looks up this information, as it will not be possible to link from a scheme to a procedure once the link is removed (see my other reply). Either the information "scheme-procedure(s)" is stored in the inspection lot at time of lot creation (which I think is not the case, at least I could not find it in the respective table), or the behavior of the indicator is as I stated (once active never be inactive again).

Regards

Martin

Martin_H
Contributor
0 Kudos

Hello Sujit,

this might also explain the fact that there is no possibility to archive schemes...if you never can go back to the status "not used in procedure" you will also never be able to archive them.

Regards

Martin