Skip to main content
Solved

Unable to Find “Commodity Group 2” in PURCHASE_REQ_LINE_ALL View using Datasource Designer – Alternative Ways to Access It?


awelsh
Do Gooder (Customer)
Forum|alt.badge.img+2
  • Do Gooder (Customer)
  • 4 replies

Hi all,

I’m working with IFS Cloud and trying to retrieve the Commodity Group 2 field from the Purchase Requisition Lines page. However, I can’t find it in Data Source Designer within the PURCHASE_REQ_LINE_ALL view.

 

From the Debug Console, I see the following details:

 

• LU Name: PurchaseReqLine

• Projection: PurchaseRequisitionLinesHandling

• Entity Set: PurchaseReqLineSet

• Entity: PurchaseReqLine

• View: PURCHASE_REQ_LINE_ALL

• Component: PURCH

 

I’ve checked the columns in the PURCHASE_REQ_LINE_ALL view, but I don’t see Commodity Group 2 listed. Is it possible that this field is stored in another table or fetched dynamically through another projection?

 

If it’s in a different table, would anyone know the correct join conditions or an alternative where query to access it?

Or is this field perhaps derived from a different entity that I should be using?

 

Any advice on where to find this field or how to retrieve the relevant commodity group or codes would be greatly appreciated!

 

Thanks in advance!

 

 

Best answer by Abdul

Hi ​@awelsh,

Please add a custom column with below getter function in your Data Source Designer having view PURCHASE_REQ_LINE_ALL 

INVENTORY_PART_API.GET_SECOND_COMMODITY(CONTRACT,PART_NO)

 

Regards

Abdul Rehman

View original
Did this topic help you find an answer to your question?

4 replies

awelsh
Do Gooder (Customer)
Forum|alt.badge.img+2
  • Author
  • Do Gooder (Customer)
  • 4 replies
  • March 4, 2025

Perhaps it can be done by accessing the LOV? 

Name: CommodityGroup2, Mandatory: false, Translation Path: PurchaseRequisitionLines.list.RequisitionDetailList.listcontent.field.CommodityGroup2Ref, LOV: ReferenceCommodityGroupSelector (Reference_CommodityGroup)

Any advice on getting the field values for use in my query would be much appreciated!


Abdul
Superhero (Partner)
Forum|alt.badge.img+12
  • Superhero (Partner)
  • 246 replies
  • Answer
  • March 4, 2025

Hi ​@awelsh,

Please add a custom column with below getter function in your Data Source Designer having view PURCHASE_REQ_LINE_ALL 

INVENTORY_PART_API.GET_SECOND_COMMODITY(CONTRACT,PART_NO)

 

Regards

Abdul Rehman


awelsh
Do Gooder (Customer)
Forum|alt.badge.img+2
  • Author
  • Do Gooder (Customer)
  • 4 replies
  • March 4, 2025

Thank you for your quick reply ​@Abdul, this worked. Do you know if there is any IFS Cloud Technical Documentation or otherwise which has more information onhow to use getter functions like these in queries? 


awelsh
Do Gooder (Customer)
Forum|alt.badge.img+2
  • Author
  • Do Gooder (Customer)
  • 4 replies
  • March 4, 2025

Regarding my second question, I have managed to find how to access specific API documentation via API Explorer on IFS Cloud, thanks.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings