Application Development 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: 

Hierarchical report - Use of ALV Tree

Former Member
0 Kudos
511

Hello everybody,

I have to define a hierarchical report with three level of information (header data, item data and pricing date). For this report, my technical consultant has chosen using the function RS_TREE_CONSTRUCT.

This report is now ready and works correctly. But we have a little problem. Indeed, in item data, user would like having an item text which can have on average 150 characters.

The problem is that it seems we can't display more than 70 characters. I have heard that we can have the entire text by double clicking on the field or by clicking on a specific button ? Do you know if it's possible ? Can you tell me how to do it?

Thanks a lot

Vincent

9 REPLIES 9

Former Member
0 Kudos
114

Dear Vicent,

You are using the ALV Tree created with Function Module - and that has some limitations I'm afraid.

You could try and create an ALV Tree but using ABAP OO (Object Oriented) instead.

Check this link for an example:

[http://wiki.sdn.sap.com/wiki/display/Snippets/ExampleaboutALV+Tree]

Kind Regards

/Ricardo

former_member209703
Active Contributor
0 Kudos
114

Hi.

The restriction on the text length is set by the NODETAB parameter (type SNODETEXT) All text have a maximu length of 75.

One thing i'd try to do is make a copy of this standard FM (along with its function group, obviously) and create a ZSNODETEXT structure with a maximum length of 150 to fit your needs.

Another thing you could do is show the long text in a popup or something similar by programming the event AT USER-COMMAND when the user double-clicks on an item.

Former Member
0 Kudos
114

Thanks a lot for your quick feedback.

I like the solution which will consist on creating a copy of the FM with a structure ZSNODTEXT which will allow the display of 150 characters. But only if there is big "regression" after (our deadline is very limited).

Maybe also the solution of the popup.

Using ABAP Object can be a good idea but I am afraid that we should modify the entire program and sure we have not enough workload for this.

I will forward these information to my technical consultant and let him give me his feedback.

Thanks again

Vincent

Former Member
0 Kudos
114

Do you think we can use the parameter CALLBACK_MOREINFO_DISPLAY of the MF RS_TREE_LIST_DISPLAY? What will be the result ? How using this parameter ?

Thanks

Former Member
0 Kudos
114

Dear Vincent,

Not sure if the outcome would be exactly what you are looking for.

Still, using the parameter CALLBACK_MOREINFO_DISPLAY offers you the possibility to add more info to your tree nodes.

You need to use a perform with name MOREINFO_DISPLAY passing these parameters

FORM moreinfo_display

TABLES moreinfo STRUCTURE streeattr

USING node LIKE streenode

and on the parameter for the FM you put like this:

CALLBACK_MOREINFO_DISPLAY = 'MOREINFO_DISPLAY'

The texts stored in MOREINFO are displayed line-by-line under the corresponding node.

Hope it helps.

Kindest Regards

/Ricardo

Former Member
0 Kudos
114

OK, so I assume that I will still have the same problem of length :the length of extra field will still be limited to 75 characters. Am I right ?

Thanks Ricardo for your help

Former Member
0 Kudos
114

And so, if I am right, the form is "empty" : there is no code inside. I will just have to fill the table with extra text for each node, am I right ?

OK, I will try. It's maybe not the best solution, but by taking into account the deadline and the context of this evolution, it can be OK (sure, to validate with the Key users)

Thanks again

Former Member
0 Kudos
114

That is correct Vincent.

Please let me know if you still need more help.

Kind Regards

/Ricardo

Former Member
0 Kudos
114

Hello,

Can someone tell me the use of the parameter TEXT_LENGTH of the function RS_TREE_LIST_DISPLAY? The default value is 75 ; is it not because of this parameter that our fields are blocked to 75 characters?

Thanks a lot

Vincent