cancel
Showing results for 
Search instead for 
Did you mean: 

PRT against inspection operations application

0 Kudos

Hi ABAP and PM gurus,

I am developing an SAPUI5 application for Preventive Maintenance for that in se24 i have developed one class which gets the required data for Inspection lot and perform the inspection then saves the results that process actually done in QE11 tcode.

to get the data i am using

'BAPI_INSPLOT_GETOPERATIONS'

'BAPI_INSPOPER_GETDETAIL'

'QIBP_INSPCHAR_GETRESULT'

and One Z function

To save i am using 'BAPI_INSPOPER_RECORDRESULTS'

it is working fine but i'm not getting PRT details but End users are asking that thing also so i tried to pick those details manually from table in following


SELECT objnr parnr FROM ihpa
INTO TABLE it_partner
WHERE parvw = 'VU'
AND parnr = sy-uname
AND kzloesch NE 'X'.
LOOP AT it_partner INTO wa_partner.
lv_index = sy-tabix.
SHIFT wa_partner-objnr LEFT DELETING LEADING 'OR'.
* -- Get Inspection Lists
SELECT prueflos aufnr FROM qals
INTO CORRESPONDING FIELDS OF TABLE it_ins_lot
WHERE aufnr EQ wa_partner-objnr
AND herkunft EQ '14'
AND enstehdat LE sy-datum
AND stat35 EQ ' '.
ENDLOOP.

SELECT aufnr
prueflos
aufpl FROM afko
INTO CORRESPONDING FIELDS OF TABLE it_afko
FOR ALL ENTRIES IN it_ins_lot
WHERE aufnr EQ it_ins_lot-aufnr
AND prueflos EQ it_ins_lot-prueflos.

SELECT aufpl
objty
objid FROM affh
INTO CORRESPONDING FIELDS OF TABLE it_affh
FOR ALL ENTRIES IN it_afko
WHERE aufpl EQ it_afko-aufpl.

SELECT objty
objid
equnr FROM crve_a
INTO CORRESPONDING FIELDS OF TABLE it_crve_a
FOR ALL ENTRIES IN it_affh
WHERE objty EQ it_affh-objty
AND objid EQ it_affh-objid.

SELECT equnr
eqktx
eqktu FROM eqkt
INTO CORRESPONDING FIELDS OF TABLE it_eqkt
FOR ALL ENTRIES IN it_crve_a
WHERE equnr EQ it_crve_a-equnr.

but for this i'm getting the test equipment for inspection lot but i want that for operation level and i dont which tables to use and how to pick please help me to get those details

Thanks and best regards

Sreenivas P

Accepted Solutions (0)

Answers (2)

Answers (2)

peter_atkin
Active Contributor
0 Kudos

AFFH stores the PRT data for PM/SC order operations.

PeteA

former_member198406
Contributor
0 Kudos

Hi,

try PLFH table which stores the PRT data for task list

Regards,

Dipeshkumar Bhavsar