on 09-22-2011 8:56 AM
Hi all,
I want to know wich button is pushed within the badi BBP_PD_SAVE_BADI (esle in badi BBP_DOC_CHANGE_BADI).
I know that i can get the action with the following code::
DATA: lo_transaction_context TYPE REF TO /sapsrm/if_transaction_context,
lv_action TYPE /sapsrm/pdo_action_type.
lo_transaction_context = /sapsrm/cl_transaction_context=>/sapsrm/if_transaction_context~get_instance( ) .
lv_action = lo_transaction_context->get_current_action( ).
The problem is this code only works if the document is open in the portal. If I go to the Work Overview and select one document without open it and push somo button like "Approve" or "Reject" the value of lv_action is SPACE.
Do you know how can i obtain this action ?
Thanks in advacnce.
Hi,
Put a breakpoint at BBP_SC_APP_EVENT_DISPATCHER and check it out
Regards
Sameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, i don't know if it's the proper way, but i solved it doing the following:
I've created an enhancement point in the WDA POWL_TABLE_COMP in order to create a pre-exit in the method ON_OBJECT_ACTION of the view TABLE_DATA.
Here you have the action doing the following:
DATA: l_action_id TYPE powl_actionid_ty.
* get action ID
l_action_id = wdevent->get_string( 'ID' ).
so, you only need to Export this value to memory in order to get it in the badi.
User | Count |
---|---|
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.