Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

Re: disable/enable the usage of "add approver"

$
0
0

Hi,

 

thx for replying.

 

Can you tell me which table is affected for metadata generally in this case.

 

 

In the class /SAPSRM/CL_CH_WD_DOM_APV_AT Method CALCULATE_ADD_ACTION_METADATA is the following coding.

 

Although the variable lv_level_type is always 'A'  instead of 'S' in my case the button is  visible. Where is this phenomenon coming from.

 

 

 

IF loe_hdr_status IS BOUND.

 

    loe_hdr_status->get_attribute(

          EXPORTING

            name =  `LEVEL_TYPE`

          IMPORTING

            value = lv_level_type ).

 

    IF lv_level_type = 'S'.

      lv_add_approver_visible = abap_true.

    ENDIF.

    lon_layout_control = loe_comp->get_child_node( name = 'LAYOUT_CONTROL' ).

    loe_layout_control = lon_layout_control->get_element( ).

    loe_layout_control->set_attribute(

          EXPORTING

            name =  `ADD_APPROVER_VISIBLE`

            value = lv_add_approver_visible

            ).

  ENDIF.

 

 

Regards

Alex


Viewing all articles
Browse latest Browse all 9236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>