on 2015 Jan 26 7:27 PM
Request clarification before answering.
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
Thanks,
Veera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.