Application Development and Automation 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: 
Read only

AC_SYSTEM_FLUSH Error when trying to create Simple Tree

Former Member
0 Likes
2,308

Hi togehter,

i'm trying to create a simple tree. I took the sample from sap and wanted to add my own nodes.

The Problem is that i get the short dump AC_SYSTEM_FLUSH.

So i debuggt and i doesn't see what wrong on my components.

Does anyone know why this error is thrown and what ich have to change on my nodes.

Just to say once again. I took the SAP Sample (that runs by the way) and only added a few more nodes.

Many thanks for your help

Philip

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,676

Hi

After activing the debug try to go to Setting->Display and change All: here set the flag "Automation Controller ....."

Max

8 REPLIES 8
Read only

Former Member
0 Likes
1,677

Hi

After activing the debug try to go to Setting->Display and change All: here set the flag "Automation Controller ....."

Max

Read only

0 Likes
1,676

thanks but how may this help me?

Read only

0 Likes
1,676

Hi

The dump AC_SYSTEM_FLUSH could be triggered by a problem at Control Framework level, so the dump is not triggered as soon as the error occurs and u can't understand where the error could be.

If you active that flag the dump should be triggered as soon as the error occurs, and so perhaps you can understand what's happen: probably there's an error in the parameters you're transfering to the tree.

Max

Read only

0 Likes
1,676

This error comes only when you didn't build the nodes properly. if your nodes table population is wrong then you get that. show your nodes population logic.

Read only

0 Likes
1,676

so here is my coding:

First node

CONSTANTS: lc_rootguid TYPE icfparguid VALUE 'FFFFFFFFFFFFFFFFFFFFFFFFF'.

  • Build the node table.

  • Caution: The nodes are inserted into the tree according to the order

  • in which they occur in the table. In consequence, a node must not

  • occur in the node table before its parent node.

READ TABLE gt_icf_merge

WITH KEY icfparguid = lc_rootguid

INTO ls_actnode.

IF lv_first IS INITIAL.

  • Node with key 'Root'

node-node_key = ls_actnode-icfnodguid.

" Key of the node

CLEAR node-relatkey. " Special case: A root node has no parent

CLEAR node-relatship. " node.

node-hidden = ' '. " The node is visible,

node-disabled = ' '. " selectable,

node-isfolder = ' '. " a folder.

CLEAR node-n_image. " Folder-/ Leaf-Symbol in state "closed":

" use default.

CLEAR node-exp_image. " Folder-/ Leaf-Symbol in state "open":

" use default

CLEAR node-expander. " see below.

node-text = ls_actnode-icf_name.

APPEND node TO node_table.

lv_first = 'X'.

ENDIF.

PERFORM build_child USING

node_table

ls_actnode.

************************************************

In the build_child routine is the following coding:

LOOP AT gt_icf_merge INTO ls_factnode WHERE icfparguid = actnode-icfnodguid..

  • Node with key 'Child1'

node-node_key = ls_factnode-icfnodguid.

" Key of the node

" Node is inserted as child of the node with key 'Root'.

node-relatkey = ls_factnode-icfparguid.

IF sy-dbcnt = 1.

node-relatship = cl_gui_simple_tree=>relat_first_child.

ELSEIF sy-dbcnt = 2.

node-relatship = cl_gui_simple_tree=>relat_first_sibling.

ELSE.

node-relatship = cl_gui_simple_tree=>relat_next_sibling.

ENDIF.

node-hidden = ' '.

node-disabled = ' '.

node-isfolder = ' '.

CLEAR node-n_image.

CLEAR node-exp_image.

node-expander = 'X'. " The node is marked with a '+', although

" it has no children. When the user clicks on the

" + to open the node, the event

" expand_no_children is fired. The programmer can

" add the children of the

" node within the event handler of the

" expand_no_children event

" (see method handle_expand_no_children

" of class lcl_application)

node-text = ls_factnode-icf_name.

node-style = cl_gui_simple_tree=>style_emphasized_positive.

APPEND node TO node_table.

LOOP AT gt_icf_merge INTO ls_actnode WHERE icfparguid = ls_factnode-icfnodguid.

PERFORM build_child USING

node_table

ls_actnode.

ENDLOOP.

ENDLOOP.

So do you need more infos?

Read only

0 Likes
1,676

Alright. Seems that i wanted to add to many nodes at one run so i do it in smaller steps.

It works.

Thanks for your support

Read only

0 Likes
1,676

Hi Philip,

How did you manage to fix this? we are also getting same error due to node building..

Can you provide some details.

Thanks.

Regards,

Pankaj Singh.

Read only

Former Member
0 Likes
1,676

Due to the duplicate data in internal table, this error may occur. So please debug your program and check whether the final internal table( which is creating tree ) has duplicate or not>