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

creating a folder

Former Member
0 Likes
476

Hi

how to create a folder hierarchy in the output list ,is there any function module.

is it possible to make a input field in the output of a list report?

thanks,

kiran.

3 REPLIES 3
Read only

Former Member
0 Likes
437

Hi,

For creating folder like report output you have to use ALV TREE reporting functionalities.

Yes you can nmake input fields in the list report output. Check the WRITE VAR AS INPUT option.

CHeers

VJ

Read only

Former Member
0 Likes
437

Hi kiran,

1. Its quite simple.

2. Basically there are TWO FMs,

which do the job.

3. just copy paste in new program

and u will know the whole logic.

4.

REPORT abc.

DATA : tr LIKE TABLE OF snodetext WITH HEADER LINE.

*----


data

tr-id = '1'.

tr-tlevel = 1.

tr-name = 'amit'.

APPEND tr.

tr-id = '2'.

tr-tlevel = 2.

tr-name = 'mittal'.

APPEND tr.

tr-id = '3'.

tr-tlevel = 2.

tr-name = 'Hello'.

APPEND tr.

tr-id = '4'.

tr-tlevel = 2.

tr-name = 'Brother'.

APPEND tr.

tr-id = '5'.

tr-tlevel = 4.

tr-name = 'Brother'.

APPEND tr.

*----


display

CALL FUNCTION 'RS_TREE_CONSTRUCT'

TABLES

nodetab = tr

EXCEPTIONS

tree_failure = 1

OTHERS = 4.

CALL FUNCTION 'RS_TREE_LIST_DISPLAY'

.

regards,

amit m.

Read only

Former Member
0 Likes
437

hi

good

product hierarchy->

BAPI_MATERIAL_GET_PRODUCTHIER BAPI Material Get Product Hierarchy ()

List Report->

i think it is possible by calling the subroutine during the runtime.

thanks

mrutyun^