Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Translate the entire conversation x

End Item object from Change Issue and Change Request

adev
1-Visitor

End Item object from Change Issue and Change Request

Hello Team,

Can any one help to to get the Affected EndItem from the Change Issue and Change Request using Windchill api and dbtable

ACCEPTED SOLUTION

Accepted Solutions
BineshKumar1
13-Aquamarine
(To:adev)

Try this

SELECT

  wtc.wtchgrequestnumber as "CRNumber",

  wtc.name AS "CRName",

  wtp.name as "EndItemName",

  wtp.wtpartnumber as "EndItemNumber"

FROM

  WTPartMaster wtp,

  WTChangeRequest2Master wtc,

  SubjectProduct sp,

  controlbranch cb

WHERE

  wtp.ida2a2= sp.ida3a5 AND

  sp.branchida3b5= cb.ida2a2 AND

  cb.ida3b5=wtc.ida2a2;

Thank you

Binesh Kumar

View solution in original post

3 REPLIES 3
satre-2
12-Amethyst
(To:adev)

use below API to get affected enditems for CR and see subjectprouct table in DB 

ChangeHelper2.service.getSubjectProducts(cr);

Thanks

Shreyas

adev
1-Visitor
(To:satre-2)

thank you Shreyas or your answer do you also know the database table from there we can get the endItem object

BineshKumar1
13-Aquamarine
(To:adev)

Try this

SELECT

  wtc.wtchgrequestnumber as "CRNumber",

  wtc.name AS "CRName",

  wtp.name as "EndItemName",

  wtp.wtpartnumber as "EndItemNumber"

FROM

  WTPartMaster wtp,

  WTChangeRequest2Master wtc,

  SubjectProduct sp,

  controlbranch cb

WHERE

  wtp.ida2a2= sp.ida3a5 AND

  sp.branchida3b5= cb.ida2a2 AND

  cb.ida3b5=wtc.ida2a2;

Thank you

Binesh Kumar

Announcements



Top Tags