I am trying to remotely retrieve a system Installation number.
<%
DATA: V_INSTNO TYPE STRING.
CALL FUNCTION 'CMO_GET_INSTNO' DESTINATION rfcdest
IMPORTING
ev_instno = V_INSTNO.
IF SY-SUBRC = 0.
%>
<%=V_INSTNO%>
<%ENDIF.%>
The problem is that only works on our 620 Systems and a couple of the 46C systems. I've been looking for the functions for the other versions to get the data but it's not been easy searching for it.
Can anyone help me out?
<%
DATA: V_INSTNO TYPE STRING.
CALL FUNCTION 'CMO_GET_INSTNO' DESTINATION rfcdest
IMPORTING
ev_instno = V_INSTNO
EXCEPTIONS
others = 7.
IF SY-SUBRC NE 0.
CALL FUNCTION '/SDF/CMO_GET_INSTNO' DESTINATION rfcdest
IMPORTING
ev_instno = V_INSTNO
EXCEPTIONS
others = 7.
ENDIF.
Seems to work ok on 620, 46C, 45B, and 40B with APO 3.0, BW2.0.
Maybe someone else will get some use out of this as well. 😊
Add a comment