cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Allow/disallow the requester to modify

Former Member
0 Likes
292

Hi all,

I want set the EDIT FPM button visible for BUS2121...

I understand I have to add an implementation in view /SAPSRM/V_MDA_HC according to the comments in EDIT_DURING_WORKFLOW method...

How can I do that?

I can't see any enhancement point...

Regards,

Karina

Accepted Solutions (1)

Accepted Solutions (1)

former_member228602
Contributor
0 Likes

Hello Karina,

             These follow the newer methods of adding the enhancement in abap namely pre-exit. post-exit and overwrite exit.This SC link should help you

http://wiki.scn.sap.com/wiki/display/ABAP/Enhancement+Framework+-+Class+Enhancements+-+Pre-exit,+Pos...

Thanks,

Veera

Former Member
0 Likes

Wow! thank you so much Veera 

Now I just need to set action_enabled with 'X', right?

cs_metadata-action_enabled = abap_true.

I did that in post-exit and I still can't see the edit button, do we need to do something else by configuration?

I found this post:

They say this approach doesn't apply to my requirement and that we must apply SAP NOTE 0001277921 but our release is 713 and the note is for 700...

What do you think? What should I do?

former_member228602
Contributor
0 Likes

Hello Karina,

     These corrections will definitely be there in your system as your already on SRM 713. I am afraid only after debugging can check as to why edit did not work. As a workaround i can suggest implementing the code in

class /SAPSRM/CL_PDO_META_BO_SC_ADV

method /SAPSRM/IF_PDO_META_CONSUMER~GET_ACTION_METADATA

Remember this code will get called for each and every button and you will need to write case specific code. This code has higher precedence than the previous method.

Thanks and Regards,

Veera

Former Member
0 Likes

Thanks again Veera, I tried to implement a post-exit in get_action_metadata but I got the message:

"The class has not yet been converted to the new class-local types"...

former_member228602
Contributor
0 Likes

Hello Karina,

          I just checked and this issue happens because the classes structure is the old one. There are two ways out

1. You could activate the class and new Abap workbench will save the class in the new format and then you will able to proceed with the above implementation. But this will be a modification.

2. You could go the way of Implicit enhancements

http://wiki.scn.sap.com/wiki/display/ABAP/How+To+Do+Implicit+Enhancement

The above example is for function module but you could follow steps for Abap method. The only restriction here is you can add code at beginning or end of the method only.

You could choose the way forward.

Thanks and Regards,

Veera


Answers (0)