List tree report display
Hi all,
Can anyone send me some material to read list tree display
without using OOPS.
plz send fast its urgent.
Hi..
Refer this link..
A Binary Tree Implementation in ABAP
sample code:
http://www.erpgenie.com/abaptips/content/view/500/62/
Reward point if useful.
Regards,
K.Tharani.
Edited by: tharani kanagarajan on Feb 19, 2008 8:46 AM
Similar Messages
-
Report displayed based on Select List condition
Hello,
Any help would be appreciated.
I have a report and a select list, P55_MISSING. The select list contains the column names in the table that the report displays.
If I select one of the column names, I would like to display all records where that column name is null.
The sql I have at the moment is:
select
"ID",
"APPLICATION",
"SHORT_DESCRIPTION",
"DESCRIPTION",
"OPC_NET_NAMES",
"PROCESSING_SCHEDULE",
"PROCESSING_REGULARITY",
"PLATFORMS_INVOLVED",
"UNIX_DIRECTORIES",
"SOURCE_FILES",
from "APP_METADATA"
where :P55_MISSING IS NULL
If I select 'source files' for example, I would expect to see 3 out of 4 records stored in the table. However, I receive the message 'no data found'.
Any help would be great. Thank you.Hi
In order to doe this you will have to use dynamic sql (so you have to change your report type to 'SQL Query (PL/SQL Function Body Returning SQL Query)').
It would then look something like this...
DECLARE
l_sql VARCHAR2(32767);
BEGIN
l_sql := 'SELECT id,
application,
short_description,
description,
opc_net_names,
processing_schedule,
processing_regularity,
platforms_involved,
unix_directories,
source_file
FROM app_metadata
WHERE ';
l_sql := l_sql||:P55_MISSING||' IS NULL';
RETURN l_sql;
END;Sorry, I can't test this as I don't have your tables.
Cheers
Ben -
How can we display the list of Report Names in Dashboard Prompt?
How can we display the list of Report Names in Dashboard Prompt?
Hi,
No its not possible to display list of reports in dashboard prompts.
Can do this using SQl results in prompt(we write query checking out report names manualy),but its not easy thing if you are having many report names to be displayed.
Assign points and close your threads if answered.
Refer : http://forums.oracle.com/forums/ann.jspa?annID=939
Regards,
Srikanth -
How to display records of int. table in list tree?
friends,
i want to display a list tree using fm RS_TREE_CONSTRUCT and RS_LIST_DISPLAY.
this is the data that i have to display
Matnr doc no. Stock qty. Age
1 45601236 100 55
1 45601237 10 54
1 45601238 11 53
1 45601239 101 52
now, only the first record should be displayed with a + symbol... when the user clicks the + symbol, then the node has to expand and display the other 3 records pertaining to that material...how to display 4 fields of an internal table in one line and like that, 3 records...i have seen some threads relating to this, but they all display only one value in the child node..how to display multiple fields like this?
please address this functinality using FMs alone, as i am not exposed to objects :!
thanks all
Sathish. Rsatish,
Before passing the Node name ,Concatenate all the values of record in one string and pass that string as node name.Now it will work.
To develop the basic logic simple program name is :
"SAPSIMPLE_TREE_CONTROL_DEMO" In this program use above logic.
Don't forget to reward if useful.
Don't forget to reward if useful -
List of reports to be displayed in list box
Hi,
I have a requirement to see list of reports for a particular user in a list box rather than displaying them as links in oracle portal.
Can guys guide me achieving this.Is it possible?
Thanks
SriOops!!
even i raised the same question just now..didn't see your posting..
I think we both looking at same problem.
\Cheers -
Classical report display from an alv list
Hi,
I have an alv report displayed, and for this alv report have a user defined menu. Now when the Save button is clicked on the application bar then in the background we have a set of invoices which are generated for all the values selected from the alv list.
Now after this a list is to be displayed listing all the items which were selected from the alv(ie the check boxes for the alv selected and not a particular field for selection) for which the invoices were created. how do we display the list in a classical report format considering that the write statement will not work....???Hi
Try thsi......
You write the code in some Zreport of your own and from your ALV program pass the values to this ZReport program. You can pass via 2 ways
a) Pass via Export to Memory and Import from Memory ID
b) Call Submit via Selection Screen and return
Hope thsi Helps
Anirban -
List Edit Reports using Excel Displays
Guys,
I've known about this functionality for some time, but never got round to investigating the potential..
In many of the PM/CS list-edit reports (e.g. IW38) we can also view the data in Excel format. SAP has provided two files as follows:
- SAP_MM.XLS: has two macros assigned (ALV_SAP_Exit and ALV_CUS_Exit)
- SAP_MM.XLS: no macro assignment
See [OSS Note 548409|https://service.sap.com/sap/support/notes/548409] for more details relating to these files.
You can copy the standard XLS files (see OSS Note) to your own customer specific files. You can then use the marcos within these fields to include pivot tables, charts, filters, images, etc.
Also posted [here|http://www.sapfans.com/forums/viewtopic.php?f=7&t=333861]
PeteAHi,
Note [696069|https://service.sap.com/sap/support/notes/696069] explains some security settings can help with this.
-Paul -
How can I write a tree report?
How can I write a tree report? If you have any document/ link can you please send that.
Regards,
SubhasishREPORT zdemo_alv_tree.
Demo program prepared for ****************
CLASS cl_gui_column_tree DEFINITION LOAD.
CLASS cl_gui_cfw DEFINITION LOAD.
DATA tree1 TYPE REF TO cl_gui_alv_tree_simple.
INCLUDE <icon>.
INCLUDE bcalv_simple_event_receiver.
DATA: gt_sflight TYPE sflight OCCURS 0, " Output-Table
gt_fieldcatalog TYPE lvc_t_fcat, " Field Catalog
gt_sort TYPE lvc_t_sort, " Sorting Table
ok_code LIKE sy-ucomm. " OK-Code
END-OF-SELECTION.
CALL SCREEN 100.
*& Form BUILD_FIELDCATALOG
This subroutine is used to build the field catalog for the ALV list
FORM build_fieldcatalog.
get fieldcatalog
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'SFLIGHT'
CHANGING
ct_fieldcat = gt_fieldcatalog.
change fieldcatalog
DATA: ls_fieldcatalog TYPE lvc_s_fcat.
LOOP AT gt_fieldcatalog INTO ls_fieldcatalog.
CASE ls_fieldcatalog-fieldname.
WHEN 'CARRID' OR 'CONNID' OR 'FLDATE'.
ls_fieldcatalog-no_out = 'X'.
ls_fieldcatalog-key = ''.
WHEN 'PRICE' OR 'SEATSOCC' OR 'SEATSMAX' OR 'PAYMENTSUM'.
ls_fieldcatalog-do_sum = 'X'.
ENDCASE.
MODIFY gt_fieldcatalog FROM ls_fieldcatalog.
ENDLOOP.
ENDFORM. " BUILD_FIELDCATALOG
*& Form BUILD_OUTTAB
Retrieving the data from the table and filling it in the output table
of the ALV list
FORM build_outtab.
SELECT * FROM sflight INTO TABLE gt_sflight.
ENDFORM. " BUILD_OUTTAB
*& Form BUILD_SORT_TABLE
This subroutine is used to build the sort table or the sort criteria
FORM build_sort_table.
DATA ls_sort_wa TYPE lvc_s_sort.
create sort-table
ls_sort_wa-spos = 1.
ls_sort_wa-fieldname = 'CARRID'.
ls_sort_wa-up = 'X'.
ls_sort_wa-subtot = 'X'.
APPEND ls_sort_wa TO gt_sort.
ls_sort_wa-spos = 2.
ls_sort_wa-fieldname = 'CONNID'.
ls_sort_wa-up = 'X'.
ls_sort_wa-subtot = 'X'.
APPEND ls_sort_wa TO gt_sort.
ls_sort_wa-spos = 3.
ls_sort_wa-fieldname = 'FLDATE'.
ls_sort_wa-up = 'X'.
APPEND ls_sort_wa TO gt_sort.
ENDFORM. " BUILD_SORT_TABLE
*& Module PBO OUTPUT
This subroutine is used to build the ALV Tree
MODULE pbo OUTPUT.
IF tree1 IS INITIAL.
PERFORM init_tree.
ENDIF.
SET PF-STATUS 'ZSTATUS'.
ENDMODULE. " PBO OUTPUT
*& Module PAI INPUT
This subroutine is used to handle the navigation on the screen
MODULE pai INPUT.
CASE ok_code.
WHEN 'EXIT' OR 'BACK' OR 'CANC'.
PERFORM exit_program.
WHEN OTHERS.
CALL METHOD cl_gui_cfw=>dispatch.
ENDCASE.
CLEAR ok_code.
ENDMODULE. " PAI INPUT
*& Form exit_program
free object and leave program
FORM exit_program.
CALL METHOD tree1->free.
LEAVE PROGRAM.
ENDFORM. " exit_program
*& Form register_events
Handling the events in the ALV Tree control in backend
FORM register_events.
define the events which will be passed to the backend
DATA: lt_events TYPE cntl_simple_events,
l_event TYPE cntl_simple_event.
define the events which will be passed to the backend
l_event-eventid = cl_gui_column_tree=>eventid_node_context_menu_req.
APPEND l_event TO lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_item_context_menu_req.
APPEND l_event TO lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_header_context_men_req.
APPEND l_event TO lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_expand_no_children.
APPEND l_event TO lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_header_click.
APPEND l_event TO lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_item_keypress.
APPEND l_event TO lt_events.
CALL METHOD tree1->set_registered_events
EXPORTING
events = lt_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3.
set Handler
DATA: l_event_receiver TYPE REF TO lcl_tree_event_receiver.
CREATE OBJECT l_event_receiver.
SET HANDLER l_event_receiver->on_add_hierarchy_node
FOR tree1.
ENDFORM. " register_events
*& Form build_header
build table for header
FORM build_comment USING
pt_list_commentary TYPE slis_t_listheader
p_logo TYPE sdydo_value.
DATA: ls_line TYPE slis_listheader.
LIST HEADING LINE: TYPE H
CLEAR ls_line.
ls_line-typ = 'H'.
LS_LINE-KEY: NOT USED FOR THIS TYPE
ls_line-info = 'ALV TREE DEMO for ****************'.
APPEND ls_line TO pt_list_commentary.
p_logo = 'ENJOYSAP_LOGO'.
ENDFORM. "build_comment
*& Form init_tree
Building the ALV-Tree for the first time display
FORM init_tree.
PERFORM build_fieldcatalog.
PERFORM build_outtab.
PERFORM build_sort_table.
create container for alv-tree
DATA: l_tree_container_name(30) TYPE c,
l_custom_container TYPE REF TO cl_gui_custom_container.
l_tree_container_name = 'TREE1'.
CREATE OBJECT l_custom_container
EXPORTING
container_name = l_tree_container_name
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
create tree control
CREATE OBJECT tree1
EXPORTING
i_parent = l_custom_container
i_node_selection_mode =
cl_gui_column_tree=>node_sel_mode_multiple
i_item_selection = 'X'
i_no_html_header = ''
i_no_toolbar = ''
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
illegal_node_selection_mode = 5
failed = 6
illegal_column_name = 7.
create info-table for html-header
DATA: lt_list_commentary TYPE slis_t_listheader,
l_logo TYPE sdydo_value.
PERFORM build_comment USING
lt_list_commentary
l_logo.
repid for saving variants
DATA: ls_variant TYPE disvariant.
ls_variant-report = sy-repid.
register events
PERFORM register_events.
create hierarchy
CALL METHOD tree1->set_table_for_first_display
EXPORTING
it_list_commentary = lt_list_commentary
i_logo = l_logo
i_background_id = 'ALV_BACKGROUND'
i_save = 'A'
is_variant = ls_variant
CHANGING
it_sort = gt_sort
it_outtab = gt_sflight
it_fieldcatalog = gt_fieldcatalog.
expand first level
CALL METHOD tree1->expand_tree
EXPORTING
i_level = 1.
optimize column-width
CALL METHOD tree1->column_optimize
EXPORTING
i_start_column = tree1->c_hierarchy_column_name
i_end_column = tree1->c_hierarchy_column_name.
ENDFORM. " init_tree -
Creating TREE REPORT with CHECKBOX against each row
Hi Friends,
I need to create a <b>TREE REPORT with CHECK BOX</b> against each row. when the user selects a row and clicks on a custom button then those should get populated into an internal table. <b>This is HIGH priority</b> one and I have tried my best but couldnt find any solution. Please advise me some sol.
thanks in advance for your valuable time and help.
Regards
srithan
Message edited by me for easyness
ReddyHi
Following code is to add checkboxes in ALV tree:
FORM add_root_request USING pls_data_ TYPE csg_gs_outtab_p_key__l_is_sub_node_ TYPE c
CHANGING pl_carrid_key._node = nodes->add_node( related_node = p_key
relationship = cl_gui_column_tree=>relat_last_child ).
... §0.2 if information should be displayed at
the hierarchy column set the carrid as text for this node
text = p_ls_data-object.
node->set_text( text ).
... §0.3 set the data for the nes node
node->set_data_row( p_ls_data ).
item = node->get_hierarchy_item( ).
item = node->get_item( 'FCHECKBOX' ). "FCHECKBOX is my radio button field in internal table which I am using to populate the ALV
item->set_type( if_salv_c_item_type=>checkbox ).
pl_carrid_key = node->get_key( )._
CATCH cx_salv_msg.
ENDFORM_._Following code is for handling checbox_change event
PERFORM application_action_events.
FORM application_action_events .
data: lr_events type ref to cl_salv_events_tree.
*data gr_events type ref to lcl_handle_events.
lr_events = gr_tree->get_event( ).
create object gr_events.
set handler gr_events->check for lr_events.
set handler gr_events->on_link_click for lr_events.
set handler gr_events->on_before_user_command for lr_events.
set handler gr_events->on_after_user_command for lr_events.
set handler gr_events->on_keypress for lr_events.
endform. " application_action_events----
CLASS lcl_handle_events DEFINITION.
PUBLIC SECTION.
METHODS:
check FOR EVENT checkbox_change OF cl_salv_events_tree IMPORTING node_key columnname checked. "Here node_key is the row number
ENDCLASS. "lcl_handle_events DEFINITION
CLASS lcl_handle_events IMPLEMENTATION
§4.2 implement the events for handling the events of cl_salv_table
CLASS lcl_handle_events IMPLEMENTATION_._
METHOD check_._
WRITE 'hello'_._
DATA lwa_modify_check_ TYPE REF TO csg_gs_outtab.
node_key = node_key - 1_._
READ TABLE csg_gt_list INDEX node_key REFERENCE INTO lwa_modify_check._
if columnname = 'FCHECKBOX'_._
IF checked = 'X'_._
If the value in internal table is set to X, then it is deselct
lwa_modify_check->fcheckbox =_ ' '_._
ELSE_._
lwa_modify_check->fcheckbox =_ 'X'_._
ENDIF_._
ENDIF_._
if columnname = 'CHECKBOX_READ'_._
IF checked = 'X'_._
If the value in internal table is set to X, then it is deselct
lwa_modify_check->checkbox_read =_ ' '_._
ELSE_._
lwa_modify_check->checkbox_read =_ 'X'_._
ENDIF_._
ENDIF_._
*MODIFY TABLE csg_gt_list from l_wa_modify_check.
flag_test = flag_test + 1_._
ENDMETHOD_._ "check
ENDCLASS_._ "lcl_handle_events IMPLEMENTATION
Please give me reward points -
List View Report (theme 50 - jQuery Mobile Smartphone).
Hi,
I am creating a List View Report (theme 50 - jQuery Mobile Smartphone).
I have say the following settings..
Text Column - PRODUCT_DESC
Link Target - f?p=111:22:......
my PRODUCT_DESC is too long say 150 to 200 characters.
When I run my application on mobile...
1. when I am using the Link target, then I am not getting the complete Product Desc values displayed.. it's displaying just initial 15.. 20 characters of Prodcut Desc column and then arrow sign for link..
2. If I am not using the Link target, then it's displays complete values of Product Desc (all the 150 .. 200 characters) and no link arrown sign.
My question is I want to use the link target as well as want to display complete value of product desc.. any idea how can I do that..
Thanks,
DeepakHi,
I am creating a List View Report (theme 50 - jQuery Mobile Smartphone).
I have say the following settings..
Text Column - PRODUCT_DESC
Link Target - f?p=111:22:......
my PRODUCT_DESC is too long say 150 to 200 characters.
When I run my application on mobile...
1. when I am using the Link target, then I am not getting the complete Product Desc values displayed.. it's displaying just initial 15.. 20 characters of Prodcut Desc column and then arrow sign for link..
2. If I am not using the Link target, then it's displays complete values of Product Desc (all the 150 .. 200 characters) and no link arrown sign.
My question is I want to use the link target as well as want to display complete value of product desc.. any idea how can I do that..
Thanks,
Deepak -
Abap program to find the list of reports in complete
I know we can get from sap easy access in
information system but that is not all reports as I always find some report
which is not listed there so we want to freeze the list and we want to know
if we have any abap program If u can send me the code or any standard
program that find and list the reports
soniyaCheck the table TRDIR and write the select statements to display.
Check the fm :F4_PROGRAM: code.
Message was edited by: Eswar Kanakanti -
Email list will not display individual addresses and names , only name of list.
First time user of lists. I created a new email list per help instructions-- created just fine. When I try to use it to write, no matter which methods I use, only the list name is displayed. It does send the email to all the addresses, but I want to be able to see all the individual addresses so bcc or removal etc. can be used prior to sending. Any suggestions?
Does the list description include spaces? If so, try to use a name without spaces or replace spaces with "_", there has been a bug about this reported as [https://bugzilla.mozilla.org/show_bug.cgi?id=1060901 Bug #1060901]. If you have an account on Bugzilla, please consider voting for that issue.
Several other people have sent in the similar support requests to yous, noting this happened after they upgraded to version 31.1.
The exact error message is: XXXX is not a valid e-mail address because it is not of the form user@host. You must correct it before sending the e-mail.
Is that what you see?
'''This happens in Thunderbird 31.1.0 when your mailing list description includes several words separated by spaces.'''
Although not ideal, these workarounds should let you use your mailing lists until a proper fix is implemented:
* While composing an email open the address book and select the list you are trying to send to, highlight all the names in the list and drag them to the To: box. This uses your existing data without modifying it.
* Replacing the blanks " " between the words in such lists' descriptions with an underscore "_". This requires modifying your mailing list(s) description(s).
* Downgrade to a previous version and disable automatic updates (Windows) -
I am encountering the following error on my Tree report occasionally. "Unexpected error ORA-06502: PL/SQL: numeric or value error: character string buffer too small". Apex version 3.x (I think not sure), Database 10.1.0.4
I have noticed that I can keep on expanding nodes a couple of times and then suddenly I get error. After I logoff and logon again, I can get tree displayed and then after few expands I receive the error. I have reduced MAX LEVEL from 5 to 1. Here is the query and the table:
select "METHOD_ID" id,
"P_METHOD_ID" pid,
method_id || ' : ' || P_method_id || ' : ' ||
PROJECT_NAME || ' : ' ||
package_name || ' : ' ||
class_name || ' : ' ||
method_name name,
'f?p=&APP_ID.:10:&SESSION.::NO::GLB_METHOD_ID:'||"METHOD_ID" link,
null a1,
null a2
from java2java_usedby h .
The table java2java is:
CREATE TABLE JAVA2JAVA_USEDBY
METHOD_ID NUMBER(15) NOT NULL,
PROJECT_NAME VARCHAR2(200 BYTE),
COMPONENT_NAME VARCHAR2(200 BYTE),
PACKAGE_NAME VARCHAR2(200 BYTE),
CLASS_NAME VARCHAR2(200 BYTE),
METHOD_NAME VARCHAR2(200 BYTE),
P_METHOD_ID NUMBER
NOLOGGING ;
CREATE UNIQUE INDEX JAVA2JAVA_USEDBY_U1 ON JAVA2JAVA_USEDBY
(P_METHOD_ID, METHOD_ID)
NOLOGGING;
This table allows a row to have multiple parents. So for a given method_id, there could be more than one p_method_id.
Method ID values are 10-12 digitsVasant - It would be ideal if you could show this problem on apex.oracle.com.
There was an error with similar symptoms reported and discussed here: Tree error, after Expand All, then collapsing any node, ORA-6502/6512 , so if you could determine the version of Application Express you are using that might be useful.
Scott -
How to create a dynamic tree report
hi experts,
i have a requirement to create a dynamic tree report in OM module.
this report should show the number of people positions required in a org unit, and also the number of people available in a org unit.
There is something called as qualification catalog to which qualifications are attached, to these qualifications org units are attached, these org units will have some positions attached to it, and each of this position might have a person attached to it.
The user will enter the qualification catalog number in the selection screen for which he should be getting the result in a tree format which flows from qualification catalog to qualifications, from qualifications to org units, from orgunits to the total no of positions present in this orgunit and the no of positions occupied in the orgunit.
This is a challenging job as far as i am concerned.
Please suggest me a way to approach this,i promise to reward the answers.
thanks in advance,
santosh.Hi,
Check the demo tree programs for yuor requirement?
SAP List Tree: SAPSIMPLE_TREE_CONTROL_DEMO
SAP Column Tree : SAPCOLUMN_TREE_CONTROL_DEMO
SAP Easy Tree : SAPSIMPLE_TREE_CONTROL_DEMO
Thanks,
Ramakrishna -
Most Popular Items Report: items listed in report are not the document names or titles
I have a document library that's loaded with typical corporate ppt, word, and pdf files. When I run a Most Popular Items report on the library, the list of items displayed in the report are not the document file names or document titles.
Instead, the report is showing information that seems to pulled from within the content itself.
For example, there's a new corporate ppt template in the document library and the Most Popular Items report shows the sharepoint url for the ppt file as being one of the most popular items. Let's say that the file is named Standard_ppt_template.ppt.
The url for one of the most popular items reflects that in the URL. However, the item is listed in the Most Popular Item as "Company Confidential". The report seems to be pulling the words "Company Confidential" listed in the
footer of the ppt template and showing that as the most popular content item.
Is there a reason or setting why the Most Popular Items report is not returning a list of items based on either the file name or the document title?
Thanks in advance for any advice.Hi,
According to your post, my understanding is that the PPT files items in the “Most Popular Items” report display these items’ names seem to be pulled from the PPT files’ content.
Per my test, the Word, Excel, PDF, .txt, .png files items in the “Most Popular Items” report will display these items’ names based on the corresponding items’ title value if they have, or the corresponding file name if these items don’t have the title value.
However, it’s by design that the PPT files items in the “Most Popular Items” report will display these items’ names only based on the beginning of these PPT files’ content rather than these files’ names and the corresponding items’ title value.
Best Regards,
Yumi Fu
Maybe you are looking for
-
How do i transfer all my data from one itouch to another?
how do i transfer all my data from one itouch to another?
-
What is a process code in ale idoc
what is a process code in ale idoc,what is the purpose of Process code.
-
SOS Only on iPhone 4 - Optus Australia
Hey all. Is anyone else having problems with their iphone displaying 'SOS Only' in the carrier field? Ever since I installed iOS 5.0.1 and turn my phone on, I get the 'SMS Only' status. If 'Locked SIM' does pop up, I enter my PIN and it says 'unlocki
-
Nice 'N Clean Electronic Wipes on my Laptop screen?
Hello All, This is my first post on the hp forums, so forgive me if I posted this in the wrong location or violated any other protocol. Yesterday, I bought some Nice 'N Clean Electronic Wipes to clean my brand new g6-2235us laptop. I went ahead and u
-
IPod Classic now an iBrick; HELP
A few months ago, my iPod classic 80GB fell out of my pocket into a parking lot and i was told it was ruun over, but came out unscathed with just a dent in the back of it. My real problem started about a month and a half ago, when my iPod suddenly st