Calling Javascript from ABAP webdynpro application

Hai All,
I want to call a Javascript from ABAP-Webdynpro application. If anyone has done this. Please let me know.
Thanks & Regards,
H.K.Hayath Basha.

go to window
create suspend outbound plug and resume inbound type
when create an outbound plug of Suspend type a parameter Url is automatically created,
fire the outbuond plug with the Url to a BSP page where you have JavaScript.
and fromt he BSP navigate back to WDA again which you can do using by reading the url parameter sap-wd-resumeurl, which contains the WDA URL
Abhi

Similar Messages

  • Cannot save the Interactive form downloaded from abap webdynpro application

    Hello Everyone,
    Can anyone help me here.
    I have created an interactive form in SFP tcode and used in abap webdynpro application.
    scenario is i can downloade the form,fill it, sign it,save it and submit the form.
    Some thing is going wrong when i try to sign the form downloaded from the application.It is giving the error ->
    The document could not be saved. there was a problem in reading the document(26).
    When i try to sign the form save as dialog box will come where we can save the filled form.but here when itry to save it is giving above error.and also i cannot save thye form form file option.
    but form is working fine from sfp tcode not form application link.
    What is going wrong.Can somebody please help me here.
    Regards,
    Menaka.H.B

    Check the enabled and readOnly property of the InteractiveFormUI element in your application.
    enabled should be true and readOnly should be false.
    Also just FYI interactive forms are licensable in Productive environment for which you need Adobe Credentials. You may contact SAP Account Manager and Note 736902 for it.
    Chintan

  • Link to SRM 550 Contract from ABAP WebDynpro Application

    Hello,
    I developed an ABAP web dynpro application in our SRM system that display a contract list.
    How can I do a link from the contract number in the displayed List to the contract screen of the SRM system
    ( The contract Transaction in the SRM with the contract No )
    Thank You in Advanced
    Bella

    go to window
    create suspend outbound plug and resume inbound type
    when create an outbound plug of Suspend type a parameter Url is automatically created,
    fire the outbuond plug with the Url to a BSP page where you have JavaScript.
    and fromt he BSP navigate back to WDA again which you can do using by reading the url parameter sap-wd-resumeurl, which contains the WDA URL
    Abhi

  • Calling Java webdynpr application in ABAP webdynpro application

    Hi All,
    I have a requirement to call a Java webdynpro application from ABAP Webdynpro application. Is it possible? If any of you have done, please let me know how to do it.
    Regards,
    Basha.

    Hi,
    And as you said it Java Webdynpro application, it should be possible to generate the URL for the Application at runtime.
    I also haven't tried, but it should work. Please let me know if LinkTOURL doesnt suffice, we can try and check if it works.
    Thanks,
    Anand

  • SOFM: Dsiplay method is not working when called from ABAP Webdynpro

    Hi All,
    I want to open an attachment from ABAP Webdynpro.
    I have approached in this fashion:
    1) Get the attachments as SOFM object key
    2) On Click of a link on Webdynpro, I am calling a function module within which I am creating an instance of the SOFM object
    3) Then I am calling the DISPLAY method
    It is not opening.
    But, if it opens when I driectly execute the function module. It open when I directly test the business object.
    Any Idea ?
    Thanks & Regards,
    Deb

    Display Method uses the Dialogue Module, You should not access such methods in web dynpro which are SAPGUI specific.
    Web Dynpro Applications are run in Browser environment which cannot understand Dialog, it can understand only HTML.
    Read the attachments and get the content and use FileDownload UI element to show it to user.
    Abhi

  • Debugging ABAP Code From Within Webdynpro Application

    Hello Experts,
    We use ABAP RFC Function in Our Java Webdynpro application, We need to debug the parameters pass from the webdynpro application to the ABAP Function.
    In order to do that we:
    1. Defined a JCO connection with "Single Server Connection" as the Destination Type.
    2. We have loged on to the relevant system and client using SAP GUI with the same user that run the webdynpro application.
    3. We have activate the external debugging in se80 Utilities -> Settings
    4. We have set an HTTP (external) breakpoint in the ABAP code,
    As mentioned in the article:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e9a9d90-0201-0010-478e-991dbea73a30
    However, we recieve a dump in the R3 system:
    RFC_DEBUGGING_NO_DIALOG_USER
    ShrtText
    RFC debugging is only possible with dialog user
    What happened?
    You attempted to debug a program by RFC. However, in this destination
    there is a user whose user type permits communication without dialog.
    This means, for example, that debugging with a system user is not
    possible.
    What can you do?
    Restart the program and take note of the following:
    You can do one of the following:
    1. You can change the user listed in the RFC destination and enter a
    dialog user.
    2. In the target system of RFC you can change the user type of the user
    listed in the RFC destination to 'dialog'.
    3. You can avoid this runtime error by omitting the RFC debugging.
    If in the ABAP debugger the statement cursor points to the statement
    (CALL FUNCTION ... DESTINATION), you must choose the function
    'Execute'.
    We checked and the user we use is defined as dialog in SU01 and the user that the webdynpro use to call the functio is the same user as was logged in.
    What else should we do?
    Thanks,
    Eyal

    Hello Eyal,
    You mentioned the following..
    1. Defined a JCO connection with "Single Server Connection" as the Destination Type. 2. We have loged on to the relevant system and client using SAP GUI with the same user that run the webdynpro application.*<---The system that you logged into is your source system*
    3. We have activate the external debugging in se80 Utilities -> Settings
    4. We have set an HTTP (external) breakpoint in the ABAP code,
    and the name of the system defined in the RFC connection will be your target system.
    As per the response (dump error message) in this target system you need to have a dialog user.
    And this dialog user needs to be defined in the RFC destination that is being used to connect to the target system.
    Regards,
    Siddhesh

  • Problem regarding BAPI call from a webdynpro applications

    Hi,
      We are trying to call a BAPI in R/3 system from a webdynpro application through the standard method. But we are getting some problems in JCO settings. We already wasted so much time in solving those problems. Is there anyway where i can access BAPI from Webdynpro application.
    Rgrds,
    Anna

    Hello Anna,
      You can do it by using SAP Java Connector API's in the implementation of the Webdynpro application. You can refer to the sample programs for JCO at http://service.sap.com/connectors and download the latest version of SAP JCo in that install those files as per the installation document in the downloaded zip. The downloaded zip contains information about JCo APIs and sample programs.
    Hope this will solve your problem.
    Best Regards,
    Srinivas.

  • Calling A Webdynpro Application From Another Webdynpro Application

    Hi,
    i want to call a webdynpro application from another webdynpro application with sending parameters.
    i used this method,
    CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = lv_webapp
        IMPORTING
          out_absolute_url = lv_url.
    CONCATENATE lv_url '?param1=' lv_param INTO lv_url.
    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 = LV_URL
    lo_window->open( ).
    but this method shows the parameters on the address bar.
    is there a method to send the parameters to another webdynpro application without show the parameters on the address bar?
    Can somebody help me pls?
    Thanks.

    I've used a server cookie before. This was built for BSP, but it is really usable anywhere.  It just writes the data temporary into the database.  This way you can just pass one meaningless URL parameter - like a GUID and use this key to read the data (the server cookie) upon initialization of the new application.  I generally serialize all the data that I want into one server cookie by serializing a class. I can then restore whatever attributes of the class that I want on the receiving side.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/4cd23a09313b37e10000000a11405a/frameset.htm

  • How to open a brfplus Catalog from abap webdynpro screen.

    How to open a catalog from abap web dynpro application. and also what roles are to be provided to a user for restricting access only to the objects in the given catalog.

    Hi Pratik,
    do you use NetWeaver 7.0, Enhancement Pack 2 (or higher)?
    Then you can then define an own UI mode class and set it via SET_UI_MODE( ) in IF_FDT_WD_UI_EXECUTION before you call EXECUTE_CATALOG_BROWSER().
    An explanation how to define a UI mode class is available in the chapter "Configuration through a UI mode class (7.0/7.1 EHP2)" of the document [Embedding a BRFplus Object in an ABAP WebDynpro Application|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50e44bf9-9135-2d10-2ea2-b13e5be8661d]
    Hint: With help of the interface IF_FDT_WD_USER_CONFIGURATION you have the possibility to hide views in the navigation view by using the respective, listed parameters (e.g.. GC_PARAMETER_FAVORITES_VIEW). Please be aware of that the configuration is just available to adapt the UI, it does not fulfill the requirements to act as an authority concept. If you do not set the parameter GC_PARAMETER_HIDE_SETTING_DLG of the interface IF_FDT_WD_CONFIGURATION to false, the user is also able to change it via the configuration dialog in the BRF+ workbench.
    With the current available BRF plus standard authority concept you can prevent that the user can see the content of objects like applications but you have no influence to prevent the user from seeing UI artifacts like the repository tree. Please consult the documentation to learn more about its capabilities.
    Kind Regards,
    Marco

  • ASR_PROCESS_EXECUTE - ABAP Webdynpro application keeps looping

    Hi,
    We are implementing HCM Processes and Forms framework and trying to use the standard ABAP
    Webdynpro application ASR_PROCESS_EXECUTE to be able to Start HR Personnel related processes.
    Start Processes iview available with the HR Administrator package on the portal when clicked seems to be getting stuck in a loop.
    When I try to test the application from SE80 on the backend, it seems to be going in some sort of loop and flashing message appears repeatedly 'Logon is being prepared.....logon is starting'.  Looks like it keeps attempting to switch between http and https. The URL that appears in SE80 for the application is
    http://servernmame.domainname.com/sap/bc/webdynpro/sap/asr_process_execute.
    Instead of http...if I replace this URL with https://servernmame.domainname.com:443/sap/bc/webdynpro/sap/asr_process_execute it works fine
    When I go to SICF and execute this Web dunpro application, it uses https in the URL and that works fine too.
    We are on EhP3. How can i fix this issue? I want to be able to use standard iviews that will call this Webdynpro application using appropriate protocols.
    Any ideas will be much appreciated
    Thanks,
    Saurabh
    PS: this also sound like a portal issue, so posting in Portal forum too.

    Its not the cache, i just wanted to let people know with similar problems.
    It may be a problem with the parameters,
    in RZ10, search for icm* parameters and search in SAP Help about each parameter and what should be their value. You will find that parameters are taking HTTPS
    Also, one more thing, STRUSTSSO2, check if certificate is added in ACL and in production client as well..
    This will solve all this kind of problems.

  • ASR_PROCESS_EXECUTE - ABAP Webdynpro application - http/https

    Hi,
    We are implementing HCM Processes and Forms framework and trying to use the standard ABAP
    Webdynpro application ASR_PROCESS_EXECUTE to be able to Start HR Personnel related processes.
    Start Processes iview available with the HR Administrator package on the portal when clicked seems to be getting stuck in a loop.
    When I try to test the application from SE80 on the backend, it seems to be going in some sort of loop and flashing message appears repeatedly 'Logon is being prepared.....logon is starting'. Looks like it keeps attempting to switch between http and https. The URL that appears in SE80 for the application is
    http://servernmame.domainname.com/sap/bc/webdynpro/sap/asr_process_execute.
    Instead of http...if I replace this URL with https://servernmame.domainname.com:443/sap/bc/webdynpro/sap/asr_process_execute it works fine
    When I go to SICF and execute this Web dunpro application, it uses https in the URL and that works fine too.
    We are on EhP3. How can i fix this issue? I want to be able to use standard iviews that will call this Webdynpro application using appropriate protocols.
    Any ideas will be much appreciated
    Thanks,
    Saurabh
    PS: this also sound like a portal issue, so posting in Portal forum too.

    Its not the cache, i just wanted to let people know with similar problems.
    It may be a problem with the parameters,
    in RZ10, search for icm* parameters and search in SAP Help about each parameter and what should be their value. You will find that parameters are taking HTTPS
    Also, one more thing, STRUSTSSO2, check if certificate is added in ACL and in production client as well..
    This will solve all this kind of problems.

  • Running R/3 reports from ABAp webdynpro

    Hi experts,
    I have a theoretical question:
    There is normal ABAP report (not webdynpro) in the R/3 system.
    Is it possible to run this report form an ABAP webdynpro application?
    In my understanding this means, I have to create the Selection screen of the report in Webdynpro,  then call the report from the R/3 system like:
      SUBMIT Z_REPORT
          WITH PNPPERNR = PERNR-PERNR
          AND RETURN
          EXPORTING LIST TO MEMORY.
    then retrieve the values
        IMP_KEY-PERNR = PERNR-PERNR.
        IMP_KEY-SEQNR = '99999'.
        IMPORT it_result FROM MEMORY ID IMP_KEY.
    Of course when I have the results I have to create another view, with a table to display it.
    My questions are:
    -Is my way of thinking correct?
    -Is there any other way to do this?
    Thanks
    N.G.

    >-Is my way of thinking correct?
    Pretty much so.  I guess best design long term might be to rebuild the report as native Web Dynpro - perhaps separating the data selection and logic out into a class.  However this is good way to reuse existing development.
    I notice that you have an explict IMPORT FROM MEMORY.  I assume this report is doing some custom export to memory. If you just want the list output without needing anything special within the report being called, then you should use the function module LIST_FROM_MEMORY and LIST_TO_ASCI. However if you place an export int the inner report the returned contents are probably easier to process than the list format.  I guess its really your choice.
    -Is there any other way to do this?
    This way is pretty direct.  You could redesign the report, but I'm assuming you are asking for other ways to reuse the existing report.  Your main concern might be if the report takes to long to run.  You might have to submit the report to the background.  This will likely require changes to the report to write the results into a database table instead of exporting to memory. However this has the added benefit of freeing the dialog work process of the WDA while the report runs.

  • PR05 Transaction Iview from Abap Webdynpro

    Hi,
    From abap webdynpro, on action of one button, i'm calling PR05(Travel Expense Manager) screen by passing the parameters as follows and calling NAVIGATION_ABSOLUTE method:
    BUS_PARAMETER-KEY = 'PTP00-PERNR'.
      BUS_PARAMETER-VALUE = LS_EMPLOYEE_NODE-PERNR.
      Insert BUS_PARAMETER into table BUS_PARAMETER_LIST.
      CLEAR BUS_PARAMETER.
      BUS_PARAMETER-KEY = 'PTP1000-REINR'.
      BUS_PARAMETER-VALUE = LS_HEADER_NODE-REINR.
      Insert BUS_PARAMETER into table BUS_PARAMETER_LIST.
    It opens PR05 screen, with the correct employee list, but it does not populate the tripnumber and also it should skip the first screen.
    In the IView, i have already given OKCODE='MOD' for change of the trip and also PROCESS_FIRST_SCREEN=YES.
    In the business parameter i try to add for selecting the particular line in the table control of the PR05 screen, but that doesn't work.
      BUS_PARAMETER-KEY = 'PTP1000-MARKER(01)'.
      BUS_PARAMETER-VALUE = 'X'.
      Insert BUS_PARAMETER into table BUS_PARAMETER_LIST.
      CLEAR BUS_PARAMETER.
      BUS_PARAMETER-KEY = 'TRIPCHANGEINTERACTIV'.
      BUS_PARAMETER-VALUE = 'X'.
      Insert BUS_PARAMETER into table BUS_PARAMETER_LIST.
    So any inputs on how to auto select the line based on the trip number and go directly to particular change trip.

    Hi Alex,
    is there no possibility to open the transaction by calling a link? For example like this way:
    host, port, system, mandant, user, password, tcode (e.g.: 192.168.100.2:6000:xi?mand=300&user=xyz&passwd=xxx&tcode=se16).
    Do anybody other know if there is a possibility doing like this?
    Greetings, Alexander

  • How to get workitem id in ABAP-Webdynpro application

    Hai All,
    When a user clicks on a work item in universal worklist, a ABAP-Webdynpro screen is called. I want to pass the workitem number to this ABAP-Webdynpro application. 
    Please let me know how to pass this.
    Thanks & Regards,
    H.K.Hayath Basha.

    Hai Kari,
    Thanks for the link, i am looking into it.
    Hai Naresh,
    Where should I give this link,
    http://abc.com:8001/sap/bc/webdynpro/sap/ztest? param1= Val
    What I have done is,
    In SWFVISU transaction I maintained the following entry,
    Task = TS99000208
    Visualization Type = WD_ABAP
    Visualization Parameter  Visualization Parameter value
    APPLICATION            =  ZWD_OFFICIAL_012
    NAMESPACE            =  SAP
    and registered this task in in universal worklist.
    Where the specify the code you mentioned. 
    Thanks & Regards,
    H.K.Hayath Basha.

  • Error occured while showing adobe form in abap webdynpro application

    Dear SAP-Masters ,
    This is the mail regarding the error occured while showing adobe form in abap webdynpro application .
    When i run the adobe form seperately it works fine but with abap web dynpro , i'll get following error .
    Pls tell me how to resolve this problem .
    The following error text was processed in the system D35 : WebDynpro Exception:
    The error occurred on the application server DV35_D35_00 and in the work process 2 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: UPDATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP

    Hi Arjun ,
                Thanx for ur reply ,
                i got following results in ST22 dump analysis :
    '  An exception occurred that was not caught ' .
            and
    Source Code Extract
    Line
    SourceCde
    79
    x_xml = get_wd_context_as_xml( data_source = data_source ).
    80
    m_pdf_object->set_data( formdata = x_xml ).
    81
    catch cx_fp_exception into lr_fpexc.
    82
    raise exception type cx_wd_general
    83
    exporting
    84
    previous = lr_fpexc.
    85
    endtry.
    86
    if fillable = abap_true.
    87
           if m_version is initial.
    88
             m_version = m_pdf_object->get_version_info( ).
    89
           endif.
    90
           if version < ''.
    91
             set_usage_rights( m_pdf_object ).
    92
           endif.
    93
    endif.
    94
    endif.
    95
    endif.
    96
    97
    only call the ads if requested
    98
    if execute_ads_call = abap_true.
    99
    try.
    100
          set document
    101
    m_pdf_object->set_document( pdfdata = pdf ).
    102
    103
          execute, call ADS
    104
    m_pdf_object->execute( ).
    105
    106
          get result
    107
    m_pdf_object->get_document( importing pdfdata = pdf ).
    108
    catch cx_fp_exception into lr_fpexc.
    >>>>>
    raise exception type cx_wd_general
    110
    exporting
    111
    previous = lr_fpexc.
    112
    endtry.
    113
    endif.
    114
    115
    endmethod. 
    and
    Error analysis
    An exception occurred which is explained in detail below.
    The exception, which is assigned to class 'CX_WD_GENERAL', was not caught and
    therefore caused a runtime error.
    The reason for the exception is:
    WebDynpro Exception:
    The occurrence of the exception is closely related to the occurrence of
    a previous exception "CX_FP_RUNTIME_SYSTEM", which was raised in the program
    "CL_FP_PDF_OBJECT==============CP",
    specifically in line 255 of the (include) program
    "CL_FP_PDF_OBJECT==============CM02Y".
    The cause of the exception was:
    ADS: com.adobe.ProcessingException: PDF is not interactive.  Data can only be
    |    imported into interactive forms.(201501).

Maybe you are looking for

  • A script for adding the current date to file name?

    I am working in Indesign CS3. I frequently save file as PDFs into a designated folder. I was hoping for help in writing a script that would apply the current date to the end of the file name, when saved into this folder. Some days, I save the same fi

  • Query Performance & Turning off graph

    Since we've upgraded from BW3.5 to BI 7.0, query performance deteriorated.  The same query now runs longer in BI 7 than compared to in BW 3.5, especially for queries that return large sets of data. For example, one query took 4 minutes 30 seconds in

  • My phone deleted all my pics from dec 2012-about 3 weeks ago

    Help  my phone deleted my pics from dec2012-about 2 weeks ago and my calendar will not save dated

  • Batch DPS Article Import Breaks Smooth Scrolling Pages

    When will the batch "import" support the ability to import ENTIRE folio's that contain both "snap-to" and "smooth-scrolling" pages? Currently one must add stacks indiviually if they wish to have smooth scrolling stacks incorporated into thier folio. 

  • Backed up iPod Now i lost 10GB on Mac!

    Ok so i used a programme to take all the music off my iPod classic (because i just got an iPod Touch). Can not remember what i used... I wanted to take 10GB off the iPod classic to my mac and then put it all on my new iPod Touch. BUT, it transfered e