Skip to Content
0

PRT against inspection operations application

Mar 20, 2017 at 08:59 AM

64

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Dipeshkumar Bhavsar Mar 20, 2017 at 10:14 AM
0

Hi,

try PLFH table which stores the PRT data for task list

Regards,

Dipeshkumar Bhavsar

Share
10 |10000 characters needed characters left characters exceeded
Peter Atkin Mar 21, 2017 at 07:28 AM
0

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

PeteA

Share
10 |10000 characters needed characters left characters exceeded