Calling WDA Application in BADI

I have to enhance a abap webdynpro screen using badi in CJ20n. I want to know how to call abap webdynpro application in badi.
Can anybody help me on this.
Regards,
Soumya

hi ,
if u want to get the URL of ur WD Application :
//to get URL of Webdynpro Application :
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'Z102044_BAPI'
IMPORTING
out_absolute_url = str.
str - type string.
'Z102044_BAPI' is the name of your webdynpro application
to call webdynpro abap page from SAP GUI , use method CALL_BROWSER
CALL FUNCTION 'CALL_BROWSER'
  EXPORTING
    URL                          =  lv_url   "Your webdunpro application URL
  EXCEPTIONS
   FRONTEND_NOT_SUPPORTED       = 1
   FRONTEND_ERROR               = 2
   PROG_NOT_FOUND               = 3
   NO_BATCH                     = 4
   UNSPECIFIED_ERROR            = 5
   OTHERS                       = 6.
regards,
amit

Similar Messages

  • How to call WDA Application from an other SAP System

    hello all,
    I have a WDA Application and if the user click on a Button in this Application,  i need to call an other WDA Application from an other SAP System.
    example:  SYStem  X01 has a WDA Application and there is a Button in this Application, if the User click on this Button, a WDA Application from an Other System X09 shoud be displayed in the same window, same WDA IFRAME .
    can any one tell me how can I do this?
    Thank you all

    Hi,
    As mentioned earlier, you need to pass the host name and port of the second system. If the application name is same, pass the same application name.
    DATA: lv_url TYPE string,
           lv_host TYPE string,
            lv_port TYPE string,
            lv_protocol TYPE string.
      CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = 'ZWD_APPL_NAME'
          in_host          = lv_host   " host name of second system (X09)
          in_port          = lv_port    " port of second system
          in_protocol      = lv_protocol  " protocol of second system
    *      in_parameters    = lt_parameters
          namespace        = 'sap'
        IMPORTING
          out_absolute_url = lv_url.
    To get the Host, Port and Protocol of second system, wrap the below code in a Function Module(RFC) in X09 and call this in X01 and then pass them to the cl_wd_utilities=>construct_wd_url as mentioned above
    CALL METHOD cl_http_server=>if_http_server~get_location
        IMPORTING
          host         = host
          port         = port
          out_protocol = out_protocol.
    hope this helps,
    Regards,
    Kiran

  • Hello. after updating to Ios 8 my iPhone is terribly! Discharged very quickly, many transitions between applications, the program takes off, ringtones do not work - works a standard call, the keyboard freezes, bad messages are sent, often loses the n

    Hello. after updating to Ios 8 my iPhone is terribly! Discharged very quickly, many transitions between applications, the program takes off, ringtones do not work - works a standard call, the keyboard freezes, bad messages are sent, often loses the network. what have you done with your phone moym ?! solve all these problems! I beg of you!

    Hello. after updating to Ios 8 my iPhone is terribly! Discharged very quickly, many transitions between applications, the program takes off, ringtones do not work - works a standard call, the keyboard freezes, bad messages are sent, often loses the network. what have you done with your phone moym ?! solve all these problems! I beg of you!

  • A Problem when calling a new WDA Application

    Hi,
    i am opening a new wda application with link in a html page using that code;
    in a html;
    <a href = "http://domain/sap/bc/webdynpro/sap/zhr_105_user_pass_control" />  Link </a>
    in "zhr_105_user_pass_control" wda application;
    METHOD onactioncall .
      DATA : lv_url TYPE string.
      CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = 'ZNEW_WDA'
        IMPORTING
          out_absolute_url = 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( ).
      CALL METHOD lo_window_manager->create_external_window
        EXPORTING
          url    = lv_url
        RECEIVING
          window = lo_window.
      lo_window->open( ).
    ENDMETHOD.
    But this is opening wda application in new window and standard sap sessions couldn't starting so the login screen is opening.
    How can i redirect my wda application to another wda application with started sessions?
    Can somebody help me please?
    Thanks.

    Hi,
    Here you r using below code
    CALL METHOD lo_window_manager->create_external_window
        EXPORTING
          url    = lv_url
        RECEIVING
          window = lo_window.
      lo_window->open( ).
    It's occuring the external window each time that's why opening Log-On window.
    Skip this code and use the code for keep the same window.
    -Rick

  • Calling WDJ from WDA application

    Hi experts,
    Can anyone please tell me that how 2 call a WDJ application from a WDA application. Please explain in detail as i am complete novice in this field.
    thnx.

    Hi Thomas and experts,
    I have requirement where i need to call WD java standard application.
    My requirement : I am displaying teamview in my MSS through OADP by using WD ABAP...
                                 Initial Screen displays columns like Position, Employee name , Job ...etc
                                     when manager select position in teamview ....it has to check whether positions region went live or not.
                                    I) IF position region went live then it has to open 3rd party tool and pass parameters(Here i am open 3rd      party URL and passing parameters)
    Here my requirement, 2)Already we have standard WDJ application which is using as of now, so if positions region has not gone live then i have to call standard WDJ application with passing parameter and skipping initial screen which is displaying teamview and continue with position details
    Is this possible through portal which explained above. can any one suggest me how to proceed .
    Thanks in advance...
    Regards,
    Farooq

  • Calling WD application in SAPGUI of other R/3 (non-WDA) system

    Hi,
    We have WD application in CRM system. We want to call this application in R/3 system (which is not upgraded to WDA). We don't want to call in web-browser bcoz we are calling GUI transaction from the WD application.
    I tried this by creating a RFM in CRM, which calls FM 'WDY_EXECUTE_IN_PLACE'. And then calling new RFM from R/3. I am getting "control error".
    Any ideas?
    Thank you.

    Hi.
    How do you call gui transaction from WD app?
    AFAIK the WD app running in SAP GUI is still running in IE, which is kind of SAP
    GUI plug in. I am just curious.
    Thanks you in advance.
    Cheers,
    Sascha

  • Error while deploying WDA application on portal.

    hello Friends,
    i am getting this error when eevr i try to check my WDA application on portal.
    can you please help me?
    note:my its connection is not establishing.
    is this the cause of error?
    The URL http://duetserver:8006/sap/bc/webdynpro/sap/z57316_portal_event_send/ was not called due to an error.
    Note
    The following error text was processed in the system EC1 : Die URL enthält keine vollständige Domainangabe (duetserver statt duetserver.).
    The error occurred on the application server DuetServer_EC1_06 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CHECK of program CX_FQDN=======================CP
    Method: LATE_CONSTRUCTOR of program CL_WDR_UCF====================CP
    Method: HANDLE_REQUEST of program CL_WDR_UCF====================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: 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 EC1 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 DuetServer_EC1_06 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 1 in transaction ST11 on the application server DuetServer_EC1_06 . 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: 100 -u: DEVECC -l: E -s: EC1 -i: DuetServer_EC1_06 -w: 1 -d: 20070614 -t: 142215 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    thanks,
    Nutan.

    you need to set up FQDN fully qualified domain name.
    instead of  http://duetserver:8006/....you need to use
    http://duetserver.domain.com:8006/...
    check
    1. whether WAS settings in system definition in portal is with FQDN
    2. check whether ABAP system FQDN is done. (its in the profile parameter icm/host_name_full (you can run abap report RSPARAM and check this.)

  • Call WDA from ABAP via function module

    Hi WDA experts,
    is there any possibility to call a WDA within a ABAP report AND include it in the process.
    The best would be to call a WDA via a function module - make some inputs on the WDA side - press submit and the function module gives me the data from the webdynpro back to my application.
    I know that I can call a WDA via the function CALL_BROWSER, but in this case the WDA application is fully independent from the report and I am not able to post any data back to the report.
    I also know FM WDY_EXECUTE_IN_PLACE, but in this case I need a HTML container to display the WDA and there it seems that I also never get back any data back to the report.
    Any hints are appreciated.

    Not too hard:
    CALL WDA passing in a KEY on start plug.
    write the data to a shared memory object using the key passed as the
    key to a shared memort object on the submit.
    (see blogs on writing Shared maemory objects in ABAP)
    Then simply exit APP.
    On return read the data from the Shared memory Object.
    The shared memory object lives across the 2 sessions.
    cheers
    Phil.

  • Calling WDA from Microsoft .

    Hi Every body ,
    I want to call a WDA applcation from from Non- SAP portal .
    I want to call a WDA applcation from microsoft portal .
    Is it possible to call WDA in internet not in intranet .
    Thanks in advance ,
    Sethu

    Hi,
    Same req but,here i have to call the WDA application in the portal log on customization par file.
    com.sap.portalLogon.par --- bottonarea.txt i have a link i want to call the WDA application.
    here the link href="I have the application URL" but here we have to give host and port
    if that transfer to quality agin i have to chage... like that...production.
    Can you please provide me how to call WDA.
    how to get the host and port dynamically.if transport to quality dynamically to fetch that host and port by coding.
    i am thinking that is the way.
    If there is any solution please let me know.
    Thanks
    Ramkumar

  • Calling WDA from IC Webclient

    Hi All:
    We are planning to build a WDA application and integrate with CRM IC Webclient application (BSP app).
    Any ideas on how to integrate and pass the context data between the two applications?
    Thanks a million!!

    Actually I am planning on calling the WDA thru a url link in BSP (ICWC Nav bar). When users pick data in WDA that needs to be communicated back and trigger an event.
    We already have BSP view(Agent Inbox ) doing what WDA is intended for, but users complain about performance, we think with WDA we can improve performance significantly.
    Any suggestions?

  • WDA application problem

    Hi,
    i hav created a WDA Application and configured in portal.
    from outside i can able to acces portal, but the iview which is WDA application is not working from outside.
    do we need SAP GUI to access WDA Application through portal?
    Can some one put some light on this.
    Here i also test the URL http://netweaver.portal.com:8000/sap/bc/webdynpro/sap/zpayslip from browser center. Even this url also not working.
    What setting do i need to change
    Regards,
    Renu

    Hi
    WebdynproABAP Application Integration with Enterprise Portal
    1. create a component
    2.go to main view create action trigger_event.
    3.click on trigger event action
    4.open code wizard.
    5.select portal intergration call in that PORTAL MANAGER(IF_WD_PORTAL_INTERGRATION) AND METHOD (FIRE)
    6. IT WILL WRITE CODE FOR U IN ONACTIONTRIGGER_EVENT.
    7.change  the code with portal_event_namespace ='com.sap'
                            portal_event_name ='test_event'
    8.save and activate main menu.
    9.embedd view to window and activate it.
    10.create application activate it and run it.
    11.Now got to system administrator ->system configuration->portal content and create new system .
    12. select suitable system and proceed next.
    13.in next screen give name of system,system id and id prefix ,click next then
    14 choose option for editing and ur system is created.
    15. choose connector in propety category
    application host as hostname of applic server.
    logical systen name as system name defined in backend
    system type sap_r3
    16. now do WAS configuration.
    give the required field .
    17.now do its configuration
    go to r3 system use transaction SICF
    default_host->sap->bc->gui->its->webgui->SAPGUI for html
    right click on slect option test service open new window
    do the setting as required.
    Do the user management setting
    18.then sld configuration.
    19. Test the connection.
    20.Now application is embedded in iview
    21 u need to add this iview to portal frame work
    i hope this work

  • WDA Application: how to get the pdfsource xstring updated by user?

    Hi, gurus
    we use adobe interactive form in our WDA application to provide user interface for input, then we want to get the pdfsource back into our context again, and later we use a extraction tool to grab the xml data out of the string.
    the problem is that , once the form is displayed on the client side , any user input done to the form will not update the pdf source defined in the context.
    could you please tell me is it possible to get the updated pdf source back in the context?
    thanks .
    Jun

    Hi Jun,
    it is great news. But for me it doesn't work. Which SP do you have (SP10 patch1, SP11)? I have SP10, no patch.
    My best solution, but it doesn't work, is:
    1. I have an adobe form with ZCI layout (this form I created in SP10). I inserted webdynpro script in SFP. On form I have webDynpro native Submit button.
    2. My interactiveForm in WDA has properties:
    <i>dataSource</i>: node in context under which is attribute of type structure (type of my import parameter from interface of my adobe fom). I tryed use empty node of my context or to leave this property empty but then in server round trip I got error: Access via 'NULL' object reference not possible.
    displayType: native
    enabled: true
    pdfSource: attribute of type xstring
    readOnly: false
    templateSource: empty
    onSubmit: my_action
    If I press Submit button in form then server round trip is processed. But my_action isn't called. Method WDDOMODIFYVIEW is only called and in pdf source is pdf file which I prefilled (no new values in xml data).
    Please describe properties of context node which you use for the property dataSource.
    As you mentioned "the static context binding is soooo...unflexible".
    Thanks
    Michal

  • Sending a parameter to another WDA Application in my WDA Appliction

    Hi,
    i have a tree and i am calling another wda application on select the item of my tree but i want to send a parameter that is value of selected item of my tree.
    How can i call the wda applications with sending a parameter?
    Can somebody help me pls?
    Thanks.

    Hi,
    You can call navigate_absolute of if_wd_portal_integration.
    This can be done using code wizard:
    1. Select portal integration radio button of code wizard
    2. Select navigate_absolute method
    In  navigation_target parameter, you have to pass PCD location of iView of the other application say APP2
    and in business_parameters table type parameter,  you can pass any number of parameters in key value format.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      CALL METHOD lo_portal_manager->navigate_absolute
        EXPORTING
          navigation_target   = 'Put PCD Location of iView '
    *      navigation_mode     = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_INPLACE
    *      window_features     =
    *      window_name         =
    *      history_mode        = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
    *      target_title        =
    *      context_url         =
    *      post_parameters     = ABAP_FALSE
    *      use_sap_launcher    = ABAP_TRUE
           business_parameters = lt_business_parameters
    *      launcher_parameters =

  • OrgChart: calling WDA from Details

    Hi guys,
    I have a specific need: call WDA from employee Detail. It should be able also to pass personnel number into WDA like parameter.
    Any idea, how to do that?
    Best regards,
    Sergey Aksenov

    Hi Sergey,
    Do you have any experience of using XSL or customizing VSN solutions? If not this might prove a bit tricky. You should try and use existing examples in the application. Meanwhile, I will try to help.
    2. Create file 'zhr_tmc_employee_profile.xsl' with content:
    <a href="http://myhost:myport/sap/bc/webdynpro/sap/zhr_tmc_employee_profile?PERNR={/cds/data/record/field[@name=PERNR]}&sap-rtl=&sap-accessibility=&sap-wd-configid=ZHR_TMC_EMPLOYEE_PROFILE">Press here</a>
    If this is the only code in the document then the document will not work. Look at other XSL documents in the Templates folder to understand how they work.
    4. Edit PresentationResources.xml in my build (.delta folder, and root folder of build as well). Added this:
    <presentation name="zhr_tmc_employee_profile">
    <file name="MyTemplates\zhr_tmc_employee_profile.xsl">
    Did you add the </presentation> tag after it?
    5. Change 'presentation' tag in my detail xml in folder Detailconfiguration, replace content with 'zhr_tmc_employee_profile'.
    What detail configuration are you using? The change should look something like this:
    <section enable="true" name="647308B3-0C68-4829-50AF-30C5668EDC40">          <fieldsetname>6abf642e58534f80942731270cb37b67</fieldsetname>
         <presentation>zhr_tmc_employee_profile</presentation>
    </section>
    Can you check the cds.log file after you open the details panel? The problem is likely to be the XSL file is not a correct XSL file.
    Best regards,
    Luke

  • Calling WD Application through Microsoft SharePoint.

    Hi Experts,
    I want to call some WD Application from MS SharePoint. Can it be possible to call WD Application from MS Share Point if yes then please let me know the steps.
    Thanks in Advance.
    Thanks,
    Satya

    Hi Satya,
    Kindly go through Lekha's comments in this [thread|Calling WDA from Microsoft .;.
    Regards,
    Uday

Maybe you are looking for

  • How do I manually sort reminders in iCal after upgrade to 10.7.2

    I used to use the iCal "To do" list to have an ordered list of things I needed to do. I would choose to sort manually (by right clicking in the to do area) and then I could drag the items into the order I wanted to do them. After upgrading to OS 10.7

  • How do I get my iMac's HD(Broken display) to function through a Macbook Pro?

    I am attempting to use my iMac with an external monitor and I need to allow the second screen to function as my primary screen. I presently have a Displayport to VGA adaptor (leading to a monitor) connected to my iMac. Then, I have a FireWire spannin

  • Row currency has changed ... error

    I am using jdev 10g, ADF, jsp (not uix). After each action the current row changes somewhere and I don’t know where or why. When trying to get the next set of the records I am getting the error: Row currency has changed since the user interface was

  • Need to partition current internal drive first...help needed

    Hello, I'm currently installing a version of leopard on my macbook pro intel 2 core duo. Problem is I had previously swapped out the hard drive for a 320 and failed to partition it as a GUID so the leopard installation is saying that needs to be done

  • OWSM problem in OSB 11g

    I'm running Oracle Service Bug 11gR1 PS3 (11.1.1.4). At installation I choose the domain extension options to enable for OWSM and also included EM to act as an OWSM, but in Proxy service i am not able to see policy tab. Please suggest me that any con