User validation for the BSP application

I wanted a user to access the bsp application.
I already have the user names maintained in the database who will be using the application.
i am using the application class for my application.
where should i do the user validation and how.
i know tst if i would had used the model class then i can do it in the request method of the model class.
but where to do it when using the application class.
Thanks

Hi Din,
I assume that the usernames that are present in your Database also exists in the WAS Server.
i.e. The database has a part of users that are present in the WAS Server.
Your need is to allow only those users in the database to access your bsp application and not others correct!
If your first BSP Page is a ...
<b>View</b>
1.In the DO_INIT method of the Corresponding Controller Class populate the internal table that is present in the Application Class with the usernames that are present in the database.
2. In the DO_REQUEST method of the Corresponding Controller Class check for the username who runs your BSP Application is present in the Database.
You can get the username who run the bsp application using the system field...
data: username type string.
username = sy-uname.
So if the <i>username</i> is in the database show your bsp page else show an error page.
<b>You can directly check for the sy-uname is present in the database.</b>
<b>Page with Flow Logic</b>
It is same as MVC only thing is that method name changes...
Place the code in the DO_INIT of MVC in onCreate of Page with Flow logic.(Populate the internal table of the application class with the usernames from the database)
Place the code in the DO_REQUEST of MVC in onRequest of Page with Flow logic.(Check whether the sy-uname is present in the itab or directly in the database).
Hope it solves your problem
Regards,
Maheswaran.B

