ABAP session id with a webdynpro app

Hi....
I have a custom webdynpro app that makes JCO calls to ABAP.
So when i open the abap debugger (debugging remotely from the java webdynpro) i can see that sy-uname
is in fact the user that logged into the portal....
What I am wondering is this....
Is there a way to get a unique session id (or guid) on the abap side for that users session? when the user logs off of the portal, there session closes on the abap side as well...if they logged into the portal then they
would have a new session on the abap side as well....
I need to find a way to get this session id on the abap side.

maybe this function module?
TH_GET_SESSION_ID

Similar Messages

  • Passing an XML file from WebDynpro app to ABAP function module

    Hi all,
    I'm stuck with a problem, and am hoping one of you could let me know how to proceed:
    I need to pass an XML file (or at least the entire content of the XML) from my WebDynpro application to a backend ABAP function module. What I tried was this:
    In my WebDynpro app, I read the XML and convert the content into one long string (using java.io.FileReader and java.io.BufferedReader). In my ABAP function module I created an import parameter of type String. I then imported the ABAP Function module into my WebDynpro app as a model. I then tried to pass the XML string to the ABAP module. What happens is this:
    If the size of the string (XML) happens to be less than 255 characters, then it works. That is, the string is passed to the ABAP function module and I can see the contents. However, if the XML string happens to be greater than 255 characters, then it does not work. The string at the ABAP side is empty. Surprisingly, the ABAP module does not throw an error either. It just displays an empty string.
    Could you please tell me what the problem is?
    Thanks & Regards,
    Biju

    Hi Biju ,
    Welcome to SDN.
    If the import parameter is defined as type string it should work, however did you check whether your application pass it properly?
    I have applications using strings as import parameters working fine. (webapplications (BSP) to RFC)
    Regards
    Raja

  • Need expertice opinion on WebDynpro ABAP vs FPM for heavy custom apps

    Hi Experts,
    I have a lot of custom UI development,.for external users in SAP. Most of these applications can be simply developed using WebDynpro ABAP framework. If I do the same development using FPM framework I may need to do lot of reaseach espcially controling the UI behaviours like hiding, changing table cell  colors based on the data, manipulating the UI behavior in the runtime, lot more like this.
    The question I have is , which one is the right tool for my development FPM vs WebDynpro ABAP, what is the value in building the same apps in FPM rather then WebDynpro ABAP? If I develop these apps in WebDynpro ABAP does my client loose any new capabilities in he future releases? are any other drawbacks?
    The challenge i see the FPM Feeder classses doesnt have lot of interfaces other then few like ( IF_FPM_GUIBB_FORM, IF_FPM_GUIBB_FORM_REPEATER,IF_FPM_GUIBB_LIST,IF_FPM_GUIBB_SEARCH,IF_FPM_GUIBB_TREE,IF_FPM_GUIBB_LAUNCHPAD )
    to extend more custom UI functionalities, and the other thing I may need to invest lot of time in reseacrhing and analysing the framework events etc....Please can you shed some light on it and put me in right direction.
    Appreciate your time and help.
    Thanks
    Krishna

    Hello Krishna,
    the whole story revolves around reusability and abstraction, extensibility atleast in this context.
    FPM offers more abstraction than Webdynpro. i am sure we all appreciate the standard webdynpro components for ALV, Value help, as this is something we could reuse and if we build our components that it manipulates itself with the help of configuration, customization and personalization.
    So all the Standard SAP Dev could be enhanced (not modified) by simple, configuration, FPM is built around this concept.
    So if you want to do custom development, which could be extended for your different customers with minimal efforts, you could go for FPM.
    So here are some takeaways
    1) FPM offers more abstraction than Webdynpro
    2) FPM offers more reusability
    3) Say manipulating the UI behaviour and say some customers wants view1 first and other doesnt want view 1 and wants only view 2. so in FPM you could simply do it with different configuration. and with Webdynpro, you need to manage this dynamically based on certain application parameter or you may end up copying certain comp,,or you use different usage,,,,and you could calibrate this.
    Regarding limitation with FPM interfaces, could you explictly share what custom development you intend to do and in worst cases, you could always use freestyle UIBB,, which is webdynpro abap
    in that scenario, atleast wiring, application config(app parameter, combination of webdynpro, with thier respective config),,could be reused.
    Regards
    Anurag Chopra

  • How to consume a ABAP webservice in a  webdynpro app?

    Hi,
    I have a BAPI in ABAP that is exposed as a webservice. I want to use this to build a webdynpro app so that i can consume this webservice. This BAPI returns the Employee data. As soon as the person logs into the portal i am going to pass his login id to this BAPI so that it retrieves the Employee data for that user id. But i need to know the procedure of consuming this webservice in a webdynpro app. Any pointers in this regard will be greatly appreciated.
    Thanks,
    Arun E V

    Hi Arun,
    Consumption of a web service is univesal I guess so it wont matter if it is an ABAP webservice. For consumtion of webservice in Web Dynpro you can go through the following tutorials
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20an%20email-client%20using%20web%20dynpro%20and%20web%20services.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20an%20email-client%20using%20web%20dynpro%20and%20web%20services.pdf</a>
    Do reward points if it helps
    Regards
    Sid

  • Consuming ABAP Webservice in Webdynpro app

    Hi,
    I have wrote a webdynpro app for consuming ABAP webservice. I used the procedure in the link below
    http://wiki.sdn.sap.com/wiki/display/WDJava/ConsumingABAPWebServiceinJavaWD
    Everything seemed to be went well, I created model and Webservice destinations. I have written the code for calling the webservice, which does not return data as part of response. I mean though the RFC returns data at the backend,its not showing the returned records in the webdynpro table.
    I have also tried checking the same by setting external break point. when the webservice is executed from my webdynpro app,it goes to the ABAP debugger and i could clearly see the records in the export parameters of RFC,but the same is not returned in the reponse object.
    Could any one let me know what could be missing. Any help is greatly appreciated?
    I have used the following code in Init method of my View
    Request_ZMYRFC input=new Request_ZMYRFC (model);
    wdContext.nodeRequest_ZMYRFC ().bind(input);
    ZMYRFC  req= new ZMYRFC (model);
    req.setPUserid("EDLAS00C");
    req.setPLtc("E");
    input.setMYRFC (req);
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
        try
        wdContext.currentRequest_ZMYRFCElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
          wdContext.nodeZMYRFCResponse().invalidate();
          wdContext.nodeReturn_res().invalidate();
         wdContext.nodeItem_res_ret().invalidate();
          wdContext.nodeILtcg_res().invalidate();
          wdContext.nodeItem_res_ltcg().invalidate();
        catch(Exception e)
          manager.reportException(e.getMessage(), false);
    Thanks
    Santhosh

    santosh,
    Check provider system defination in nwa for webservice.After this mapp the provider system and service group after wd app deployed.This is mandatory while consuming webservice in webdynpro for latest versions of CE7.11 or later.for reference check this article/document. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46
    Thanks,
    Murthy.
    Edited by: Murthy Karaka on Mar 22, 2010 12:59 PM

  • Replacing WebDynpro for Java with Flex 3 Apps

    Hi there, I am new in developing Flex 3 app.
    I know how to use web Services with Flex and so on. But the my question how can I replace WebDynpro Apps in SAP NetWeaver portal. What do I have to do?
    How can I integrate Flex App in Portal without using the Visual Composer?
    Best regards Jay

    Hi Jan,
    Below check the below weblog. It may help you.
    Using Flex in SAP Web applications (without Adobe Flash Islands)
    Raghu

  • Need help with validation of SSNumber in ESS US Personal Data WebDynpro app

    Hi,
       We're using ESS /SAP Netweaver 2004....
    When I make the Soc Sec#  visible (changing the Java webdynpro app ess.us.fam the dependents update form in ESS) and trying to make this field not mandatory, I get strange results...
    The Gender field that was mandatory before is now not treated as Required after I select the Review button, but this SSN Text that I made visible is treated as Mandatory with a Red box saying This field is required....
    I guess the Required (state) attribute in the InputField properties is only for showing the red asterisk, but the actual mandatory logic is done somewhere else???..Is this somewhere in the webdynpro app or in the SAP backend...
    This app uses the structure HCMT_BSP_PA_US_R0021...
    Can anyone point me to where this validation is done so I can change it to what I need,
    Thanks,
    Venkatesh

    Hello ,
    I am working on EP7.0 ERP05 NW04s . I want to make the Social Security Number field mandatory on the Family Members Detail (Edit) , ...I want to know what's the procedure to do that...
    Any help would be highly appreciated.

  • Webdynpro ABAP application integration with portal

    Hi,
          Can someone provide me the complete documentation for
           1. webdynpro ABAP application development and
           2. webdynpro ABAP application  integration with enterprise  portal.
    Thanks...
    Kundan

    hi Kundan ,
    design pattern or paradigm followed by Webdynpro ABAP is
      MVC concept
               M-Model
               V- View
                C-Controller
    and cms with the advantages like Structuring the programming
         Creation of easily manageable application blocks
         Reusability of whole components
    for more documentation about WD ABAP , refer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/3545415ea6f523e10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/nw-ui?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
    SAP netweaver provides the integrationof ESA , for integartion netweaver provides us wid the People Integartion
    refer
    http://help.sap.com/saphelp_nw70/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    as well
    I hope it helps
    rgds,
    amit

  • Need help with validation of SSNumber in ESS US Dependent WebDynpro app

    Hi,
    We're using ESS /SAP Netweaver 2004....
    When I make the Soc Sec# visible (changing the Java webdynpro app ess.us.fam the dependents update form in ESS) and trying to make this field not mandatory, I get strange results...
    The Gender field that was mandatory before is now not treated as Required after I select the Review button, but this SSN Text that I made visible is treated as Mandatory with a Red box saying This field is required....
    I guess the Required (state) attribute in the InputField properties is only for showing the red asterisk, but the actual mandatory logic is done somewhere else???..Is this somewhere in the webdynpro app or in the SAP backend...
    This app uses the structure HCMT_BSP_PA_US_R0021...
    Can anyone point me to where this validation is done so I can change it to what I need,
    Thanks,
    Venkatesh

    Thanks for the replies folks...
    I had to go to the ESS Config in the back end (transaction SM30)
    and make changes to the backend maintenance table V_T588MFPROPC
    Thanks,
    Venkatesh

  • Please guide me for user authentication and authorization in WebDynPro App

    Hi,
        I just study the WebDynPro to develop the SAP Portal. I've ever developed the Web-based App using J2EE. So when i developed the Web-based App i have to develop the control of the user authentication and authorization on each page for example ,checking the session of the user whether they can access this page or whether session is expired or not,. So i have no idea with the WebDynPro and the SAP Portal because i never had experience for both WebDynPro and Portal.
    I need to ask you some question to clarify my doubt :
    1. SAP Portal  is web page that include every enterprise application with in one page and user log-in to them just on time, isn't it?
    2. If i integrate WebDynPro with SAP Portal, which one will do the authentication and authorization?. I mean that, Do i have to develop the code to check authentication and authorization in the WebDynPro App or Let the SAP Portal manage them?
    3.Could you please suggest the best practice for authentication and authorization in webDynPro.
    Many Thanks
    Noppong J

    in most case you don't have to write code to deal with session, authentication and authorization.
    1. yes,
    2. no, no code needed. you just set an attribute to your application, which make the the authentication required. when user access this page, portal will display the logon page
    3 you can put some authorization related code in web dynpro for specific requirement, search this doc "Protecting Access to the Web Dynpro Car Rental Application Using UME Permissions"

  • As of 3/30 when using the App for Facebook, when I log off of Facebook, it keeps me permanently logged into Facebook. If I use Safari to log into Facebook, I have no problem logging off. Is there a problem with the Facebook App??

    As of 3/30/13, when logging off of Facebook using the Facebook App, it will not log me out. It is now permanently keeping me logged in. No problem logging off of Facebook when I do not use the App. Is there anyone that can tell me why this is happening and what I need to do to Logout of Facebook. I like using the App for Facebook but I also want to be able to log off, I do not like to stay logged in.  Is there something different with the latest Apple software I downloaded a couple of weeks ago, IOS 6.1.3?

    it also could be something different, if you try google hangounts. change password and log out it still recieves notifications. its how apples handles the "channel" notification system for apps that recieve notifications or do backroung sync, and im sure at some point that security hole will be a hijack point.  i think its called XO auth. and is why it can maintain session even after an apperant logout
    if you go to the app and it shows you have logged out but are still recieving notifications then that is evidence of the bug.
    also look and find the option for "keep me logged in" i remember in the past that would allow a autologin after logout. also if the app does NOT save the logout status correctly in its "memory" the above refereced system will auto login you with the XO app authentication.
    if there really is no keep me logged in option. then what crh24 said, they designed it delibertly to keep you logged in. though i never remember a problem on my ios 6,. are you on ios 7, bunny hop?

  • SSO for a Webdynpro App

    Hi Everyone hope you can help.
    All i would like to know is:
    If you have created a webdynpro and would like to bypass the default way of obtaining a JCO connection i.e)
    Not using the GUI under the webdynpro admin console in the portal and defining the JCO (Meta and Model) there.
    I have looked everywere and i can not find any documentation supporting "Writing your own JCO connection" inside the webdynpro app as a pooled connection.
    I used to do it in EP5 like this:
    public class Test {
    private IPortalComponentRequest request;  //used for SSO
    public void setRequest(IPortalComponentRequest value){
          request = value;
    private void BuildConnection(){
          IJCOClientService clientService = (IJCOClientService) request.getService(IJCOClientService.KEY);
          poolEntry =
    clientService.getJCOClientPoolEntry("PROD_SYSTEM", request);
          sapConnection = poolEntry.getJCOClient();*/ }
    private void closeConnection(){
          poolEntry.release();
    } //end Juan
    The API that i used is not included in the webdynpro development lib.
    Can anyone show me how to get the SSO cookie using the webdynpro API inside the webdynpro app. I need this cookie to include it into the required parameters during the JCO connection creation.
    Thanks in advance!

    Hi Diego
    There is tons of information on this.
    Check this post
    Re: Problem accessing R/3 with SSO ticket from the EP6.0
    and also links in this post.
    For Web dynpro app to R/3 these simple points should help
    -> Go to your Security provider service in VA , select the authentication template ticket and provide options for CreateTicketLoginModule with the one given in this document
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/ac3d41a5a9ef23e10000000a155106/content.htm
    ->Go to your key storage service in VA and export out the certificate and import this into R/3
    ->Go to your Content administration for Web Dynpro and switch the security settings in your JCO destinations to use 'useSSO' instead of userid and password , this applies only for the destination that fetches application data. The meta data destination can be configured to use userid and password.
    Thats about it.
    Regards
    Pran
    P.S is this '=(' the mexican hat

  • I am trying to reinstall Creative Cloud with all my apps, however I have a download error: Please retry and try again or contact customer support??

    I am trying to reinstall Creative Cloud with all my apps, however I have a download error: Please retry and try again or contact customer support??

    WHAT download error?
    A12... download & install error http://forums.adobe.com/thread/1289484
    -more A12... discussion http://forums.adobe.com/thread/1045283?tstart=0
    or
    Code 6 & Code 7 http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    or
    Error 46 may be caused by Comodo internet security
    -Comodo may kill install https://forums.adobe.com/thread/1460361
    or
    What is the exact error code that you see?
    -try some steps such as changing browsers and turning off your firewall
    -also flush your browser cache so you are starting with a fresh browser
    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Associate Session ID with Client ip for improved security

    Hi,
    Id like to know if it's possible to associate session id with some more info like client's ip address and user agent, to ensure that no one can access my app by cookie injection.
    Do anyone knows what's the best/recomended/iWouldDoThisIfIWhereYou approach?
    Thanks!

    I don't think I've seen anything like this with WebLogic Server. I think the right approach in this case is to use SSL with httpOnly (default) and then unless someone has local access to your machine or the remote server (you have bigger problems!) then they can't hijack your session with a man-in-the-middle.
    You can email me at my user id at oracle.com if you have a concrete requirement.

  • Plz help with a java app

    Dear experts,
    I have a java application in form of a running thread that periodically does an activity ie running a BAPI in
    SAP.I like to schedule this application at evening time.
    Problem is that incase somebody remotely login to this Windows server using RDP and leave an open RDP session,
    two instance starts one on RDP and other on console.
    Now to overcome this problem i devised a solution myself that incase application detects session is remote
    then it should exit itself. This is mentioned in forum undergiven.
    http://forums.sun.com/thread.jspa?threadID=5410674&messageID=10835701#10835701
    My perception behind carrying out this development was that incase session starts in remote then
    app will automatically close and finally letting running only in console.
    Now what happens is that scheduled task doesnot start at all on console ,incase console as well as RDP are open.
    Instead it starts only on RDP failing instantly.So in nutshell,task doesnot start at all.My app log say that
    service tried to open in remote session and got closed.Plz help as i have no way out.
    My second question is that if i schedule task using RDP on remote server,will it run on Remote,console or both
    of them.
    Regards,
    Aditya.

    Adi1000 wrote:
    My app also generates a .lock file and make sure that only one instance is running.Still problem remains unresolvedAnd combining your other thread with the word "also" from this post just exacerbates your "problem". Also, the "lock" file was not to prevent two simulteneous runs (that leads to very distasteful race condition), but rather to prevent two runs within a set period of time when combined with the ServerSocket approach to prevent simulteneous runs.

Maybe you are looking for