"-Begin-----------------------------------------------------------------
REPORT Z_GET_DEST.
TYPES: BEGIN OF ty_dest,
name TYPE ecsd_sys-name, "Name of the System Data
testsystem TYPE ecsd_sys-testsystem, "Target system
rfcdest TYPE ecsd_sys-rfcdest, "RFC destination
rfcoptions TYPE rfcdes-rfcoptions, "Options of RFC destination
rfcdoc1 TYPE rfcdoc-rfcdoc1, "Description 1 of RFC destination
END OF ty_dest.
DATA:
lt_dest TYPE STANDARD TABLE OF ty_dest.
SELECT
sys~name,
sys~testsystem,
sys~rfcdest,
rfcdes~rfcoptions,
rfcdoc~rfcdoc1
FROM
ecsd_def AS def
LEFT OUTER JOIN ecsd_sys AS sys ON sys~name = def~name
LEFT OUTER JOIN rfcdes AS rfcdes ON sys~rfcdest = rfcdes~rfcdest
LEFT OUTER JOIN rfcdoc AS rfcdoc on rfcdes~rfcdest = rfcdoc~rfcdest
INTO CORRESPONDING FIELDS OF TABLE @lt_dest
WHERE rfcdoc~rfclang = 'D' OR rfcdoc~rfclang IS NULL
ORDER BY def~name.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\Users\YourName\dest.csv'
filetype = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = lt_dest
EXCEPTIONS
others = 1.
"-End-------------------------------------------------------------------
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
4 | |
4 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |