cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with link navigation - new browser window en IC.

former_member190077
Participant
0 Kudos

Hi Gurus,

I have a question to see if I can help,

I have placed a link navigation on view "IUICCOND/ContractNavigation"

I did it follows, first expand the component and then sight, then manually add the link in the HTM document "ContractNavigation.htm"

In the event "onclick" I call the "ZIMPRIMIR" and that is why I think the Z event to trigger the action and I create the event "EH_ONZIMPRIMIR":

In this event I have tried and tested various functions but do not work:

Not work con "CALL FUNCTION 'CALL_BROWSER' "

*******************************************

CALL METHOD cl_gui_frontend_services=>execute

    EXPORTING

      document = pdf_link

    EXCEPTIONS

       OTHERS   = 1.

  IF SY-SUBRC <> 0.

   ENDIF.

*********************************************

Not  work  too "cl_gui_frontend_services=>execute"


*********************************************

call method cl_gui_frontend_services=>execute

  exporting

    application = 'iexplore'

**    document = pdf_link

    parameter   = 'http://www.sap.com'

  exceptions

    others = 1.

  IF SY-SUBRC <> 0.

    "

  ENDIF.

*********************************************


And the next method:


********************** Yes work but only in the same windows

  CALL METHOD navigation->GOTO_PAGE

   EXPORTING

     URL     = pdf_link

*    SESSION = 'NEW'

  exceptions

     others = 1.

   IF SY-SUBRC <> 0.

     "

   ENDIF.

*********************************

Yes work but only in the same windows

Please I need that open in new/other windows????  the URL/pdf_link is a PDF Document Smartform create in the event "EH_ONZIMPRIMIR", I unknow how doing..

Any idea how to do this?

Best regards,

JMP.

Accepted Solutions (1)

Accepted Solutions (1)

former_member190077
Participant
0 Kudos

I solved the problem realizing it as follows:

1) First we redefined the method "DO_PREPARE_OUTPUT" and implement the necessary mechanisms to create the SmartForm in pdf and get the URL. After obtaining the URL with PDF we do is export it as variable part of HTM.

2) on the part of HTM we declare the necessary variables and captured from the memory variable that we have created in the "DO_PREPARE_POUTPUT" method with the URL of the PDF.

3) Create a button to click to activate run in a new window with the PDF SmartForm, it may not be the best way to do this but it was the one I got ...

Willing to receive comments and suggestions.

Answers (0)