Passing Parameter to a direct called iview

Hello,
i call an iview with http://<server>:<port>/irj/portal?NavigationTarget=.....
Then i also want to pass to the called iview an additional http-parameter like id=XXX by adding '&id=XXX to the link, but the result is always a javaNullPointer.
Any hints?
regards,
Marco

Hi Marco,
OK, that's more than you described initially. Sure this does not work. If you call the link from the generated email, a request is sent to the portal, including your additional parameter(s). An URL-iView now will init a second request to the URL defined in the properties of the iView - no reason why your properties should get sent with.
What you could do is to extend the URL iView functionality to get all parameters from the request of the call to the (modified) URL-iView and to pass them beneath the things described in the iView properties.
Alternatively you could write a proxy before the URL-iView and call this instead of the URL iView. Imagine you know that the URL-iView has got two parameters, than you could delete all additional parameters, add the parameters that you find within the request and redirect to this changed URL iView. The only thing you have to care of is to do this in a personalized way. Anyhow, also with this concurrent access problematic would stay if the same user calls two of these iView "at the same time".
Hope it helps
Detlev

Similar Messages

  • How to passa parameter to a T-code iView from Web Dnpro app

    Hi frndz..
    As per my requirment i need to call an T-code from the Web Dynpro application by clicking an Action Button, and here i need to pass a parameter to that T-code iView ..like
    Suppose in my WDP view i ahev a Input Field and one Action Button , so user can enter any value(parameter) in input field n clicks on button, so this button should call the T-Code iView(SE37) n also the value (Funtion Modlue) entered in input field aslo come into T-code iView.
    Regards
    Rajesh

    Hi,
    OkCode=/00 - Specifies you need to execute transaction automatically. You can remove this if you dont want transaction to be executed automatically.
    "http://server:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.Transaction?System=SAP_R3&TCode=SE37&GuiType=WinGui&ApplicationParameter=<Screen field name>="+<function module name>;
    In application parameter you need to set screen field, if needed.For example, to pass function module name ZTEST from Web Dynpro to R/3 Screen use code,
    "http://server:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.Transaction?System=SAP_R3&TCode=SE37&GuiType=WinGui&ApplicationParameter=RS38L-NAME="+ZTEST;
    Hope this helps.
    Regards,
    Apurva

  • Pass Parameter to Job which calls a SP with the Parameter provided?

    ok, I have a problem that is getting the better of me.
    I have an SP called sp_Rep_QTR which expects the following parameters @stardate,@Endate.
    Now what I want to do is the following,
    Create a Job which will EXEC the sp_Rep_QTR at a time(@active_start_time ) provided and pass the @stardate,@Endate parameters to the SP .
    The @stardate,@Endate parameters will be passed to a SP which will create the Job - These are passed from a web page.
    I'm completely in over my head on this one so any help would be great.
    Thanks..

    One way of hacking this problem is by dynamically updating the job step which executes the stored procedure to include the parameters the user provided.  You can do so by using
    msdb.dbo.sp_update_jobstep.
    So for example, you could create a job named "Test job" and in that job the first step would be to execute your stored procedure.  You would then use the following code to update that step at run time:
    execute msdb.dbo.sp_update_jobstep
    @job_name = N'Test job',
    @step_id = 1,
    @command = 'execute my_proc @my_variable = ''my_value'''
    You'd then use sp_start_job like so:
    execute msdb.dbo.sp_start_job @job_name = 'Test job'
    Your job would then execute using the value provided at run time for the @my_variable parameter.

  • Pass parameter through standard page "import xml content and actions"

    Dear Portal experts,
    As you know, a standard portal page is configured to allow the import of XML file. It is located in the portal in the path system admin -> transport -> xml content and actions -> import
    I configured a quick link u201Cimportu201D to the page so now the link http://myserver:port/irj/portal/import allows me to access directly to this screen.
    What I would like to do now is to pass the parameter related to u201Cfile nameu201D through this screen meaning that I would like that http://myserver:port/irj/portal/ import/filename=C:\test.xml  fills automatically the fields u201CXML fileu201D with  C:\test.xml 
    Please do you know how to achieve this ?
    Thank you very much and regards

    hi,
    @Maksim :
    When user launch an URL like http://myserver:port/irj/portal/ import/*filename=C:\test.xml, he is requested to provide username and password; as this link is a shortcut for the upload xml page, there is a check of authorization and only portal admin that have authorization and permission on this page/iview will be able to upload xml file through the URL. Hope this clarify.
    @Kumar :
    thank you for your answer. What a pity to not be able to pass parameter through standard portal page/iview particularly knowing that we can pass paramater through many kinds of iviews (transactional iview, url iview, VC iview...). I explored some option on file com.sap.portal.ivs.init.par but this was unsuccessful. However, thanks to this [link bellow|http://wiki.sdn.sap.com/wiki/display/Snippets/ComponenttouploadXMLfilewithPCD+objects], I was able to upload through URL the XML file.
    The problem is that I can upload only XML file that are stored in the server not in the local user computer. My requirement is to be able to upload local XML file stored on user's computer.
    If someone could provide and idea/solution, I would be very grateful.
    Cheers

  • Pass parameter from iView to AbstractPortalComponent

    Dear All,
    I have an iView (PAR iView) which invokes an AbstractPortalComponent. Is there any way by which I can
    pass parameters to the AbstractPortalComponent?
    Kind regards,
    Sreejesh.

    Hi,
    When ever you are invoking the Abstract Portal Component ,you would be passing the url.
    The url can be appended with parameters as follows.
    url?p1=v1&p2=v2,,where p1 and p2 are the parameters.
    If you are directly calling the component from the Iview ,let us say in a new window, then you would write
    this in a javascript function
    <b>window.open('par.componentname')</b>
    or you can use EPCM.doNavigate('target')
    where target is the pcd path for the iview.I am not sure if the parameters can be appended in the same manner to the target,as shown above for url.
    In the code of your abstract portal component,
    you can write
    IPortalComponentRequest request = (Iportal ComponentRequest) this.getRequest();
    String parameter = request.getParameter("p1");
    Regards,
    Harish
    (Please award points for helpful answers)

  • Direct call to BSP and Transaction iViews

    Gentlemen,
    I hope you are all very busy and happy with the projects you are currently working on.
    My question is simple, although, I cannot find answer for it anywhere... I've been searching for but only found "side shots".
    I am building an HTML page to ease the Portal Content testing on the approaching Test phase. Basically, the page will contain a list of all the options that will be delivered through the Portal (built Portal content) that are no more than Transaction iViews and BSP iViews.
    My questions are:
       How can I make a direct call to the Portal Content iViews to have then displayed in a new window (only the iView and not the whole portal interface environment)? How is the URL built?
       Can I pass on the URL parameters for the user authentication so the authentication screen? Which parameters?
    Much Appreciated,
    Joao Isidoro.

    the following is the URL i use to directly get into transaction iview.
    http://<server>.xxxx.com/irj/servlet/prt/portal/prtroot/<pcd location of iview (ID)>?System=<system alias>
    for example your iview is in
    portal content->my folder->iviews->mysaptraniview
    (in pcd click on the folder to get the id and use it in the url)
    http://<server>.xxxx.com/irj/servlet/prt/portal/prtroot/<contentforlderid>!2f<my folder id>!2f<iviews folder id>!2f<mysaptraniview id>?System=<system alias>
    Hope this helps.
    Regards
    Raja

  • How to pass parameter into transaction iview ?

    Hi experts,
    I want to know "how to pass parameter into transaction iview ".
    Regards,
    Krishna Balaji T

    Hi Krishna,
    Not sure if this can help you.
    1) Passing a parameter to a transaction iview (I saw a resolved suggestion)
    Passing a parameter to a transaction iview
    2) Passing a parameter from the portal to R3 (helpful info for you)
    Passing a parameter from the portal to R3
    3) Create SAP Transaction iView using SAPGUI for Windows (Great Blog and info about TA Iview)
    Create SAP Transaction iView using SAPGUI for Windows
    Please check the following link for Transaction Iviews
    http://help.sap.com/saphelp_nw2004s/helpdata/en/02/f9e1ac7da0ee4587d79e8de7584966/frameset.htm
    Just some info: Portal is basically what the end user can see. What he can do, is still maintain in the backend system. If there are parameters setup already for the user in the backend system (in SU01), then those parameters should still valid for the transaction that the parameters are linked to.
    Hope that helps and award points for helpful suggestions.
    Ray

  • Use Dynamic Parameter to call iView

    Hi,
    I have a VC Model with an HTML view. I want to add the URL of another deployed iView from a different model to my HTML view.
    The problem is that I need to pass parameters dynamically via the URL to the called iView. The iView I want to call consists of a data service with an output table and and a start point connected to the variables port. The variable is:
    @Business_Area_Range
    The URL of the deployed iView as obtained via preview from within the portal is:
    http://145.82.189.233:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.gm.cnt!2fvcmodels!2fcom.myComp.myProduct.17NL.Test5!2fcom.myComp.myProduct.iviews!2fcom.myComp.myProduct.17NM.Iview1?sap-config-mode=true
    I need to pass Business Area through the URL to this iView. Is this even possible? Please clarify with an example if possible. Help is appreciated, thanks.
    Regards

    Anyone? Have I posted this to the wrong forum maybe?

  • Passing Parameter to StartUri property of KM Navigation iview

    Dear Experts
    I want to send the parameter to the StartUri property of the KM Navigation iview dynamically. I am having a page with a KM Document iview and a KM Navigation iview. Dynamically I need to pass the parameter to the KM Navigation iview is this possible
    Regards
    Noel Maria Deepak

    Hi,
    I don't know if it is usefull for you...
    http://scn.sap.com/message/699658#699658
    As you can see, that link let to set the Layout Set of KM Navigation iView via rndLayoutSet parameter.
    To set paths use path and StartUri for "Path to Initially Displayed Folder" and "Path to Root Folder for Navigation" attributes, respectively.
    Hope this help
    Cheers

  • Passing Parameter to SAP Transaction via AppIntegrator

    Hi,
    I created an AppIntegrator iView that calls a R/3 Transaction. The iView is running correctly.
    Now I want to pass a dynamic parameter to the Transaction so that it skips the first screen of the transaction.
    For this purpose there is the iView Parameter "AutoStart" that has to be set to true in SAP Transaction iView. Furthermore I have to set parameter "ApplicationParameter" in the follwing manner "<Screen_field1>=<Parameter1>" according to help.sap.com.
    Lets assume that the transaction I want to call is <b>SU01</b> and the screen field is <b>USR02-BNAME</b>.
    So the iView parameter "ApplicationParameter" has the value "USR02-BNAME=MyName".
    This works fine but is not dynamic.
    I then called my iView using the follwing URL:
    http://.../irj/../portal_content/.../R3_iView?param=MyName
    and changed the value of "ApplicationParameter" to ""USR02-BNAME=<Request.param>".
    This does not work. The input field of the R/3 Transaction contains "<Request.param>" instead of "MyName".
    My Question:
    Does the Template Processor of AppIntegrator not work for the Parameter "ApplicationParameter"?
    Help is most welcome
    Helmut

    Me actually,
    Hi Helmut!
    Im using a very similar technique heavily in a customer project for jumping into several transactions from an iView.  Instead of expicitely creating an iView i directly call the respective master iView
    "com.sap.portal.appintegrator.sap.Transaction"
    Then I append the required parameters as GET parameters:
    ?System=<system alias>&Technique=[SSF|SSD]&TCode=<exec first screen?>SU01 param=value;param=vaue;param=value&GuiType=[WinGUI|WebGUI|JavaGUI]
    GuiType should be clear, technique defines the startup behaviour of Wingui (being either as an activeX control (SSD) or using SAP shortcuts (SSF) ). If you want to submit the first selection screen, simply add a "*" to the Tcode. Also note that there is a space between the tcode and the param list.
    This should resolve the issue. Good luck with it,
    (and see you somewhen again in "real life"
    Dominik

  • Passing parameter from selection screen to corresponding report program.

    Hi all,
    I am developing a report in which there is a selection screen containing 2 list boxes having month 'from' and 'to' ;ie the month range for which  the report is to be run and a parameter for year.below it i have 2 radio button options which will lead to the report that the user clicks on.
    I have done the following in the code.
    selection-screen begin of block b1 with frame title text-001.
    parameters: month1(10) as listbox visible length 10 obligatory.
    parameters: month2(10) as listbox visible length 10.
    parameters: year(4) obligatory.
    selection-screen : end of block b1.
    selection-screen: begin of block b2 with frame title text-002.
    parameters: rb1  radiobutton group g1,
                        rb2  radiobutton group g1.
    selection-screen : end of block b2.
    if rb1 = 'X'.
    submit ZMIS1.
    ENDIF.
    if rb2 = 'X'.
    submit ZMIS2.
    endif.
    Now i want the values selected in the listbox and the year to be passed in the report that will be selected in the radiobutton (ie  ZMIS1 or ZMIS2) so that the corresponding report output will be displayed directly with the inputs given in the selection screen .
    Please tell me how to do this.Thanks in advance.

    You also have to pass Selection-screen data for called program the way it has been shown down.
    REPORT  ZVENKAT_ALV_LIST.
    DATA:
          IT_RSPARAMS TYPE STANDARD  TABLE OF RSPARAMS,
          WA_RSPARAMS LIKE LINE OF IT_RSPARAMS.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: MONTH1(10) AS LISTBOX VISIBLE LENGTH 10 OBLIGATORY.
    PARAMETERS: MONTH2(10) AS LISTBOX VISIBLE LENGTH 10.
    PARAMETERS: YEAR(4) OBLIGATORY.
    SELECTION-SCREEN : END OF BLOCK B1.
    SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS: RB1 RADIOBUTTON GROUP G1 USER-COMMAND UC1,
                RB2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN : END OF BLOCK B2.
    IF RB1 = 'X'.
      WA_RSPARAMS-SELNAME = 'P_MATNR'. "PARAMETER or SELECT-OPTION of the called program
      WA_RSPARAMS-KIND    = 'P'.       "S=Select-options P=Parameters
      WA_RSPARAMS-SIGN    = 'I'.
      WA_RSPARAMS-OPTION  = 'EQ'.
      WA_RSPARAMS-LOW     = '11010'.
      WA_RSPARAMS-HIGH    = SPACE.
      SUBMIT ZMIS1 WITH SELECTION-TABLE RSPARAMS AND RETURN.
    ENDIF.
    IF RB2 = 'X'.
      WA_RSPARAMS-SELNAME = 'P_MATNR'. "PARAMETER or SELECT-OPTION of the called program
      WA_RSPARAMS-KIND    = 'P'.       "S=Select-options P=Parameters
      WA_RSPARAMS-SIGN    = 'I'.
      WA_RSPARAMS-OPTION  = 'EQ'.
      WA_RSPARAMS-LOW     = '11010'.
      WA_RSPARAMS-HIGH    = SPACE.
      SUBMIT ZMIS2 WITH SELECTION-TABLE RSPARAMS AND RETURN.
    ENDIF.
    Thanks
    Venkat.O

  • Passing parameter to EA60 transaction from FM

    Hi,
    I have a requirement that i need to call EA60 transaction using CALL TRANSACTION and pass all the required invoice details, print parameters and Re-print invoice automatically using the FM which i have created after execution. Could anyone help me in passing the parameters and executing the transaction?

    Me actually,
    Hi Helmut!
    Im using a very similar technique heavily in a customer project for jumping into several transactions from an iView.  Instead of expicitely creating an iView i directly call the respective master iView
    "com.sap.portal.appintegrator.sap.Transaction"
    Then I append the required parameters as GET parameters:
    ?System=<system alias>&Technique=[SSF|SSD]&TCode=<exec first screen?>SU01 param=value;param=vaue;param=value&GuiType=[WinGUI|WebGUI|JavaGUI]
    GuiType should be clear, technique defines the startup behaviour of Wingui (being either as an activeX control (SSD) or using SAP shortcuts (SSF) ). If you want to submit the first selection screen, simply add a "*" to the Tcode. Also note that there is a space between the tcode and the param list.
    This should resolve the issue. Good luck with it,
    (and see you somewhen again in "real life"
    Dominik

  • Passing parameters to a BW Report iView dynamically

    Hi All,
    I want to pass parameters to a BW Report iView at runtime. The requirement is as such:
    I have got some screen selection in a webDynpro iView and I need to pass all those selected values to a BW Report iView based on the user selection. eg. start date and end date selection.
    This is on priority please help me as soon as possible.
    Thanks in advance,
    Murtuza

    Hi Rajat,
    I will try to describe my requirement once again. The iview A is the webDynpro iview and iview B is the BW Report iview. Now I want to make some selections in dropdown ,calendars and input fields in ivew A and then make a call to the iview B with all those parameters so that iview B can fire a query based upon the parameters.
    ie. if I selected say startdate as today's date then this should be passed as a parameter to the BW Report iview and i need to set the application parameter for the BW Report ivew. Hope the reuirement is clear now. Please help me.
    Thanks,
    Murtuza

  • How to pass parameter through URL to bounded task flow with page fragment

    I want to pass parameter to Bounded Task Flow With Page Fragment trough URL
    as I start this taks flow with router and according to this Param I will rout the user.
    I added input param to taks flow named direction and make the task flow called URL invoke url-invoke-allowed
      <input-parameter-definition id="__41">
          <name id="__42">direction</name>
          <value>#{pageFlowScope.direction}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>but I don't know how to add this to the JSPX that I will add the bounded task flow Inside.
    and How to pass this from URL

    Hi,
    url-invoke-allowed is only required if the task flow itself is directly accessible from a browser (which is not the case at all if the task flow uses page fragments). To pass input parameters to a task flow that is embedded in a region and that has input parameters, you define the input parameters on the taskFlow Id that is created in the PageDef file of the containing page. To learn ADF task flows, have a look at the videos below. They also contain a sample for passing parameters to a region
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p1/taskflow-overview-p1.html
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p2/taskflow-overview-p2.html
    Frank

  • Main/Sub Report Passing Parameter

    This is a twist on the general passing parameter question:
    1. The main report is a detail report based on a stored procedure.
    2. The sub report is also based on a stored procedure. This SP calculates the values that will be introduced into a 'table' drawn on the report canvas. The SP consists of a CTE which is a 'reduced' version of the Detail SP used in the main report - to ensure that all the same records are being retrieved between the main and sub reports. Another select, following the CTE, sums the values and makes them available to the Sub Report.
    The client has requested the availability to view records where an Activity Date falls within the last full week, the last month, this month, and YTD. The report is available both through Infoview as well as a scheduled version. The client wants to make a selection as to time period through Infoview.
    Most other users will be using a printed copy of the 'general' report.
    I thought to use the SAVED DATA in SELECTION REPORTS and use Crystal functions to handle this. The SAVED DATA and an optional parameter allowed the user (in Infoview) to change the parameters. This works fine in the main report.
    HOWEVER, the sub report needs to update the totals for the groups of properties that are aggregated in the sub report's summary Stored Procedure. Since the time range will, on changing in the Main Report, reflect different counts,  I need to be able to tell the sub report what the main report is doing.
    The Main report has an Optional Parm ({?Account Open}) which allows the selection of a data range
    The SAVED DATA selection uses the values from the parm:
    if not hasvalue({?Account Open}) then 1=1
        else if hasvalue({?Account Open}) and {?Account Open}=0 then 1=1
        else if hasvalue({?Account Open}) and {?Account Open}=1 then {Account_open_date_newest}in LastFullWeek
        else if hasvalue({?Account Open}) and {?Account Open}=2 then {Account_open_date_newest}in LastFullMonth
        else if hasvalue({?Account Open}) and {?Account Open}=3 then {Account_open_date_newest}in Yeartodate
        else if hasvalue({?Account Open}) and {?Account Open}=4 then {Account_open_date_newest}in CDateTime (CurrentDate-(DayOfWeek(CurrentDate)+1),CTime(00,00,00)) to CDateTime (CurrentDate+(7-(DayOfWeek(CurrentDate))),CTime(23,59,59))
        else 1=0;
    My problem in passing the optional param selection made by the user down to the sub report in order to update the counts.
    Any help would be gratefully appreciated! I have included a snap of the Table from tyhe subreport and a snap of the optional parm from the Main Report

    Jamie -
    Thank you for your reply. I've spent the morning working on the two directions you had provided me with.
    Cross tabs: I took one report, created a cross tab for it, and, as expected, it worked as desired. The issue I'm having is where to place it on the report canvas. If I'm correct, the only place where it can be placed is in a header or footer - the sub report is currently residing in Page Header D (there's a lot of suppression and reveals in these reports). The cross tab does not want to be placed there. It's currently living in the Report Header... further, the cross tab occupies page 1; the remainder of the report starts on page two. Not what needs to happen. The current business specification for the report is: Page 1 includes a page header which includes (through iterations a-e) logo, print date info, the sub report showing the summary a series of group headers which in effect creates an index into the various business units. By clicking on a business unit, any groups under it are exposed. By clicking on the sub group, customer data is exposed. As you go to the 'next page', the Summary sub-report is eliminated and the groups under the Business Unit are shown. All of these dynamics are based on section suppression and unhiding based on the user's interaction, which why the placement of the Summary data is important. If you have any hints on managing the cross tab and its placement, I would be eager to hear them.... (btw - the number of rows in the cross-tab can range from 0 to 12. That dynamism is not a problem with the sub report - would it be for the cross tab?)
    Parameter Passing: I took one of the reports and (1) ensured that the sub report had the exact  same parameter (called Account Open) as the Main Report. (2) ensured that the Saved Data filters in both reports were the same. (In order to do that I had to update the stored proc for the sub report to include an account date field). (3) I then went to link the two reports selecting the Account Open parameter in both the containing and the Fields to Link To list boxes (see the graphic LINK.JOG. This produced no useful result - the Summary showed ALL records- the container report properly showed the count for last full month (see SUMMARY.JPG) (4) I then tried to link a field from the sub report to the Parameter, but only 4 of the six fields from the stored proc's select were displayed. (Prior to this Select there is a CTE which collects the data with a ROW OVER.. PARTITION function):
    SELECT
    customer_business_unit_name,
    account_open_date_newest,
    sum (CASE WHEN currentrisk =1 THEN 1 Else 0 End) lowcount ,
    sum (CASE WHEN currentrisk =2  THEN 1 Else 0 End) midcount ,
    sum (CASE WHEN currentrisk =3 THEN 1 Else 0 End) highcount,
    sum (CASE WHEN currentrisk =0 THEN 1 Else 0 End) unknown
    FROM    records
    WHERE   rn = 1
    group by customer_business_unit_name,account_open_date_newest
    Only the COUNT fields show up in the Fields box (see the graphic LINKS CHECKED.JPG).
    Where have I gone wrong??
    Again, thank you for your earlier reply.

Maybe you are looking for

  • Kernel Panic Issue - mid 2010 MacBook Pro

    I need some help with this kernel panic situation I'm experiencing. The number of panics have progressively gotten worse in the past couple months, and had increased to a panic about every half hour. Today I went to see the Apple Geniuses and they di

  • Lost Developer Toolbar after upgrade from 4.1 to 4.2

    After upgrading from 4.1 to 4.2.1.00.08, we have lost the Developer Toolbar. Have others run into this with the upgrade or fresh installation of 4.2.1? If so, what suggestions are there for fixing, short of reinstallation mentioned in this other thre

  • How can I diagnose or resolve missing AD groups for target audience rules

    Hello everyone, I'm having some problems with the target audiences I have set up in my SharePoint 2010 farm. I have set up a single rule for each target audience in Central Administration, pointing to a group in Active Directory. Up until a couple of

  • Illustrator CC crashes on startup (Mac OS 10.8.5)

    Hello everyone! I have this problem: I have fresh installation of Illustrator CC and it doesn't work. When I run it everything looks fine, I get splash screen, then program windows shows, and I get "whats new " window. When i want to  close it, whole

  • Issue with certain email being received with wrong name

    Hi- From time to time I've seen this happen where an email will come in and the 'from' name is different from the email address. Usually I find the problem with this is in the address book as the record with that email had a wrong name, but that's no