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

Программа для просмотра текста программ



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP Dictionary
View previous topic :: View next topic  
Author Message
John Doe
Модератор
Модератор


Age: 46
Joined: 05 Nov 2007
Posts: 725
Location: КраснАдар

PostPosted: Thu Apr 02, 2009 12:10 pm    Post subject: Программа для просмотра текста программ Reply with quote

Просто приблудка
Code:
PARAMETERS: programm TYPE programm MEMORY ID rid.

DATA: it_coding TYPE TABLE OF d022s,
      it_docu TYPE TABLE OF tline,
      it_textpool TYPE TABLE OF textpool.
DATA: repid LIKE sy-repid,
      dynpfields TYPE TABLE OF dynpread WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR programm.
  dynpfields-fieldname  = 'RS38M-PROGRAMM'.
  APPEND dynpfields.
  repid = sy-repid.
  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            dyname     = repid
            dynumb     = sy-dynnr
       TABLES
            dynpfields = dynpfields
       EXCEPTIONS
            OTHERS.
  READ TABLE dynpfields INDEX 1.
  programm = dynpfields-fieldvalue.
  PERFORM program_directory(saplwbabap) USING programm 'X'.

START-OF-SELECTION.
  CALL FUNCTION 'RV_REPORT_READ'
    EXPORTING
      rr_reportname        = programm
    TABLES
      rr_coding            = it_coding
      rr_docu              = it_docu
      rr_textpool          = it_textpool
    EXCEPTIONS
      model_code_not_found = 1
      OTHERS               = 2.
  IF sy-subrc <> 0.
    MESSAGE 'Not found' TYPE 'E'.
  ENDIF.

  EDITOR-CALL FOR it_coding DISPLAY-MODE TITLE programm.
Back to top
View user's profile Send private message Blog
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP Dictionary 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.