Web-based company help

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

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 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

Dig deeper on SAP Web applications

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

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:

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close