‎2006 Nov 22 8:02 AM
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.
‎2006 Nov 22 8:22 AM
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
‎2006 Nov 22 8:25 AM
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.
‎2006 Nov 22 8:43 AM
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^