Two years ago we implemented a classic badi for badi definition CRM_PRODUCT_I_BADI. Within the badi we need to determine the transaction header GUID. For the last two years the badi has operated by calling function module CRM_INTLAY_GET_HEADER_GUID to retrieve the header GUID. This function module still works fine if you are processing from within SAPgui. However, if you are processing from within the WebClient UI the function module no longer works because the header GUID is no longer buffered in that function group.
I have resorted to using function module CRM_ORDERADM_H_GET_OB but I am wondering if anyone knows of a more elegant replacement for function module CRM_INTLAY_GET_HEADER_GUID that will work in the WebClient UI? Perhaps something that pulls the header GUID out of the BOL core? Thanks.