Similar Messages

  • How user will execute the BSP application I created...

    Hi,
    I have created a BSP application which has various pages with flow logic.
    Now to execute it I use execute icon and then I get moved to web browser.
    The application is working cool.
    But what I am wondering is user is not going to go to code and use excute button to execute the code.
    So how can he do the execution of page ?

    You have lots of options (and no generally users don't go to SE80 and launch your application from there).
    1.  Give out the URL to your application. Users can launch the application directly from the URL in the browser. The URL could be stored in the Browser Favorites or as a desktop icon.
    2.  If you use the Netweaver Portal - create a BSP iView for the application and attach it to the users' role.
    3.  A BSP URL can be added as a link in the SAP Easy Access Menu.  Under favorites, just choose Insert Other Object
    4.  You can create an ABAP Transaction code. In the program under this transaction code, you could host the BSP application in an HTML Control or open it externally in a browser via CL_GUI_FRONTEND_SERVICES=>EXECUTE.  It is fairly easy to create a generic ABAP program to launch BSP application and receive the application name via a Transaction Code Parameter. You can build a specfic URL to a BSP application in code using CL_BSP_RUNTIME=>CONSTRUCT_BSP_URL.

  • Capture all the Users who viewed the BSP Applications ???

    Hello All,
           I need to create a BSP Application which shows all the Users, who have executed different BSP Applications and the Number of Times each user has executed these BSP's.
    Is this Possible ?
    If yes, can anyone tell me how to go forward  ????
    Regards,
    Deepu.K
    Message was edited by:
            deepu k

    Hello Eddy,
          I have gone thru ur Blog.
    But in this I guess I need from this part -->
    C. Generating Own Stats in BSP
    C.1. Logging It
    If all of the aforementioned tools don’t cover what you’re looking for, or there are technical/other reasons not
    to choose them, then there is only one thing left to do. Write your own stuff. It really isn’t that difficult to do
    and, if you are confident enough, you can make something that suits your needs 100%. Or as a host in a
    Flemish regional TV DIY show always says: “What you do yourself is usually done better.” Let us see what
    you need to do in order to achieve this.
    First of all you need data on the browser. This can be done via JavaScript and the navigator object:
    appCodeName
    The code name of browser (i.e.: Mozilla)
    appName
    The name of the browser (i.e.: Microsoft Internet Explorer)
    appVersion
    Version information of the browser (ie: 4.75 [en] (Win98; U)
    userAgent
    String passed by browser as user-agent header. (ie: Mozilla/4.0
    (compatible; MSIE 5.5; Windows 98; Hotbar 3.0))
    Platform
    The platform of the client's computer. JavaScript 1.2 property. (ie:
    Win32)
    You probably need some extra information like IP number. This can be done via the
    request->get_header_field method.
    As such you don’t need to retrieve this info every time if you have a single entry point like a login page. Just
    put it in a server side cookie. Each new page will read this cookie and save this info together with the page
    name, user id, eventual parameters, etc. into the log. Now I talked earlier about the visitor concept. This is
    also an ideal place to implement this. If you are only interested in returning visitors with a full day time interval,
    you can for example determine whether that user has already used that application. If so, you just increment a
    counter. If not, you have to create a new line. This method will also reduce the size of your table.
    C.2 Showing It
    The only thing you need to do is to analyze and visualize stuff. The analyzing stuff is completely up to you.
    The following screen shot is an example where the total number of visitors within a given time frame is shown.
    It also shows the number of unique visitors in that same time frame compared to the potential number of
    visitors. You might find this of interest if you want to know how many (internal) users actually use your intranet
    application. You can couple the user info to the department info and then you can figure out whether
    department X or Y is actually using the application.
    But I didnot get the actual idea of implementing this in my BSP.
    Can you give an explanation for the above ?
    Regards,
    Deepu.K

  • Every time I've tried to download application always showing that my account not valid for the uk store.You have to switch to the emirate store.How to do it?

    Every time I've tried to download application always showing that my account not valid for the uk store.You have to switch to the emirate store.How to do it?

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you will be located.
    8. Tap "Done".

  • Date Range valid check on BSP Application

    Hallo,
    i want to  display brochures with its validity date in BSP application.Can anybody help me. i was rejected because i posted my code here ,i cant post it again.
    regards

    hi,
    In which block  you want to keep the validation . In Layout of in Onevent processing block. ??
    <script for="sd" event=onchange type="text/javascript">
    var data = this.value;
    var date = data.split(".");
    if (data != ' ')
    var day = date[0];
    var month = date[1];
    var year = date[2];
    if ((day<1 || day >31) || (month<1 || month>12) ||(year.length != 4))
    alert("Please enter a valid  Date ( mm.dd.yyyy )");
    endif.
    hw come ur post  got reject ?
    Please specify whr u want to embed validation .

  • User switch scenario involving BSP application

    Hi
       I am new to BSP application design. We have requirement from a BSP  application wherein different sales force personnel need to see different segments of same data on the BSP application - owing to security requirements. We are thinking of using a default user and then user switch to specific  SAP reference user ( based on maybe their windows logon credentials within the BSP application - each reference will have a security that has authorization to see a particular segment of data for a group of sales force people.
    Is this approach ok ( of switching user from default to specific reference user and having a reference user as the representative user for each sales force group ) ?  Any thoughts/suggestions on experiences that can be shared here to architect this scenario would be highly appreciated.

    Hi,
    you can do this. Therefore you have to setup an use the nodes via sicf. User switch involves also
    a new registration with authorization. You can lok at bsp application SYSTEM for that.
    On the otherhand: build role via Profile generator: TXN PFCG and do authorization checks as you do
    it in SAPGui Dynpro Programmining. Why not. We have build big applications with many user roles
    using this approach.
    The first ones makes only sense, when you have a public area using a public user. Therefore you enter the public account in thze right sicf nodes.
    Best regards,
    Stefan

  • When trying to update my Apps I am being advised my account is not valid for the UK, I must switch to the Ireland store. How do I do this?

    When trying to update or purchase Apps I am being advised my account is not valid for the UK Store and I must switch to the IReland store. How do I do this?

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you will be located.
    8. Tap "Done".

  • Additional validation for the Start investigation in investigation tab

    Hi all ,
    In health safety->overview -> incidents .
    I want to add additional validation for the start investigation based on the custom field values .
    so that the values in the custom field are not entered it should not allow the user to proceed for the investigation .
    In this case i have displayed an error message and return statement In needs_confirmation_method  method but still unable to stop the process . Please suggest any other method .
    Thanks ,
    Venkat Ratnam Naidu

    You can use these solutions:
    1) use the fields control (CMOD), insert a new rule that if the field is empty action is disabled.
    2) insert a custom validation before the action
    3) modify feederclass to on/off the action

  • User interface for the CAF project

    hi
                 to make  user interface for the CAF  i  have  written  a simple 
      webservice application for storing the data in the database using JDBC operation
       i have  imported the webservice in the  EXTERNAL SERVICE  and  mapped
      in the required in the entity service  , every thing worked fine  but  when  i have
      imported the model  for developing the USER INTERFACE  for the  webservice
       there is no  EXECUTABLE NODE 
          can  anyone provide a clear idea  how i can proceed further .

    Couple of things - you can open the interface for any instrument or plug-in by double-clicking its insert slot on the channel strip. You can configure Logic to automatically open the interface for a plug-in when you first instantiate it in the preferences. Go to Logic Pro > Preferences > Display > Mixer, and check the box for "Open plug-in window on insertion".

  • The specified index is not valid for the given resource

    I am trying to follow the tutorial on how to get Labview working with Solidworks and the demo CNC robot that the example comes with. After I deploy all the axes and my computer and the assembly file I try and switch the scan engine to active mode but it won't let me. It pops up with an error;
    "An error occured while attempting to switch the I/O scan mode. The specified index is not valid for the given resource".
    I'm just trying to do a basic straight line move with one axis. Does anyone know how I can fix this? I updated softmotion with Sp1 already and did all the recommended updates.

    I talked to some of our developers to get some more ideas for this error. Try the following:
    Go to the file path C:\ProgramData\National Instruments\DeploymentFramework (it is a hidden file so you may need to change your settings to see it)
    Delete the contents of that folder.
    Restart LabVIEW
    Redeploy your axes and see if it works.
    If it does not, repeat the process but create a new project after LabVIEW restarts.
    Cameron T
    Applications Engineer
    National Instruments

  • How to find the Name of the BSP Application Being Invoked?

    Hi ,
    Is there any FM or method that would return the name of the BSP Application being invoked?
    Say i have a method A which is being invoked by 2 BSP Application B and C. How do we determine which BSP is invoking the method A?
    Any input on this regard will be of great help.
    Thanks and Regards,
    Pavithra

    Hi,
    this methods are not 100% efective but you may try it:
    On runtime:
    set an external breakpoint in your method A and run your application. When it stops, the debugger has many folders, so press the one marked with "Standard" and in section ABAP stack you see the different call steps that have been executed, including the application that is calling the method.
    For this you must activate the new debugger (Utilities --> settings --> ABAP editor --> Debugging)
    On development time:
    Click on method A and press button Where-used list. In the incomming window press BSP applications.
    Hope it helps.

  • Looking for hardcopy of the user guide for the Audigy2 ZS Platin

    Is there a way for me to receive a hardcopy of the user guide for the Audigy2 ZS Platinum?
    I have the CHM file. It?s OK but I would like to have a manual.
    Thanks!

    I had setup Application Streaming with SCCM 2012, unfortunately performance was not comparable simply due to the fact that it take a little while for the SCCM Client to kick into action itself, which obviously has to happen before the App-V applications
    are delivered. I heard another Forums user also mention that concern.
    PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
    rorymon.com Twitter: @Rorymon

  • How to manipulate users provisions in the planning application MSdatabase

    Hi All.
    I want to change user provisions in the Planning Application MSDatabase without using Hyperion planning .
    How can I directly use msDatabase tables and change user provisions.
    which tables must be used for this operation?

    İ am new in essbase and hyperion planning.
    İn my test system there are alot of user. for example when i have to change some users provisions for accessing some dimensions or forms, i change provisions one by one for all specified users so it takes long times.
    I want to learn that can i change provision options without using hyp planning?, forexample can i change users provisions using with my custom java apllcation.
    And my system is test system so İ can restart it if it is necessary.

  • Assigning controller to the bsp application in icwebclient

    Hi friends,
         Iam trying to test the <b>help view</b> from crm_ic into my bsp application Z_CRM_IC_HELP.
           I got stuck up while assigning controller to view in the bsp application. I have copied the standard view "help" from crm_ic into bsp application z_crm_ic_help.
    and copied the crm_ic.xml file into Z_CRM_IC_HELP.
        In se24 created a controller class ZCL_CRM_IC_HELP_IMPL for the help view controller class CL_CRM_IC_HELP_IMPL.
    Properties of the bsp application Z_CRM_IC_HELP page type (view) to select the controller class which i have created above is not displaying the f4 help list. So when am entering the z_crm_ic_help in the controller class fied its throwing the following error  as the controller class is not available in the F4 help  list.
          <b>The class ZCL_CRM_IC_HELP_IMPL does not implement any controller in the BSP application Z_CRM_IC_TEST</b>     
    Could anybody please guide to create a simple BSP application in ICWebclient.
    or it will be helpful if you can send me any links to work on hands on in ICWebclient.
    Thanks & Regards
    Sireesha.

    Hi Sarah,
    the following thread adresses the same problem, within the BSP folder:
    [How to change & manage different ports in a mixed web environment (BSP/WAD)|How to change & manage different ports in a mixed web environment (BSP/WAD);
    I think its better to use that category instead of BI General.
    Best regards,
    Sebastian

  • This Certificate not valid for the selected purpose

    I have installed on my Windows 7 (64 bit Professional w/SP1)
    a Self-Signed CA (IDS_MstrCert)  that has been accepted by the system certificate "store".  via mmc & certmgr
    I generated this CA on my Redhat Linux 7 server using the openssl utilities. 
    It shows: This certificate is intended for the following purpose(s):
    All issuance policies
    All application policies
    It is enabled for ALL purposes (However I did not generate with ALL purpose set)
    Under Certification Path:
    Certificate Status: This Certificate is OK
    I have also installed a Client Certificate (winxclient) (also generated by my Redhat Linux 7 server)
    That has been "signed" by my CA (IDS_MstrCert)
    I added it successfully to the system certificate "store" via mmc & certmgr.
    However when I open the certificate I see the following message: This Certificate not valid for the selected purpose
    When I view the Certificate path I see the following:
    IDS_CA                          (friendly name for the CA)
        |-----> VPNIKEv2cli     (friendly name for the client certificate)   
        Certificate Status: This certificate is OK
    In the Intended Purposes field: ServerAuthentication, ClientAuthentication
    How do I resolve this problem ?   This Certificate not valid for the selected purpose
    When I attempt my vpn/ikev2 connection (using machine certificates) I get the 13806 error.
    Best Regards
    Guy Rich

    Hi,
    In my opinion, this is not Windows system problem. You need to make troubleshoot with the Certificate.
    I made a research with this error message, the link below might be helpful:
    http://support.persits.com/show.asp?code=PS030304105
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for

  • Retrieving datas with ArrayList

    Below, im trying to get 6 columned records from the access database. //PNL 1:                               PNL1=new JPanel();                               PNL1.setLayout(new BorderLayout(15,15));                                                 java

  • New J2EE Pattern

    Introducing Shine Pattern A brief history of Shine When we started to do a project we encountered an important problem. Developing a project with amateur developers is very dangerous. Because new developers don't care about some important things, and

  • How to control change request creation for particular IBase Component?

    Dear Experts, Can anybody suggest , how to control change request creation for particular IBase Component? We have implemented ChaRM which is integrated with SAP ECC & SAP BI. ChaRM is not integrated with SAP Solution Manager. End Users are creating

  • Wrong back up with refurbished phone

    I had to purchase a refurbished phone last week because of a dead battery. I had backed up all my information to ITunes before I took it in. Somehow the wrong back up is on this phone now. I went into the files and can see the back up I created on th

  • Table Data Transportation (Urgent)

    Hi Experts, Can you do me a favour, I can transport table structure from one client to another. but I want to transport my development client table data to production clinet. How can I do it? Waiting for your reply with positive hope. it is Urgent. w