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

Print DynPro list



 
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: 1640

PostPosted: Fri Jun 27, 2008 1:30 pm    Post subject: Print DynPro list Reply with quote

Code:
*Dynpro drucken
DATA:
dynpro_list LIKE dynp_list OCCURS 0 WITH HEADER LINE,
params LIKE pri_params.

* Druckparameter zum akt. Benutzer bestimmen (MODE = CURRENT)
CALL FUNCTION 'GET_PRINT_PARAMETERS'
     EXPORTING
          in_parameters          = params
          mode                   = 'CURRENT'
          no_dialog              = 'X'
          line_count             = 44
          line_size              = 82
     IMPORTING
          out_parameters         = params
     EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.

* Dynpro in Listzeilen umwandeln
CALL FUNCTION 'GET_DYNPRO_LIST'
     EXPORTING
          dyname                     = sy-cprog
          dynumb                     = sy-dynnr
          process_actual_dynpro      = 'X'
     TABLES
          dynpro_list                = dynpro_list
     EXCEPTIONS
          no_such_dynpro             = 1
          no_include_dynpro_infos    = 2
          wrong_include_dynpro_infos = 3
          OTHERS                     = 4.

* Umschaltung auf Listausgabe (und sofortigem Springen zur Maske der
* Druckparameter durch 'PRINT ON')
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN sy_dynnr.
SET PF-STATUS '9900'.
SET TITLEBAR '990' WITH sy-dynnr.
NEW-PAGE NO-TITLE PRINT ON NO DIALOG PARAMETERS params.

* Dynpro als Liste ausgeben
CALL FUNCTION 'PRINT_DYNPRO_LIST'
     TABLES
          dynpro_list = dynpro_list
     EXCEPTIONS
          list_empty  = 1
          OTHERS      = 2.
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.