Parameters with EPCM.doNavigate

Hi ,
I want to call transaction and pass 2 parameters ,  one of them is to execute the screen ( like skip first screen in abap , or iview property ...show first page )..
The first parameter passed but the execute parameter not working....
The code :
EPCM.doNavigate( 'ROLES://portal_content/xxx/iview?DynamicParameter=PRSNUM-LOW%3D"resnum'%26<b>okcode%3donli'</b>, 1)
I try also ... sy-ucomm%3donli
How to pass this parameter to make the screen execute ????
Thanks

Hi Faniel,
You can use the following solutins:
1) Crate another transaction iview and define the ok code, then, navigate to it.
2) Use Application Integrator
For example:
document.location.href('/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.
Transaction?System=<system name>&TCode=<Transaction
code>&GuiType=WinGui&AutoStart=true&OkCode=<ok
code>&DynamicParameter=<param name>%3D<param value>')
res.write("document.location.href
('/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.
Transaction?
System=SAP_R3&TCode=ME9F&GuiType=WinGui&AutoStart=true&OkCode=ONLI&
DynamicParameter=%3D123456');");
Where:
SAP_R3 is your backend system
ME9F is the transaction
OkCode is ONLI
Parameter name is S_EBELN-LOW
Parameter value is 123456
res in the response component in your dynpage
Omri

Similar Messages

  • Problem with EPCM.doNavigate

    Hello all,
    I have a problem here with navigation.
    The code works fine in the dev portal, I hit the 'Enter' button and I'm taken to the appropriate page.
    When I transfer to prod it doesn't work.
    I hit the 'Enter' button and the 'homepage' loads, the default page after login.
    Strange thing is though, I have a button beside an input field, if I click the button it all works fine but when I press the Enter button after making an entry in the input field (I have the button set as default) then the navigation takes me to the homepage and not the appropriate page.
    So clicking the button works, but pressing 'Enter' when the button is the forms' default doesn't work. It navigates to the wrong place.
    Has anyone faced similar problems, any ideas what it could be?
    I'm all ears...
    Best regards,
    Patrick.
    Message was edited by: Patrick O'Neill

    Hi,
    Yeah the paths are the same from dev to prod. I'd checked that in the morning.
    I played around with it, played with onClientClick, onClick, played with this, played with that...... done a transfer and now it seems to be working.
    Strange thing though, for a whiles it was working only on my client and nowhere else..... I think that was related to setJsObjectNeeded somehow. I'd set that true when I was using onClientClick and forgotten to remove it when I went back to onClick. It's so strange though that it worked on this machine and not on the others untill I removed the setJsObjectNeeded. Once I removed that it worked everywhere. Versions of IE I guess.
    It seems to be sorted now anyhoos. Thanks for the contribution
    Best regards,
    Patrick.

  • Additional parameter in EPCM.doNavigate

    Hi all,
    I would like to know if I can pass additional parameters in EPCM.doNavigate like
    EPCM.doNavigate("pcd://...."?name=value). If it is not possible is there anyother anyway of achieving it.
    Regards,
    Janvi.

    Sure you cud, if the recieving thing cud take it...
    Eg: If you want to pass some vlaue to a screen field on R3 Transaction Iview, then in the DynamicParameter part you wud say something like this:
    var myValue = 'XYZ';
    EPCM.doNavigate('ROLES://pcd_path/iview?DynamicParameter=P_Val%3d'+myValue,1);void(0);
    where P_Val is the screen field on transaction.
    Plz don forget points, if it helped.
    Regards,
    p.

  • EPCM.doNavigate within page

    Hi all -
    our problem is that we click on a sidebar iView and do a
    EPCM.doNavigate to a 2nd iView on the same page, but
    we want the 2nd iView to scroll to the location that was clicked on the first
    the alerts are telling us the data is getting through
    but the 2nd iView just loads (1st iView is questions 1-10)
    2nd page is answers 1-10
    on 2nd page we are trying EPCM.doNavigate to scroll to
    the right location but not working

    Hi Dennis,
    I guess you have links in your iview and when clicked you want to call an iview of the same page and want them to be opened in the portal content area right.
    Probably you could think of Dynamic navigation iviews then where such iviews appear in the portal content area
    else have alook at this forum where they ve tried forwading control from one iview to another of the same page using EPCM.
    EPCF - iView forwarding with EPCM.doNavigate()
    Hope this helps,
    Regards,
    Uma.

  • Why EPCM.donavigate doesnt work for Iview with isolation type embedded

    I am using EPCM.donavigate in JavaScript  in portal jspdynpage to navigate to different page. This works fine when my iView  isolation method is URL but it doesnt work when it is embedded. Am I missing something here? some import?
    Regards,
    Nitesh

    Hi,
    In Javacript of Portal jsp page, we are calling EPCM.doNavigate method  as below:
       function callfunc(obj,externalLink,rid,portalPageURL,InvalidLink)
                   return EPCM.doNavigate('ROLES://' + obj)     
    Final URL look something like this...
    portal_content/com.sap.pct/com.sap.prod_fld/com.sap.roles/com.sap.rol_career/com.sap.wks_1_1/Folder_2/com.sap.pag_1_1_2
    This Code works only for Iviews with URL Isolation but doesnt work with Embedded Iviews as my Page which contains this Iviews is also Embedded and Desktop is also embedded.

  • Pass parameter in EPCM.doNavigate

    Hello!
    I have JSPDynpage the button, that have OnClientClick:
    addPosButton.setOnClientClick("EPCM.doNavigate('ROLES://portal_content/Webdynpro/java_local_add_lot_position_jwd_nrj_applications_AddLotPositionApplication', 1, 'width=400,height=500');");
    It's open WebDynpro page in new window.
    How can I pass parameters into opening WebDynpro page?

    Found solution.
    Write doNavigation with parameter qqq=test:
    addPosButton.setOnClientClick("EPCM.doNavigate('ROLES://portal_content/Webdynpro/java_local_add_lot_position_jwd_nrj_applications_AddLotPositionApplication? sap-qqq=test ', 1, 'width=400,height=500');");
    In Object property of WebDynpro page iView fill field "Parameters to Pass from Page Request" with value qqq (without sap-)
    Than in WebDynpro page get parameter:
    WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter( "sap-qqq" )

  • EPCM.doNavigate

    Hello!
    I would like to navigate from one iView to another. I'm using javascript EPCM.doNavigate method.
    When User click on some button with this method new iview opens instead of current iview, but tab of current iview in top navigation is active.
    What can I do, that opening iview's tab become active?

    hi ,
    hope this will give some idea,  it has the parameter to pass to navigate from one view to anview
    http://help.sap.com/saphelp_nw04/helpdata/EN/26/71c74030308431e10000000a1550b0/content.htm
    and explain u r problem more clearly
    ravindra

  • Epcm.doNavigate(): browser url changes

    Hi,<br>
    <br>
    i created a whole new navigation area. When using epcm.doNavigate, the url of the browser changes to the location of the current page.But i want it to stay the same: .../irj/portal.<br><br>
    I compared my code to the original topLevelNavigation, but i can't find any differences that could prevent this url change.<br><br>
    Any ideas?<br><br>
    kind regards,<br>
    Stephie<br><br>
    <script><br>
    function doMouseClick(clickedNode){<br>
         EPCM.doNavigate(clickedNode);<br>
    }<br>
    </script<br>
    ...<br>
    a href="#" onclick="doMouseClick('<%=node1stLevel.getHashedName()%>')"><%=node1stLevel.getTitle(locale)%>  </a

    Hi,
    do you have a real link or an HTMLB link?
    In HTMLB you just have to
    link.setOnClientClick("EPCM.doNavigate('ROLES://" + <yourTarget> + "', 0);");
    But even if it is no HTMLB you could try to set the mode as second parameter.
    0 or not specified: Depending on the setting of the WorkProtect feature the target is opened in a new window or on the current desktop.
    1: Open target in a new window, with no a portal header and navigation bar.
    2: Open target in a new window, with a portal header and navigation bar.
    Maybe that helps.
    Best regards
    Robert

  • How to  EPCM.doNavigate in WD4J?

    Hi,
    I've a WD Java Application and want to add a LinkToAction UI Element to give an Iview Link.
    I want the link to be opened on the same page not as a popup.
    On JSP Pages of Header codes like below are working.
    a href="#" onclick="return EPCM.doNavigate ('ROLES://portal_content/pathtorole/ROLES/GeneralRole/Applications/ApplLink')">LinkText /a
    Via above link, when i click LinkText on page, it navigates to the ApplLink application within a role on the same page.
    How to simulate same with WD Java?
    regards
    Message was edited by:
            HUSEYIN BILGEN

    Hi Huseyin,
    In WD4J you need to use portalNavigation:
    WDPortalNavigation.navigateAbsolute(
      "ROLES://portal_content...",
      WDPortalNavigationMode.<MODE>,
      WDPortalNavigationHistoryMode.<MODE>,
      null);
    Omri

  • Query parameters with the same name and different values

    According to HTTP, multiple query or post parameters with the
    same name and different values are permitted. They are transfered
    over the wire in the following format -
    name1=val1&name1=val2&name1=val3
    The problem is that I can't see anyway of assigning multiple
    parameters with the same name and different values to the request
    object of mx.rpc.http.HTTPService. I have tried using the
    flash.utils.Dictionary object as it does strict key comparison but
    that doesn't work too. I have tried setting an array of values to a
    property of the request object but that sends the request to the
    server in the following format -
    name1=val1,val2,val3
    The java servlet engines throw exceptions when they see this.
    Any help would be greatly appreciated.

    If you're not on 8.1.4 move there. 8.1.3 had limitations in the wsrp
    release.
    wrote:
    I have an html select box that contains several values, and multiple
    selection is enabled. When my code runs as a remote portlet, the
    following is showing up in the soap monitor when I select multiple
    values and submit the form:
    <urn:interactionParams>
    <urn:portletStateChange>cloneBeforeWrite</urn:portletStateChange>
    <urn:interactionState>_action=addEmployeesToGroup</urn:interactionState>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}OldValue">
    <urn:value>true</urn:value>
    </urn:formParameters>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}">
    <urn:value>beatest1</urn:value>
    </urn:formParameters>
    In this case, I selected beatest1 and beatest2, but only beatest1 comes
    through to the remote portlet. Is this a known bug, and, if so, is
    there a patch or workaround available?
    Thanks in advance,
    Andy

  • Passing multiple URL parameters with same name

    Hi,
    I have a question which is not entirely related to Java. But although its related HTTP calls, so I thought I might get some ideas here.
    Background:
    I am making HTTP URL call from SAP ABAP code. Its pretty much similar to Java (creating URL connection, setting HTTP headers, connecting, receiving response and everything)
    For example,
    http://service_server:8080/a7/extension.services.SearchRequirements.a7x?RequestStatus=CR&RequestStatus=RR
    Now, this service_server runs a query to database where it uses both these values of "RequestStatus" to form 'OR' condition for a field.
    Issue:
    When I run this URL from browser, it shows XML response containing results for both values. In short, this is the ideal response.
    (I am using getParameterValues(string) at service_server to read multiple values for same parameter)
    But when I see response in SAP system, I see that it is returning data for only one value of 'RequestStatus'.
    I checked the logs of service_server, and I see that it has received only one parameter, not two.
    Question:
    It seems like SAP systems web server is truncating both parameters with same name and passing just one of them to outside server(??)
    Is there any configuration at Web Server side or any HTTP headers to be set so as to avoid this?
    Can anybody suggest something on this?

    I managed to resolve this issue by using HTTP 'Post' method to send the data.
    CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
        EXPORTING
          URL                = L_URL
        IMPORTING
          CLIENT             = L_HTTP_CLIENT
        EXCEPTIONS
          ARGUMENT_NOT_FOUND = 1
          PLUGIN_NOT_ACTIVE  = 2
          INTERNAL_ERROR     = 3
          OTHERS             = 4 .
    "STEP-2 :  AUTHENTICATE HTTP CLIENT
    CALL METHOD L_HTTP_CLIENT->AUTHENTICATE
      EXPORTING
        USERNAME             = 'name'
        PASSWORD             = 'password'.
    "STEP-3 :  SET HTTP HEADERS
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
          EXPORTING NAME  = 'Accept'
                    VALUE = 'text/xml'.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
        EXPORTING NAME  = '~request_method'
                   VALUE = 'POST' .
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE
        EXPORTING CONTENT_TYPE  = 'application/x-www-form-urlencoded' .
    "SETTING REQUEST DATA FOR 'POST' METHOD
    IF L_PARAMS_STRING IS NOT INITIAL.
       CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
         EXPORTING
             TEXT   = L_PARAMS_STRING
         IMPORTING
               BUFFER = L_PARAMS_XSTRING
         EXCEPTIONS
            FAILED = 1
            OTHERS = 2.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_DATA
        EXPORTING DATA  = L_PARAMS_XSTRING  .
    ENDIF.
    "STEP-4 :  SEND HTTP REQUEST
      CALL METHOD L_HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
    "STEP-5 :  GET HTTP RESPONSE
        CALL METHOD L_HTTP_CLIENT->RECEIVE
          EXCEPTIONS
            HTTP_COMMUNICATION_FAILURE = 1
            HTTP_INVALID_STATE         = 2
            HTTP_PROCESSING_FAILED     = 3.
    "STEP-6 :  READ RESPONSE DATA
    CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_CDATA
            RECEIVING DATA = L_RESULT .
    "STEP-7 : CLOSE CONNECTION
    CALL METHOD L_HTTP_CLIENT->CLOSE
      EXCEPTIONS
        HTTP_INVALID_STATE = 1
        OTHERS             = 2   .
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to use lexical parameters with Sql Server Stored Procedure?

    Hi,
    I'm developing a BI Publisher report on a sql server database. I need to execute a stored procedure to dynamically build the query by replacing the lexical parameters with the values of varaibles of the stored procedure. With Oracle stored procedures, I have used data template and had reference the varaiable in SP by prefixing it with '&'.
    It doesn't work if I try to do the same thing with SQL server. Is there anyone who has come across the similar situation? Please let me know if anyone has got any ideas...
    Thanks in Advance
    Rag

    TopLink currently doesn't support multiple ResultSets. Multiple ResultSets support is considered for a future release.

  • Deprecated system parameters with specified values:

    Hi ,
    I am getting below in alert log:
    Deprecated system parameters with specified values:
    remote_os_authent
    IS this parameter is suppotable in 11G and also how can i remove it from SP file with out bouncing the instance.
    thanks..

    1) It is deprecated in 11g as er your alert log message. http://docs.oracle.com/cd/B28359_01/server.111/b28320/initparams199.htm
    2) Set it in your spfile to FALSE which will reset this back to the default. This can't be changed dynamically and you will have to reboot your instance.
    alter system set remote_os_authent=false scope=spfile;

  • How to define  parameters with radio button

    HI
      How to define  parameters with radio button, but that radio button should display in front of the variable name not after variable name. and under that radio button variable I hve to define parameters, select-options and some other radiobutton varibles.
            I don't know how to paste figures here, otherwise i will provied u the figure for more details.
    Regards.

    PARAMETERS : r1 RADIOBUTTON GROUP radi.
    Go to --> text elements --> selection text
    R1    <your text>
    You can change the program selection screen lay out in screen painter (se51) .
    screen number for your selection screen is 1000.
    Regards,
    Santosh reddy
    Edited by: Santosh Reddy on Dec 9, 2008 11:21 AM

  • Displaying 2 parameters with descriptions in same line of Selection-Screen

    Hi All,
    I want to know how can we display 2 parameters with descriptions in same line of Selection-Screen.
    Means in selection screen first we will give comment as
    <b>Material no</b> then <b>parameter box as MARA-MATNR</b>, In the same line description as <b>Plant</b> then <b>parameter box as T001W-WERKS</b>.
    Material No - BOX - Plant - BOX.
    Can any body tell me how can we do it.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi shaik,
    1. define two TEXT-SYMBOLS :
    001     Material
    002     Plant
    and Activate
    2. use this code (just copy paste)
    REPORT abc LINE-SIZE 80.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(10) text-001 FOR FIELD p_matnr.
    PARAMETERS : p_matnr TYPE mara-matnr.
    SELECTION-SCREEN COMMENT 35(10)  text-002 FOR FIELD p_werks.
    PARAMETERS: p_werks TYPE t001w-werks.
    SELECTION-SCREEN END OF LINE.
    regards,
    amit m.

Maybe you are looking for