Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Downloading Master Data

Former Member
0 Likes
643

Dear All,

I am to download master data for MM. We might need 40 to 200 fields to download.

The area of concern is we do not know what is the volume of data ( might be 5,00,000+ ).

Please suggest a viable alternative to download the data since gui_download to excel sheet might not be a good option.

Dear All,

I am to download master data for MM. We might need 40 to 200 fields to download.

The area of concern is we do not know what is the volume of data ( might be 5,00,000+ ).

Please suggest a viable alternative to download the data since gui_download to excel sheet might not be a good option.

3 REPLIES 3
Read only

Former Member
0 Likes
558

Try using the FM TABLE_EXPORT_TO_MSACCESS .

Hope this helps.

Thanks,

Balaji

Read only

Former Member
0 Likes
558

Excel can be limited to 64k lines depending on version.

If you need it externally, you option could be to export (WS_DOWNLOAD) as a tab delimited file.

WS_DOWNLOAD is only good when going to your local PC.

IF you want to go to an Application Server, you'll need to use something along these lines:



  CONSTANTS: c_tab TYPE x VALUE '09'.

  OPEN DATASET archfilname FOR OUTPUT IN TEXT MODE MESSAGE t_mesg.
  IF sy-subrc NE 0.
    MOVE 'X' TO t_error.
    MESSAGE e100(z0) WITH 'Error opening achrive file:' t_mesg.
    EXIT.
  ENDIF.

  LOOP AT it_out INTO out_rec.
    CONCATENATE
        out_rec-recnum
        out_rec-leadid
        out_rec-ltype
        out_rec-ltype_txt
        out_rec-status
        out_rec-status_txt
        out_rec-statdt
        out_rec-branch
        out_rec-brtextextd
        out_rec-fname
        out_rec-mname
        out_rec-lname
        out_rec-street
        out_rec-city
        out_rec-state
        out_rec-zip
        out_rec-telf1
        out_rec-telf2
        out_rec-telf3
        out_rec-telf3_ext
        out_rec-email
        out_rec-prefcont
        out_rec-prefcont_txt
        out_rec-ctype
        out_rec-ctype_txt
        out_rec-heard
        out_rec-heard_txt
        out_rec-heard_other_text
        out_rec-email_promo
        out_rec-email_promo_txt
        out_rec-creside
        out_rec-creside_txt
        out_rec-zown
        out_rec-zown_txt
        out_rec-bld_tm
        out_rec-bld_tm_txt
        out_rec-ownland
        out_rec-ownland_txt
        out_rec-spnum
        out_rec-cmt1
        out_rec-statseq
        out_rec-actseq
        out_rec-acttyp
        out_rec-acttyp_txt
        out_rec-actrst
        out_rec-actrst_txt
        out_rec-acmt
        out_rec-folseq
        out_rec-foltyp
        out_rec-foltyp_txt
        out_rec-fcmt
      INTO arch_rec
      SEPARATED BY c_tab.
    TRANSFER arch_rec TO archfilname.
  ENDLOOP.
  CLOSE DATASET archfilname.

Read only

Former Member
0 Likes
558

Thanks!