Tip

Program search tool

Use this program to search for programs using a part of the description of the program.

*Searching for programs using SAP Find utility is case sensitive.
*This tool is case-insensitive and provides a Full Text search for the description(there is no need to specify asterisks).
*This tool displays the program in SE38 by double-clicking the program name.
REPORT ZPRGPRGDESC.

TABLES : D010SINF,TRDIRT.

CONSTANTS: C_TABCOL TYPE I VALUE 1,
           C_TABDESCCOL TYPE I VALUE 42.

DATA:  BEGIN OF IT OCCURS 10,
PROG LIKE D010SINF-PROG,
TEXT LIKE TRDIRT-TEXT,
END OF IT.

DATA: WS_FOUND TYPE I VALUE 0.

DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.

DATA: FLD(30),
      VAL LIKE D010SINF-PROG.

PARAMETERS: P_DESC(50).

INITIALIZATION.
  SELECT D010SINF~PROG  TRDIRT~TEXT FROM
  TRDIRT INNER JOIN D010SINF ON D010SINF~PROG = TRDIRT~NAME
  INTO  TABLE IT
  WHERE TRDIRT~SPRSL = 'E'
  AND D010SINF~SUBC ='1'.

START-OF-SELECTION.
  MOVE 0 TO SY-TABIX.
  WS_FOUND = 0.
  DO.
    SY-TABIX = SY-TABIX + 1.
    SEARCH IT FOR P_DESC STARTING AT SY-TABIX.
    IF SY-SUBRC NE 0.
      EXIT.
    ENDIF.
    WS_FOUND = 1.

    READ TABLE IT INDEX SY-TABIX.
    WRITE AT : /C_TABCOL IT-PROG,
                C_TABDESCCOL IT-TEXT.
  ENDDO.
  IF WS_FOUND NE 1.
    WRITE 'NO PROGRAMS FOUND'.
  ENDIF.

AT LINE-SELECTION.
  GET CURSOR FIELD FLD VALUE VAL.
  IF FLD = 'IT-PROG'.
    REFRESH BDCDATA.

    CLEAR BDCDATA.

    Requires Free Membership to View

BDCDATA-PROGRAM = 'SAPLWBABAP'. BDCDATA-DYNPRO = '0100'. BDCDATA-DYNBEGIN = 'X'. APPEND BDCDATA. CLEAR BDCDATA. BDCDATA-FNAM = 'RS38M-PROGRAMM'. BDCDATA-FVAL = VAL. APPEND BDCDATA. CLEAR BDCDATA. BDCDATA-FNAM = 'BDC_OKCODE'. BDCDATA-FVAL = 'SHOP'. APPEND BDCDATA. ENDIF.

This was first published in January 2002

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.