Security code in webDynpro for extranet portal

Hi Friends,
I got some code related to security that we need to take care from webdynpro side in case of extranet portal application.
      String userId = "";
      IWDClientUser wdUser = null;
      IUser user = null;
      IUserAccount
[] acct = null;
      try {
             wdUser = WDClientUser.getCurrentUser();
             user = wdUser.getSAPUser();            
             if (user != null) {
                     acct = user.getUserAccounts();                         
                     userId = acct[0].getLogonUid();                         
                     if (userId != null) {
                            //wdContext.currentContextElement().setCustno(strUserID);
                              //set the current customer to LoggedInUser                            
                            wdThis.wdGetContext().currentContextElement().setCurrentCustomer(userId.toUpperCase());
                            return userId.toUpperCase();
                     } else {
                            wdComponentAPI.getMessageManager().reportWarning(" Invalid user1");
             } else {
                     wdComponentAPI.getMessageManager().reportWarning(" Invalid user2");
      } catch (Exception e) {
             wdComponentAPI.getMessageManager().reportWarning(" Invalid user3" + e.getMessage());
      return "";
Is this code really checking the logged in user with the R/3?
Regards,
Lakshmi Prasad.

Hi,
The code just sets the name of the logged in user to a context variable.
Thanks,
Venkat

Similar Messages

  • Apple store worked great, now it keeps telling me that I need to verify payment info and my security code is invalid for my card... The card is current? What's going on?

    Apple store worked great, now it keeps telling me that I need to verify payment info and my security code is invalid for my card... The card is current? What's going on?

    Did you enter the last three digits on the back of the card for Visa or Master or the 4 digit # on the front of Amex?

  • Display HTML code in WebDynpro for ABAP

    Hi, I would like to display a html page in a WebDynpro View, ie: I have the html code in a "string" variable and would now display this string now not with the html tags visible, but as a "real" html page.
    I found a thread in WebDynpro for ABAP but I am a little bit lost in converting the logic to ABAP world.
    Thanks

    >I found a thread in WebDynpro for ABAP but I am a little bit lost in converting the logic to ABAP world.
    I'm a little bit confused by this statement. Do you mean you found a thread in Web Dynpro Java, perhaps?
    Regardless the approach is possible using the iFrame UI.  The warning about the iFrame is that it is deprecated in NetWeaver 7.0 and 7.01 and my not be usable depending upon your support package level. However in NetWeaver 7.02 the iFrame returns to fully supported status.
    If you have the HTML content in a string, you can simply place it into the ICM cache.  This will provide a temporary URL for the content (you supply the lifetime of the URL) that can be referenced via the iFrame URL or even the LinkToURL if you want to open in a new window.
    Here is the code for placing the string into the ICM Cache:
    ****Create the cached response object that we will insert our content into
      data: cached_response type ref to if_http_response.
      create object cached_response
        type
          cl_http_response
        exporting
          add_c_msg        = 1.
      try. " ignore, if compression can not be switched on
          call method cached_response->set_compression
            exporting
              options = cached_response->co_compress_based_on_mime_type
            exceptions
              others  = 1.
        catch cx_root.
      endtry.
    ****set the data and the headers
      data: l_app_type type string.
          cached_response->set_cdata( lv_html_text ).
          l_app_type = 'text/html'.
    cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = l_app_type ).
      cached_response->set_status( code = 200 reason = 'OK' ).
      cached_response->server_cache_expire_rel( expires_rel = 60 ).
      data: guid type guid_32.
      call function 'GUID_CREATE'
        importing
          ev_guid_32 = guid.
      concatenate '/sap/public' '/' guid '.' 'html' into lv_iframe_url.
    ****Cache the URL
      cl_http_server=>server_cache_upload( url      = lv_iframe_url
                                           response = cached_response ).
      wd_context->get_element( )->set_attribute(
        name =  `IFRAME_URL`
        value = lv_iframe_url ).

  • Ive switched my email for my appleID account and now i can do anything with my account because it keeps telling me my security code is invalid for my credit card when clearly its not no idea how to fix this

    anyone think they can help me out >

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Sometimes it says security code by it is the ZIP code. Sign into your account in the iTunes app on your computer and verify that all of the information is correct and agree to any new user agreements that may be needed.

  • Need sample code in webdynpro for java

    Hi all
    actually i have one webdynpro form which is having multiple input elements. for example name,address,phoneno,price quantity and amount. and there is update button for that form.
    when i click the update button the multiplication of quantity and price value will be updated by in one input field which is part of the another webdynpro form is part of the same view.
    i want to update the input field in another form only when i change the value of either price or quantity otherwise the value of inputfield in another form should be same.
    now how do we retrieve the event of either price or quantity inputfield which only changes rather than changes of name or adreess.
    only when i modify the value of price or quantity in form and updated button then only the multiplication will be reflected in inputfield of another form.i dont want to reflect that inputfield of another form when i changes of other inputfields except price or quantity.
    please provide the sample code on the same...especially how to retrieve the event of that price or quantity in a form..
    Regards
    Suresh babu

    Hi Suresh,
    please post your issue to the Web Dynpro forum.
    Greetings,
    Carsten

  • Where to place java code in webdynpro for communicating between views

    Hi Friends,
    Where should I put the Java code on click of button for the action.
    I can out in init() method, or in teh onActon methods.
    I think suppose I have two views view1 and view2
    on click of one button on view1, user shoudl see results on another view.
    for that I think best is to put data accesing logic for view2--in onAction of view1 itself.

    I've been looking at my examples,  you can do it either way.  In one example, I have coded the logic in the Inbound Plug method on the Result view.  In another example, I am doing the logic in the onAction method when the user presses the button on the Start view.
    I'm thinking it may be better to do it in the onAction method, but it really depends on the overall functionality of the application.
    Regards,
    Rich Heilman

  • HT1620 Hello my ipad was given to me of my brother, i started using this everything was set already, i have the notification  from apple that i should update my ios 7.1.1  but my problem is apple is asking me a four number security code unfortunate he for

    Please help i cannot update my ipad, to update it i need four digit code number but i dont know, please help

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

  • ECC user licenses issue for using Webdynpro ABAP in portal

    Hi all,
    If we want to use Webydnpro ABAP in our external facing portal which is being used by more than 20000 users, how do we manage the ECC licenses for all these users? It will be really expensive to have that many number of licenses in ECC (one for every portal user). Is there any other work around for this?
    Any info on this will be beneficial.
    Thanks,
    Hari

    I am not sure why you want to use WebDynpro for External Portal . As Webdynpro is resource intensive ,  I never saw client asking for this type of  requirement. Are developing any prototype ?
    In my experience ABAP webdynpro is more is used more for business packages and  internal portals  not for external portals. If you want to use this AWD for EEP  Please see below link from SAP Help for pre-requisites
    http://help.sap.com/saphelp_nw04s/helpdata/en/96/bdab419451db34e10000000a1550b0/content.htm
    Last Step in above Link, this mentions that ABAP Webdynpro needs logon.
    As other people mentioned there might be a good way of doing if you contact your SAP account executive to find out if there are any different types of licenses. But you end up in taking other extra licences which not acceptable solution for clients.
    If you want to use WebDynpro for external Portal ( which is not at all suggested for external ) at any cost , better to go with Web Dynpro for Java which will not need any extra  licences on R3.

  • HT204088 Inspite of submitting all requiredFields I am not getting purchase History and Security code for redeeming.I have clicked for purhase of Sri Sri Shankar's Rudra Album but unable to get it loaded on my I pod  What do I do ? Reply to me by Laila no

    Dear Customer Care I Tune,
      I have been trying to down load "Rudra"Album of Sri Sri Ravi Shankar, A religious & Spiritual Hymn. from I tune store. The price was shown as Rs 120/= I clicked on buy and filled the details of my debit card (ICICI Bank India)which created account but I could not fill up code for redeeming or security code being asked for ,with the result the my purchse is not getting authorised (I presume.)I am unable to get the Music on my I pod. To my  Earlier complaint I got Reply under follw up #272091438 from your customer care miss Laila. I was asked to action as suggested in the link. But inspite of following the insructions as suggested in the link I could not get Purchse details and order number as envisaged in the instructions. Can  I expect some working suggestins and advice .
      Anant Pashilkar
    Presenlty I am at Austine Texas
    <Personal Information Edited By Host>

    Most of the people on these forums, including myself, are fellow users - you are not talking to iTunes Support here. I've asked the hosts to remove your email address and phone number from your post.
    If you are currently in Texas in the US then you won't be able to buy from the Indian iTunes store - you need to be within a country to use its store, so to use the Indian store you will need to be in India.
    In terms of the redeem code that you mentioned, entering an iTunes gift card is optional and they are country-specific and they are not available in all countries - I don't think that are available in India, so I don't think that you could fill it in anyway. For the bank card, i don't think that debit cards are now accepted as a valid payment in the store, there have been a number of posts recently about them being declined, and they are not listed on this page.

  • HT1918 I keep entering my CORRECT security code and it is saying the code is invalid. It has worked for other billing accounts though.

    I was hoping I could get some help as to why it keeps telling me my security code is incorrect for my new credit card. It is not incorrect as i have used this same code for paypal and other billing accounts. It's only itunes thats doing this.

    For some reason Apple is particularly nitpicky about the billing address. The message you get is misleading since it can indicate any discrepancy in your billing information - a single space or punctuation out of place can cause it.
    Go to your account in the iTunes Store and edit your credit card information. Retype it if in doubt. Make sure it matches your billing information precisely.
    Read the following for more:
    iTunes Store: My credit card's security code or zip code does not match my bank's records

  • How to use security zone in WebDynpro

    Hi.
    I want to use security zone in WebDynpro for java like PDK.
    Is it possible?
    if possible, plz explain detail how to use security zone.

    Hi,
       You can locate the <i>portalapp.xml</i> file for a WD project inside the <i>gen_wdp</i> folder. Check if you can add the <i><component-config></i> tag and others in the <i><webdynpro></i> section of the file.
    Regards,
    Satyajit.

  • Two step verification credit card security code refused

    Most infuriating. I've completed one set of two step verification with our common credit card & security code for my wifes Apple ID. The same CC & security code work just fine in itunes & the app store. But do you think I can get past the credit card security code screen (below) for my Apple ID. I've double checked the CC number and security code, retyped it 4 or 5 times with the card sitting on the keyboard. No typing error. I've tried 3 different browsers having emptied the caches and cookies. No, Apple refuses to let me in. Why?? Any ideas.
    While I'm here, has anyone noticed the strange "area code" for the SMS-enabled phone. Area codes for mobiles don't exist as far as I'm aware. I've never h=eard of an SMS enabled landline either.I fudged it. It took three permutations to get the mangled mobile phone number into the right boxes! Bizzar. I think Apple is loosing the plot...
    Bill...

    NetPoint   2007.0.631.12
    NetPoint.API   2007.0.631.12
    NetPoint.CreditCards   2007.0.631.12
    NetPoint.WebControls   2007.0.631.12
    Web Tools Database   631

  • What security code i should give while giving my visa card number

    hello, i just adding my new user id to apple itunes.but while processing the visa card number and security code ,it saying that my security code is invalid.

    For Visa cards, the security code is a three digit number on the back of the card:

  • TS1646 Hi I downloaded Itunes version 10.6 and I can't register my credit card to purchase somethign there because the credit card security code, accordin Apple, is invalid but isnot true. I'd like receive a solution soon because I change the cards and th

    I cant register my credit card there because the security code is invalid for any cards that I use there... so insot true.. the code is correct.

    Is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorisations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Express Lane, then iTunes > iTunes Store

  • Retrieve already deployed webdynpro for java source code from portal server

    HI ,
       We have webdynpro for java apllication already deployed on the J2EE server.  We found the ear file related to this application.  But I am not able to make any changes to the ear file in NWDS as it cannot be directly imported into NWDS.  We do not have NWDI for software logistics and the resource who built the WDJ application has left the company.  Is there any way that I can retrieve the complete source code of the application from the portal.  I need to make some changes to Webdynpro component and its view.  I have worked with basis team to retrieve the ear file from portal server.  But I could not make any progress just with the ear file.  Thank you for your help in advance
    Regards,
    KMM.

    You are probably breaking some license agreement by de-compiling the content of the 'war' files. Why not ask the people who provided the 'war' file if you could have the source and build system.

Maybe you are looking for

  • IMac display problems (twice now)

    I am wondering if anyone has run into the problems I have dealt with. I bought an iMac Core Duo 20inch two weeks ago. I got home, set it up and immediately noticed 7 dead pixels. I called up apple and complained to four different reps until they fina

  • Sequence operations

    I am using a motion system in conjunction with a number of other devices (power laser, frit dispenser, etc) and would like a simple way to sequence tasks. For instance I have a sequence: Send motion system to starting position at high speed. Open Las

  • Problem in Queue

    Hi, When XI receive a lot of Idocs (about 8000) of R/3, sometime one has the following error in the queue (SMQ2): "<i>The ABAP/4 Open SQL array insert results in dupl.</i>". Thus corresponding queue is in error and is blocked. After one has the posss

  • ERP2004 and BI Content landscape question

    Hello, Quoting the installation guide :- "SAP Business Information Warehouse (SAP BW 3.5) A restriction exists if you wish to operate Business Information Warehouse and ERP Central Component in the same system. In a production environment, this setup

  • Why does iphoto freeze when I try to add a location?

    Every time I try to add the location of a photo, I get the spinning color wheel.  I ultimately have to force close iphoto to be able to access to program again.  Any hints?