Pass Parameters to an external appl when launched from web dynpro ABAP .

I want to Pass Paramaters to an external application when launced from Web dynpro ABAP . I have successfully launched an .exe file ( Notepad / eViewHSEditor ) from Web dynpro using the logic from Standard WD_TEST_APPL_ACFEXECUTE component  But I am unable to Pass paramters to the .exe file .
example :-  I would like to pass parameters  text1 text2 in the arugement list and I expect it opens an untitled notepad and in the file it will have parameters text1 text2 . But it is behaving in a different way . Below are the detailed steps of what I have done .
The steps that I followed :-
1)  Right now I have created the white list Configuration for Notepad.exe
2) I have created 1 and 2 postions both of type string and permission Legal .
3) The Paramter Value is * for both 1 and 2 .
4) I activated the whitelist and it generated an .XML file
5)
          application = 'C:
WINDOWS
system32
notepad.exe'.
          argument = 'text1 text2' .
          co_element :- I am reading the element from the conrtext .
      co_element = wd_context->get_lead_selection( ).
      co_element_stru-attribute_name = 'ERROR'.
      co_element_stru-element = co_element.
      wd_this->acf_method_handler->if_wd_acfexecute~execute( application =  application
                                                             argumentlist = argument
                                                             errorinformation = co_element_stru ).
when i execute  the application , it is trying to launch a notepad with file  'text1  text2.txt'  and it doesn't have one , it is asking do you want to create .  If You yes, it will open notepad with name 'text1 text2.txt' . If you Pass abcd in the arugement list , if the file with name abcd.txt exists , it opens the notepad with that file name .

You try to open notepad from your PC with the same command, you will the same result.
start->run->notepad "test1 test2". You get the popup saying that "test1 test2" file is not existing. You can google it to find a way to pass the text while opening notepad and try to fit that in your WebDynpro argument. I doubt if it is possible though.

