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

Download Z*Objects

Former Member
0 Likes
1,413

Hello All,

Is there any standard report in SAP that downloads all the Z Custom objects/reports along with the Titles of these objects or the method of going to TRDIRT and D010SINF to get the Zobject name, title and the Program Type.

Do let me know the best method or the easiest method to achieve this.

TQ

- Sravan

Hello All,

Is there any standard report in SAP that downloads all the Z Custom objects/reports along with the Titles of these objects or the method of going to TRDIRT and D010SINF to get the Zobject name, title and the Program Type.

Do let me know the best method or the easiest method to achieve this.

TQ

- Sravan

5 REPLIES 5
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,131

Hi Sravan

I do not know a standard report but you may utilize some functions in the function group <b>"SEUA"</b>. For example the function module <b>"RS_GET_OBJECTS_OF_DEVCLASS"</b> gives you object types and their names included in a development class. To select development classes in your namespace, you can write a query for the table <b>"TDEVC"</b>. Or if you inspect some further, you may find some more standard way.

Hope this helps...

*--Serdar

Read only

Peter_Inotai
Active Contributor
0 Likes
1,131

You might try Direct Download free program, which downloadable from here: http://www.dalestech.com/ .

Peter

Read only

0 Likes
1,131

http://www.sap.com/community/int/forums/ShowPost.aspx?PostID=63871&SearchText=download%20program

try this prog, I tested it before.

REPORT ZBAK_UP .

TABLES : TADIR,TRDIRT.

DATA: BEGIN OF ITAB OCCURS 100,

TEXT(75),

END OF ITAB.

DATA: BEGIN OF REPNAME OCCURS 10,

OBJ_NAME LIKE TADIR-OBJ_NAME,

END OF REPNAME.

PARAMETERS : DEVCLASS LIKE TADIR-DEVCLASS,

DIRNAME(50) DEFAULT 'C:\'.

SELECT * FROM TADIR INTO CORRESPONDING FIELDS OF TABLE REPNAME WHERE

OBJECT = 'PROG' AND DEVCLASS = DEVCLASS.

DATA NAME LIKE RLGRAP-FILENAME.

LOOP AT REPNAME.

READ REPORT REPNAME-OBJ_NAME INTO ITAB.

****Get report title

SELECT SINGLE * FROM TRDIRT WHERE NAME EQ REPNAME-OBJ_NAME

AND SPRSL = 'E'.

CONCATENATE '*' TRDIRT-TEXT INTO TRDIRT-TEXT.

INSERT TRDIRT-TEXT INTO ITAB INDEX 1.

CONCATENATE DIRNAME '\' REPNAME-OBJ_NAME '.txt'

INTO NAME.

*exit.

CALL FUNCTION 'WS_DOWNLOAD'

EXPORTING

FILENAME = NAME

TABLES

DATA_TAB = ITAB

EXCEPTIONS

FILE_OPEN_ERROR = 1

FILE_WRITE_ERROR = 2

INVALID_FILESIZE = 3

INVALID_TABLE_WIDTH = 4

INVALID_TYPE = 5

NO_BATCH = 6

UNKNOWN_ERROR = 7

GUI_REFUSE_FILETRANSFER = 8

OTHERS = 9.

ENDLOOP.

MESSAGE I002(SY) WITH 'All the reports transfered Succefully'.

Read only

0 Likes
1,131

Hi Wang,

Thanks for the posting.

I had a look into the code that was posted and in my code i used tables TRDIRT (Title texts for programs in TRDIR)and D010SINF (Information about ABAP program)

The coding was done on the same lines as urs, only the table names change. Do you think this is the right tables, do correct me if i am wrong.

Regs,

- Sravan

Read only

0 Likes
1,131

I had not changed the original code from sap community forum.

It works well and run fast than my imagine. You may test this piece of program. I had never found any bugs or bad impacts.

Very short program it is!

No matter what table it uses, the important is to outcome your expected result.