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

Download Text Symbols, Selection Text, List Headings



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



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Wed Sep 05, 2007 6:47 pm    Post subject: Download Text Symbols, Selection Text, List Headings Reply with quote

Author: Darshan Patel

Description: ABAP- Program to Down load all Text Symbols, Selection Text and List Headings of Particular Program

Code:
DATA: it_pool LIKE TABLE OF textpool.DATA: BEGIN OF it_fname OCCURS 0 ,
       name(80),
     END OF it_fname.DATA: BEGIN OF wa_out,
        id     TYPE textpoolid,
        key    TYPE textpoolky,
        entry  TYPE textpooltx,
        entry2 TYPE textpooltx,
END OF wa_out.

START-OF-SELECTION.
 READ TEXTPOOL p_prog INTO it_pool LANGUAGE sy-langu. 
 LOOP AT it_pool.
    wa_out-id = it_pool-id.
    wa_out-key = it_pool-key.
    wa_out-entry = it_pool-entry.
    APPEND wa_out TO it_out.
  ENDLOOP.  it_fname-name = 'ID'.
  APPEND it_fname.
  it_fname-name = 'KEY'.
  APPEND it_fname.
  it_fname-name = 'ENTRY IN ENGLISH'.
  APPEND it_fname.
  it_fname-name = 'ENTRY IN OTHER LANGUAGE'.
  APPEND it_fname.
*  CONCATENATE: p_fpath p_prog '.XLS' INTO p_fpath. 

CALL FUNCTION 'WS_DOWNLOAD'
       EXPORTING
            filename                = 'C:\data1.txt'
            filetype                = 'DAT'
       TABLES
            data_tab                = it_out
            fieldnames              = it_fname
       EXCEPTIONS
            file_open_error         = 1
            file_write_error        = 2
            invalid_filesize        = 3
            invalid_type            = 4
            no_batch                = 5
            unknown_error           = 6
            invalid_table_width     = 7
            gui_refuse_filetransfer = 8
            customer_error          = 9
            OTHERS                  = 10.
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    MESSAGE e000(zmul).
  ELSE.
    MESSAGE s001(zmul) .
  ENDIF.
  CLEAR:it_out.
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 -> ABAP Dictionary -> Migration 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.