SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Display of the report documentation on any screen



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Search Help, Match Code
View previous topic :: View next topic  
Author Message
vga
Мастер
Мастер


Age: 195
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Sat Nov 29, 2008 4:03 pm    Post subject: Display of the report documentation on any screen Reply with quote

Coding example: often, the report documentation not only on the selection screen. Within a ALVs example, is in default only the documentation of the ALVs displayed. So show the report documentation on any screen.

Code:
* The UI gets its own / modified GUI status'0100 '
* This ethalt a function key 'HLP':

* Function code HLP
* Function_type application function

* Use Text Application Help
* Name icon ICON_INFORMATION
* Text icon
* Info text Help
* Direct dialing
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------*
MODULE user_command_0100 INPUT.
  g_ok_code = sy-ucomm.
  CASE g_ok_code.
    when 'HLP'.
*     Programmdokumentation anzeigen
      perform doku_anzeigen.
    WHEN OTHERS.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT


Code:
*&---------------------------------------------------------------------*
*&      Form  doku_anzeigen
*&---------------------------------------------------------------------*
FORM doku_anzeigen.

  * Ad Program documentation
  * The course can be even without programming effort from the menu
  * About "system" -> "Application Help" display, but so
  * One has the same print button in the status bar like in a
  * Report normal.
  DATA:
  l_help_infos TYPE help_info,
  lt_dynpselect TYPE TABLE OF dselc WITH HEADER LINE,
  lt_dynpvaluetab TYPE TABLE OF dval WITH HEADER LINE.

  l_help_infos-call      = 'H'.
  l_help_infos-object    = 'F'.
  l_help_infos-program   = sy-cprog.
  l_help_infos-dynpro    = sy-dynnr.
  l_help_infos-spras     = sy-langu.
  l_help_infos-menufunct = 'ERHI'.
  l_help_infos-tcode     = sy-tcode.
  l_help_infos-pfkey     = '0100'.
  l_help_infos-docuid    = 'FE'.
  l_help_infos-dynpprog  = sy-cprog.

  CALL FUNCTION 'HELP_START'
       EXPORTING
            help_infos   = l_help_infos
       TABLES
            dynpselect   = lt_dynpselect
            dynpvaluetab = lt_dynpvaluetab.

ENDFORM.                    " doku_anzeigen
Back to top
View user's profile Send private message Blog Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Search Help, Match Code All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.