Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to navigate to ABAPDOCU

OttoGold
Active Contributor
0 Kudos

Hello.

I would like to navigate to ABAPDOCU glossary from my application. I couldn't find a way how to do it but can't believe i am the first one with the idea. Has anyone ever done that before?

cheers Otto

1 ACCEPTED SOLUTION

OttoGold
Active Contributor
0 Kudos

I found function module  ABAP_DOCU_SHOW, but that thing does not open up. I obviously read the documentation and know i must use the cl_abap_docu=>show, but that does not open up either. Funny thing is that when I call it by double-clicking in report ABAP_DOCU_LIST, it works just fine. What is that I am missing?

cheers Otto

4 REPLIES 4

OttoGold
Active Contributor
0 Kudos

I found function module  ABAP_DOCU_SHOW, but that thing does not open up. I obviously read the documentation and know i must use the cl_abap_docu=>show, but that does not open up either. Funny thing is that when I call it by double-clicking in report ABAP_DOCU_LIST, it works just fine. What is that I am missing?

cheers Otto

0 Kudos

Hi Otto,

it seems that you have to call a dynpro screen, then the documentation is displayed.


REPORT z_test_abap_docu.

DATA: docu_container TYPE REF TO cl_gui_control.

cl_abap_docu=>show(

  EXPORTING

    area          = 'ABEN'

    name          = 'REGEX_SYNTAX'

  IMPORTING

    docu_container = docu_container ).

CALL SCREEN 0100.

*&---------------------------------------------------------------------*

*&      Module  STATUS_0100  OUTPUT

*&---------------------------------------------------------------------*

*      text

*----------------------------------------------------------------------*

MODULE status_0100 OUTPUT.

  IF docu_container IS BOUND.

    cl_gui_control=>set_focus(

        EXPORTING

          control          = docu_container    " Control

        EXCEPTIONS

          cntl_error      = 1

          cntl_system_error = 2

          OTHERS          = 3 ).

    IF sy-subrc <> 0.

      MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno

                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4

                DISPLAY LIKE sy-msgty.

    ENDIF.

  ENDIF.

ENDMODULE.                " STATUS_0100  OUTPUT

Regards Christian    

0 Kudos

This behaviour is caused by the SUPPRESS DIALOG statement in the dynpro processing of FM ABAP_DOCU_SHOW.

OttoGold
Active Contributor
0 Kudos

Thanks Christian, much appreciated. I would be wasting time, I didn't realize this detail.

cheers Otto