New Session

hi all,
I have one main report which calls another report on button click from ALV of main report.
while calling this new report I am using Function module ABAP4_CALL_TRANSACTION with addition STARTING NEW TASK to open that report in a new session.
this opens a new window for that calling report. but what i want is the that opened window size should be smaller than in Main report window size.
any idea how to achive this...
thanks in advance.
regards,
vikas.

hi
  try to use WINDOW STARTING AT   X1 Y1.
ENDING AT   X2 Y2.
reward if helpful.

Similar Messages

  • Open new session on submitting a program thru FM call

    Hi expertz...need your help up here.
    Have a situation where we need to trigger another program(say zabc : PO History) when the user selects a line in the ALV list and then clicks a button (to call zabc), the new program should run in the background and open up or display the results in a New Session.
    Have tried to use FM 'SUBMIT_REPORT' with STARTING NEW TASK but it dosnt work.  Please see the call below.
    CALL FUNCTION 'SUBMIT_REPORT' "STARTING NEW TASK 'TEST1'
      EXPORTING
      RDIR                   = TRDIR
        report                 = 'ZPRPP_WORKORDERPURCHASING'
       RET_VIA_LEAVE          = ' '
      VARIANT                = ' '
       VARIPROG               = 'ZPRPP_WORKORDERPURCHASING'
       SKIP_SELSCREEN         = 'X'
      EXPRESSIONS            =
    IMPORTING
      VARIANT                =
    TABLES
       SELECTION_TABLE        = i_rspar
    EXCEPTIONS
       JUST_VIA_VARIANT       = 1
       NO_SUBMIT_AUTH         = 2
       OTHERS                 = 3
    Any Idea!.
    Thanks
      Jaif

    Hi,
    copy your function module SUBMIT_REPORT to ZSUBMIT_REPORT and make it remote enabled.
    Now, where ever you want to call this FM, call as below,
    CALL FUNCTION 'ZSUBMIT_REPORT' STARTING NEW TASK 'T'
    EXPORTING
    * RDIR = TRDIR
    report = 'ZPRPP_WORKORDERPURCHASING'
    RET_VIA_LEAVE = ' '
    * VARIANT = ' '
    VARIPROG = 'ZPRPP_WORKORDERPURCHASING'
    SKIP_SELSCREEN = 'X'
    * EXPRESSIONS =
    * IMPORTING
    * VARIANT =
    TABLES
    SELECTION_TABLE = i_rspar
    EXCEPTIONS
    JUST_VIA_VARIANT = 1
    NO_SUBMIT_AUTH = 2
    OTHERS = 3.
    Check it out, it works for me.

  • Create new session for each window opening

    From a jsp page i open a page called student.jsp by clicking on students admision no.Therefore lots of pages can be opend in new windows with relevent student details.
    but when i click on the link i called a servlet, get relevent details and redirect to student.jsp. The problem is ,all opened windows have same session id and there are session conflicts.
    How can i create new sessions for each page thru the servlet or is there any other alternatives

    I actually was working on a problem that was similar to this, and the problem is with how each web-browser works with sessions...
    Each browser window (Except in one case with IE) will use the same session in each window.
    However, you might be able to use URL-Rewritting to manage your sessions and get around using cookies for for session tracking. I personally haven't tried this, but I'm betting that it will work.
    Best of Luck,
    Nate

  • ADFDi Excel upload failed in a new session

    ADFDi Excel upload failed when a change was made in a locally saved ADFDi Excel file.  This should be a very common disconnected scenario.  I must miss something.  Here are high-level steps that I have done.
    1. Open a ADFDi Excel from a ADF page.
    2. Download data to Excel
    3. Modify a row in ADF table component in the Excel, then save the Excel file locally.  (If I clicked the 'Save' button instead of saving the file locally, the change was uploaded to the server correctly).
    4. Open the locally saved Excel, and accept the option to connect to the server and login.  A new session should be created in the ADF web application.
    5. Click 'No' in the popup window of "Do you want to discard the pending change?"
    6. The 'changed' indicator is shown on the changed row in the Excel.  Click 'Save' button, which has two actions - Upsync and ADFTable.upload
    7. On the server, a 'Row not found' exception is thrown from DCJboDataControl.setCurrentRowInRSI().  In this method, it tries to find the row in the ViewObject instance using the uploaded row's key.  The code is rsi.findByKey(key, 1).  I checked the value of key.  It looks correct. But no row is return from findByKey() call.  Then 'No row found' exception is thrown.
    My JDev version 11.1.1.7
    Greatly appreciate any suggestion on what could be wrong?

    HI
    I am facing the same issue. Are you able to resolve this issue or any solution around ?
    Thanks

  • How to call a screen in a new session -- Urgent

    Hi all,
    I need to call a screen from another program in a new session, is it possible or not? if possible, please help me. After that when clicked on one button, session should automatically closed. waiting for valuable replies....
    Thanks in Advance.
    Siva Sankar.

    Hi Gourav,
    Thanks for ur quick reply. Actually i'm calling a module pool program from one screen when clicked on one button. My requirement is that module pool program should be opened in seperate session. when clicked on exit button in new session, that session should be closed. is it possible?
    Thanks,
    Siva Sankar.

  • Calling a Program in a New Session

    Hi gurus,
    I have a custom report which has a button that links to another custom report. When this button is clicked, I perform a SUBMIT xxx WITH xxx and RETURN to another ABAP Report.
    Is it possible to open up a new Session (so that I don't lose my original report) and call the new report in there (sort of like how the System->User Profile->Own Data menu path works - I have tried to debug this but SAP does not let me debug this!).
    Any help would be appreciated.
    Cheers,
    Pat.

    Hello,
    If you want a seperate session and run a program using a transaction use this function module. ABAP4_CALL_TRANSACTION
    You can either use a bdctab table or can use the param id for the same.
    FORM f_call_lt27 USING    p_temp_nlenr TYPE y1mm_imac010_alv-nlenr.
      DATA : lt_spagpa TYPE TABLE OF rfc_spagpa WITH HEADER LINE.
      MOVE 'LGN' TO lt_spagpa-parid.
      MOVE t2_lgnum TO lt_spagpa-parval.
      APPEND lt_spagpa.
      MOVE 'LEN' TO lt_spagpa-parid.
      MOVE  p_temp_nlenr TO lt_spagpa-parval.
      APPEND lt_spagpa.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
       STARTING NEW TASK 'MSC3N'
       EXPORTING
         tcode                         = 'LT27'
         skip_screen                   = 'X'
       TABLES
         spagpa_tab                    = lt_spagpa.
    ENDFORM.                    " f_call_lt27
    Regards,
    Shekhar KUlkarni

  • Function Module to open a new session displaying a method of a class

    Hello All,
    I have a method A of class B.
    Now, in my current session, I have a button. When the user clicks on this button, what I expect is that a new session be opened and in the new session method A of class B be displayed.
    This is similar to the debugger, wherein, in the debugging mode, we can bring up the context menu in the Source Code (Edit Control) tool, and then select "Go To Source Code".
    So basically, I am looking for a Function Module which does the same.
    I came across Function Module CC_CALL_TRANSACTION_NEW_TASK, however, this will only create a new session.
    I could specify the transaction as SE24, but it then opens a new session with this transaction. That is it.
    My objective is to display the method of a class in a new session.
    Is there any Function Module in this case?
    Regards,
    Mithun
    Edited by: Mithun Kamath on Aug 9, 2011 5:35 PM

    Hello Sandra,
    Thank you very much. That was exactly what I was looking for.
    However, instead of calling EDITOR_PROGRAM directly, what I instea did was the following:
    1) Created a RFC enabled Function module.
    2) Inside this function module, I wrote the following code:
      SUBMIT tpda_editor_start AND RETURN
       WITH prgm  = is_alert_det-program_name
       WITH incl = is_alert_det-include_name
       WITH dynp = space
       WITH line = is_alert_det-line_no.
    The parameters above were similar to the one proposed by you.
    Borrowed the above from the class CL_TPDA_SERVICES_TOOLS, method NAVIGATE_TO_SOURCE.
    The above is basically called in the debugger, when we use the context menu in the editor tool and invoke the "Goto Source Code" functionality. This eventually calls the EDITOR_PROGRAM FM.
    The reason why I did this is because when I was testing the FM, it did not allow me to specify the include as CL_TEST=====CM01. I do not know why, probably I was doing it wrong. But it gave me a message saying that the object does not exist in table TADIR.
    Anyway, I did the above steps and it worked exactly as I wanted it to.
    I would like to thank you again.
    Best Regards,
    Mithun
    P.S. Forgot to add, I called the above RFC enabled FM as a new task.
    Edited by: Mithun Kamath on Aug 10, 2011 4:19 PM

  • How to call a transaction (in a new session) from a program

    Hi ,
    I need to call a transaction from my report on the click of a button in toolbar.
    But the transaction should open in a new session.
    This is the code that i have written, MM03 is getting opened in the same session.
    call transaction 'MM03' and skip first screen.
    Hope that my question is clear.
    Thanking you in advance..
    Shankar

    check this
    <b>CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
      DESTINATION 'NONE'
      EXPORTING
          TCODE = 'SM59'
      EXCEPTIONS
        COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
        SYSTEM_FAILURE        = 2 MESSAGE MSG_TEXT.
      IF SY-SUBRC NE 0.
        WRITE: MSG_TEXT.
      ELSE.
        WRITE: 'O.K.'.
      ENDIF.</b>
    <b>u can avoid such errors thru this FM
    check FI_DUPLICATE_INVOICE_SHOW program for sample code.</b>
    regards
    Prabhu
    Message was edited by: Prabhu Peram

  • New session rejected due to memory bottleneck in testing proxy2proxy

    Hi all!
    i am testing abap proxy2proxy on the client 105 in help varient 5 of simple use cases docu.
    even though i got sending successful from SXIPATT1 on the client 105, i got the following error.
    my server has RAM 2GB and have four client(100,105,106,107), and only i use for testing, NOT another person, so i do not think memory bottleneck issue.
    checked list.
    1. SXMB_MONI,  i could see inbound message(SENDER) <b>only.</b>
       from 105 to XI, no problem I thought, but very strange there, becasue there is only inbound message(sender).
    2. status flag on sxmb_moni
       Message Recorded (Commit follows) (TO BE DELIVERED)
    does anyone experience such issue?
    do i have to up physical memory?
    Error when processing your request
    What has happened?
    The URL http://sapxi.hh.net:8000/sap/bc/gui/sap/its/webgui/! was not called due to an error.
    Note
    The following error text was processed in the system XID : <b>New session rejected due to memory bottleneck</b>
    The error occurred on the application server SAPXI_XID_00 and in the work process 0 .
    The termination type was: ABORT_MESSAGE_STATE
    The ABAP call stack was:
    Function: ICF_ATTACH_ITS_PLUGIN of program SAPLHTTP_RUNTIME
    Form: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system XID in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server SAPXI_XID_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server SAPXI_XID_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http-c:105-u:XISUPER -l:E-s:XID-i:SAPXI_XID_00 -w:0-d:20060410-t:195211-v: ABORT_MESSAGE_STATE-e:
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team

    did you have  this entries in SXMB_ADM of XI server
    catgory:RUNTIME     parameter:ENGINE_TYPE     value:     HUB
    catgory:RUNTIME     parameter:IS_URL     value:http://server:port/sap/xi/engine?type=entry

  • New session was refused due to memory bottleneck

    Has anyone had experience with this error and know how to go about fixing it from occuring again?
    Error when processing your request
    What has happened?
    The URL https://____________/zpro was not called due to an error.
    Note
    The following error text was processed in the system DEV : New session was refused due to memory bottleneck
    The error occurred on the application server onebase_DEV_00 and in the work process 0 .
    The termination type was: ABORT_MESSAGE_STATE
    The ABAP call stack was:
    Function: ICF_ATTACH_ITS_PLUGIN of program SAPLHTTP_RUNTIME
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DEV in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server onebase_DEV_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server onebase_DEV_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-https -c: 160 -u: ****** -l: E -s: DEV -i: onebase_DEV_00 -w: 0 -d: 20080822 -t: 094930 -v: ABORT_MESSAGE_STATE -e: New session was refused due to memory bottleneck
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team

    Hi ,
    I am having an issue related to the query in this thread. Can you please let me know if you any solution for this.
         The following error text was processed in the system : Error occurred while sending data through the HTTP protocol.
         The error occurred on the application server bwdbi_DIB_41 and in the work process 0 .
         The termination type was: RABAX_STATE
         The ABAP call stack was:
    Method: SEND_RESPONSE of program CL_HTTP_SERVER_NET============CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    tHE ABOVE IS THE error message. This occurs when we are trying to call the a URL from web report using RRI, where in this url is used for RRI.
    Regards
    Sudha

  • New session rejected due to memory bottleneck

    Dear All,
                I have creating and working on BSP aplication that calls the webGui, ie abap trnasaction on internet explorer.It worked onced but then i get the error.
    New session rejected due to memory bottleneck  :
    The URL http://XXXXXX.YYYYYY:8000/sap/bc/gui/sap/its/webgui/! was not called due to an error.
    In Sicf the service for Its/webgui is activated, i deactivated and activated it again, deleted local cokkies, but no success.
    Can any one suggest a way out.
    The Error in detail is:-
    The following error text was processed in the system : New session rejected due to memory bottleneck
    The error occurred on the application server XXXXXX and in the work process 0 .
    The termination type was: ABORT_MESSAGE_STATE
    The ABAP call stack was:
    Function: ICF_ATTACH_ITS_PLUGIN of program SAPLHTTP_RUNTIME
    Form: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    Regards,
    Anirban.

    Hi,
    Try running the <b>program RSMON000_ALV</b> instead.
    I am not in basis either but :
    - if it is really an insufficient number of Work process
    - if it is not a one-time event (meaning, this problems occurs repeatedly)
    Then the only solution I can think of is increasing them (and take care to add CPU and memory accordingly)
    You should check with your basis guys.
    Also, check the <b>transaction ST22</b> for more explanations about the possible Dump that got created.
    Best regards,
    Guillaume

  • Call transaction in new session not working inside CRM Interaction Center

    Hi Experts,
    I have developed a report which contains a screen with push button. When user clicks on button a  transaction (FPL9) is being called and opened in new session or window. But when the report is being called in CRM Interaction Center using transaction launcher and button is clicked no new session or new window is being opened. Our requirement is FPL9 transaction will be opened in new session / window inside Interaction Center also.
    Please help me how to open a new session or window  in interaction center on push botton click.
    Thanks in advance.
    Regards,
    Arnab

    Hi Anil..
    This is the Solution for ur Requirement.   try this program and change as per ur need.
    REPORT  ZSEL_CALL_TCODE.
    data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
    DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
    SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
    LOOP AT IT_KNA1 .
      WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
      HIDE IT_KNA1-KUNNR .
    ENDLOOP.
    CLEAR IT_KNA1-KUNNR.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    IF IT_KNA1-KUNNR IS NOT INITIAL.
    REFRESH IT_SPA.
    IT_SPA-PARID = 'KUN'.
    IT_SPA-PARVAL = IT_KNA1-KUNNR.
    APPEND IT_SPA.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
        EXPORTING
          TCODE                         = 'XD02'
         SKIP_SCREEN                   = ' '
        MODE_VAL                      = 'A'
        UPDATE_VAL                    = 'A'
      IMPORTING
        SUBRC                         =
       TABLES
        USING_TAB                     =
         SPAGPA_TAB                    = IT_SPA
        MESS_TAB                      =
      EXCEPTIONS
        CALL_TRANSACTION_DENIED       = 1
        TCODE_INVALID                 = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDIF.
    ENDCASE.
    <b>Reward if Helpful.</b>

  • Call transaction in new session with the value at hotspot

    Hi all,
    As a hotspot functionality I would like to open a new transaction in a new session with the value at hotspot. For that reason, I am using the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
    This FM is not working because Parameter ID is not Maintained for the field (Hotspoted). So no value is passing to new transaction.
    Please suggest any other way to implement this.
    Thanks

    Hi Anil..
    This is the Solution for ur Requirement.   try this program and change as per ur need.
    REPORT  ZSEL_CALL_TCODE.
    data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
    DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
    SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
    LOOP AT IT_KNA1 .
      WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
      HIDE IT_KNA1-KUNNR .
    ENDLOOP.
    CLEAR IT_KNA1-KUNNR.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    IF IT_KNA1-KUNNR IS NOT INITIAL.
    REFRESH IT_SPA.
    IT_SPA-PARID = 'KUN'.
    IT_SPA-PARVAL = IT_KNA1-KUNNR.
    APPEND IT_SPA.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
        EXPORTING
          TCODE                         = 'XD02'
         SKIP_SCREEN                   = ' '
        MODE_VAL                      = 'A'
        UPDATE_VAL                    = 'A'
      IMPORTING
        SUBRC                         =
       TABLES
        USING_TAB                     =
         SPAGPA_TAB                    = IT_SPA
        MESS_TAB                      =
      EXCEPTIONS
        CALL_TRANSACTION_DENIED       = 1
        TCODE_INVALID                 = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDIF.
    ENDCASE.
    <b>Reward if Helpful.</b>

  • Call transaction in new session (but only one)

    Dear all,
    as a hotspot functionality I would like to open a new transaction in a new session. For that reason, I use the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
    However I would like to restrict the new tasks in a way that only one session is used (no matter how often the user clicks the hotspot. Kind of like the ABAP Help in the workbench.
    I checked the class CL_IMC_MODE to see if it could work as a new internal session but the new mode dumped when I pressed the back button and according to the dump Statements that closes the internal mode unexpectedly like LEAVE are not allowed. Since I call standard transactions (like VA03) I can hardly prevent that. Did I miss something or do you have any other idea how I could solve my problem?
    Thank you for any input.
    Christian

    Hi Christian,
    Here is a sample code that takes in a sales order number, displays the document number as hotspot and when the user clicks on the hotspot, it opens a new window for displaying the order. No matter how many times the user clicks on the hotspot, it will only display one window for VA03. I hope this solves your problem.
    REPORT ztest.
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: ls_vbak LIKE vbak.
    DATA: BEGIN OF i_rfc_spagpa OCCURS 0.
            INCLUDE STRUCTURE rfc_spagpa.
    DATA: END OF i_rfc_spagpa.
    DATA: v_mode LIKE sy-index.
    START-OF-SELECTION.
      SELECT SINGLE * FROM vbak
                      INTO ls_vbak
                     WHERE vbeln = p_vbeln.
      IF sy-subrc <> 0.
    *-- error.
      ENDIF.
      WRITE:/ ls_vbak-vbeln HOTSPOT,
              ls_vbak-vkorg.
    AT LINE-SELECTION.
      CASE sy-ucomm.
        WHEN 'PICK'.
    *-- Delete the previous session and then call VA03 in a new session
          CALL FUNCTION 'TH_DELETE_MODE'
               EXPORTING
                    mode = v_mode.
          CLEAR: i_rfc_spagpa, i_rfc_spagpa[].
          i_rfc_spagpa-parid = 'AUN'.
          i_rfc_spagpa-parval = p_vbeln.
          APPEND i_rfc_spagpa.
          CLEAR i_rfc_spagpa.
          CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
            EXPORTING
              tcode                         = 'VA03'
              skip_screen                   = 'X'
              mode_val                      = 'A'
              update_val                    = 'A'
    *       IMPORTING
    *         SUBRC                         =
           TABLES
    *         USING_TAB                     =
              spagpa_tab                    = i_rfc_spagpa
    *         MESS_TAB                      =
            EXCEPTIONS
              call_transaction_denied       = 1
              tcode_invalid                 = 2
              OTHERS                        = 3 .
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.

  • Calling an URL/Hyperlink in new session on browse from button.

    Dear experts!
    I created a Z program on SAP GUI, and configured the logical link for this program and call it from Web UI Client. In component BTCUSTOMER_H, i redefined DO_PREPARE_OUTPUT to maintained a button called 'FORWARD'. I create method EN_ONFORWARD to process. My problem is: on component BTCUSTOMER_H, when i click on FORWARD button, a new session on browse appear and display the Z program above or navigate to my Z program ( i can navigate to a standard transaction for example: from an Opportunity, i can maintain a button and navigate to a SaleOrder by click to this button). When i searched on forum, i found some thread said about this problem but i still can not resolve my problem. Can any one show me the details, how i configure for the Z program and processing code in method EH_ONFORWARD to resolve my problem.
    Can anyone help me, please!
    Longnd.

    Hi,
    Please follow the steps for calling you logical link.
    When you create a Logical Link, you also should give the Target ID.
    Now In the Naivigation Bar Profile you will have some thing called as Define Geniric OP Mapping
    Here add a entrty with any Name , and give your target ID here.
    For eg : ZCall_ZREPORT :Target Id ; Given in the step 1.
    And in you even handler of the button write the followng code.
      DATA: lr_nav_descr    TYPE REF TO if_bol_bo_property_access.
      DATA:  lr_navigation  TYPE REF TO if_crm_ui_navigation_service.
      DATA: lr_col          TYPE REF TO cl_crm_bol_bo_col.
      cl_crm_ui_descriptor_obj_srv=>create_ui_object_based(
        EXPORTING iv_ui_object_type   = ZCall_ZREPORT
                  iv_ui_object_action = 'B'
        RECEIVING rr_result           = lr_nav_descr ).
      CHECK lr_nav_descr IS BOUND.
      lr_navigation = cl_crm_ui_navigation_service=>get_instance( ).
      CHECK lr_navigation IS BOUND.
    Check whether navigation is supported
      IF lr_navigation->is_dynamic_nav_supported( lr_nav_descr ) NE abap_true.
        RETURN.
      ELSE.
        CREATE OBJECT lr_col.
        lr_col->if_bol_bo_col~add( iv_entity = lr_nav_descr ).
        lr_navigation->navigate_dynamically( lr_col ).

Maybe you are looking for