Similar Messages

  • Pass parameters dynamically to url iview from web dynpro abap

    Hi,
    I am trying to pass 3 key-value pairs via absolute navigation to a URL iview.
    The url expected is : http://www.sap.com?field1=value1&field2=value2&field3=value3
    For this, I have done the following:
    1) Created a url iview with the 3 parameters in get.
    2) Used the pcd location of the url iview and referred it in the navigate_absolute method.
    Following is the call:
            CALL METHOD lr_port_manager->navigate_absolute
              EXPORTING
                navigation_target   = wa_navigation-target
                navigation_mode     = wa_navigation-mode
                use_sap_launcher    = abap_false
                business_parameters = l_bus_parameter_tab.
    The l_bus_parameter_tab has the key-value pairs populated and I can see them populated.
    However, when the url is being called the parameters are not getting passed. Am I missing anything to be passed?
    Thanks.

    Hi Kumar,
    I have followed your reccomendation and updated the code and iview properties.
    The code now looks like:
            l_parameter-key = 'userid'.
            l_parameter-value = sy-uname.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
            l_parameter-key = 'portal'.
            l_parameter-value = 'test'.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
            l_parameter-key = 'mode'.
            l_parameter-value = 'I'.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
    *End of business parameters population
            CALL METHOD lr_port_manager->navigate_absolute
              EXPORTING
                navigation_target   = wa_navigation-target
                navigation_mode     = wa_navigation-mode
                use_sap_launcher    = abap_true
               business_parameters = l_bus_parameter_tab.
                launcher_parameters = l_bus_parameter_tab.
    However, when the method is called, it does nothing and the url does not get called.
    When I manually add parameters to the url iview and preview it, it does the job.
    For some reason, these parameters are not getting passed to the url iview or page.
    Is there a limitation that parameters cant be passed to url iviews?

  • How to get the Response Code when a URL is launched from Web Dynpro

    Hello Experts,
    I have a Web Dynpro Application in which in one of its views i have an IFrame UI element in which i will show a resource stored somewhere ..
    But before showing it i want to check if the resource actually exists. For this i have to check the HTTP Response code from Web Dynpro Application without setting it in the Iframe..
    I am using the following code to get the Response Code:
    try{
    URL url = new URL("Some Url");
    HttpURLConnection.setFollowRedirects(false);
    HttpURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.connect();
    wdComponentAPI.getMessageManager().reportSuccess("Response code ="+connection.getResponseCode());
    }catch(Exception e){
    wdComponentAPI.getMessageManager().reportSuccess("Exception");
    Now the Problem is whatever response Code occurs 403 (for No Proper Authorization), 404 (for Resource not found) etc..
    i always get Response Code=  500 (which is for Internal Server Error) shown in the messgae i have printed.
    Please let me know the correct way of getting the Response Code from Web Dynpro.
    Also my resource is lying on a SAP Portal 6.4
    Best Regards
    Sundeep
    Edited by: Sundeep Sethi on Feb 18, 2008 9:07 AM
    Edited by: Sundeep Sethi on Feb 18, 2008 10:23 AM

    Hi,
      Check this code from /thread/5242768 [original link is broken] if it works.
    try{
    URL myurl = new URL("http://calendar.google.com");
    URLConnection connection = myurl.openConnection();
    if(connection instanceof HttpURLConnection) {
    HttpURLConnection httpConnection = (HttpURLConnection) connection;
    HttpURLConnection.setFollowRedirects(true);
    httpConnection.setRequestMethod("HEAD");
    httpConnection.connect();
    System.out.println("Response = "+httpConnection.getResponseCode());
    catch(Exception e) {
    // print exception
    Regards,
    Harini S

  • Problem in response of a webservice  when called from web dynpro

    My web dynpro application is communiting with XI using a webservice..
    its working fine and giving me a PAYLOAD in response as give below
    SyncId>911</SyncId>
      <SyncInstanceId>910</SyncInstanceId>
      <b><u><SourceSystem xsi:type="ns1:/wsdl:definitions/wsdl:types/xsd:schema/xsd:complexType/xsd:sequence/xsd:element[4]/xsd:simpleType">EI6400</SourceSystem></u></b>
      <Direction>1</Direction>
      <ResourceMaster>false</ResourceMaster>
      </ns1:InspireCancelRequest>
    here xsd:type of SourceSystem is string.. and for others it is integer and boolean..
    i dont want <b><u><SourceSystem xsi:type="ns1:/wsdl:definitions/wsdl:types/xsd:schema/xsd:complexType/xsd:sequence/xsd:element[4]/xsd:simpleType">EI6400</SourceSystem></u></b>
    this information into payload..
    <i>why this is happening only about string type?</i> and not for others..

    Hi Snehal,
                    u can check here ,if it help
    <a href="/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1:///people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    <a href="/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2:///people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    regards
    Sumit

  • When to use 'Web dynpro ABAP' and when to go for 'Web Dynpro Java'

    Hi,
    I am trying to learn 'Web dynpro ABAP' from tutorials available on SDN as i am presently working in ABAP. I am also Java learned.
    Please tell me the selection criteria for using Web Dynpro component / application using ABAP or JAVA.
    Regards,
    Tanaya

    Hi,
    Go through this
    Web Dynpro: ABAP or Java?
    WebDynpro for ABAP Vs Java
    Re: Javascript future in Webdynpro (JAVA and ABAP)
    Javascript future in Webdynpro (JAVA and ABAP)
    PradeeP

  • Passing parameters to Transactions from Web dynpro Application through ITS

    Hi,
    i need to call a transaction from Web dynpro through ITS. On action from web dynpro application, i am concatenating the respective parameters mentioned below along with URL. The problem is one parameter(VARIANT) is being passed to the t-code CAT3 correctly. The next mandatory parameter(PERNR) is not passed to the respective field.Here is the URL Code:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'CAT3'
    '%20TCATST-VARIANT=' lv_name2 '&CATSFIELDS-PERNR=' lv_name1 INTO url.
    Called T-Code CAT3
    Passing Parameters are:
    Data Profile TCATST-VARIANT
    Pernr: CATSFIELDS-PERNR

    Pradeep,
    iam trying to pass values from webdynpro application to SAP GUI Transaction
    here is the sample code which iam using
    CONCATENATE  'http://s0164dep01.adta.uae:50000/irj/portal/interop?NavigationTarget=pcd:portal_content/Testing/trn_iw33?'
    '%20CAUFVD-AUFNR='
                 'ApplicationParameter=CAUFVD-AUFNR='
                  lv_workorder';'
              'DYNP_OKCODE=SHOW'
             INTO lv_url.
    i could'nt able to succed as its displaying page not found exception.
    Help me on this to proceed further
    Regards
    Jaipal.E

  • DNG files will not open in photoshop when launched from lightroom

    This just started, I can't open DNG files in photoshop when launching from within lightroom.  Not sure how to fix this.  the dng files launch fine from bridge.

    As for your issue with DNGs in CS, did you bother to update ACR to version 2.4?
    See the detailed instructions on the download page.
    >What I need to know is whether or not my PS CS will work with files converted by Adobe DNG.
    Of course ACR will, if you correctly install Adobe Camera Raw 2.4.
    No version of Photoshop opens raw or DNG files, only ACR does, hosted by Photoshop. But you do need at least version 2.4 of ACR, which was the first to support DNGs.

  • How To Set Third Party Media App Is Default When Launched From Default File Manager

    I use rock media player, which can encode & decode The Video and audio files i use, unlike the phone i have, i don't receive the option to set the app as the default media player. I would really like to be able to use this app on the thrive as it is some much a better media player than the thrives defaulty app. Rock player is the name of the app, who do set it as the default player when launched from the default file manager.

    From my experience playing with the Thrive, when you attempt to watch a media file, it will open a menu asking you what application to use. From that popup, you can set a default.
    - Peter

  • Using fonts when launching from JNLP

    Hello,
    I followed the directions in this link http://fxexperience.com/2010/05/how-to-embed-fonts/ and was able to add and use fonts in my javafx program when launched from Netbeans. But when I try to launch from JNLP, the fonts do not show up (the text shows up as Arial).
    Is there something special I need to do to access the fonts in the jar and utilize them?
    As the link directed I created a fonts folder in my src folder where I store all the .ttf file, and created a fonts.mf file in META-INF where I map a name to the font file. Works fine when launching from netbeans.
    thanks in advance for your help
    jose

    I've found the problem! It's the timestamp for the JNLP file. But unfortunately I can't figure out the workaround as yet.
    To explain the problem it would be best to start with my application's installation procedure:
    The applcation is installed by way of CD (using javaws -import) as downloading an 8mb jar file over dialup is unwieldy. Subsequent updates are retrieved from the server. Jardiffs are sent back to the webstart client so updates over dialup becomes manageble.
    The application jar file in the CD is version 1.0. Let's say the server is now at version 1.3 with the timestamp 2005-10-01 00:00:00.
    The user installs the application using the CD today which gives his JNLP file the timestamp of 2005-10-03 00:00:00.
    When the application is started, it calls the server to check for updates. Although the JNLP file returned from the server specifically states that the current version is at version 1.3 Java Web Start insists on using the timestamp to perform the comparison first.
    Since the timestamp of the JNLP file in the user's pc is dated later than the JNLP file in the server, Java Web Start ignores the version checking and assumes that the application in the server is the latest and greatest.
    Has anyone encountered a similiar situation? The only solution I can think of is to hack the JNLPDownloadServlet to return a date that's way in the future so that Java Web Start picks up the changes... sigh.
    Is it possible to disable the timestamp checking for the JNLP files? As again, help is mucho appreciated and there are 10 duke dollars at stake too :)

  • Developer Server 6.0 hanging when launched from Netscape 4.6

    Hi, simple question to ask about OAS and Developer Server.
    My Developer Server 6.0 hanging when launched from Netscape 4.61,
    I am currently running...
    Pentium PII 200Mz running NT sp5
    Forms Server version 6.0.5.31.0 (Patch 3 applied)
    OAS version 4.0.7.1.0 (Patch applied)
    Jinitiator 1.1.7.18
    Netscape 4.61 browser
    I have all the latest versions of everything that is available,
    I have followed the instructions.
    I successfully connect to the OAS admin utility and have setup
    all the virtual to physical directory mappings under the default
    listener www. I successfully start all website OAS services.
    I have Forms server successfully started up as a process
    listening on port 9000.
    I have two statics html files created:
    a) with Jinititator 1.1.7.18
    The very first time I connected to this static html file it
    installed Jinitiator as expected. The Forms server splashscreen
    then appears.
    Jinitiator then starts up successfully, no errors appear in the
    Java console. This has proved I am talking to the listener and
    my virtual directory mappings are working.
    At this point there is a lot of disk activity and then all
    stops, the splashscreen remains and appears in the discussion
    area:
    FRM-9999 cannot access "koala.ilaco.gov.bo:9000" and
    a series of java exceptions
    I am pointing to the correct java directories (I think)
    b) with out Jinitiator
    When I try to call using URL with Netscape 4.61 I get a
    message on the status bar saying...
    Applet oracle.forms.engine.Main class oracle/forms/engine/Main
    got a security violation: Method verification error
    Can you help ?
    If you know the answer, please let me know as soon as
    posible.
    Thanks for the answer....
    Rgds,
    Polo
    null

    Bart LEBOEUF (guest) wrote:
    : Hi,
    : I've the same problem during this week. I've resolve the
    : problem by replace DLL's
    : in %ORACLE_HOME%\bin by the ifwcm60.dll from Developer CD-Rom
    : (\extras\sp4\ifwcm60.dll) and vgs60.dll
    (\extras\vgs\vgs60.dll).
    : At first time, it doesn't work. I remove my environnement
    : variables
    : FORMS60_MAPPING and FORMS60_TIMEOUT from my System Control in
    the
    : Config panel, then I reboot and surprise, it works !!!
    : (Look also in database registry of Windows with regedit
    utility
    : in
    : [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE] and remove the two
    : variables if you found them.)
    : I try on my two servers and it worked now perfectly.
    : : Bart.
    I respond your email, with my actual server configuration my
    problem is now: I get the splash screen and after form is hanged.
    My server configuration is:
    Compaq PC, with Pentium II, the software is:
    - Windows NT, with Service Pack 5
    - Oracle Application Server, v.4.0.7.1.0 Enterprice Edition,
    pathset 1
    - Developer Server v.6 patchset 3
    - My browser in this machine is Netscape 4.61
    - Jinitiator 1.1.7.18 is also used.
    My developer server is installed and running on the same machine
    that OAS is. I am using other browser in other machine (IE5)
    and trying to connect to the OAS on the first machine.
    My problems begin when I launch ifsrv60.exe. I copied
    ifwcm60.dll v.6.0.5.0.2, and other files required in the %
    ORACLE_HOME%\bin
    I forced listener Developer Server Port (
    c:\orant\bin\ifsrv60.exe -listen port=9000 )
    Now, I can connect with this process, with the following line:
    telnet koala 9000. The listener is working now.
    I tried to work with my (NonCartride-static html)forms60 form on
    WEB without Jinitiator, but I couldn't.
    With Netscape, in the status bar: Applet
    oracle.forms.engine.Main can3t stop ERROR
    With IE5, I get the splash screen and after the forms is hanged.
    If I use Jinitiator:
    With Netscape, in the status bar: Oracle Jinitiato: applet
    oracle.forms.engine.Main inited then form is hanged.
    With IE5, I get the splash screen and after that, the screen
    freezes and looks like the form is hanged.
    Any further suggestions on this?
    Polo
    null

  • No color toolbar icons from standard launch, ok when launched from another app.

    When launched from another app like google earth the toolbar icons are in color.
    When launched normally the icons have no colors.
    Currently Thunderbird 24.6.0

    another experiment.
    When you have the colour icons, Select Help menu > about (what version is this) when you have the black do the same and see if it is different versions. (pressing F10 will make them menu bar visible if it is not.)
    Thunderbirds icons changes from living colour to black and white quite a few versions ago.
    Reasons for color are;
    * An old version
    * An add-on by way of a Theme
    * The running of Thunderbird in XP compatibility mode in Windows

  • [SOLVED] GTK2 apps have wrong theme when launched from desktop entry.

    So I'm setting up KDE and I want to use the QtCurve theme for all applications where possible. I have set (via kde-gtk-config) the GTK2 theme to QtCurve and it half works. GTK2 applications are using the QtCurve theme when they are launched via a command, but they are using what appears to be an ugly version of the Oxygen theme when launched from a .desktop file. I previously installed gtk-qt-engine from the AUR, but have since removed it along with it's files, and as I was using the Oxygen theme at the time, this appears to be what has caused the issue. Does anyone know what is causing this and how to fix it?
    EDIT: Solved by removing ~/.themes folder (obviously only remove the KDE-QT theme if there are other themes in the folder).
    Last edited by RibShark (2013-09-23 17:26:41)

    Thanks, but lxappearance made things rather worse.
    A friend of mine had told me to put "gtk-toolbar-style=GTK_TOOLBAR_ICONS" into settings.ini and my problem is solved now.

  • Browser size when launched from Forms Builder

    Hi, Does anyone know how to set the size of the IE browser when launched from Forms Builder? I have set the width and height setting to 100% so that the applet takes up all the browser space, however the browser is still not as large as I'd like.
    When I start IE on its own, it opens in the desired size, it's only when running it from Forms Builder that it's too small. I've searched on the net, but nothing seems to work, there must be a setting specific to Forms?
    Thanks
    Sam

    If you are using SeparateFrame = True, then you might try using these in your When-New-Form-Instance trigger:
    set_window_property(forms_mdi_window, window_state, maximize);
    set_window_property('Your_Main_Window', window_state, maximize);
    If you are not using SeparateFrame = True, then you may have to use JavaScript in the page where your applet is located. Javascript can also go in your formsweb.cfg file. See:
    HTMLbeforeForm=<script>....</script>
    or
    HTMLafterForm=<script>....</script>

  • Opening External Window in Web Dynpro ABAP with URL disabled or Hidden

    Hi Experts, I have a requirement where-in we want to open the Web Dynpro ABAP application using tcode WDYID (by passing the application name  and startmode), but the URL of the newly opened explorer should be disabled or hidden. To achieve the same, I have created a component (lets name it PARENT) and inside that in DOMODIFY/DOINIT method have written code to invoke the required WDA (lets name it CHILD) in external window (by using lo_window_manager->CREATE_EXTERNAL_WINDOW) and is successfully able to open the application with URL disable using different parameter of method CREATE_EXTERNAL_WINDOW. But in this case there are 2 window which opens, one is for PARENT view and other is for CHILD. Now I only want to keep the second view (CHILD) to be opened and want to close the PARENT view. When I used EXIT_PLUG to close the PARENT window, it closes both the window. Need your inputs on my approach or if you have any. Regards, Harish

    Hi,
    If you open the popup, it opens as Modal Window, originating from Parent window. Without external window( where you can pass has_location = abap_false ), you cannot hide the URL/Address bar.
    If you want to partially hide the URL( if you dont want to show the full URL with application path), you can create an Alias for the service in SICF.
    Go to SICF, and create an alias for your WDA application; say original URL: domain:port/sap/bc/webdynpro/sap/<ZAPPLICATION_NAME>
    This URL you can convert( partially hide) as, domain:port/sap/<ANY_NAME>
    Refer creating Alias in this help: http://help.sap.com/saphelp_sem320bw/helpdata/en/55/361a3c9c004866e10000000a11402f/content.htm
    Hope this helps u,
    Regards,
    Kiran

  • EREC: theme for Web Dynpro ABAP pages (external candidate)

    Hello,
    I have created a custom theme in the SAP Netweaver Portal for my customer and now I have the requirement to use the same theme for my stand-alone Web Dynpro ABAP applications (pages for the external candidate). Is it possible to use the same stylesheet as in the portal, without having to recreate a theme?
    I tried several options, but none of them did work:
    A. Downloading the portal theme as a ZIP file and then uploading it in ERP using the report BSP_UPDATE_MIMEREPOS (after unzipping) to a location /SAP/PUBLIC/BC/UR/nw5/themes/CUSTOM_THEME. After that, I call my application with the additional URL parameter sap-wd-themeroot=/SAP/PUBLIC/BC/UR/nw5/themes/CUSTOM_THEME but it does not work (the app is displayed with the default sap_tradeshow stylesheet)
    B. I also tried calling my app using the URL parameter sap-cssurl=/SAP/PUBLIC/BC/UR/nw5/themes/CUSTOM_THEME but here again, it does not work (the app is displayed with the default sap_tradeshow stylesheet)
    C. Downloading the portal theme as a ZIP file and then uploading it (zipped) using the report WD_THEMES, but here I receive the error "no themes found in the ZIP file". I have the same error if I upload only the ur.zip I receive from the portal (instead of uploading the whole *.zip file)
    I checked the UR versions both in portal & ERP, and we had a lower version in the portal than in the ERP, so we upgraded the portal version according to SAP note 1446099. Now we have a higher version in the portal than in the ERP. We regenrated the portal theme and downloaded it again, but with the same result.
    Does anyone have an idea what could be the solution to our problem?
    Thanks in advance!

    I would recommend to try another way. If it is possible to access any SAP Portal from outside you can use two URL Parameters to integrate the Portal style sheets in a standalone WDA application. The parameter sap-cssurl contains the absolute URL address to the style sheet and parameter sap-cssversion the current SAP Portal style sheet version. For all external facing scenarios it is important to use the whitelist mechanism to block unknown URLs.
    Example
    ?sap-cssurl=http://myportal.myserver.com:50000/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/mytheme/ur/ur_ie6.css
    &sap-cssversion=7.11.5.20.0
    I canu2019t recommend to raise manually the version number. You will not get an consistent system this way. The meta data (project.zip) are outdated and of course you will get an outdated theme.

Maybe you are looking for

  • Sql server 2012 Logon trigger not working for certain logins

    Hello. I created a login trigger to insert data for each login in a table, and it works for all logins except one that is format domain\login and the login ends with the dollar sign(actual name is domain\CTXDEVDCSI1$). I had been using varchar, but a

  • Help!!! i cant speak to a live person

    My plan didnt renew and i had the money on my phone and now i cant speak to a live person to resolve this issue!!! I am unable to use my phone in fear it will depleat the amont of money i just put on it. Every time i call it says they are unable to c

  • Partila Payment and Residual Payment,

    Hi, From my understanding is this applicable for both inocming and outgoing payments, How will we determine whether this is partial for residual payments. Please help me in understanding the concept. Thanks

  • MDT 2013: WinPE Screen Resolution for Tablets not adapted

    Hello guys, I'm using MDT 2013 to deploy Windows 8.1 on tablets. So, after generated the boot image including the right drivers inside, I boot up my tablets through WinPE (Boot on LAN). Once WinPE initiated, I'm now in the Deployment Welcome Screen w

  • Flash Pro CS6 - Install on device ERROR

    When I check this box and publish ..  at the very end of the compile I get an error saying to check if there is enough free space on the device.  There is 20+ GB free space.