Posted: Mon Feb 25, 2008 1:45 pm Post subject: Create Transport Request for Table Export
Code:
report zexp_table_exp no standard page heading.
***********************************************************
* Create Transport Request for Table Export
*
* This is freeware. Please read the terms of use.
* Written by Urs Rohner, Rohner IT Consulting & Engineering
*
* Contact Author: Urs Rohner
*
*
* History
* Vers Date Own Remarks
* ---- ------------------- --- ------------------------------------
* 1.10 13th September 2000 rnr initial version
*
***********************************************************
* Global shared
tables:
dd02l.
* Selection Screen
parameters:
table like dd02l-tabname obligatory.
* Globals
data:
user like e070-as4user,
ktext like e07t-as4text,
trkorr like e070-trkorr,
e070 like e070,
e07t like e07t,
e070c like e070c,
e071 like e071 occurs 1 with header line,
e071k like e071k occurs 1 with header line.
*
* P A I ( )
*
start-of-selection.
" check for table existence
clear dd02l.
select * from dd02l where tabname eq table and as4local eq 'A'.
endselect.
if dd02l is initial.
message w208(00) with 'Table not found'(e01).
leave program.
endif.
" check for table class, must be transparent
if dd02l-tabclass ne 'TRANSP'.
message w208(00) with 'Is not transparent'(e05).
leave program.
endif.
" prepare transport request data
user = sy-uname.
ktext = 'Export Client &2 Table &1'(e00).
replace '&1' with table into ktext.
replace '&2' with sy-mandt into ktext.
e071-pgmid = 'R3TR'.
e071-object = 'TABU'.
e071-obj_name = table.
e071-objfunc = 'K'.
append e071.
e071k-pgmid = 'R3TR'.
e071k-object = 'TABU'.
e071k-objname = table.
e071k-mastertype = 'TABU'.
e071k-mastername = table.
if dd02l-clidep eq 'X'.
concatenate sy-mandt '*' into e071k-tabkey.
else.
e071k-tabkey = '*'.
endif.
append e071k.
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.