How to control Action in a Custom Button - SRM 7.0

Hi SRM gurus,
We have an issue to add a new button in Bidder responseu201D window when we process an RFX. We follow these steps:
1. Defined and designed a new action called ZZMYACTION, type u201805u2019 (header) and for BUS2202 (Vendor Bid).
2. Configured the control of action on header level for displaying and editing.
3. Added a new button in Webdynpro Component FPM_OIF_COMPONENT, configuration ID /SAPSRM/WDCC_FPM_OIF_QTE_PURCH. It was added as u201COTHER_FUNCTIONSu201D button. It was configured with ELEMENT ID = u2018ZZMYACTIONu2019 and FPM Event ID = u2018ZZMYACTIONu2019.
4. We created a post-exit for method ONACTIONBUTTON_PRESSED in view CNR_VIEW of the webdynpro. We encode this post-exit following next thread:
So we have the control of the button. We have now a problem, because we raise our event ZZMYACTION, butu2026 ¿how can we configure this event? The purpose of this button is send an email to the bidder answering him about the result of the RFX, but I donu2019t know where do I have to put my code to do this.
Anybody can help me to define the event? What am I missing? In addition, I would like to know in the event the bidder, sou2026 how do I send this to my code?
Many thanks in advance
Best regards,
Valentín.

Hi Valentín,
If you want to control the event raised by your button, you should create a post-exit in class /SAPSRM/CL_CH_WD_IDEN_PUR_RFX, method /SAPSRM/IF_CLL_IDENT_MAPPER~HANDLE_EVENT. I hope this can help you.
There you can find a standard example to implement your code. It could be like this:
    DATA:      lv_qte_guid            TYPE bbp_guid,
                   lv_parent_guid         TYPE bbp_guid,
                   lv_folder_url          TYPE string,
                   ls_url_components      TYPE /sapsrm/s_wd_ui_url_components,
                   lo_navigation_service  TYPE REF TO /sapsrm/if_ch_wd_navi_serv,
                   lo_cmp_api             TYPE REF TO if_wd_controller,
                   lo_comp                TYPE REF TO if_wd_component,
                   lo_window_manager      TYPE REF TO if_wd_window_manager,
                   lo_ext_win             TYPE REF TO if_wd_window,
                   lo_task_container      TYPE REF TO /sapsrm/if_cll_task_container,
                   lv_url                 TYPE string,
                   lo_bom_qte             TYPE REF TO /sapsrm/if_cll_bom_qte,
                   lo_comp_controller     TYPE REF TO /sapsrm/iwci_wdi_l_fpc_general,
                   lo_techbid             TYPE REF TO /sappssrm/cl_techbid_cfolder,
                   lv_urlpart2            TYPE string,
                   lt_partner             TYPE TABLE OF  bbp_pds_partner,
                   ls_partner             TYPE bbp_pds_partner,
                   lv_bidder_guid         TYPE bu_partner_guid,
                   ls_obn_components      TYPE /sapsrm/s_wd_ui_obn,
                   lt_url_params          TYPE wdy_key_value_table,
                   ls_key_value           TYPE wdy_key_value,
                   lv_title               TYPE string,
                   lo_portal_mngr         TYPE REF TO if_wd_portal_integration,
                   lo_message_handler     TYPE REF TO /sapsrm/if_ch_wd_map_msg_hdlr,
                   lx_pdo_error_gen       TYPE REF TO /sapsrm/cx_pdo_error_gen.
    TRY.
        CALL METHOD core_object->get_task_cont(
                  IMPORTING eo_task_container = lo_task_container ).
        lo_bom_qte         = lo_task_container->get_bom_qte( ).
        CALL METHOD core_object->get_task_cont(
                  IMPORTING eo_comp_controller = lo_comp_controller ).
        CALL METHOD lo_bom_qte->get_parent_bo_details
          IMPORTING
            ev_parent_guid = lv_parent_guid.
        CALL METHOD lo_bom_qte->/sapsrm/if_cll_bo_mapper~get_bo_guid
          RECEIVING
            rv_bo_guid = lv_qte_guid.
        CASE io_event->mv_event_id.
          WHEN 'ZZMYACTION'.
               Your code here.....
        ENDCASE.
      CATCH /sapsrm/cx_pdo_error_gen INTO lx_pdo_error_gen.
        lo_message_handler->add_exception( io_pdo_error_exception = lx_pdo_error_gen ).
    ENDTRY.

