Web-based company help
By Imre Kabai

This tip is used with the permission of Imre Kabai. Please do not reproduce it without first contacting him.

This program is used to define a transaction ( e.g. YWEB ), that can be started from

    Requires Free Membership to View

the help menu of the sapgui. When started, it runs Netscape and opens the root web page of the company's help pages.

If the default location of the Netscape is not correct, the program starts a file browser window to locate it. To set it up, you have to create a new transaction with se93 and modify the statuses of menusyst using se41.


REPORT YWEBHELP.
DATA: FILE(100), CHECK(12), RC LIKE SY-SUBRC, I TYPE I.
FILE = 'Y:appswindowsnetscape.exe'.
PERFORM START_NETSCAPE.
IF RC = 1.
  DO.
    CALL FUNCTION 'WS_FILENAME_GET'
         EXPORTING
              DEF_FILENAME     = 'netscape.exe'
              DEF_PATH         = 'c:'
              MASK             = ',*.*,*.*.'
              MODE             = 'O'
         TITLE           = 'Please specify the locaton of netscape.exe'
         IMPORTING
              FILENAME         = FILE
         EXCEPTIONS
              INV_WINSYS       = 1
              NO_BATCH         = 2
              SELECTION_CANCEL = 3
              SELECTION_ERROR  = 4
              OTHERS           = 5.
    IF SY-SUBRC = 3.
      EXIT.
    ELSEIF SY-SUBRC = 0.
      PERFORM START_NETSCAPE.
      IF RC = 0.
        EXIT.
      ENDIF.
    ENDIF.
  ENDDO.
ENDIF.

*---------------------------------------------------------------------*
*       FORM START_NETSCAPE                                           *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
FORM START_NETSCAPE.
  I = STRLEN( FILE ).
  I = I - 12.
  CHECK = FILE+I(12).
  TRANSLATE CHECK TO UPPER CASE.
  IF CHECK = 'NETSCAPE.EXE'.
    CALL FUNCTION 'WS_EXECUTE'
         EXPORTING
              PROGRAM        = FILE
              COMMANDLINE    = 'file:///c:/basfhelp/index.htm'
              INFORM         = ''
         EXCEPTIONS
              PROG_NOT_FOUND = 1.
    RC = SY-SUBRC.
  ELSE.
    RC = 1.
  ENDIF.
ENDFORM.                               "start_netscape

View this tip and others like it at Kabai.com.

Did you like this tip? Let us know by sending an email.

Related Book
A Methodology for Developing & Deploying Internet & Intranet Solutions, 1/e
Author : Jeff R. Greenberg
Publisher : Prentice Hall
ISBN/CODE : 0132096773
Cover Type : Hard Cover
Pages : 400
Published : Jan 1998
Summary:
he book discusses the issues faced in trying to plan and manage the implementation of Internet and Intranets, client-server technology, infrastructure development and advance project management for enterprise-wide deployment. It tracks a high tech computer application from bid to implementation. It does so in a rather colorful style and written for both experienced and novice manager.

This was first published in May 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.