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

Related questions

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.