Skip to Content
author's profile photo Former Member
Former Member

Get Installation Number

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?

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2004 at 09:35 AM

    Is there a function you can use to check if a function exists before calling it?

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2004 at 10:24 AM

    <%

    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 comment
    10|10000 characters needed characters exceeded