Authorisation popup on SAPBWSetOpenerUrl

Hello Experts,
I have a web application that has several tabs, which are each linked to different web templates.  When I execute the web application, the first tab is executed.  I select a node from a hierarchy into a variable.  When I am in the web application, I then want to go to the next tab, but I want the hierarchy node variable to be passed.  From reading all the helpful notes here, I have managed to pass this variable value using a hidden text element web item, which is named id="ZHIERNOD_value".  I then use the following javascript functions in the A href of the next tab {A href="javascript:SAPBWSetOpenerUrl(goto_subtab())"}  The javascript function goto_subtab is one that I defined to determine the URL inclusive of the variable value already defined.
The javascript is as follows:
function goto_subtab() {
   hier_node=document.getElementById('ZHIERNOD_value').innerHTML
   tab_select="var_value_ext_1="+hier_node
  full_url = "http://sapbwp01.client.com.au:8000/sap/bw/BEx?sap-language=&cmd=ldoc&TEMPLATE_ID=ZFI_BU_W110&var_name_1=ZHIERNOD&"tab_select"&var_node_iobjnm_1=0HIER_NODE"
   return full_url
This may not be the easiest or the most efficient way, but it technically works. 
My problem is that when it calls the new tab it asks me to log on again.  I cannot see what is causing this, there does not appear to be any information on any auth trace that I can find. 
Before I had entered all this complex code etc I previously just had a simple href statement going to the new web template.  This did not require another log on.
Thanks heaps for your help.

Try this function:
function goto_subtab() {
hier_node=document.getElementById('ZHIERNOD_value').innerHTML
tab_select="var_value_ext_1="+hier_node
full_url = SAP_BW_URL_Get() + "&CMD=LDOC&TEMPLATE_ID=TEMPLATE_ID=ZFI_BU_W110&var_name_1=ZHIERNODE" + tab_select + "&var_node_iobjnm_1=0HIER_NODE"
return full_url

Similar Messages

  • Flash and .htpasswd

    I am building a flash content editor, which loads data from
    php scripts from a server. It loads sucessfully when the swf is on
    the same server, and when I test the project locally from inside
    Flash. But now I've thought that it would be a good idea to protect
    the folder on the server that contains the php scripts with
    .htaccess and .htpasswd .
    All well, but now I can't load the data from inside flash
    anymore. Is there a way for the flash to identify itself, because
    there is no authorisation popup, like when you access the directory
    in a browser?

    I want both the flash and the php files (once it's all up and
    running) completely off-limit to anybody not authorised, but I want
    it to be also accessible to both me and the client, so I can't have
    the php files anywhere local (in a non internet accessed folder, as
    far as I understand)
    That would also require (as far as I understand), that I (and
    the client) have a php server running on my(and their) machine, and
    that any maintenance would require updating php files on both
    machines... and all of that is simply out of the question..
    So ok, as far as I get it, it can't be done, I'll just have
    to leave the folder open during development (as it has been since I
    noticed this problem) and protect it once it's finished. So far
    it's not a big problem, I think, since the published site is still
    getting its data off static files..
    thanks for the ideas anyway...

  • Authorise stuck in a loop

    For some reason iTunes has decided my pc is now not authorised for my i-phone. Symptoms are:
    Plug in iPhone and prompt comes up "This computer is no longer authorised for apps installed on iPhone"... I then enter my AppleID and popup informs me the computer is already authorised. Which is immediately followed by the first prompt "This computer is no longer authorised....."
    I cannot proceed further - stuck in loop at this point.
    Other strange items related:
    - From the Store menu I seem to have no problem authorising the PC. But I still cant sync.
    - I tried de-authorising and then re-authorising. This had no effect.
    - The popup for my AppleID entry initially populates with my partner's email address as default. I override this with my own when entering. Not sure why it's doing this or if it is related.

    About iTunes Store authorization and deauthorization
    If that doesn't help ask Apple.
    http://www.apple.com/support/itunes/
    Click: iTunes Store Account & Billing / Billing Inquiries / Email Us

  • Authorisation Variable

    hi,
    I have a Authorisation Variable which filters value accordingly in the Report.
    I have created a authorisation variable with multiple single values.
    For eg. we have 4 zones:-> A, B, C and D
    There is a Global User which has a authorisation for A and B both. If i directly give this authorisation variable in filter it fetches both the zones data.
    But let say he want to see only Zone A Data and NOT Zone B data.
    What can be done to address this type of situation?

    Hi Sachin,
    both ways seem to be ok. Anups proposal, I guess, is to use the normal filter option in a query: First execute and then, in the executed query, just click on the characteristic and select the required filter value.
    But I think The-Binhs option is better (-->faster!): Reduce the pre-selection from authorizations  **before** query execution in the variable popup. You get the desired selection in the first execution step.
    Regards,
       Clemens

  • Javascript/html question about popup window title

    I am displaying an uploaded pdf file using wpg_docload.download_file in a popup window (using javascript open).
    How can I change the title of this popup window.

    Thanks to Jes (John Scott at shellprompt.net) for a solution for my version of this problem; set the Content-Disposition in the HTTP header to indicate your required filename. Example:
    I have an 'On-Load - Before Header' process on the ApEx page I want to use 'host' my PDF document generator. The page is called from a popup JavaScript call, allowing us to rely on ApEx authorisation and authentication. The Source of this process looks like the following:
    declare
    myblob blob;
    begin
    -- Call procedure to gereate PDF document in a blob and pass it back
    myprocedure_to_generate_blob( in_parameter, in_parameter, myblob);
    owa_util.mime_header('application/pdf',false);
    htp.p('Content-Length: ;||dbms_lob.getlength(myblob));
    -- This line sets the filename (which could be dynamic)
    htp.p('Content-Disposition: attachment;filename=mypdffile.pdf');
    owa_util.http_header_close;
    wpg_docload.download_file(myblob);
    -- Stop Apex from trying to render more of the page (we've finished)
    htmldb_application.g_unrecoverable_error := true;
    end;

  • What is authorisation object  in table maintanance generator

    Hi,
    what is authorisation object and authorisation group in table maintanance generator
    can u pls let me know what are these??  and y do we need these?
    Thanks in advance
    Rama

    hi,
    Access to the transactions SM30 and SE16 is often regarded as a security risk on productive system. But with the right use of the authorization object S_TABU_DIS and the rarely used S_TABU_LIN, this isn’t so.
    With S_TABU_DIS you have the option to control access to groups of tables, and you have the option to distinguish between Update and Display access. If you don’t want to give access to an entire table group, it’s quite easy in transaction SE54 to create a new authorization group and to reassign one or more tables/view to this group, thus achieving control of access to these specific tables.
    If you’re anxious about giving access to an entire table group, due to the fact that some tables have an open interface which allows table maintenance even in transaction SE16, the check this report – developed and posted to the SAP Fans security forum by John A. Jarboe.
    With the authorization object S_TABU_LIN you can even go a step further and control access to a table on record level, based on the key fields of the table. You can find an overall presentation of the object here.
    The How-To guide below will demonstrate how to set up and use this authorization object.
    The example is based on a small table ZMYTABLE. I have created a maintenance view and parameter transaction based on SM30 around this table.
    Please notice that the parameter transaction is calling SM3o in update mode.
    If the object is to be used with SE16 you’ll need to implement OSS note 763269.
    S_TABU_LIN Customizing
    We can find the customizing entries in the IMG under SAP NetWeaver à Application Server àSystem Administration àUsers and Administration à Line-oriented Authorizations.
    First we need to define the organizational criteria’s. 
    In here create new criteria by pushing the “New entries” button.
    In this example we will like to control access based on the key field Country, in order to do so create a criteria called Z_Country_Grp, with the name Country Grp. If we flag the table-ind flag the criteria will affect maintenance of all tables whose key fields are related to the domains specified in the attribute later.
    In this example we only want to control the access to the specific table ZMYTABLE – so we will leave it blank
    Save the entry and assign it to a transport request.
    Now mark the created line and switch to attributes
    Create a new entry with the data shown below.
    Save it and assign it to the transport request.
    Notice that you can have up to 8 organizational criterion attributes.
    Now we need to assign a table and a field to our attribute
    In order to do so mark the attribute and switch to Table Fields
    In here create a new entry and assign, in this example, the table ZMYTABLE, and the field name country to the attribute.
    Please notice that only Key fields can be used !
    Save and assign to transport request
    Now we are ready for activating our organizational criteria – this is the second bullet in the IMG
    Just check the active flag and the check is activated.
    Incorporate the authorization object in a role
    We have now implemented the authorization check; next step is to implement it in the required roles.
    In this example I have created a parameter transaction – ZMYTRANSACTION - using SM30 around the table ZMYTABLE. I have create a small test role ICC_TEST, including only the transaction ZMYTRANSACTION, and a few “support” transactions.
    In the authorization part – I have inserted the object S_TABU_LIN manually – (best practice is of course to assign it in SU24), but a manual insert will also do the trick J
    Now when we change one the authorization fields by pushing the pencil – the profile generator will ask us for the criteria.
    Here we chose the Z_COUNTRY_GRP criteria that we have created.
    We’ll now get the following popup, in this case we will grant change access, so we choose 02 – Change for activity
    In the list below we’ll see the Organizational Attributes that we have created – we have the option to use up to 8 attributes – in the example we had only defined one attribute – “Country Grp”  - we assign the value DK – thus only granting access to records with DK in the key field country.
    To transfer the selection back to the profile generator press th transfer button  or press F5.
    Now we just need to generate the profile and assign it to a test user.
    Now when this test user signs on to and executes the transaction only entries for Cty DK is displayed.
    If the transaction is executed by a user with SAP_ALL all records are displayed,
    Important Links For u:[http://www.sapsecurity.co.uk/sap-authorisation-objects.html]
    Thanks And if helpful please reward points

  • Unable to authorise purchased songs

    I purchased some songs a couple of years ago, and can not authorize them on my new laptop. The problem is when the popup for the authorization of the songs appears, the e-mail address that is already present in the box is missing some numbers. For example, my e-mail address may be "[email protected]", however, in the popup, the address is "[email protected]". Is there any way that I can fix this problem, because I have already tried typing in the right address, then authorizing the song. I then get told that the song has already been authorized however when I try to play the song the box appears again. As well as this, the songs do not appear on my iPod.

    I then get the message that authorisation was successful quickly followed by a message that an unkown error has occurred.
    are you getting a -208 error message number with that, Demonic?
    what version of itunes are you currently running? to check, in itunes go "help > about itunes" and wait for the version number to scroll up from the bottom of the screen. for example, mine says "itunes 7.0.1.8".

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • Vendor Open items Authorisation

    Hi Peers!
    Is there any report were i can authorise the payments to which vendor and which invoice i can pay today like that.
    Ex: Say my higher authority wants to select the open items vendor wise to pay the due. so that i will check that invoices and pay through outgoing payment.
    Pls reply soon, Its urgent
    Thanks
    Murali

    Hi
    There are so many age wise analysis reports are there for analysing the customers or vendors open items. out of those, F.41 for vendor open items there you can find all the relevant data including business area level also satisfied because in some cases higher management wants the particular business area wise required for analysis. similarly f.21 for customers.
    I hope it will be suffice your requirement.
    Regads
    madhav

  • Open and Close Popup With Javascript

    Using Apex 3.2
    I have probably done this loads of times in my old job, but do not have access to the code and today I just can't get it to work properly.
    I have opened a pop up window with javascript
    Now I need to close it and refresh the calling page, but only if it passes the validation on the popup.
    I have a hidden item on my pop up called P7_FLAG.
    I have a page process after validation that sets P7_FLAG to (only set to 1, if passes validation).
    I also have a SUBMIT button.
    So once I click my SUBMIT button the page should look at the validations, if ok, set P7_FLAG to 1, then close the popup and refresh the calling page.
    My current javascript look like this
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>On my button
    javascript:saveChanges();The problem is that I need to click the SUBMIT button twice.
    First time it sets P7_FLAG
    Second time it closes page and refreshes.
    I have probably made some basic error, but today I cannot see it.
    Cheers
    Gus
    Edited by: Gus C on May 10, 2012 12:48 AM

    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>javascript does not wait for the current action to complete and then perform the next line.
    means in your function call
    doSubmit('SUBMIT');is triggered and it carry on's to next line that is
    $x('P7_FLAG').value;this will not be set because you are setting the value of P7_FLAG to 1 in plsql and trying to check in javascript, which will not work.
    what you need to do is amend your js function like below
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    </script>create a page branch to procedure and make it conditional to when P7_FLAG = 1
    and set the branch source to below
    htp.p('window.close();');
    htp.p('window.opener.doSubmit(''REFRESH'');');

  • Every time I try to open Firefox I get a popup saying it is already open, and to close it or restart; but it is NOT open, and restarting doesn't help.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/880054]]</blockquote>
    Question
    Every time I try to open Firefox I get a popup saying it is already open, and to close it or restart; but it is NOT open, and restarting doesn't he

    Duplicate Thread LOCK please
    * Continue here - https://support.mozilla.com/en-US/questions/880054

  • Starting Firefox I get the "Send Error Report" popup window. It states "firefox.exe has encountered a problem and needs to close."

    This just started today. Everything seems fine. I just push the popup off to the side and continue to use the browser. If I were to click on the, "Send Error Report" or the "Don't Send" buttons then Firefox just closes!
    Strangest thing yet, trying to figure it out!
    Oh, I tried the reboot without add-ons! Even did the reinstall, still the same???

    Just got back online, still working on things, BUT ???
    I went back and dumped Norton's which I get for free from Comcast. I downloaded the AVG scanner. Went through all the bells & whistles and things seem ok ???? But I haven't done the reboot yet, so will do that soon. But I wanted to drop a line here and let you all know what is happening.
    And Thanks Fred, the funny thing was it did seem to have something to do with their update??? I do like Norton's but my son uses this AVG and he said it was better, lol!!! But again, everyone has their favorite!
    Mine is Norton's so once I confirm that everything is good, I'm going to try redoing Norton's and I'll try your suggestions, if they don't fix it!!
    Thanks again, and will let you know if this is the fixed!!!

  • Is there a way of finding out what has been accessed on my MacBook Pro whilst in the possession of an apple authorised service centre?

    Hi Guys,
    I'm a bit new to this discussion group thing although I've been using Macintosh computers for many years (showing my age).
    I handed my MacBook Pro to be repaired at an authorised apple service centre. When I handed it in they said they needed to keep hold of it to run some diagnostics and requested my password. I've owned various models of mac for the the past 17 years and this is the first hardware problem I have encountered, hence I have never bothered to set up user accounts. 
    As I live in quite a remote part of Sweden I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks) or share some of my personal information (scanned copies of my birth certificate, passport, certificates, photos, etc.) on the web. Is there a way of finding out what activity has taken place whilst they've had it in their possession?
    I appreciate any advice you guys can offer.
    Thanks!
    PS: I've already thought about the 'recently opened' menu and The machine in question is a MacBook Pro 17" (2011) running OS X 10.6.8 (need Rosetta).

    I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks) or share some of my personal information (scanned copies of my birth certificate, passport, certificates, photos, etc.) on the web.
    If you put your info into the computer and hand it to another, you have to assume they will copy everything.
    Why are you putting scanned copies of valuable identity information into a computer than can be hacked, stolen, lost or compromised by a dirty tech?
    Have you lost your mind?
    Is there a way of finding out what activity has taken place whilst they've had it in their possession?
    No. The tech would just deny it if he did, or tell the truth which the answer would be "NO" in either case.
    The employer won't ask that sort of questions without solid proof, less they make a enemy of the employee and/or risk being sued for defamation of character.
    It's not like they bother to have a team of people watching over his shoulder that he doesn't stick a USB thumb drive of your data into his pocket to take home.
    I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks)
    If it's iTunes music, it has your personal ID embedded into the song files. Most IT techs know this though.
    I appreciate any advice you guys can offer.
    Too late now, all you can do is not worry about it.
    Take your personal info out of the machine and if you need it, burn cd/dvd copies, a few USB thumb drives, Iron Keys or self encrypting external storage drives with key and/or keypad.

  • Popup - how to get the focus in a specific compent

    Hi,
    I am trying to get the focus of my pop-up in the second component.
    Use case: New button in the table shows a popup to get the input from the user. There is a Undo Edit link (top-left) to discard changes, on top of the pop-up so by default the focus goes to the top left. I have input text boxes under that. And I am trying to get the focus (mouse cursor) in the first input text box rather than the undo Edit link. Any idea to implement that without using javascript ?
              <af:popup id="newPopup" contentDelivery="lazyUncached"
                        popupCanceledListener="#{commonUtils.CreatePopupCanceledListener}">
                <af:dialog id="createPopupDL" type="none"
                           title="#{viewcontrollerBundle.NEW_COURSE_PLAN_STRUCTURE_QUALIFIER_HEADER}"
                           resize="on">
                  <af:separator id="s1"/>
                  <af:panelGroupLayout id="pgl2" layout="vertical" halign="left">
                    <af:panelGroupLayout id="pgl3" layout="horizontal">
                        <!-- csc:undoEdit is a custom component to undo change
                        By default the focus is coming to this component -->
                      <csc:undoEdit id="ue1"/>
                    </af:panelGroupLayout>
                    <af:messages id="m1"/>
                    <af:spacer width="10" height="10" id="s2"/>
                    <af:panelFormLayout id="pfl1" labelAlignment="start"
                                        labelWidth="140">
                      <af:spacer width="10" height="10" id="s3"/>
                          <!-- I want to get my mouse cursor in this box -->
                          <af:inputText id="it2"
                                    label="#{bindings.QualifierCd.hints.label}"
                                    value="#{bindings.QualifierCd.inputValue}"
                                    showRequired="true"
                                    required="#{bindings.QualifierCd.hints.mandatory}"
                                    columns="#{bindings.QualifierCd.hints.displayWidth}"
                                    maximumLength="#{bindings.QualifierCd.hints.precision}"
                                    shortDesc="#{bindings.QualifierCd.hints.tooltip}"
                                    autoSubmit="true">
                        <f:validator binding="#{bindings.QualifierCd.validator}"/>
                      </af:inputText>
                    </af:panelFormLayout>
                  </af:panelGroupLayout>
                  <af:spacer width="10" height="10" id="s4"/>
                  <af:separator id="s5"/>
                  <f:facet name="buttonBar">
                    <af:group id="g2">
                      <af:panelGroupLayout id="pgl4" layout="horizontal"
                                           halign="start">
                        <af:commandButton text="#{smsCommonViewBundle.CreateBtn}"
                                          id="createCB" action="doCommit"
                                          partialSubmit="true"
                                          accessKey="#{smsCommonViewBundle.CREATE_ACCESS_KEY}">
                          <f:actionListener type="au.com.callista.sms.framework.view.lifecycle.PopupDismissActionListener"/>
                        </af:commandButton>
                        <af:spacer width="10" height="10" id="s6"/>
                        <af:commandLink text="#{smsCommonViewBundle.CANCEL_LNK}"
                                        id="cancelCL" action="doCancel"
                                        accessKey="#{smsCommonViewBundle.CANCEL_ACCESS_KEY}"
                                        immediate="true">
                          <f:actionListener type="au.com.callista.sms.framework.view.lifecycle.PopupDismissActionListener"/>
                          <af:resetActionListener/>
                        </af:commandLink>
                        <af:spacer width="400" height="10" id="s9"/>
                        <af:icon name="required" id="i1"/>
                        <af:spacer id="sp3" width="5" height="0"/>
                        <af:outputText value="#{smsCommonViewBundle.requiredLbl}"
                                       id="ot1" styleClass="requiredText"/>
                      </af:panelGroupLayout>
                    </af:group>
                  </f:facet>
                </af:dialog>
              </af:popup> Edited by: user9319679 on Sep 6, 2011 10:43 AM

    I dont think so that possible without javascript.. AFAIK
    <af:clientListener method="setFocus()" type="load"/>
          <af:resource type="javascript">
               function setFocus(event){
                 var input1 = document.getElementById('pt1:r1:3:pt1:it1::content'); // the complete id of the inputText - change it according to your jsff.. use firebug to get the proper id
                 if(input1!=null)
                 {input1.focus();
          </af:resource>

  • How to display a specific tab in a screen after a popup message

    Hi all,
            I've a rewuirement where in i need to display a secific tab in a screen after popping up a warning message. To be specific, when i choose 'Yes' in the popup window, it shoud take me to a tab which is not active while displaying the warning popup.
    Thanks in advance....
    Anil Kumar Japa

    Hi
    U need to active the tab you want to show:
    So you should set the ok_code (of the tab) value to field ACTIVETAB
    <TABSTRIP>-activetab = <OK_CODE>.
    And transfer the value of subscreen number to the subscreen area:
    CALL SUBSCREEN SUBSCREEN1
                 INCLUDING G_CTRL_TABSTRIP-PROG             
                           G_CTRL_TABSTRIP-SUBSCREEN.
    Max

Maybe you are looking for

  • US Xperia Support RMA Warranty Nightmare

    I am planning to send this in letter form to Sony Mobile but want to share it with the readers on this forum: Today marks 5 weeks since I opened an RMA with US Xperia support to facilitate the repair of my Xperia Z2. The device had a small crack on t

  • Setting up for the first time

    Hello My father in law has just purchased an iMac and also a Time Capsule, and has asked me to set it for him as he has no idea how to do it. As a graphic designer I know my way around a Mac pretty well but have no experience in Time Capsules at all.

  • Will this work on late 07 macbook pro

    WD Black 500 GB SATA Hard Drives ( WD5000BPKX) is this a good hard drive replacement for late 07 macbook pro running mavericks with 4gb of ram 667 mhz ddr2 sdram  2.4 ghz intel core 2 duo processor?

  • I download, but always saves files of 1KB.  How can I save the whole file.

    I registered the unlock of QT Pro. I try to download, it tries to save audio file as something.mov, but the file is 1KB in size. It actually does not save the whole thing. How can save the whole file from a URL? Thanks, Juan

  • Help on deciding version for migration

    Hi, Currently we are having a commissions applications developed in ADF 11.1.1.4. This application has 200+ pages and has around 150-200 users during peakload time. The database consists of 10's of millions of records in few tables and performance is