cancel
Showing results for 
Search instead for 
Did you mean: 

disable/enable the usage of "add approver"

Former Member
0 Kudos

Dear All,

The used SRM version is SRM 7 (SAPK-70108INSRMSRV).

We are using one-step and two-step approval. It depends from SC-Total-Value.

While two step approval is the second approver not able to add further approver (the button disabled), but while one step approval it is possible.

Do you know how to disable/enable the usage of "add approver" and "add reviewer" buttons generally.

Kind Regards

Alex

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

try debugging

Class: /SAPSRM/CL_PDO_META_BO_SC_ADV

method: /SAPSRM/IF_PDO_META_CONSUMER~GET_ACTION_METADATA

I do not think it is possible to provide your logic via metadata framework for Add Approver/Above or Below button as the logic is written in standard code.

You may have to raise a OSS ticket to SAP to fix the issue.

Regards,

Sushil.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Melina,

Yes the second approver is not able to add any approver. Selecting a valid line does not alter the fact that the button remains disbled.

We have  the Application-Controlled Workflow in use.

Do you know if it possible to make such settings in customizing or table/metatable in order to make this button visible generally.

Regards

Alex

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Alex,

You say that the second approver is not able to add approver right?

Are you using AC or PC?

For PC only using completion approval level is that the approver should be able to edit the document.

And also a valid level must be selected to button appear.

If is AC then the class to debug will have a EXT in the end.

Thanks,

Melina

Former Member
0 Kudos

Hi Alexander,

You need to select the 2nd level of approval and then the button should disable. I see you have selected the first level of approval.

Hope this helps.

Regards,

Naveen

Former Member
0 Kudos

I am sorry to say it didn't help.

Regards

Alex

Former Member
0 Kudos

Hi, check if the second step allow modification.

Hope this help,

Celeste

Former Member
0 Kudos

Heee??