Similar Messages

  • ***How to call BSP App when custom button event fired from toolbar group***

    Dear PCUI Experts,
       I have created one custom button for the transaction CRMD_BUS2000116.
    And my urgnet requirement is , I need to call BSP application which is used to   take data from custom fields and stores into BP table.
    How to call the BSP App. when i clicks on the button.
    Please help me..
    I will reward with great points.
    Regards,
    Stella.

    Hi Purushothaman,
                                 I have created a button in CRRM_ACCOUNT application.
    Now i want to call  a custom bsp application by clicking on that button.I have followed step given in this blog
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1646. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    But the event is not triggered.Do I have to create an iview for my bsp application?
    How to do that?Plz help.
    Regards,
    Ruby.

  • How to control the name of custom field in data base table, added by AET

    Hi,
    I have added the one custom field by Application Enhancement Tool (AET).
    The name of custom field has been added in the data base table as ZZFLD000004 by AET.
    I need to add the some meaningful name like that ZMYPROB.
    How can I control the name of custom field in the database field through AET?
    Thanks,
    Amit

    Got the answer.
    Need to click on the Enable Expert mode, then custom field name will be editable.

  • How to control scheme with JSF commandLink/Button tags?

    Ok, so I've a problem using JSF on Sun AS 9.0.1 when deployed behind an SSL accelerator in production.
    Because secure requests get to the app server unencrypted, I am unable to use regular declarative security user-data-constraint/transport-guarantee/CONFIDENTIAL in web.xml, or it gets in an infinite loop redirecting to https.
    Tomcat 5 provides a way to customize the default behavior (see http://www.unc.edu/~adamc/docs/tomcat/tc-accel.html), but I'm not going to be able to use this until Sun AS 9.1 comes out... :(
    So in the meantime, I'd just like to control the schemes on my links and action post, but JSF doesn't seem to support it! <commandLink/Button>s don't seem to allow you to change scheme. If you put a full URL in the action, it fails to lookup the full URL w/ scheme in the faces-config.xml...
    Is this a Glassfish bug or a JSF oversight?
    I'd appreciate any workaround idea the community would be willing to share. :)
    Thank you,

    Hey guyz plzzz help
    In my navigation rule , generally i call any other jsp, instead of it can i call controller servlet ? And now every action corresponding to any button will call this servlet.
    can i call servlet ?

  • Navigation control only with my custom buttons

    I'm using Captivate 4 and I'd like to create an eLearning course that navigation control goes only through the cutom buttons I create. No auto continue to the next slide, etc. I've deleted the full screen invisible button with continue on it, and I disabled the skin with playback control. If it's just a page turner, it's fine. If you have inteactions using buttons, click box, the "If the user clikcs outside of the button," seems to affect the behavior of the slide. I tried different settings but it still goes to the next slide after clicking on something a few times.
    For example, I tried to set allow attempts to 100 and set No Action After the last attempt. If it works as it says, then you should be able to click on the screen 100 times without activating anything. Then, it should take No action as I asked it to do. But this does not work.
    So, how can I do to create a Captivate course that only navigates with my buttons, menus?
    Thanks,

    Hi,
    Can you share this screen with me where you are controlling the navigation with those 6 buttons ?
    I am in similar situation with over 120 slides to be built in with action to be controlled by user clicks.
    Thanks.

  • How to control user input with a button?

    How do I control a user input from a dialog box by activating it with a button. I am saying "press zero", then when the user does press zero, it should zero the scale.

    The user has only one button they can press.  You should enable the cancel so that the dialog can output an F.  
    What you have works, but the zero will not occur until the case is activated.  If the insides of the case do not work, that is another story.  Put a pop up in the active case to convince yourself that the case is being entered.
    This, what you have, always returns T.
    Mark Ramsdale

  • How to control Action Definition in mail format from not being executed

    Dear Experts,
    I have created one Action Definition having processing type "SMARTFORM Mail" to which status based start condition is given. The Action is getting executed evnthough the start condition is not satisfied.
    Can any one plz explain me why this is happening and how to proceed further.
    Regards,
    Babu.

    Hi Babu,
    What is the start condition that you gave for the Action?
    Also how are you able to check whether it is getting fulfilled or not?
    Regards,
    Saumya

  • How to control actions printing,export in discoverer viewer for user

    Hi
    we use discoverer viewer .I want to control Printing,export,send email options
    for user for a worksheet.Hoe to do this. thru Enterprise Manager apps server control , i tried to change the settings , but i guess thats for all the users and all the workbooks.
    how do i set this for user??
    rgds

    Hi
    Yes, the settings you can apply are global and will affect all users. You cannot restrict these by user. Sorry.
    Best wishes
    Michael

  • How to perform action when the close button is pressed?

    i am using a JInternalFrame and i would like to perform some actions before the internal frame closes when i press the close button on the top right corner of the frame.
    i know the first step is:
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    what next? what actionlistener shd i use??
    thx very much

    Your first step is wrong.
    yourInternalFrame.addInternalFrameListener(
         new InternalFrameAdapter(){
      public void internalFrameClosing(InternalFrameEvent e){
        // do part
    });

  • How to control a YouTube video with buttons created with Edge Animate?

    I am able to embed a YouTube video by doing:
    var tubeCont = sym.$("tubeCont");
    var youtube = '<iframe  width="'+tubeCont.width()+'" height="'+tubeCont.height()+'" src="http://www.youtube.com/embed/OCbrZvmLY0o?enablejsapi=1" frameborder="0" allowfullscreen ></iframe>';
    tubeCont.html(youtube);
    I have some buttons that go to another position on the timeline where a different object is shown. if the video is playing, it will continue playing even if the user cannot see it. Hence, I want to pause or stop the video.
    On the button clcik event I have tried:
    sym.getComposition().getStage().getSymbol("youtube").$getSymbol("player").stopVideo();
    sym.$("youtube").$("player").stopVideo();
    youtube.$("player").stopVideo();
    sym.getSymbol("youtube").$("player").stopVideo();
    sym.getSymbol("youtube").stopVideo();
    And other stuff, but I cannot make it doing waht I want.
    Any suggestions?

    Yes, I tried tubeConf, and it doesn't work either.

  • How do I Action Script buttons, so the objects lay on the prior object clicked on, in Flash?

    Here's my idea but having problems with the actions scripting:
    Accessories and build your car application in Flash.
    I'm new to the Action Script 3 and I am trying to Action Script my custom graphics for a “build your own car”. Something similar to the Harley Davidson motorcycle builder https://www.harley-davidson.com/en_US/Content/Pages/H-D1/Bike-Builder.html#/locale__en_US/ model__FLD/year__2013
    I have all the graphics (multiple photos, photoshopped and cut out for the different car body colors. I'm doing the same with the car rim choices, etc) All the graphics are sized so they will lay on top of one another seamlessly but I don't know how to Action Script 3 the buttons so you can click on (ex: rim1, or rim2 , etc and see how it looks on car by pulling up the photo on top of the existing background car photo) .
    How would I Action Scrip my "color button" to come up with 10 color swatches I’ve designed and then when you click on the color swatch (ex: red). It will then put the graphic red of the car body that I have already made on top of the existing background photo of the car and so on for each color button?
    Thanks for the help in advance!

    I'm not sure if I do know how to correctly create the Wheels classes and use action scripting. Are the classes you're referring to the parts I labeled btn1, btn2 below? Here's what I have under the main Timeline labeled actions:
    stop() ;
    // Color button code //
    colorbtn.addEventListener(MouseEvent.CLICK, btn1);
    function btn1 (event:MouseEvent) :void{
        gotoAndStop (2);
    // Rims button code //
    rimsbtn.addEventListener(MouseEvent.CLICK, btn2);
    function btn2 (event:MouseEvent) :void{
        gotoAndStop (3);
    //rim1 button code //
    rim1.addEventListener(MouseEvent.CLICK, btn3);
    function btn3 (event:MouseEvent) :void{
        gotoAndStop (4);
    I'm not sure how to fit your code in that you said in your first comment. The //rim1 button code // doesn't currently work.
    I think if I had a sequence of the action script 3 with a button/movie clip layed out for me, I could organize accordingly for my buttons and movie clips. Since they would work the same just would have to have different labels.

  • Add on custom button to ALV toolbar in std tcode ME51N, ME52N and ME53N.

    Hi All,
    I have the requirement to add on the custom button to ALV toolbar in ITEM OVERVIEW for standard transaction ME51N, ME52N and ME53N. Does anyone know what enhancement point or user exit i should apply and how i can add on the custom button?
    Thanks.

    There are no user exits or badi's for COOIS. You may have to make copy of the PPIO_ENTRY to ZPPIO_ENTRY including all the varians without changing their names like copy SAP&COOIS to SAP&COOIS. Create a T-Code ZCOOIS and replace COOIS in variant SAP&COOIS to ZCOOIS not in the name of the variant but in the field "Check Authorization for".
    The PF-Status is found in the include LCOISOUTPUTF16 which is located in the function group COISOUTPUT you may have to copy that too. Finally you need to copy SAPLCOISOUTPUT with its GUI status GENERAL and add your custom button there.

  • Custom button  on ALV report for Tcode FL10G ?

    Hi All,
    I want to add custom button in the AVL report for FL10G transaction.  And then need to implement logic for that button (calling BAPI to create shipment for the selected records).
    For VL10G alv program GUI Status - STANDARD001  I think I can add button in this gui by using access key.
    But how to implement logic for this custom button?  Where I can put the code for this button logic?
    Please let me know if any one has any ideas on this issue.
    I appreciate your help and time on this.
    Thanks.
    M

    Hi Murali,
    The standard program it will not allow to copy the GUI Status. Because source and target program should not same.
    It will definitely debug will work. Yo can create the GUI Status through SE41. In SE41 Just give Program name :SAPLV50R_VIEW click the button status. here you should not give any gui status. just blindy say create the then it will popup screen appears in the screen. Here you can mention your Z GUI Status. It is not required to create all the menus manually instead of the there is button which is located in the screen next to blue i button. here you can click and select the standard interface. You can get all the menus as similar to standard. Like that you should create Menu Bar, Application Toolbar and Function Keys  Menus. Then you can add your custom button in the Application tool bar button.
    When you execute the Transaction VL10G and check your cusom menu button will appears. Once you click custom button only exit will trigger. Find the below code for your reference.
    CODE
            loop at ct_postab assigning <fs>
                    where selkz = 'X'.
    *To Fill the BAPI  Header Parameters
                  str_ordhdr-ship_cond = w_sval-value.
    *To Fill the BAPI  HeaderX Parameters
                  str_ordhdrx-updateflag = 'U'.
                  str_ordhdrx-ship_cond = 'X'.
                  call function 'BAPI_SALESORDER_CHANGE'
                    exporting
                      salesdocument    = <fs>-vbelv
                      order_header_in  = str_ordhdr
                      order_header_inx = str_ordhdrx
                    tables
                      return           = str_return.
                endloop.
                read table str_return into w_return index 1.
                if sy-subrc eq 0.
                  if not w_return-type = 'S'.
                    message w_return-message type 'E'.
                    leave to current transaction.
                  endif.
                endif.
    *Do the BAPI Commit
                call function 'BAPI_TRANSACTION_COMMIT'
                  exporting
                    wait = 'X'.
              endif.
            endif.
          endif.
    Let me know if you have anything to discuss on the same.

  • Creating Custom Buttons in Captivate 3

    In the first version of Captivate, I was able to create my
    own image buttons, including the three states of the button (over,
    down, click). When I select one of the included buttons in
    Captivate 3, the three states of that button are added
    automatically. How do I create my own custom buttons and include
    the three states in Captivate 3?
    Thanks,
    Erica

    Hi Erica and welcome to our community
    The process is essentially the same. The only difference here
    is that instead of just browsing to the button images and selecting
    them individually, you name them appropriately and place them where
    Captivate expects to find them.
    They are expected to be found in the following location:
    (Assuming you haven't deviated from the default location during
    install)
    C:\Program Files\Adobe\Adobe Captivate 3\Gallery\Buttons
    The names should be:
    ButtonName_down.EXT
    ButtonName_over.EXT
    ButtonName_up.EXT
    *Note that .EXT reflects the image format. This could be .GIF
    or .JPG or .PNG or .BMP and ButtonName reflects what you want to
    call your button.
    Hope this helps... Rick

  • How to control the role in portal with SRM7.0

    HI ,My expert :
      I work in SRM 7.0  with EP.
      I want to control the ROle about the business partner manage .In the portal ,some user can edit the business partner  data ,however the other can only display the data .In this case ,I do not  how to control ? dispaly the role in SRM or portal ?
      BestRegards!
      Alex!

    hello
    authorizations are made on SRM; create roles z in SRM and subsequently assigned to a group role-z also. But the authorization in SRM.
    Best regards.
    José Luis

Maybe you are looking for

  • EMS memory problem on Satellite M40X

    Hello. I'am new user sat. m40x-116. I must use EMS and XMS memory in MS-DOS based programs. But now it's not be. I look with MEM command in dos mode, and my programs messeage is "OUT OF MEMORY". I changed windows xp home to xp pro. But it's negative

  • ITunes 6.0.4 (3) random mp3/aac skipping

    I recently upgraded to 6.0.4 (3), which was apparently a huge mistake. I listen to my music quite often, and recently (since the update), iTunes has decided it wants to start skipping in random locations in the file. Some files always skip in the sam

  • When I sync my ringtones I lose my music - and when I sync my music I lose my ringtones??

    When I sync my (purchased) ringtones to my I-phone I lose my music and when I sync my music to my Iphone I lose the ringtones????????

  • Default cache size reduced to 350 MB (from 1024 MB)

    Why was the default size of the automatic cache management reduced from 1024 MB to 350 MB ? How does that improve Firefox ?

  • Call one TF in other TF

    Hi, I have two taskflows... in each of the taskflow i have a default activity as home page when i am running independently these taskflows initially home page gets displayed But when i am calling the second taskflow in the first taskflow i want the h