on 06-15-2009 11:55 AM
Hi Amigos,
I have a requirement to create a button "Quality Notification" and when clicked it should generate the Action in WebUI.
Can any of you help me in calling the ACTION BADI. How do i call the badi from the event handler. Please give me some sample coding.
Regards,
Jagadish.G
Hi Jagadish,
I am not very clear with your requirement.
As far as I understand you want to perform some action on the Web UI.
Could you please explain in detail what action you wish to perform.
Regards,
Saumya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saumya,
Thanks for ur reply.
Actually my requirement is, End user wants me to add an button in the UI named "Qualify Notification". When he clicks on that button, there is an Action profile created and assigned to the transaction type in GUI. I have created an implementation (ZQualify) for the badi definition (EXEC_METHODCALL_PPF).
How do i call this BADI on click of that button, ie. i have created an Event handler. I now require some sample code to call this badi from the Event handler. Could u please help me?
Jagadish
Hi jagadish,
There is no code to do this setting. Please refer to the following wiki for details of how to set processing type for an Action. In this case they have used a workflow as a processing type. You need to select a method call and make call to BAdI method.
https://wiki.sdn.sap.com/wiki/display/CRM/Actionprofilesin+SAP-CRM
Hope this helps!
Regards,
Saumya
Hi jagadish g,
For the code in your new button in Web UI, maybe you can copy the sap standard code on how they call the action.
The idea is in your action profile, use 'processing when saving documents' in processing time. So this means when you save your transaction, your BADI will be called.
Put breakpoint on FM CRM_ACTION_DETERM_COMPL_DOC
So you can know how to get the parameter in below FM.
CALL FUNCTION 'CRM_ACTION_DETERMINE'
EXPORTING
iv_header_guid = iv_header_guid
iv_object_guid = iv_header_guid
iv_at_once_only = iv_at_once_only
iv_for_toolbar_only = iv_for_toolbar_only
iv_no_detlog = iv_no_detlog
iv_context = lv_contexts
iv_trigger_onsave = iv_onsave.
The lv_context will have the data that need to your new button to trigger the action and your EXEC_METHODCALL_PPF BADI.
Btw, why the requirement need processing in new button ? the processing in save button is standard and you don't need to put any event handler
Hope it's work,
Lina
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.