How to log in to SAP MII by using a custom xApp?

Hi there,
I'm developing a custom xApp with a context root of /mycustomapp
I use some security contraints for it so the user has to log in to view the xApp.
As I use some MII services the user has to be logged in to SAP MII, too. However, logging in to SAP NetWeaver doesn't automatically sign in the user to SAP MII, too.
Is it possible at all?
Accessing /mycustomapp leads to a login mask, but the user should be logged in to SAP MII, too.
Regards
Tobias

web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  id="WebApp_ID" version="2.5">
  <display-name>mycustomapp</display-name>
  <welcome-file-list>
  <welcome-file>index.html</welcome-file>
  <welcome-file>index.htm</welcome-file>
  <welcome-file>index.jsp</welcome-file>
  <welcome-file>default.html</welcome-file>
  <welcome-file>default.htm</welcome-file>
  <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
  <security-constraint>
  <display-name>Authentication of Users</display-name>
  <web-resource-collection>
  <web-resource-name>My Resource Name</web-resource-name>
  <url-pattern>/*</url-pattern>
  <http-method>GET</http-method>
  <http-method>POST</http-method>
  </web-resource-collection>
  <auth-constraint>
  <role-name>My_User_Role</role-name>
  </auth-constraint>
  </security-constraint>
  <login-config>
  <auth-method>FORM</auth-method>
  <realm-name>MyRealm</realm-name>
  </login-config>
  <security-role>
  <role-name>My_User_Role</role-name>
  </security-role>
</web-app>
web-j2ee-engine.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="web-j2ee-engine.xsd">
  <spec-version>2.4</spec-version>
  <security-role-map>
  <role-name>My_User_Role</role-name>
  <server-role-name>My_User_Role</server-role-name>
  </security-role-map>
</web-j2ee-engine>
Besides having the role My_User_Role my user also has the SAP_XMII_User role (and the corresponding developer roles).
Regards
Tobias My_User_Role

Similar Messages

  • How ALBPMEngine logs can be read other than using log viewer

    Dear Friends,
    Can anybody help on How ALBPMEngine logs can be read other than using log viewer?
    Look forward for rsponse.
    cheers

    Max Meilleur wrote:
    Mark,
    I would be interested in knowing how you can decouple the obpmlogviewer.exe app from the OBPM Enterprise installation.
    How can I send a simple .zip file to others and tell them: "hey, unzip (or install) this only and you will be able to read OBPM engine logs files on your local machine" ?
    The logViewer executable can't be run without an enterprise install (at least not easily decoupled), however, an alternative, would be to pass someone the .jnlp and some log files.... To do this, open up the process admin, and in the top right, is a link for 'Launch Log Viewer'. Open that, and then go to 'File - Save As', and this will save a java executable to your computer.
    I'm pretty sure you can pass that, and either an admin user and password to view 'live' logs, or just have them cancel the remote log, and open a local file....
    Adam,
    PS: I don't see any opbmlogreader.exe or .sh or .bet in the OBPM_HOME\bin directory. I am looking at OBPM standalone, and the only relevant files I can see are obpmlogviewer.exe , obpmlogviewer.lax , lax.jar. Am I missing something?
    MaxI too don't have the log reader, however I do remember it... I'm thinking the .sh might only be included in the linux distribution of enterprise, so I'm downloading that now to verify... I will let you know what I find...
    HTH,
    -Kevin

  • How to log in standard sap way in a jsp/servlet project

    Hi expert,
    To log and trace in sap standard mechanism always confuse me a lot.
    Is there any how-to document for j2ee project?
    I know for wdj you can add log configuration by select 'create log configuration file' in context menu, but I can not find this for a j2ee project.
    I would like to see the log in LogViewer of VA, put all logs together in sap management make sense in our project.
    Thank you for your hints.
    William

    Hi,
    f
    ile=new FileLog("f:/WebServiceTrace/trace2.%g.log", 800000, 10,                                        new  TraceFormatter());
    The above code specifies the path for your log file.
    Then add this file as a log location and then log the traces. For this you can use the following code like:
    Location location=Location.getLocation(className);
              location.addLog(file);
              location.setEffectiveSeverity(Severity.ALL);
              location.entering(methodName);

  • How to log on to SAP GUI 6.4?

    Hi
    after installing SAP gui 6.4 i have to log on into sap
    i read many Documents that says i have to copy a saplogon.ini
    to the SAP directory when i copy this file in description
    i have logon names.when i logon with one of them i have to connect to Internet and have a username and password.
    but i want to make logon without connect to internet.
    what should i do?

    Hi Javad,
    the server installations I mentioned are compete insofar as you can run them and connect to the server using SAP GUI. You can also run the basic transactions and do ABAP development.
    I assume when you say 'complete system' you mean including all business applications. This is not available as some sort of download, and I don't think it's feasible to set this up just for testing.
    Best regards,
    Christian

  • How to deliver items in SAP R/3 using sap gui

    Hi all,
        I have created an order.I want to deliver the items contained in it. pls tell me how to do it using sap gui.
    Regards,
    Kiran.

    Hi Anil
    You can create a normal ABAP report to delete or modify records from database table.
    You can use statements such as delete or modify for this purpose.
    First select the records from table bring them into internal table and use that table to delete the records from database.
    Note: If you are trying to delete records from Z tables then this approch can be adopted but if you are dealing with Standard tables it`s not a option to directly delte the reocrds from database table .
    For that purpose you can use BDC or any othe available FM/BAPI.
    Note :When you are deleting records from the database table please use locking function module to lock the database entries.
    Regards
    Neha

  • How to remove header from sap transaction iview using html

    Hi ,
    I have created SAP transaction iview for pv34 for SAP GUI for HTML .
    FRom iview how to remove hear part .
    i.e
    menu ,back,exit,cancel............
    I want to remove this complete header .
    What property i need to work for ..
    Thanks,
    Surekha .

    hi surekha,
    check these wiki's regarding the similar issue
    *[Employ SAP GUI for HTML instead of an Internet service |http://wiki.sdn.sap.com/wiki/display/HOME/Article%20-%20Employ%20SAP%20GUI%20for%20HTML%20instead%20of%20an%20Internet%20service]
    [Howto customize the webgui header area |http://wiki.sdn.sap.com/wiki/display/HOME/Howtocustomizethewebguiheader+area]*
    Regards,
    Maheshchandra

  • I need  How to retrive data from sap r/3   using weblogic server

    Hi every body .
    I need how to retrieve r/3 data  using BAPI methods
    and using weblogic server
    very critical

    Hai.
    check the links.
    http://www.bea.com/content/news_events/white_papers/BEA_WLP_SAP_Portlets_81.pdf
    http://www.info-sun.com/docs/wp_sapinter.pdf
    regards.
    sowjanya.b

  • How to extract data from SAP and COBOL using ODI

    Hi Folks,
    Can you please let me know the procedures in ODI to extract data from SAP and COBOL?
    Thank you all for the help.

    Hi
    You can download Patch 8571830 from Oracle metalink.
    It has a new technology "SAP ABAP" and KMs to extract and load data -
    RKM SAP ERP and LKM SAP ERP to Oracle.
    Thanks

  • Log Viewer Error In MII 12.1

    Hi All,
    I am getting an error in log viewer in SAP MII 12.1 version(Netweaver 7.1).
    When I am tring to open the log viewer ,It is giving the error Connection refuse.
    Please do let me know if someone know anything about issue.
    Thanks,
    Ritim Jain

    Hi Ritim,
    As I think its roles issue with your user ID
    Can let us know the what roles has been assigned to that user ID
    Regards,
    Praveen Reddy

  • SAP MII XML xpath range

    Hello All,
    Is there a way to get  a range of nodes in SAP MII XML using xpath ? For example I have a query with 1000 rows and I want to take a batch of 2 rows and process them using a separate branch until I reach the end of the XML.
    I am using a For Next Loop for it & I am using the following XPath based on what I found online. Its still not working. ?
    Data.Results{/Rowsets/Rowset//Row[position() >= For_Next_Loop_0.CurrentItem and position()  < (For_Next_Loop_0.CurrentItem + 2)]}
    Any ideas ?
    Thanks,
    Kiran

    Thanks Christian !! I had figured out the adding the # part. But the range is getting a bit tricky
    This is what I am looking for
    XML Document
    Name
    Value
    A
    1
    B
    2
    C
    3
    D
    4
    Batch 1
    Name
    Value
    A
    1
    B
    2
    Batch 2
    Name
    Value
    C
    3
    D
    4
    Thanks,
    Kiran

  • How to log in to Service Desk to create sample message to SAP?

    Dear all,
    How to log in to Service Desk under my Solution Manager server to create sample message to SAP under Component: SV-SMG-SUP?
    Regards
    GN

    Hi GN,
    You have different options to create messages in test component SV-SMG-SUP-TST:
    1. if you are on 7.1 you can create message using CRM_UI
    2. If you are using lower vrsion then either you can create message using Workcenter or using transaction NOTIF_CREATE or using menu --> Help --> Create support message.
    Thanks
    Regards,
    Vikram

  • How to log in to the new installed SAP ABAP instance ?

    Dear Experts,
    In SAP ERP 2005 installation,
    I have done central system installation, Now I need to perform postinstallation steps,
    Could you please tell me,  how to log in to the new installed SAP ABAP instance and do the post installation?
    Regards,
    Madhavan K

    Hi,
    Check the list of post installation steps:
    http://www.saptechies.com/post-installation-steps-for-ecc-60/
    From my point of view basic post installation steps are:
    - Installing SAP License (from http://service.sap.com/licensekeys)
    - Setup TMS  (STMS)
    - Import profiles (RZ10)
    - Client Copy (SCC*)
    - Create users (SU01)
    However further many steps are required as per your requirements. Cehck the link for more detailed steps.
    Regards,
    Srikishan

  • How to log a query or ticket to SAP on SAP support Portal - need process

    Dear All,
    I got SAP support portal user id and password. Can anybody guide me how to log a ticket or query on some issue to SAP.
    Pls let me knwo how to search help notes to. Explain me in steps pls.
    Need urgent help.
    Thanks
    Sunnzy

    Hello exper,
    Can you tell me that incase i have to log a request for a client server then how i will do that.
    I am simply facing a problem in PPOME transaction where a tab for IT 1005 planned compensation has been added but it is not showing any input fields there. However we tried the same configuation in Sandpit server and it is working fine.
    Incase i have to log this is to SAP for help, do i have to follow the same path to do it.
    thanks
    Sunny

  • How to View Transport Log in DEV SAP Portal System

    Hi All,
    Kindly help me by giving me the path of where is the Import, Export and Transport Log maintained in SAP Portal.
    And is it posible to view the Log of other systems from DEV system? If yes then how.
    Thanks in Advance.
    Regards,
    Disha.

    Hi,
    Please navigate to usr/sap/trans/CMS/log to view logs.
    Alternatively in the CMS, you can click on "Go to History" which will display all previous transports. You can see the details from there.
    Thanks

  • How to log on to visual admin and create destination service

    Hi all,
    I see this statement everywhere while trying to configure adobe forms.
    *it was only the HTTP destination FPICF_DATA_<SID> that was not created in the Visual Admin under Cluster -> Services -> Destinations*_
    I got 2 questions here:-
    1. the programs "FP_CHECK_DESTINATION_SERVICE" runs fine w/o destination check box. andwith the check box it gives the error "ADS: Request start time: Thu Nov 26 12:07:42 ........". SO how to resolve this. I have checked the blogs before and I did everything so far and stuck at the statement given above in bold.
    2. What  is this destination fp_icf_data_sid........... where to look for, I understand u need to log on to visual adm. But how is there a sap transaction "AL11" or from the web url.   if it is web url  ...   "http://server_name:port/ ....." then I am lost after this I dont see anything called cluster and services anywhere....
    And if am looking for visual admin at wrong places please provide step by step guide. I have seen steps to log on to visual admin on wesites but i dont know what am i doing, thats not clear. If someone can help from here.
    Thanks,
    Anu.

    The Visual Administrator is a Java tool installed during the installation of a Java AS. It is a separate tool that can be copied and used remotely if desired. On a system running Java AS it can be found under /usr/sap/<SID>/JC00/j2ee/admin - just run 'go' under Linux/Unix or 'go.bat' under Windows. You must have Java installed on your remote system.
    Once you have logged into your Java AS system using the Visual Administrator you can then setup your "Destinations", located under Server -> Services.
    Check Note 944221 - Troubleshooting if problems occur in forms processing ...which will make clear the errors you are experiencing and help you solve them.
    Nelis

Maybe you are looking for