cancel
Showing results for 
Search instead for 
Did you mean: 

Open Approval Process Overview with expanded tree

benjamin_herzig
Participant
0 Kudos

Hi,

i want the approval process overview to open with an expanded tree to see all steps without clicking the little arrow.

Many users don´t see the little arrow in sequence column to expand the tree.

Any ideas how to do it?

Best regards,

Ben

Accepted Solutions (1)

Accepted Solutions (1)

benjamin_herzig
Participant
0 Kudos

Hi,

one year is gone and i still have the request to expand the tree initially.

When i open the tab "approval process overview" in a shopping cart, i want that the tree is expanded initially. At the moment i have to click on every arrow to expand it.

I try to set the context attribute ITM_STATUS-EXPANDED with wddoinit, but it didn´t works.

Any ideas?

Best regards,

Ben

Former Member
0 Kudos

Try creating a post exit for

Class /SAPSRM/CL_CH_WD_DOM_APV_IT

Method /SAPSRM/IF_CLL_DOM_APV_EXT~CONVRT_PROC_INFO_FOR_UI

Loop over table lt_cll_apv_itm and set EXPANDED as abap_true when leaf = abap_false.

After this, bind the table to node mon_cll_set_facade.

* Bind the approval preview data to the context node

     mon_cll_set_facade->bind_data_table(

         new_items = lt_cll_apv_itm

         ).

This may not work if SRM standard uses lazy loading but i dont think its the case.

benjamin_herzig
Participant
0 Kudos

Hi,

now i get it runnin. I solved it with a post-exit in WDDOMODIFYVIEW

   data:   context_node type ref to if_wd_context_node,
          lr_element TYPE REF TO if_wd_context_element,
          lr_elements type wdr_context_element_set.

  context_node = wd_context->get_child_node( 'ITM_STATUS' ).
  lr_element = context_node->get_element( ).
  lr_elements = context_node->get_elements( ).

  loop at lr_elements into lr_element.
    lr_element->set_attribute(
        EXPORTING
          value abap_true
          name  = 'EXPANDED' ).
  endloop.

Best regards,

Ben

Former Member
0 Kudos

Doing this change in WDDOMODIFYVIEW may introduce other problems like following:

1. User sees the expanded view of the tree but then suppose he wants collapse one of the nodes. If he collapses the node and wddomodifyview is called, then it will get expanded again due to your code.

you may check this scenario once.

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Are you talking about the approval preview in the portal?

Regards

Sam

benjamin_herzig
Participant
0 Kudos

Hi,

yes the approval preview and the overview.

Best regards,

Ben

Former Member
0 Kudos

HI,

If you are using SRM 7.0 or above (process controlled workflow) then the workflow preview will be displayed in a table view by standard.

Regards

Sam

benjamin_herzig
Participant
0 Kudos

Hi,

we are using SRM 7.01. In some cases the approval process overview is shown as tree (with a little arrow in column sequence).

I try to upload a screen shot ...

It would be very helpful to upload a screen shot direct in a message ...

Best regards,

Ben