How to Know wich action is triggered

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, 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.

Similar Messages

  • How to know which Action has been done by a Dialog in ControlsFX?

    Hello!
    I am using ControlsFX for the "Dialog" class. This class lets you build a dialog with "Node" Content.
    I set the content to a GridPane and and had wanted to set up a custom Action.
    There are premade Actions like "OK" "CANCEL "YES" "NO" "CLOSE" so I tried using "OK" and it worked by saving all of the info in the TextFields which were set in the GridPane
    However when I tried "CLOSE" "NO" or "CANCEL" it also saved the data within the TextFields... SO I'm confused, what Actions are exactly going on, and I figured I would just make an if statement saying {code} if(Dialog.getAction(Action.OK) == true){code} but it never worked.
    Thoughts on howe to do the actions? I tried to make a custom action at first, but the premades "workjed" but not really.. :(?

    Thanks!
    This wasn't there when I first looked at it, or I was looking at another location of the api, I will make sure to look at this one now :D.
    I basically did Action action = Dialog.show().
    then did if (action.equals(Dialog.Actions.OK))
    //code
    }So it works :).
    I like the custom action too, I'm interested in the example Action response = Dialogs.create()
          .title("You do want dialogs right?")
          .masthead("Just Checkin'")
          .message( "I was a bit worried that you might not want them, so I wanted to double check.")
          .showConfirm();I from the api it says that .create() is static Dialogs Type, so I'm curious how that's used as the Action in this case?
    Thanks again :)

  • How to know the packages,functions,triggers owned by schema

    I got the script to find the tables,columns and indexes belonged to a schema
    how to find the packages,functions triggers owned by a schema.
    I need to compare schema of PROD with UAT
    Any help will be appreciated

    is it possible to find the source of all those
    objects in a single scriptWhat do you mean?
    user_source will give the script?Yes.
    You can get script more easily with DBMS_METADATA
    SQL> drop FUNCTION "HR"."F11";
    Function dropped.
    SQL> CREATE OR REPLACE FUNCTION "HR"."F11" return varchar2
    as
    v_date varchar2(1000);
    begin
    select to_char(sysdate,'mmddyyyy') into v_date from dual;
    return v_date;
    end;  2    3    4    5    6    7
      8  /
    Function created.
    SQL> set pagesize 0
    SQL> set long 90000
    SQL> select DBMS_METADATA.GET_DDL (
    'FUNCTION',
    object_name,
    'HR')
    FROM    all_objects
    WHERE owner = 'HR'
    AND object_type ='FUNCTION'  3    4    5    6    7
      8  /
      CREATE OR REPLACE FUNCTION "HR"."F11" return varchar2
    as
    v_date varchar2(1000);
    begin
    select to_char(sysdate,'mmddyyyy') into v_date from dual;
    return v_date;
    end;
    Is there any script to identify source for all those
    objects

  • How to know which workflow is triggered by an event

    Dear all,
    We have a event of a object type.
    Say: EVE1 of obj ZOBJ1.
    And this is used as a triggering event in a workflow.
    We need to identify which is the workflow.
    How should we find that?
    Regards,
    Vivek

    Hi Vivek,
    Consider this simple example.
    Your work flow will trigger whwn ever the purchase order is created.
    So for PO number 600023234 the workflow was already triggered.
    Then go to SWI6 and give the BOR name as BUS2012 and the Object key as  600023234.
    It will displays how many workflows were triggered based on that BOR and the PO number 600023234.
    Thanks.

  • How to know wich acount use an itunes card?

    Somebody take 2 of my 3 iTunes gift card , I still have the code w the receive , can I track who (account) Redeem the cards?

    no

  • I'm not able to see all the tabs words on itunes window. I think I uninstall the font on my system. How I can know wich fonts Itunes uses for install it?

    I think I uninstall the font on my system. How I can know wich fonts Itunes uses for install it?
    I'm using Win Vista 64b - but I try already to install all my fot library but nothing happen,, still not able to see some menu's from lists, tabs titles, etc.
    I search through itune's web site and not sign of info about how can I fix this problem...
    help!

    It has something to do with Segoe fonts in your system.
    Refer this link for solution
    iTunes 10.1 Missing Text

  • How can I know wich plug-in im missing?

    How can I know wich plugin im missing, it says that ¨this patch is not for you¨ Photoshop CC

    Does this happen ONLY with Mail? Could you close all other applications and open Mail and check again? If this is still happening, please post a screenshot here.

  • How to know where all my Update of a field created records (Like when we have nested triggers)

    How do I know where all( in which tables) the new records are created when I've updated a field in a Table.
    I've updated a field it displayed. actually it updated only one row in my original table
    1 row effected.
    1 row effected
    1 row effected.
    1 row effected.
    four times.
    So I realized and seen the triggers defined for that table, then also I was able to find only one record inserted in a different table through record.
    How to know all the tables where all my update  ...cause to insert records.

    do you've a common field between tables or an audit column like datemodified?  If yes, you can use them to find out recently inserted records from the affected tables.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How may i know wich data are deleted from my sql database.

    Im using sql server 2005 someone deleted some transaction from my database.In my database audit is not enable.
    How may i know wich data is deleted? plz help me.

    Hi,
    If there has been little or no activity since the deletion, then the out-of-the-box trace may be of help. Try running:
    DECLARE @path varchar(256)
    SELECT @path = path
    FROM sys.traces
    where id = 1
    SELECT *
    FROM fn_trace_gettable(@path, 1)
    [In addition to the out-of-the-box trace, there is also the less well-known 'black box' trace, which is useful for diagnosing intermittent server crashes.
    According to your description, there is a way that you can recover most of the missing data with the aid of Transaction Logs and LSNs (Log Sequence Numbers). Usually, if you know when your data was deleted then the challenge to recover the deleted data is
    not as difficult. But, if you do not know the date and time when the data was deleted, then we will have to find a different way of identifying the data. For more information, there are steps about recovering deleted data in SQL Server, you can review them.
    http://sqlbak.com/blog/recover-deleted-data-in-sql-server/
    In addition, there are steps about know who and when deleted the data.
    http://raresql.com/2012/10/24/sql-server-how-to-find-who-deleted-what-records-at-what-time/
    Regards,
    Girish Prajwal

  • How can we know which index is triggered

    hi all ,
    how can we know which index is triggered in perticular select statement ? is that just based on the fields which used in the select statement or can we know from ST05 ?
    thanks,
    ram

    Hi Ram,
    You can go to transaction ST04(if you are authorised)...
    Now select 'Detail analysis menu' button.
    Now select SQL Request button under 'Resource consumption by' section.
    Now in the ' SQL statement pattern by ' field , give the part of the select statement you want to check.
    Now press execute.
    Now select the line item displayed and goto menu option <b>Goto->Explain SQL</b>.
    It will give you the execution plan for the particular SQL statement.
    From here you can get the index values from INDEX RANGE SCAN statement in this output.
    Hope this has been of some help to you...
    Regards,
    SP.

  • How to find the action profile when I know a BADI?

    Hi,
      I have a BADI ZS_ORDER_SAVE, but I don't know which action profile uses this BADI? How can I find it?
       Thanks a lot!

    Hi Long,
    take a look at the definition name of your badi implementation. If ORDER_SAVE, then the BADI is called during the save process of an one order object. If EXEC_METHODCALL_PPF, then it is used by an action; check table PPFTFLTVAT to determine the action.
    Regards
    Wolfgang

  • I have a main fillable form.  From this main form the user may need additional forms.  I want to create checkboxes that link to these additional forms.  This part I believe I know how to do (Properties/Actions/Open a File).  What I want to add is a javasc

    I have a main fillable form.  From this main form the user may need additional forms.  I want to create checkboxes that link to these additional forms.  This part I believe I know how to do (Properties/Actions/Open a File).  What I want to add is a javascript to the checkbox that when the new file (or form) opens some of the data (the repetitive data like name, date, etc.) from the main form is placed into the form opened where the same form fields exist.  Is this possible?

    Yes, but then it all has to be done using a script. You can't use the built-in Open A File command.

  • Z-Button - How to call a Action Profile to Open a PDF-Doc. within an Event?

    Hi Experts,
    we have created a Z-Button that afterwards creates an event. In the coding for the event an Action Profile should be called and a PDF-Document should be opened. We have copied the coding from the standard button 'Print Preview' which is calling the standard event: EH_ONPRINT_PREVIEW.
    We have also defined a Z Action Profile which is a copie of SERVICE_CONFIRMATION. Our problem is we don't know how why our Z-Action Prodile is not called? What is the class lr_actioncontext (TYPE REF TO cl_crm_bol_entity)?
    DATA: lr_cn               TYPE REF TO cl_bsp_wd_context_node,
            lr_adminh           TYPE REF TO cl_crm_bol_entity,
            lr_actioncontext    TYPE REF TO cl_crm_bol_entity,
            lv_adminh_guid      TYPE string,
            lv_url              TYPE string,
            lc_head_context     TYPE REF TO cl_doc_context_crm_order,
            lt_item_context     TYPE ppftctxpos,
            iv_header_guid      TYPE crmt_object_guid,
            lif_decision_pop    TYPE REF TO if_bsp_wd_popup,
            lv_string           TYPE string.
      CHECK gv_print_preview_enabled = abap_true.
      lr_cn = me->get_context_node( gc_cn_btadminh ).
      CHECK lr_cn IS BOUND.
      lr_adminh ?= lr_cn->collection_wrapper->get_current( ).
      CHECK lr_adminh IS BOUND.
      lv_adminh_guid   =  lr_adminh->get_property_as_string( iv_attr_name = 'GUID' ).
      lr_actioncontext = lr_adminh->get_related_entity( iv_relation_name = 'BTHeaderAction' ). "#EC NOTEXT
      CLEAR gt_print_actions.
      CLEAR gr_action_popup.
      iv_header_guid = lv_adminh_guid.
      CALL METHOD cl_crm_uiu_actions_tools=>get_action_definition
        RECEIVING
          rv_action_def = lv_string.
      CALL METHOD cl_crm_uiu_actions_tools=>show_print_actions_popup
        EXPORTING
          ir_action_context       = lr_actioncontext
          ir_parent_node          = lr_adminh
          ir_view_controller      = me
          ir_component_controller = comp_controller
          iv_event_name           = gc_ev_print_preview_closed
          iv_for_preview          = abap_true
          iv_appl_guid            = lv_adminh_guid
        IMPORTING
          et_actions              = gt_print_actions
          ev_url                  = lv_url
        CHANGING
          cr_decision_popup       = gr_action_popup.
      IF lv_url IS NOT INITIAL.
        call_print_preview_popup( lv_url ).
      ENDIF.
    Best Regards

    Closed. No answers.

  • How to retrieve the action type of a PA40 action?

    Hi there,
    I am trying to find out the way to identify what was the action type for the personnel action that is just being executed. I will try to explain myself with a concrete example.
    Let's take the hiring action.
    A user goes to PA40 and initiates the action to hire a new employee. The program will then start guiding the user through the different infotypes defined within the infogroup.
    Let's say that the order is IT0001, IT0002, IT0006, ...
    I have setup table T779X to call a Function Module of my own after inserting IT0006. At that point in time I can know that the IT has been modified through transaction PA40 (sy-tcode) but, how can I know what action is being executed?
    Thanks

    Jim,
    Actions can always be found afterwards in IT000 indeed
    My problem is that I need to know what action type was initiated in REAL TIME. When I am debugging the batch for IT0006, after the user initiated an action through PA40
    Thanks for the answer anyway

  • CAN YOU PLEASE TELL ME HOW TO RECORD AN ACTION IN PSE 7?  I WANT TO DO SAME ACTION ON WHOLE BATCH.

    COULD YOU PLEASE EXPLAIN  HOW TO RECORD AN ACTION IN PSE 7?  I AM WANTING TO PUT MY BUSINESS NAME ON ALL MY PHOTOS & WANT TO DO IT @ THE SAME TIME INSTEAD OF INDIVIDUALLY.  I KNOW IT WILL SAVE A LOT OF TIME.  THANKS SO MUCH!!

    Check this out:
    http://www.easysector.com/index.php

Maybe you are looking for

  • What version of Google chrome is better to use on iMac running Lion

    Seem to be having a lot of trouble using Google Chrome on my iMac running OSX Lion 10.7.3.  Each time I use it, I get the message that my profile couldn't be opened.  Then when I try to quit Chrome it causes my computer to freeze and I end up having

  • My bejeweled game is frozen and I can't get it unstuck

    My game bejeweled is frozen and I can't get it unstuck.  Help.

  • Emailing from iPhoto doesn't create new message

    I'm trying to email some photos from iPhoto using Apple Mail. I select my photos tell it what size to send, photo count is correct. Click on Compose and I see a progress bar...preparing photos for email. it says it processed the correct # of photos b

  • Illustrator crashes when I'm opening documents

    Hi there. I just installed Illustrator on my Acer Aspire S3 w/ Windows 7 Service pack 1. I'm starting out with the 30 day trial. I can't seem to find out what the problem is, but: Whenever I try to open the program, I get to the first step, where I s

  • Anything missing from my Action Script?

    Hello I am trying to view a newsfeed - which works in a normal browser - in my (MX 2004) movie. I have this in my AS (2) panel: myFeed.onLoad = function(success){ if(success){ bbcNews_txt.htmlText = this.html; }else{ bbcNews_txt.text = "Error!"; and