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

Define Report Tree

Former Member
0 Likes
672

How to define a report tree?

5 REPLIES 5
Read only

Former Member
0 Likes
601

Hi,

check the program "SAPTLIST_TREE_CONTROL_DEMO".

regards,

bharat.

Read only

Former Member
0 Likes
601
Read only

Former Member
0 Likes
601

hi satya

look at these demo programs

SAP List Tree: SAPSIMPLE_TREE_CONTROL_DEMO

SAP Column Tree : SAPCOLUMN_TREE_CONTROL_DEMO

SAP Easy Tree : SAPSIMPLE_TREE_CONTROL_DEMO

BCALV_GRID_DND_TREE

BCALV_GRID_DND_TREE_SIMPLE

for ALV tree report

hopen it helps

regards

navjot

reward oints accordingly

Message was edited by:

navjot sharma

Read only

0 Likes
601

Is their any transaction code for DEFINE REPORT TREE

Read only

0 Likes
601

Transaction code SERP will let you create or change a report tree. If you want to be able to directly access your report tree from the main SAP menu, then you will need to also create a program for your tree (using SE38) and a transaction (using SE93). Here's an example:

Report tree: ZTSR

Program: ZHR_TS_REPORT_TREE

program code:

REPORT ZHR_TS_REPORT_TREE.

CONSTANTS: TREE LIKE SREPOVARI-TREE_ID VALUE 'ZTSR'.

DATA: APPL_TITLE LIKE SY-TITLE.

APPL_TITLE = TEXT-TTL.

INCLUDE ZSAPMZREP10.

In the include ZSAPMZREP10:

----


  • INCLUDE ZSAPMZREP10 *

----


DATA: MODE(4) VALUE 'SHOW',

REPORT_TYPE LIKE SREPOVARI-REPORTTYPE VALUE ' ',

TREE_ID LIKE SREPOVARI-TREE_ID,

FLAG_CREATE_LIST VALUE 'X',

FLAG_BACK_IMMEDIATELY VALUE 'X',

FLAG_NODE_AS_POPUP VALUE 'X'.

TREE_ID = TREE.

EXPORT TREE_ID

MODE

REPORT_TYPE

FLAG_NODE_AS_POPUP

FLAG_CREATE_LIST

APPL_TITLE

FLAG_BACK_IMMEDIATELY

TO MEMORY ID '%_SERP_PARAMETERS'.

CALL TRANSACTION 'SARP' AND SKIP FIRST SCREEN.

Transaction: ZTSR

- this transaction references program ZHR_TS_REPORT_TREE

I hope this helps.

- April King