cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling the 'Edit' button.

Former Member
0 Kudos

Hi All,

Logically the edit button should be disabled when follow on documents are created for the shopping cart.

But I can still see that button active when the cart is fully approved.

Please suggest a way to make it disabled after the cart is fully approved.

Thanks & Regards

Archana

Accepted Solutions (1)

Accepted Solutions (1)

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

The user should not be able to change the shopping cart in BBPSC04 if the SC item was set to completed.

Note 1315293 has been developed to correct this behavior.

Kind regards,

Ricardo

former_member183819
Active Contributor
0 Kudos

Hi ricardo

1315293 - if we implement this note

can we avoid the end user not to delete the cart after approval process / follow on doc created i.e PO created.

As you aware after approved either it may be PO created if valid SOS / or will be available in purchaser work list.

thanks

muthu

Answers (3)

Answers (3)

peter_novoth
Active Contributor
0 Kudos

Hi Archana,

you can delimit the trash icon with the UI BAdI, or with a small modification:

Transaction SE38:

LBBP_PDH_SEARCHF30


* Check whether confirmation or invoice is created
      IF is_item-quan_iv_e <> 0 OR is_item-quan_cf_e <> 0.         <<<< comment out this line
        cs_sublist-flag_delete = c_off.
      ENDIF.

By commenting out the selected line, you will reach the expected result for the classic scenario.

Regards,

Peter

former_member183819
Active Contributor
0 Kudos

Hi Archana

Your questions is valid.

Unfortuately SRM allows this functionality but it should not as you expected.

need an enhacement.

br

muthu

Former Member
0 Kudos

Hi Archana,

You can check with the technical team to find the object for the edit/delete button and ask BASIS team to disable the object once the SC is in approved status.

Depending on the SRM version you will be able to get the object ID for the edit/delete button. If you are in SRM version 3.0 or earlier then there is no object ID available.

In such a case, you can have a validation in BBP_DOC_CHECK BAdI to restrict user from editing the Shopping Cart once it is in Approved status.

Regards,

Francis

Former Member
0 Kudos

Thanks Francis. I have awarded you points.

I need to check on this with the technical team.

Regards

Archana