Call logical link from action

Hi experts
I need to call a logical link (like transaction launcher) from an action,
and i need to pass the order id at the transaction called....
anybody can hal me?how to code??
thanks in advance
Marco

Hi Marco,
I can provide code for navigation, maybe this will solve part of your problem?
data: lo_nav       TYPE REF TO if_crm_ui_navigation_service.
* get service for navigation
  lo_nav = cl_crm_ui_navigation_service=>get_instance( ).
CHECK lo_nav IS BOUND.
* navigate to destination
  lo_nav->navigate( iv_link_id = iv_link_id ).
if you want to support a parameter, so use additionally this to create entitiy
data: lo_link      TYPE REF TO if_bol_bo_property_access.
lo_link ?=
            cl_crm_uiu_bt_param_create=>if_ui_link_parameter_class~create_parameter_object(
                                        iv_link_id   = iv_link_id
                                        iv_parameter = iv_parameter ).
Put this entity lo_link into a new data_collection and call
lo_nav->navigate( iv_link_id = iv_link_id
                          iv_data_collection = data_collection ).
Best wishes,
Hakan

Similar Messages

  • Call logical link from custom view on BP_HEAD

    I added a custom view to BP_HEAD in which I display invoices from another system. By clicking on invoice number I need to open VF03 with that invoice. I am able to open the actual transaction VF03.
    However, I am not able to pass the invoice number and open specific invoice that i click on in my view. I think I need to use
    create_bor_based method. However, I am not sure how do I pass parameters to it.
    lv_obj_type = 'VBRK' ?
    lv_obj_key = Actual Invoice No?
    lv_ui_objtype?
    CALL METHOD cl_crm_ui_descriptor_obj_srv=>create_bor_based
          EXPORTING
            iv_bor_object_type  = lv_obj_type
            iv_bor_object_key   = lv_obj_key
            iv_logical_system   = lv_logical_system
            iv_ui_object_type   = lv_ui_objtype
            iv_ui_object_action = 'B'
    *       iv_component        =
          RECEIVING
            rr_result           =   lv_descriptor_object.
    Below is code taken from outbound plug for Invoice Number. This code opens up transaction VF03. Now I need to pass the Invoice Number to this transaction to open specific invoice:
    DATA: lo_nav       TYPE REF TO if_crm_ui_navigation_service.
      DATA: lo_link      TYPE REF TO if_bol_bo_property_access.
      DATA: lr_window            TYPE REF TO cl_bsp_wd_window.
    * get service for navigation
      lo_nav = cl_crm_ui_navigation_service=>get_instance( ).
      CHECK lo_nav IS BOUND.
    * navigate to destination
      lo_nav->navigate( iv_link_id = 'ZSDINVOICE' ).
      lo_nav->navigate( iv_link_id = 'ZSDINVOICE'
                               iv_data_collection = iv_data_collection ).
    *  lo_link ?=
    *              cl_crm_uiu_bt_param_create=>if_ui_link_parameter_class~create_parameter_object(
    *                                          iv_link_id   = 'ZSDINVOICE'
    *                                          iv_parameter = '0385500008' ).
      iv_data_collection->add( iv_entity = lo_link ).
      IF iv_data_collection IS BOUND.
        lr_window ?= me->view_manager->get_window_controller( ).
        lr_window->call_outbound_plug( iv_outbound_plug = 'VBELN' iv_data_collection = iv_data_collection ).
      ENDIF.

    Here you go Maks
    When you run the wizard thn you provide some class name and system will generate that class for you. You can edit the method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW of the class to pass the parameter value.
    Sample code for the same is:
    me->set_container_data(
    iv_name = gc_BP
    iv_value = BP ).
    Now you need to have the access of the BP no. from this address. Where ever you are confirming the BP, in that view create a global attribute and in DO_PREPARE_OUTPUT method set the BP value to the global method and in the Z class method mentioned above you can reterive the value
    e.g. lv_partner_no = ZL_*_IMPL=>gv_partner_no.
    BP = lv_partner_no.
    Cheers
    Sufyan

  • Problem while calling nevigation link from wddomodifyview

    hi ,
      I am trying to call navigation link using reference from WDDOMODIFYVIEW. I need to call previous view from current view. I cannot do that using outbound plug because it would'nt fire in wddomoifyview.

    Hi,
    Use the code below...
    DATA lo_window_manager TYPE REF TO if_wd_window_manager.
    DATA lo_api_component  TYPE REF TO if_wd_component.
    DATA lo_window         TYPE REF TO if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->CREATE_EXTERNAL_WINDOW(
                       URL =
    'http://<server_name>/sap/bc/webdynpro/sap/ztesttab' " here give url of ur application
    *                  title                  =
    *                  close_in_any_case      = abap_true
    lo_window->open( ).
    regards
    Pranav
    Edited by: Pranav Nagpal on Jan 22, 2009 4:34 PM

  • Call logical links with different enhancement sets on the same business role

    Hello,
    I am trying to create a business role that contain logical links with different enhancements. I know how to choose an enhancement for the business role but I can't find a way, if possible, that one business role does it.
    I know how to give an option to choose different roles for the same user, i'm looking for a way to do this in the same window
    Thanks,
    Noa

    does not matter anymore

  • Adding logical link from a different Business Role

    Hi Gurus
    I want to add the second-level entry(complaints search page) of the Complaints & Returns work center of the standard Servicepro business role as a Navigation Bar link to an already customized IC Agent Business role. How would I achieve this in CRM 7.0?
    Thanks in advance.

    Hi Amar
    Thank you very much for your valuable inputs. I had some doubts and am explaining the detailed process below so that I'm clear as to how I can fix this.
    I selected the SRV-PRO NavBar Profile and double-clicked on Define Work Center. On the Define Work Center Overview Screen, I found the Work Center SRV-COMPL, which has the description as Complaints & Returns and LogLinkID as SRV-CPL-WC. Then, I selected SRV_COMPL and double-clicked on Define Logical Links and looked for description as Complaints: Search. I found the LogLinkID SRV-COM-SR link with the corresponding Target ID as TBT120MISC.
    Now,I copied the customized IC Agent NavBar Profile which we currently have and created a new work center by copying SRV_COMPL. On Assign Groups, I kept the SRV-CMP-SR group ID and deleted all others. Then, I assigned the newly created WorkCenter to the new copied IC Agent NavBar Profile. I'm now able to view the new work center and it launches the workcenter page, but the link to open the complaint search is not available. Is there any step that I'm missing?
    Thank you again for your help.

  • Struts - Data pass from Action class to JSP

    hello ,
    I am new to struts and have a strange question in my mind .
    How do we pass business logic data from action class to JSP.Do we use session object or any other best way to be used to pass data.
    Example scenario:
    Once the user logins into application by passing userid and password ,we need to display his open queries (from database table) on jsp.
    Components used :
    Login.jsp
    LoginForm(getter and setter methods of userid & password)
    LoginAction(get database connection,perform query to fetch user's open queries form the database)
    OpenQueries.jsp(to display Open queries on a tabular format)
    In LoginAction - We fetched user's open Queries from the database and stored them in collection object .
    My question is : what is the best way to pass Collection object from LoginAction to OpenQueries.jsp ?
    Thanks in advance...
    Ram
    Edited by: ram_76uk on Apr 10, 2008 8:21 PM

    You can use plain javabeans to transfer the data. Check out the jsp:usebean tag. If you don't know how to do, check out the Java EE tutorial: http://java.sun.com/javaee/5/docs/tutorial/doc/ Using javabeans in JSP pages starts halfway chapter 4.

  • MVC-BSP as a logical link

    Hi All,
    I have a MVC-BSP and Iu2019m looking for the information how can I link this BSP (like a logical link) in the crm2007.
    Can anybody help me?
    Thanks & Regards

    Hi,
    According to ur requirement u need to create a transaction launcher for ur BSP-MVC . Follow the bellow steps.
    1. Define URL parameters for transaction launcher for ur BSP application and pass ur main controller name and main page name like
    Application - MAIN.Do
    Page         - MAIN.HTM
    2. Create a transaction launcher of URL type and pass URL parameter id over there.
    3. After follow all steps for transaction launcher like logical link, assign logical link id to direct link group  and assign to navigation bar profile.
    4. In ur business role check the checkbox for this logical link from visible direct link.
    Now test ur transaction launcher. It will work.
    Regards
    Gaurav

  • Has anyone gotten the error message after statement of error from Adobe:  Mismatched begin and rollbackUserAction calls? (Import::import action to. generate page bitmap for CONTACT US)

    Help!  Full error statement:
    Adobe Muse CC has encountered an error and will now exit.  Please report the last few actions you took leading up to this error to the Adobe Muse CC team.
    Mismatched begin and rollbackUserAction calls? (Import::import action to. generate page bitmap for CONTACT US)

    Please send us the .muse file and the MuseLog.txt file from your Documents folder to [email protected] Include a link to this thread for context. If the file is larger than 20Mb you can use a service like Adobe SendNow, Dropbox, WeTransfer, etc. (If you use a service, please include your return e-mail address in the body of the message, since not all services include it in the sharing invite they send.) Thanks.

  • How to call JSP function from onClick Action

    Hi
    I am trying to call a jsp function, onclick of a checkbox. This jsp function will in turn connect to the database and gets related information. I dont want to submit the data inorder to avoid posting and getting of huge data. Is there a simple way to call a jsp function from the users onClick action.
    Appreciate anyones help!!!
    Thanks alot
    Joe

    So, i have to submit the form to call the jsp function. Basically yes.
    Sorry for the shortness of the answer, but I am pretty sure we have had this conversation (or one very much like it) before.
    Java/JSP runs on the server, generates an html page, and stops running.
    Javascript runs on the client in the web browser, once the page is loaded.
    You cannot call java code from javascript.
    The only way you can run java code again is to make a request - either by submitting a form, or clicking a link.
    If you don't want to refresh the current page, you CAN get tricky with javascript and multiple frames. You submit to another frame, and when it loads, it uses javascript onload event to call back and modify the main frame. Its tricky to get going, and very easy to break, so I don't normally recommend it.
    Good luck,
    evnafets

  • How to call a portal KM URL link from WAD template Link

    Hi All
    I  am trying to call a Portal KM URL Link from the web template using the link control.
    I cannot figure out whare and how to put the portal KM URL Link into the web application web link.
    Your help is greatly appreciated.
    Thanks
    Karen

    Add content administration role to the user.
    The the content administration tab would be visible to the user in the main menu tab.
    Then in content administration tab, configure the URL for KM URL tab or link.
    This would be done by EP experts. Please contact your EP experts to do.
    Hope this would help you.

  • Calling a procedure from a dynamic link

    I have the following situation-
    I have a report created using SQL Query.
    I need to call a Stored Procedure(move_to_portal) through a link from one of the fields in the report (Exec_id field of the report).
    How can I do this?
    The links do not allow me to choose a stored procedure as the Target component....so maybe I have to create a dynamic link.
    How to do this? Any help would be appreciated.

    I have just another question-
    I have a procedure testing_del_archive which is being called with 2 parameters...from a dynamic link in my SQL Query.
    The following is my code....
    SELECT re.report_exec_id, re.exec_userid,
    NVL(re.batch_exec_date, re.begin_date) report_date,
    re.rows_returned,
    re.status, re.error,
    f_file_url(re.filename) file_url,
    re.comments,
    ''Archive''archive
    FROM metadev.report_execution re, metadev.report r
    WHERE re.report_id = r.report_id
    AND r.spec_number = :v_spec
    AND re.status <> 'DELETED'
    AND re.exec_userid like (DECODE(:v_user_filter,'ALL','%',:v_user_filter))
    ORDER BY begin_date DESC
    The first parameter is the value in the execution id field and the second argument is hardcoded "Archived"...
    IT GIVES AN ERROR....
    Do you guys know where I am going wrong...

  • Call actionscript file function from actions panel of a movie clip

    i have a movie clip with an actions layer
    can i call a function from an actionscript file from the actions panel?

    does that actionscript file specify a class or not?
    if not, then use:
    include "yourpath/yourfilename.as"
    on any timeline.
    any function in that as file will be added to the timeline that has the include statement and you reference that function with normal dot syntax from your calling timeline.

  • Link to Action - How to call a DynPro application?

    I am new to ABAP Web DynPro. I have a basic question with regards to accessing any dynpro application with Link to Action object. Basically I created a WebDynPro page with some links (Link To Action).  On click of these links I want to call another DynPro application.   Can anyone just provide me with a code snippet for the onAction event that calls the dynpro application and opens it in the same browser.
    Thanks.

    Hi Shan,
    wven i am new to Web dynpro,what i can think of is when we create new webdynpro appplication we get hyper link and we can call our application using this link and we have Fm to call teh same .in your onaction event we can call this FM 'CALL_BROWSER'
    Sample code for the same :
    CALL FUNCTION 'CALL_BROWSER'
    EXPORTING
    URL = 'http://iginsapecc.in.intelligroup.com:8100/sap/bc/bsp/sap/zvin_tran1/first.htm'
    WINDOW_NAME = ' '
    BROWSER_TYPE =
    CONTEXTSTRING =
    EXCEPTIONS
    FRONTEND_NOT_SUPPORTED = 1
    FRONTEND_ERROR = 2
    PROG_NOT_FOUND = 3
    NO_BATCH = 4
    UNSPECIFIED_ERROR = 5
    OTHERS = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards
    Poornima

  • Remove Actionable links from human task notification??

    Is posible to remove the link from the human task notification mail.
    Thanks...

    yes, if you recompile the *.jar and remove the setting "make notifications actionable" (you can find it in the human task definition)

  • How to call a logic package from another piece of logic

    Hello Everyone,
    I have two pieces of logic that I am running. One is a push to Finance logic that is in my payroll application (PushToFinance.lgx). It is supposed to push the data from Payroll to specific accounts within the Finance application. Within that logic I have a run logic statement that calls another piece of logic that is on the Finance application (ClearPayrollBalances.lgx). This logic is called to clear the destination application (finance) data intersections and then push the data values from Payroll to Finance. However, No matter where I put the run logic that calls the ClearPayrollBalances.LGX it clears the balances as the last step in my logic execution. I have commented it the Runlogic statement the data is pushed to the Finance application. I need to have the data intersections cleared before the Push. Any suggestions on how to make this work?
    {******************************* Push Logic Here PushToFinance.LGX *************************************
    //Planning - move data accumulated in InputorLoad member of DataSrc to the Finance App
    //Clear Finance App
    //Ran to clear data intersections in the Finance Application before Push to Finance Logic.
    *RUNLOGIC
    *APP=Finance
    *LOGIC=ClearPayrollBalances.LGX
    *ENDRUNLOGIC
    *COMMIT
    // Move Payroll Data to Finance App
    *DESTINATION_APP=Finance
    //Dims not used in Finance
    *Skip_Dim=JobTitle
    *Skip_Dim=PayPosition
    //New Dimensions in Finance
    *Rename_Dim PayAccount = AccountExp
    //Select only the accounts to be pushed to Finance
    *CALCULATE_DIFFERENCE=0 
    *Select(%PushAccnts%,"[ID]","PayAccount","FinAccount <>''")
    *XDIM_MEMBERSET PayAccount = %PushAccnts%
    *XDIM_MEMBERSET RptCurrency = LC  //only get LC in case FX conversion is used in the future
    *XDIM_MEMBERSET DATASRC = InputorLoad
    *XDIM_MEMBERSET TIME = %PREFIX%.JAN,%PREFIX%.FEB,%PREFIX%.MAR,%PREFIX%.APR,%PREFIX%.MAY,%PREFIX%.JUN,%PREFIX%.JUL,%PREFIX%.AUG,%PREFIX%.SEP,%PREFIX%.OCT,%PREFIX%.NOV,%PREFIX%.DEC                                                                               
    *WHEN DATASRC
    *IS InputorLoad
             *REC(FACTOR=1,DATASRC=PAYAPP,PayAccount=PayAccount.FinAccount)  //save to a different datasrc
    *ENDWHEN
    *COMMIT
    ********************************End Push Logic********************************
    *******************************Begin Clear Logic ClearPayrollBalances.Lgx **********************************
    //This is called from the Payroll application in the Destination  (FINANCE) App
    // Clear Payroll Balances before Payroll PushToFinance Logic populates Finance Application
    // Calling logic passes the Organization set
    *XDIM_DEFAULT ORGANIZATION=NOORGANIZATION
    *XDIM_MEMBERSET ACCOUNT=A_90020000,A_90022000,A_90030000,A_90031000,A_90031500,A_90032000,A_90032500,A_90033000
    *XDIM_MEMBERSET CATEGORY=BUDGETWORKING                                                                               
    *XDIM_MEMBERSET DATASRC=PAYAPP                                                                               
    *XDIM_MEMBERSET RPTCURRENCY=LC
    *WHEN DATASRC
             *IS PAYAPP
             *REC(FACTOR=0)
    *ENDWHEN}

    Thanks for the feedback. I figured out what you meant. I am adding it to Default logic and calling both pieces of logic from a new logic file. I am writing the steps out for others who may need it !
    1.     Create a separate logic file in Payroll called u201CPushtoFinanceu201D and add the Push section.
    2.     In your Default logic in Payroll, have two RUNLOGIC statements, first for the Finance Clear logic and then second for the Push Logic.
    *RUNLOGIC
    *APP=FINANCE
    *LOGIC=ClearPayrollBalances.LGX
    *ENDRUNLOGIC
    *RUNLOGIC
    *LOGIC=PushtoFinance.LGX
    *ENDRUNLOGIC

Maybe you are looking for

  • "Place Signature" options are greyed out.

    I'm trying to sign a document in Adobe Reader XI, using a placed image or "draw my signature". However, all these options are unavailable (faded in grey). Extended Features are activated, and there is no security on the document. See image below: How

  • Creation of local and root folders?

    I have a photoshop home page that is complete. But it was created by someone else. I do not have any of the images or other information used in the home page. Except for what in photoshop. I don't know where to go from here. I sliced it all up and ge

  • 16:9 KEEPS SHARING TO QUICKTIME IN 4:3

    I cannot get my 16:9 project to come out 16:9. I have finished project shot with a Canon GL2 (16:9 squashed setting) first imported into FCP for basic cutting (had to for a specific reason), then output to Quicktime with no format problems. Imports f

  • Unapplied cash receipts

    Hi I am working on a sql to find the unapplied cash receipts Following are the tables and joins I am having SELECT acr.receipt_number, acr.receipt_date, acr.amount receipt_amount, rc.party_name customer_name, cust.account_number customer_number, ps.t

  • Non-privileged user groups and examples of tasks

    Wiki says that normal, non-privileged users can and should be given membership in the following groups: audio - for tasks involving sound card and related software floppy - for access to a floppy if applicable lp - for managing printing tasks optical