Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
ZCOPYPRO

ZCOPYPRO

Ratings: (0)|Views: 1 |Likes:
Published by kattak2k
All the programs will be downloaded to C:\ with the folder name of your sytem id & client. and in that exe programs will be dowladed with .txt format and module pool programs will be downloaded with a folder with like SAPMZ and have withh all it pai,pbo etc modules in it.
All the programs will be downloaded to C:\ with the folder name of your sytem id & client. and in that exe programs will be dowladed with .txt format and module pool programs will be downloaded with a folder with like SAPMZ and have withh all it pai,pbo etc modules in it.

More info:

Categories:Topics, Art & Design
Published by: kattak2k on Oct 07, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

09/17/2013

pdf

text

original

*&---------------------------------------------------------------------*
*& Report ZCOPYPRO
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zcopypro
NO STANDARD PAGE HEADING
LINE-SIZE 255.
**Data Declaration
TYPES : BEGIN OF x_trdir,
name TYPE progname,
subc TYPE subc,
cnam TYPE cnam,
END OF x_trdir.
DATA:g_pname TYPE trdir-name,
t_trdir TYPE STANDARD TABLE OF x_trdir,
w_trdir TYPE x_trdir,
t_trdir1 TYPE STANDARD TABLE OF x_trdir,
w_trdir1 TYPE x_trdir,
t_line TYPE STANDARD TABLE OF string.
DATA: w_filename TYPE string,
w_filename1 TYPE string,
w_filename2 TYPE string,
w_filename3 TYPE string,
w_returncode TYPE i,
w_rc ,
w_name(40) TYPE c .
SELECT-OPTIONS : p_pname FOR g_pname.
START-OF-SELECTION.
REFRESH: t_trdir.
CLEAR w_trdir.
SELECT name
subc
cnam
FROM trdir
INTO TABLE t_trdir
WHERE cnam EQ 'GANGISETTI'
AND subc IN ('1','M','I')
*
AND NAME IN ('Z%','SAPMZ%')
*
AND rstat EQ 'K'
AND name IN p_pname.
IF sy-subrc EQ 0.
LOOP AT t_trdir INTO w_trdir.
READ REPORT w_trdir-name INTO t_line.
IF sy-subrc EQ 0.
CLEAR: w_filename,w_filename1,w_filename2 .
w_filename = w_trdir-name.
CONCATENATE 'C:\' sy-sysid sy-mandt INTO w_filename1.
CALL METHOD cl_gui_frontend_services=>directory_exist
"CHECKING FOLDER
EXPORTING
directory = w_filename1
RECEIVING
result
= w_rc.
IF w_rc EQ space.
CALL METHOD cl_gui_frontend_services=>directory_create "CREATING FOLDE
R
EXPORTING
directory = w_filename1
CHANGING
rc
= w_returncode.
ENDIF.
IF w_trdir-subc EQ '1'.
CONCATENATE w_filename1 '\' w_filename '.TXT' INTO w_filename2.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = w_filename2
filetype = 'ASC'
CHANGING
data_tab = t_line.
ELSEIF w_trdir-subc EQ 'M'.
CONCATENATE w_filename1 '\' w_trdir-name INTO w_filename3.
CALL METHOD cl_gui_frontend_services=>directory_exist
"CHECKING FOLD
ER
EXPORTING
directory = w_filename3
RECEIVING
result
= w_rc.
IF w_rc EQ space.
CALL METHOD cl_gui_frontend_services=>directory_create "CREATING FOL
DER
EXPORTING
directory = w_filename3
CHANGING
rc
= w_returncode.
ENDIF.
CLEAR w_filename2.
CONCATENATE w_filename3 '\' w_trdir-name '.TXT' INTO w_filename2.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = w_filename2
filetype = 'ASC'

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->