12-09-2011 1:14 PM
Hi,
I have tried to find the replacement for FM MM_HISTORY_POPUP_SHOW.So can anyone provide me a new FM for MM_HISTORY_POPUP_SHOW as it is obsolete in ECC 6.0.
Thanks ,
Rajesh.
09-23-2014 3:43 PM
I had the same problem, but couldn't find any replacement.
The funny thing that I found 1789323 - PO History: WPOHF4D does not show delivery costs,
which contains correction for this FM and valid even for SAP ERP 616. So it seems it's so obsolete, that it's still being maintained
11-03-2015 3:15 PM
In case someone else needs:
As in the system I'm working at (SAP_APPL 617 0006) MM_HISTORY_POPUP_SHOW is marked obsolete as well, I've researched the logic behind the Show PO History icon in transaction ME2L (include LMEREPI28 - local class LCL_ENV_ICON_PO_HIST implementation).
It contains basically below logic (which I adapted to my report):
DATA:
lr_factory TYPE REF TO if_mmpur_history_factory,
lr_handle TYPE REF TO if_mmpur_history.
CALL FUNCTION 'MMHIPO_GET_FACTORY'
IMPORTING
eo_factory = lr_factory.
TRY.
lr_handle = lr_factory->get_document_handle( iv_document = i_ebeln
iv_doc_item = i_ebelp ).
lr_handle->call_gui( cl_mmpur_constants=>yes ).
lr_factory->close( i_ebeln ).
CATCH cx_mmpur_not_found.
RETURN.
CATCH cx_mmpur_not_relevant.
RETURN.
ENDTRY.
This function module is inside the same group as the obsolete one, and although it has a completely different logic, CALL_GUI method ends up calling dynamically the same dynpro (0200).
Regards