Skip to Content
0

Prefill inspection result (QE01)

Sep 12, 2017 at 02:36 PM

140

avatar image
Former Member

Hi everyone,

Is it possible to modify or prefill inspection characteristic table? I can modify this table in user exit EXIT_SAPLQEEM_002. It works fine when characterictic has set indicator "Single result", but some some of them have checked property "Summarized Characteristic Recording" and because of that I cannot fill SUMPLUS (on ALV) or CODE1 (in QAMKTAB table) field (on added image). It is really annoying to fill several fields for multiple characteristics and in result user has to fill hundreds of cells.

Thanks for any help

qe01.png (5.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Craig S
Sep 12, 2017 at 07:25 PM
0

No. prefill is not available. You might be able to use a user exit possibly to pre-fill them.

Craig

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Well, that didn't really help. Is there any way to automatically fill all the results at once?

0

Nope. sorry..

Look at EXIT_SAPLQEEM_022 for the single results.

Is their any chance you are defaulting in values from earlier results? I.e. from previous testing.

Defaulting in test results is an extremely questionable business practice and in any food, pharma, chemical and probably electronics applications, it would be highly suspect and in those industries would in all likelihood fail an external audit.

0
Former Member

So basically those user-exits (EXIT_SAPLQEEM_022 and EXIT_SAPLQEEM_026) will allow me to add my button and then I will be able to modify records? If yes, that sounds great. Do you have any sample code to this exit?

0
avatar image
Former Member Sep 14, 2017 at 02:09 PM
0

I've created a program that uses BAPI_INSPOPER_GETDETAIL, then I modify char_results and single_results tables and then run BAPI_INSPOPER_RECORDRESULTS. It works fine this way (in program), but if I put that code in user-exit EXIT_SAPLQEEM_002 I get error Q5 206 - Defects occured during confirmation. It tried to google this but with nothing came up. Has any of you got such an error?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Maybe try a different search engine.

i google using "026 defects occured during confirmation". (drop quotes in search engine)

I get a bunch of stuff but I don't know if they can help you or not. Here's two of the links.

http://www.se80.co.uk/sapmessages/q/q5/q5-026.htm

https://archive.sap.com/discussions/thread/313388

0
avatar image
Former Member Sep 15, 2017 at 09:20 AM
0

The reason why those values are not filled (error Q5 026 and QI 111) is that in form SAPLQEEM -> LQEEMF3X -> MKSTATUS_INB_SETZEN_INTERN (line 135) value qaqee-qauth12 is not filled. Changing it in debug solves this problem. I'll try to do something about it and let you know.

Show 3 Share
10 |10000 characters needed characters left characters exceeded
I took a look at this briefly and I think that maybe there another filter on somewhere.

That status only appears to get set if the characteristic is a required characteristic (Status 1 in results recording).

I think there must be a setting or value somewhere that is saying to filter or record only for required characteristics and the one your trying to update is not a required characteristic. Therefore qauth12 is null.

See if the characteristic you are recording against has a required status or not.

I say this because in the comments in that area of the code you mentioned, the comments in the code relate directly to the characteristic status.

Status 0 = optional (qauth02)

Status A = conditional (qauth02)

Status B = conditional (qauth02)

Status 1 = required (qauth12)

Status 3 = valuated (qauth32)

Status 4 = skip (qauth42)

Status 5 = locked (qauth52)

etc. etc.

0
Former Member

I've cheked that in QS24 and all used characteristics are marked as Record single results and Required Characteristic. I am able to prefill inspection result and check the "Acceptance" field by changing QAQEE fields (code below). But after pressing enter status does not change from 2 to 5. I think that ALV is "waiting" for some changes in those lines and that's why it doesn't fire up changing status. I can change that status field in code, but it's changed only on display, QAMR table still has status "2", even after saving.

  ASSIGN  ('(SAPLQEEM)QAQEE') TO <qaqee>.
  IF sy-subrc = 0.
    ASSIGN COMPONENT 'QAUTH12' OF STRUCTURE <qaqee> TO <fs>.
    IF sy-subrc = 0.
      <fs> = abap_true.
    ENDIF.
    UNASSIGN: <fs>, <qaqee>.
  ENDIF.

0
0