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

Show documentation



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Dialog Programming
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1636

PostPosted: Fri Jun 27, 2008 1:44 pm    Post subject: Show documentation Reply with quote

Code:
FORM info_texte_anzeigen.

  DATA: BEGIN OF i_excl OCCURS 0,
  func(4) TYPE c,
  END OF i_excl.

  DATA:
  i_line LIKE tline OCCURS 0 WITH HEADER LINE,
  i_line_h LIKE tline OCCURS 0 WITH HEADER LINE,
  s_hinfo LIKE help_info,
  tdname LIKE thead-tdname,
  tdspras LIKE thead-tdspras.

* Texte lesen
  tdname = kunnr.
  IF zv05_ad-spras IS INITIAL.
    tdspras = sy-langu.
  ELSE.
    tdspras = kna1-spras.
  ENDIF.
  CALL FUNCTION 'READ_TEXT'
       EXPORTING
            id                      = '9002'
            language                = tdspras
            name                    = tdname
            object                  = 'KNA1'
       TABLES
            lines                   = i_line_h
       EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.
  IF sy-subrc = 0.
    APPEND LINES OF i_line_h TO i_line.
  ENDIF.
  CALL FUNCTION 'READ_TEXT'
       EXPORTING
            id                      = '9003'
            language                = tdspras
            name                    = tdname
            object                  = 'KNA1'
       TABLES
            lines                   = i_line_h
       EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.
  IF sy-subrc = 0.
    IF NOT i_line[] IS INITIAL.
      i_line = text-103.
      APPEND i_line.
    ENDIF.
    APPEND LINES OF i_line_h TO i_line.
  ENDIF.
  IF i_line[] IS INITIAL.
    MESSAGE s513.
    EXIT.
  ENDIF.

* Text anzeigen
  s_hinfo-title = 'Info texts to customers'.
  i_excl = 'ERHI'. APPEND i_excl.
  i_excl = 'DINF'. APPEND i_excl.
  i_excl = 'VPFL'. APPEND i_excl.
  i_excl = 'DWFL'. APPEND i_excl.
  i_excl = 'DCAN'. APPEND i_excl.
  CALL FUNCTION 'HELP_DOCULINES_SHOW'
       EXPORTING
            cucol      = 3
            curow      = 5
            help_infos = s_hinfo
            not_help   = 'X'
       TABLES
            excludefun = i_excl
            helplines  = i_line
       EXCEPTIONS
            OTHERS     = 1.

ENDFORM. " INFO_TEXTE_ANZEIGEN
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Dialog Programming 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.