Multiple fields in node level of a ALV tree
Hi gems,
Hope U all doing well.
In a requirement, I have few fields (say 10) to display in hierarchy. There will be 3 fields in 1st level, 3 fields in 2nd level and 4 fields in last level.
I tried using ALV tree...but couldn't able to get any idea to display more than 1 fields in 1st or 2nd level node.
Is it possible through ALV TREE? If yes, then how? I am new to oops. So please give me a bit detailed info.
Thanks,
Surajit
you must have the same number of columns on all lines (but you may display them empty)
Have a look at BCALV_TREE_DEMO program
Similar Messages
-
Drag and Drop between two ALV Tree.
Hi,
I am trying the drag and drop event between two ALV Tree.
After the occurence of drag and drop event , I am able to get the node key of the source tree node which is dragged . But when the node is dropped onto the target ALV Tree the target node does not gets selected, instead a plus mark appears focussing on the target node in the target ALV Tree. Can anyone suggest a way to get the node key of the focussed target node. Thanks.
Regards,
Prabaharanhey Prabaharan,
y don't u check this link once
u may get some idea
Re: ALV tree - change node text
Regards
Naveen -
Bind multiple fields to one node in data view
I have a need to have an interactive form where data from a single data source is displayed in multiple fields on the form. In addition these fields are open for input. I have bound the multiple fields on the form to one node in the data view. The data is being displayed in the multiple fields. This form is being routed thru workflow so various agents are updating the form. The problem that I am having is that the form only seems to allow input in the first field on the form but not the other fields that are tied to the same data source. For example, field A and field B are bound to node SUMMARY. I can add/change/delete data in field A but not in field B. After I have done some entry in field A, I can then sometimes make changes in field B. We have a requirement that field A be enabled for agent #1 but field B is invisible. Later in the workflow, agent #2 needs to make final changes on a "summary" page so agent #2 had field B enabled.
Does anyone have any idea how to correct this data entry issue so that data can be entered into either field that is tied to a single node?Having multiple fields in the backend is not an option. I will not go into the business reason in detail but the last page of the form contains a final version of data pulled from various locations on the form where the data on the other pages was input by multiple agents in the process flow. The last agent in the workflow needs to put the "finishing touches" to the data and should not have to search all over in the form to find the appropriate data fields.
I have found 2 possible solutions and would like to know if anyone can recommend one over the other.
First solution - bind multiple fields on the form to one node in the data view. This seems to work correctly on the form and data can be entered into either field, with the data being passed back to the webdynpro context in the one node in the data view (corresponding node in WD context).
Second solution - the node/attribue in the WD context must have the same name as a DDIC element. The node in the data view must have this same name. The field names on the form must also have the same name. Define the binding for the field names as Global. I have not validated that the data is passed back to the WD. -
Editing a single cell at node level in Alv tree
Hi ,
I am a beginner in ALV tree.Can u please let me know if its possible to edit a single cell at the node level ?
Thanks in advance.
ArchnaCheck the Standard Program may it helpful BCALV_TREE_ITEMLAYOUT.
Kanagaraja L -
Get Node Key Multiple Items Selected from ALV tree
Hello Experts,
I'm having a problem in getting Node keys for the items displayed as ALV tree.
I'm able to get Node key, when only ONE record (Item) is selected.
But, when I select multiple items under a Single node am not able to read(get) the node keys for all the selected items.
I'm using the classCL_GUI_ALV_TREE.
I have tried using the method GET_CHECKED_ITEMS, but not getting the keys.
method GET_SELECTED_ITEM is giving node for a single item. I need it for multiple items selected.
Thank you for your time.
-SANGARHi,
You need to use checkbox concept. and use method GET_CHECKED_ITEMS get selected items
please check this tread.
CL_GUI_ALV_TREE and Checkboxes
aRs -
ALV Tree - how to put checkbox on the node level?
Hello everyone!
I have an AlvTree and I have special column named SEL. That column contains checkboxes. I want to put additional checkboxes at the node level, I need them to create select all option.
In other words I must somehow create something similar to do_sum option. DO_SUM works for numeric columns, the sum of all rows in current node appears at the top level. So I must do the same but checkbox.
Are there any ideas?
Here is my code of creating the tree.
DATA: g_tree9001 type ref to cl_gui_alv_tree_simple.
" Here I fill fieldcat...
create object g_tree9001
EXPORTING
i_parent = g_doc_cont
i_node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
i_item_selection = 'X'
i_no_html_header = 'X'
i_no_toolbar = ''.
call method g_tree9001->set_table_for_first_display
EXPORTING
i_save = 'A'
is_variant = ls_variant
CHANGING
it_sort = gt_sort9001
it_outtab = gt_tree9001
it_fieldcatalog = gt_treefcat9001.
My output table gt_tree9001 has sthe following structure:
BUKRS, KTEXT, SEL, SWERK.
My sort table gt_sort9001 has 2 rows. Sorting by BUKRS and KTEXT.
My tree looks like this:
BUKRS/KTEXT --- SEL --- SWERK
+bukrs1 ------------------------------
-- ktext1 --- X --- swerk1
-- ktext2 --- X --- swerk2
+bukrs2 ------------------------------
-- ktext3 --- X --- swerk3
I want to get:
BUKRS/KTEXT --- SEL --- SWERK
+bukrs1 ----------X----------------
-- ktext1 --- X --- swerk1
-- ktext2 --- X --- swerk2
+bukrs2 ----------X----------------
-- ktext3 --- X --- swerk3
Appreciate any help!Hi ,
Check the below threads, it may give some idea to get check box in the node .
[LINK1|Check box on left navigation of ALV tree;
[LINK2|Checkbox ALV Tree CL_GUI_ALV_TREE;
Regards,
Saravana.S -
Multiple selection customer field at header level... Is it possible?
Y'all,
I would like to know if it's possible to append a table into the include structure (CUF) at header level in the contract and create a search help screen with multiple selection values return.
This requirement comes because we have to mantain a 1:N relationship between a contract and customer field at header level.
If you have any idea or comment please let me know.
Best regards,
Jerry.Hi
<u>I have not tried, but seems to be possible.</u>
<b>Please go through the SAP OSS Notes -></b>
Note 672960 - User-defined fields 2
Note 762984 - SRM40-SUS: Implementation of customer enhancement fields
Note 882256 - SRM-SUS: Customer fields for SUS invoice header missing
Note 749196 - SRM40-SUS: SP01 Redefining UI settings
Note 809628 - Table like customer fields from bid invitation in bid
Note 809630 - Customer field in bid invitation and bid - How does it work?
Note 458591 - User-defined fields: Preparation and use
Hope this will help. Do let me know.
Regards
- Atul -
Not Hier node levels we need Hier Node Descriptions
Hi. Guys.
I come accross with issue like we have 0prod_hier with different hier node levels and we need Hier
node descriptions in place of node levels after executing the report. So
I have changed Level 01 Level 02 Level 03 ......... with Desc1 Desc2 Desc3...... like that in Hier Maintenance
from backend side.
I could be able to see the descriptions in places of Level 1 level 2 Level3 ....
But problem is when I navigate the 0prod_hier into rows/columns it is going to short dump. Why
I am getting I am not understanding
and when I navigate other fields I am not getting problem. Only for Prod_hier, i am facing this
problem error is saying like this. and currently Prod_hier is in Free Characterstics.
Error analysis
A RAISE statement in the program "SAPLRSDU_PART" raised th
condition "TABLE_NOT_EXISTS".
Since the exception was not intercepted by a superior
program, processing was terminated.
Short description of exception condition:
Please help me out how to solve this.
thanks & Regards
VijayHello Vijay,
the cause of this problem are the temporary hierarchy tables.
You may execute the report SAP_DROP_TMPTABLES (in se38) for the temporary hierarchy tables (= 02-tables) and
recheck the behaviour. Please generate the query after doing this. You can find more information regarding temporary tables
in note 449891.
best regards,
Jerome -
Runtime error while i add a node in ALV Tree in oops
i am adding a node to alv tree using oop am passing a work area and when i execute it is going for a dump and it says UC_OBJECTS_NOT_CONVERTIBLE
and the below where it is bold and italic it is where the dump is occuring
METHOD ADD_NODE.
FIELD-SYMBOLS: <TAB1> TYPE standard TABLE,
<wa> type any.
assign mt_outtab->* to <tab1>.
insert line in outtab
DATA: L_INDEX TYPE SY-TABIX.
if is_outtab_line is initial.
create initial line
data l_dref_wa type ref to data.
create data l_dref_wa like line of <tab1>.
assign l_dref_wa->* to <wa>.
l_index = 0.
append <wa> to <Tab1>.
else.
APPEND IS_OUTTAB_LINE TO <TAB1>. endif.
L_INDEX = SY-TABIX.
add node to model
CALL METHOD ME->ADD_MODEL_NODE
EXPORTING
I_RELAT_NODE_KEY = I_RELAT_NODE_KEY
I_RELATIONSHIP = I_RELATIONSHIP
IS_NODE_LAYOUT = IS_NODE_LAYOUT
IT_ITEM_LAYOUT = IT_ITEM_LAYOUT
I_NODE_TEXT = I_NODE_TEXT
I_INDEX_OUTTAB = L_INDEX
IMPORTING
E_NEW_NODE_KEY = E_NEW_NODE_KEY.
ENDMETHOD.HI Mohsin,
please refer to the below ....
might be helpful for u .....
https://scn.sap.com/thread/2050188
http://scn.sap.com/message/6407195
http://r0005001.benxbrain.com/de%28bD1lbiZjPTAwMQ==%29/index.do?onInputProcessing=brai_thread&001_thread_id=1759814%20&001_temp=R3TR|PROG|RCSBI010||P01|
Hope thiw will help ....
Regards,
AKS -
How to remove xmlns in node level
Hi Experts!
How to remove xmlns in node level in response xml file. I tried to use AF_Modules/XMLAnonymizerBean, but it did not work.
Can you please help me out on this.
I want to remvoe xmlns tag in LEVICOM
Eg:
- <Addenda>
- <LEVICOM xmlns="">
Thanks,
HariHi Expers!
Please help me out on this. The below xslt mapping working only to remove xmlns prefix in xml file, if parent having only one child. This code is not working if parent having multiple childs.
Eg: <parent>
<phild xmlns="">
test1
</phild>
</parent>
The above example working fine with below xslt mapping to remove xmlns tag.
Second scenarion not working
Eg: <parent>
<child1 xmlns="">
test1
</child1>
<child2 xmlns="">
test2
</child2>
</parent>
The above example is not working.
Here is the code:
You can remove the namespace prefixes using an XSLT mapping if they are causing problems with applications outside of XI.
Try the following code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.arconw.com/XI/XSLT_Library/XmlNamespacePrefixRemoval"
version="1.0">
<xsl:output method = "xml" />
<xsl:template match="/">
<xsl:apply-templates select="*" mode="remprefix"/>
</xsl:template>
<xsl:template match="*" mode="remprefix">
<xsl:variable name="newname" select="local-name(.)"/>
<xsl:element name="{$newname}" namespace ="{namespace-uri()}">
<xsl:apply-templates mode="copyall" select="@*|comment()|processing-instruction()|text()"/>
<xsl:apply-templates select="*" mode="remprefix"/>
</xsl:element>
</xsl:template>
<xsl:template mode="copyall" match="@*|comment()|processing-instruction()|text()">
<xsl:copy>
<xsl:apply-templates mode="copyall" select="@*|comment()|processing-instruction()|text()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Thanks,
Hari -
How to make field editable in ALV tree in OOPs?
Hi Gems,
Again I need help from you all.
I am writing a program using OOPs and the uotput will be in ALV tree. I need to make a field editable in a perticular row.
I am doing it using layout but the program is giving error during
CALL METHOD CL_GUI_CFW=>FLUSH
EXCEPTIONS
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2.
This method is returning sy-subrc = 2 and I am unable to get the output.
I am using below code to make the field editable:
DATA: LT_LAYOUT_ITEM TYPE LVC_T_LAYI,
LS_LAYOUT_ITEM TYPE LVC_S_LAYI.
LS_LAYOUT_ITEM-FIELDNAME = 'ACPCKTWRT'. "ACPCKTWRT is the field name in the Internal table
LS_LAYOUT_ITEM-EDITABLE = 'X'.
APPEND LS_LAYOUT_ITEM TO LT_LAYOUT_ITEM.
CALL METHOD G_ALV_TREE->ADD_NODE
EXPORTING
I_RELAT_NODE_KEY = FP_RELAT_KEY
I_RELATIONSHIP = CL_GUI_COLUMN_TREE=>RELAT_LAST_CHILD
IS_OUTTAB_LINE = LS_TMP_FINFCNO "structure of the internal table
IS_NODE_LAYOUT =
IT_ITEM_LAYOUT = LT_LAYOUT_ITEM "Added layout to make the field editable
I_NODE_TEXT = LV_NODE_TEXT "Node text
IMPORTING
E_NEW_NODE_KEY = FP_NODE_KEY
EXCEPTIONS
RELAT_NODE_NOT_FOUND = 1
NODE_NOT_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Please help me and let me know how to get the solution.Hello
The ALV tree control is not intended for making values editable (e.g. see
[How to make ALV tree columns editable|http://sap.ittoolbox.com/groups/technical-functional/sap-abap/how-to-make-alv-tree-columns-editable-2052414])
However, if you need an editable tree control then you have to use a different class (e.g. CL_ITEM_TREE_MODEL or CL_COLUMN_TREE_MODEL) but you will not have the ALV functionality of the ALV tree control.
Regards
Uwe -
Multiple values for multiple fields sharing common id
I'm new to Reporting Services and I need to create report based on a common child id that includes multiple values from multiple fields in several tables. I can combine all the values into one query for a list report; however, this causes the rows to duplicate
multiple times based on the differing fields having multiple values (i.e. report contains various child ids and multiple medication dates/names, multiple health diagnoses with onset dates, multiple health service dates/values, multiple immunization types and
service dates, etc). If I create a list report and try to use various tables, I run into problems with how the tables view the data due to the duplicating child id rows from multiple field values on that child id. If I hide duplicates for these different tables,
I can run into spacing issues from the duplicating rows and/or hiding data that shouldn't be hid.
I need the report to have the basic non-duplicating child info (id, name, basic health info) and then also have various sections that contain fields with numerous values (i.e. section for health issue name and onset dates, section for medication name and
prescription dates, section for health service name and service date, etc). I would want a page break after each child id and would want all the child ids to be viewed/exported for printing purposes at the same time (i.e. not choosing one child id at
a time to print or view the data). I have tried to create one main table on a list report with various subreports on the child id; however, this is hard for my machine to process (it takes forever) and I can only view/export one child id at a time when I use
child id as the report parameter.
Any help you can give this newbie would be greatly appreciate.
Thanks,
Melissa S.
What's the best way for me to
MelissaSHi simpson213,
According to your description, you have some questions about your report design.
1. How to have non-duplicating child info?
In this scenario, since you don't want to hide the duplicate data, we suggest you filter the duplicated records on query level by using Distinct statement. If you want to do it on report level, you can group
records on chid id and use First() function on other fields.
Reference: First Function (Report Builder and SSRS)
2. How to have various sections that contain fields with numerous values?
We can also add these fileds into the child group of child and have them toggled by child id.
Reference: Add an Expand/Collapse Action to an Item (Report Builder and SSRS)
3. How to add a page break between each child?
Right click on the Row Group(child id)->Page Break->Select between each group instance.
Reference: Add a Page Break (Report Builder and SSRS)
4. How to select multiple child id when rendering report?
When creating parameter, select Allow multiple values in General.
Reference: Add, Change, or Delete a Report Parameter (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Example for 4 or 3 level Hierarchail Seq ALV report?
i need the example for 4 or 3 level heirarchial sequential ALV report. ?
Hi,
Hierarchail Seq ALV may not support 3rd 4th levels.For this type of requirement you may go to tree report.
Refer the below links for tree report.
[http://www.****************/Tutorials/ALV/ALVTreeDemo/demo.htm|http://www.****************/Tutorials/ALV/ALVTreeDemo/demo.htm]
DWDM - transaction for sample/demo programs for controls
sample Program
BCALV_TREE_01 ALV Tree Control: Build Up the Hierarchy Tree
BCALV_TREE_02 ALV Tree Control: Event Handling
BCALV_TREE_03 ALV Tree Control: Use an Own Context Menu
BCALV_TREE_04 ALV Tree Control: Add a Button to the Toolbar
BCALV_TREE_05 ALV Tree Control: Add a Menu to the Toolbar
BCALV_TREE_06 ALV tree control: Icon column and icon for nodes/items
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_DND ALV tree control: Drag & Drop within a hierarchy tree
BCALV_TREE_DND_MULTIPLE ALV tree control: Drag & Drop within a hierarchy tree
BCALV_TREE_EVENT_RECEIVER Include BCALV_TREE_EVENT_RECEIVER
BCALV_TREE_EVENT_RECEIVER01
BCALV_TREE_ITEMLAYOUT ALV Tree: Change Item Layouts at Runtime
BCALV_TREE_MOVE_NODE_TEST Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO Program BCALV_TREE_SIMPLE_DEMO
BCALV_TREE_VERIFY Verifier for ALV Tree and Simple ALV Tree
Reward if found helpful.
Regards,
Boobalan Suburaj -
What is the best way to set property to multiple fields?
Dear Experts
My requirement is, I want to allow user to fill only some specific fields in the form. When user A opens the form, he may be able to fill Field1~Field10. And when user B opens the form, he may be able to fill Field11~Field20.
I have implemented one solution as below to do this but the performance is poor.
- Recursively poppulate all fields into array
- Iterate all fields to make it read only (Field.access = 'readOnly')
- Iterate all fields and compare with enabled fields list, if any field matchs then enable it (Field.access = 'open')
(I have list of enabled fields for each user like this : form1[0].page1[0].ProjectNumber[0],form1[0].page1[0].CustomerName[0],form1[0].page1[0].Fi nishedGoodsNo[0],......)
Is there a better way to reference multiple fields to set their property?
I know, we can reference multiple fields using FormCal like Field[*] but is it possible to complete my case?
Any suggestion?
ThanksWe make web application which accept the form designed by end user. So we try to make them most comfortable to use LyfeCycle Form Designer by creating tds template for them and it contains the script which enable/disable fields. So the user don't have to set all fields to read only. Our script will do it.
Anyway I will adjust when enabling them.
One more doubt.
When I type in the script editor, it lists member :
- all, the hint says "Returns the collection of like-named, in-scope nodes. If the node has no name, a like-classnamed collection is returned."
- classAll, the hint says "Returns the collection of like-class, in-scope nodes."
Can I get all fields by these member? get fields from class?
It would be good if it can do.
I try to check XFA reference and use them but cannot get how it work.
Could you please suggest?
Thanks -
Best solution for multiple field validation
Hi
I am using jdeveloper 11r2 (11.1.2.3.0) & JSF2 Facelet
What is best way to validate multiple field is same time?
In my use case I have address component and there is a dependensy between suburb ,posrcode and state fiels
How I can implement this in ADF?What is the best way working in ADF?
As I know using <f:validator > we can validate one field each time
Appreciate any suggestion or comments
MohsenWrite entity level method validator
Maybe you are looking for
-
HP Print Drivers Upate 2.2 install won't complete
After upgrading to Snow Leopard I replaced my existing HP printer with a Photosmart Plus model and installed the HP software and drivers which are certified for Snow Leopard. Shortly after that an update showed up for my machine called "HP Printer Dr
-
Connecting xbox 360 wirelessly...HELP!!
i setup airport extreme the other day and easily connected all my devices including ps3. My xbox which is downstairs doesn't pick up the router, i changed the settings to WPA/WPA2 so that the xbox picks it up as i heard it needs to be on WPA. it stil
-
Can I move photos from computer A to computer B by importing them
I imported photos from computer A onto my I Phone and I would like to move them to Computer B.... can connect my I Phone to computer B and transfer them as I would photos that I actually took from my I Phone... I know how to do this... i thought I co
-
Hi All, I am working on Sales Excise Invoice PLD, where the client wants the Tax amounts ( BED, Cess, HScess) to be displayed in words. How to do this.
-
Make local copy for any submit form data provided prior to send/submit
Dear Sir/Madam, I am trying to achieve a behaviour of firefox 22 under Ubuntu 13.04 Linux that has to do with forms/submit. The result I want to achieve is to have a copy filed for each registration form, personal information provided like job applic