cancel
Showing results for 
Search instead for 
Did you mean: 

Need to determine first item on Services tab - COMMPR01

Former Member
0 Kudos

Hello:

We are maintaining service items corresponding to material items in Transaction COMMPR01. Service items are accessed by clicking on the Relationships button for a particular material, and then on the Services tab.

Our requirement is to determine the first service material maintained on the Services page, based on a given material (Material GUID-Service GUID relationship can be obtained in table COMM_IL_SERVI). Can someone please point me in the right direction to achieve this functionality?

Thanks!

-John

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

I'm not sure of how the screen logic sorts them. You might have to do some debugging.

Cheers

Dom

Former Member
0 Kudos

Hi

Is this what you are after?

Call function 'CRM_PRODUCT_GETDETAIL_API' (request the right interlinkage, or choose All Interlinkages to get started). Specify the product GUID in is_product-product_guid.

Read the first line in es_interlinkages-COMM_IL_SERVI.

Cheers

Dom

Former Member
0 Kudos

Hi Dom,

Thanks for getting back. The FM will retrieve the service guids (sorted by the relationship GUID, I guess), but I am not sure if it will retrieve them in the order that the corresponding service IDs are being maintained on the tabscreen. Is there a way I can get the first service ID on the screen? Would I have to look at the underlying table control for this?

Thanks,

John