Skip to Content
author's profile photo Former Member
Former Member

Internal Table Empty When Passed to results.htm

Hello,

I have searched this forum and while I have found many similar posts, I can't find my specific problem. In any case, I am an 8 year ABAPer who is just starting with BSPs, so please excuse me if I miss something obvious. I also apologise if this is long winded, but i want to get the whole problem out in one go...

My default.htm page creates a tree (using ) and in the OnInitialization event i select the data and fill an internal table (i_node_tab). All that works wonderfully.

My problem occurs when the user selects a node from the tree and i navigate to results.htm to display the detailed data. (the navigation works as well) I am trying to pass the contents of the internal table i_node_tab to the results.htm page but it is not coming through - the table is empty. Investigation has determined that the table is full at the end of the OnInitialization event (where it is created) but empty at the OnInputProcessing event of the default.htm page, where i set up my navigation, and therefore is empty at the OnInitialization event in results.htm. At present, OnInputProcessing (default.htm) contains:

****

  • event handler for checking and processing user input and

  • for defining navigation

data: event type ref to if_htmlb_data .

data: tree_event type ref to cl_htmlb_event_tree.

event = cl_htmlb_manager=>get_event( request ).

if event->event_name = 'tree' .

clear: tree_event .

tree_event ?= event.

move: tree_event->node to node.

navigation->set_parameter( name = 'node' value = node ).

navigation->set_parameter( 'i_node_tab' ).

navigation->next_page( 'TORESULTS' ).

endif .

*****

(FYI: "node" is passed perfectly.)

i_node_tab is defined in the page attributes (for both pages) as type Z_NODE_TAB. the attribute "Auto" is checked on the results.htm page but not on the defualt.htm page. the type definitions are:

types: begin of t_node_tab,

childid(22),

parentid(22),

revenue(16) type p decimals 2,

end of t_node_tab.

types: z_node_tab type table of t_node_tab.

Am i defining things incorrectly? in the wrong place? please help! many thanks.

James

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Feb 18, 2005 at 07:50 AM

    Hi James,

    I have never passed a table to another page using the auto-attribute feature but why are you using this code for a normal parameter:

    navigation->set_parameter( name = 'node' value = node ).

    and this code for the table?.

    navigation->set_parameter( 'i_node_tab' ).

    I took a quick look at the implementation of the set_parameter method and I am pretty sure you have to fill the value parameter with your table. Something like this:

    navigation->set_parameter( name = 'i_node_tab' value = i_node_tab ).

    best regards

    Thomas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2005 at 07:22 AM

    Maybe this weblog could also help:

    /people/mark.finnern/blog/2003/09/24/bsp-in-depth-confusion-between-stateless-stateful-and-authentication

    Thorsten

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.