Get SSO Ticket from RFC call

Hi,
i want to connect  to a SAP Portal Webservice with a widget, after i used the SAP Widget Foundation to execute some RFC calls.
I wonder if there is a possiblitity to get the mysapsoo2 ticket from the SAP RFC response, which i can use than for connecting to the portal.
Thank you very much for your help!
Best regards
Jochen

Hi Jochen,
Are you wanting to make the service call directly from the Widget? Can you use the foundation for the service call and reuse the credentials from there?
Regards
John

Similar Messages

  • Get Exception Information from RFC Response Message

    Hi All,
    I want to make RFC call from ABAP system to XI RFC Adapter. I found that on the caller side, the RFC has the following interface for RFC exception.
    Exception
    __Name
    __Text
    __Message
    ____ID
    ____Number
    __Attributes
    ____V1
    ____V2
    ____V3
    ____V4
    Can anybody tell me how to get the info contained by this exception structure from RFC caller side (ABAP program)?
    Thanks, Jerome

    Hi Madan,
    My problem is how to display the exception information on the caller side. The called side is able to throw exception now.
    Thanks, Jerome

  • Problem accessing R/3 with SSO ticket from the EP6.0

    Hi all,
    I have seen this thread: Problem accessing R/3 with SSO ticket from the EP6.0
    I know that it is possible to read SSO ticket from the Cookie in WebDynpro application.
    Now we are at the first step, we don't know how to read SSO ticket from the Cookie in WebDynpro application with java code.
    So anyone can help us?

    Hi,
    This has been discussed in a previous forum.Check this link.A code snippet is also there to read a cookie in webdynpro with this question
    How to implement SSO between Portal, Webdypro and ABAP system?
    I am not able to send the link exactly.
    Regards,
    Sowjanya.
    Message was edited by: Sowjanya Chintala

  • SAP BW User getting locked by BO RFC calls

    Hi,
    we are encountering a problem with BO RFC calls locking SAP BW users that recently changed their password in BW.
    Description of the problem in the ticket we raised at the SAP support:
    SAP BO 4.1 SP2 Patch 4, linux installation
    Backend: SAP BW 7.01 EHP8
    BICS interface with SAP authentication
    One of our users gets locked again and again in SAP BW (P19). The cause is a RFC connection that the BusinessObjects server (P59) tries to establish. The user used SAP BO last Friday for the last time and had to change his password in P19 this Tuesday. We think that there is some
    process within SAP BO still trying to connect to SAP BW from time to time, using the old password. There is no open session visible for that user in the CMC. User is even getting locked when not in the office and during night time. RFC calls are established almost regualary every hour.
    We already had this behaviour in our test-system. Restarting the BO-Server solved it. However, this is not the solution we want to use
    in the productive environment. There has to be some way to kill the process that uses the old password on the BO server without restarting
    the whole server. We do not understand why BO would still try to connect to BW with the old password - this has to be some kind of a bug.
    Meanwhile the error disappeared for the first user (some days after it started, maybe the BO process ran into a timeout). However, other users started having the same behaviour after changing their password.
    Our basis team tried to check the log files for advanced information on the conversations between BO and BW, but did not find any hints on which BO process might try to establish the connections.
    The SAP support seems to be a little helpless at the moment...
    Has anyone had similar problems?
    Regards,
    Robert

    Hi again,
    additional information: after approximately one week after the error appeared for the first time BO stops trying to establish the rfc connection for this specific user. Almost as if the "old-password-BO-process" ran into a 1 week timeout or something like that.
    The problem is really strange. The SAP support is still not able to tell us how the gather the information they require.
    Regards,
    Robert

  • How to get the data from RFC ?

    Hi,
    I am using the Import  Adaptive RFC Model, where the RFC display the amatrial Information date.
    But when I deploy the application I am not getting the data.
    How to test the bindings are correct as well as is any lines of code has to be written in the Implementation part?
    Please suggest
    regards,
    CSP

    Hi,
    First, drag and drop the Z<RFCNode>_Input node from model to custum controller.
    From there, u can select both input and output parameters.
    After that, Make sure that In custom controller's init(), the following code is present
    Z<RFCNode>_Input input=new Z<RFCNode>_Input();
    wdContext.nodeZ<RFCNode>_Input().bind(input);
    Create execute() method in custom controller and  in execute method, check whether u added
    wdContext.currentZ<RFCNode>_InputElement().set<InputParam>(inputparametervalue); // If any i/p parameter is there. You can set this from view also if u mapped the RFC node to view
    wdContext.currentZ<RFCNode>_InputElement().modelObject().execute();
    Also check all mappings are done correctly.
    After saving all, Call execute() method from view as wdThis.wdget<custcontroller>().execute();
    After execute(), u will get the output from node Output, which is inside Z<RFCNode>_Input  node.
    Regards
    Fahad Hamsa

  • Passing chinese character from RFC call between unicode & non unicode syst.

    Hi Experts,
    I am making a RFC call from an ABAP in non unicode system to a Function module in Unicode system and filling the itab fields in ABAP by using move statement and using offset in order to populate amount fields correctly from flat structure tables returned by function module. But i am facing problem in getting chinese characters correctly in return from the Remote Function Module.
            CALL FUNCTION 'ZFXX_GET_CLR_OI'
              STARTING NEW TASK W_TASKNAME
              DESTINATION S_RFCDES-LOW
              PERFORMING F3100_GET_RFC_DATA ON END OF TASK
              EXPORTING
                P_WAERS               = P_WAERS             "Screen Curr
                P_AUGDT               = P_AUGDT             "Clearing date
                P_BUKRS               = P_BUKRS             "Comp Code
              TABLES
                T_SEL_TABLE           = T_SEL_TABLE
                T_OUTPUT              = T_MCDATA
                T_ERRORS              = T_EMCDATA
              EXCEPTIONS
                COMMUNICATION_FAILURE = 1
                SYSTEM_FAILURE        = 2
                OTHERS                = 3.
           MOVE : t_mcdata1-line+0(32)   TO t_succs-awsys,
                   t_mcdata1-line+32(4)   TO t_succs-bukrs,
                   t_mcdata1-line+36(10)  TO t_succs-belnr,
                   t_mcdata1-line+46(4)   TO t_succs-gjahr,
                   t_mcdata1-line+50(1)   TO t_succs-shkzg,
                   t_mcdata1-line+51(2)   TO t_succs-bschl,
                   t_mcdata1-line+53(4)   TO t_succs-gsber,
                   t_mcdata1-line+57(16)  TO t_succs-dmbtr,
                   t_mcdata1-line+73(16)  TO t_succs-wrbtr,
                   t_mcdata1-line+89(5)   TO t_succs-pswsl,
                   t_mcdata1-line+94(6)   TO t_succs-vbund,
                   t_mcdata1-line+100(10) TO t_succs-hkont,
                   t_mcdata1-line+110(10) TO t_succs-prctr,
                   t_mcdata1-line+120(16) TO t_succs-dmbe2,
                   t_mcdata1-line+136(20) TO t_succs-txt20.
            APPEND t_succs.
    Can anybody suggest or advice me on it ? Any help or suggestion would be appreciated.
    Thanks in advance,
    Akash

    .

  • Update from RFC call cor8

    One of the RFC calls has not updated vbk table.  This came up as an issue, which is found in sm13.
    what exactly needed to be checked and what correctivie action required to solve the issue.
    Transaction from where RFC was made:  COR8
    Needed advise please.

    You meant that user use COR8 inside SAP but somehow there is an error during save? It can be the purely technical problem (database problem). What is the error message in SM13? Can you perform repeat update successfully?
    I think you are asking about further simulation of the particular RF call using an simulation icon to see whether the further call works well or not?  Is this your question.
    It is quite difficult to analyze the problem. Maybe if you can post the screen shot (SM13 error log) somewhere and let us see. It may help.
    I can send you the screen of tthe issue but for this i would request you to provide your email id., if possible.  So that i will be able to send the details screen.

  • Assigning value returned from RFC call to a global variable

    If I have an RFC call to SAP how can I assign the value returned to a global variable on my data services job?

    Hi,
    For now, it seems u haven't specified the destination properly. the call function statement must be suffixed with the 'destination' addition to make sure that the function call is an RFC and the particular function be executed at the desired destination.

  • Getting Return values from RFC function call with visual basic

    Hi,
    I am creating a sample app to connect to a SAP system which call its RFC functions created with ABAP. It was known that the function will return more than 1 return values.
       SAP Function name ==> "ZFMTP_RFC_GET_RESULT"
            Export parameters (to SAP):
                    - Student Name [char 10]         ==> "STUNAME"
                    - Student ID         [char 20]        ==> "STUID"
           Return values (From SAP):
                    - Results [char 10]        ==> "RESULT"
                    - Remarks [char 200]        ==> "REMARKS"
    i have managed to get sample codes for connecting and call a RFC function with vb but they only get a return value. How do i retrieve multiple return values like the above function "RESULT" and "REMARKS"?
    Here's my vb code to accessing the function
            Dim R3 As Object
            Dim FBFunc As Object
            Dim returnFunc As Boolean
            Dim connected As Boolean
            R3 = CreateObject("SAP.Functions")
            R3.Connection.Client = "000"
            R3.Connection.User = "BCUSER"
            R3.Connection.Password = "minisap"
            R3.Connection.Language = "DE"
            R3.Connection.System = "dtsystem"
            R3.Connection.Applicationserver = "xxx.xxx.xxx.xxx" 
            connected = R3.Connection.Logon(0, True)
            If connected <> True Then
                MsgBox("Unable to connect to SAP")
            End If
            FBFunc = R3.add("ZFMTP_RFC_GET_RESULT")
            FBFunc.exports("STUNAME") = "Jonny"
            FBFunc.exports("STUID") = "12345"
            returnFunc = FBFunc.Call() <<== How do i get the return value? or RESULT and REMARKS of the RFC Function?
    thanks alot.
    Edited by: Eugene Tan on Mar 4, 2008 7:17 AM

    Hi Gregor,
    Thanks for the link....i am having some doubts with the codes, hope you can clarify them for me if you know the codes..
    Below is the code snippet.
    Set impReturn = CHPASS_FN.Imports("RETURN")  <<=== is RETURN the standard keyword to get a                                                                                return object?
      expPassword.Value = currpass
      expNewPass.Value = newpass
      expFillRet.Value = "1"
    ''' Call change password function
      If CHPASS_FN.Call = True Then
        outFile.Write (", Called Function")
        Message = impReturn("MESSAGE") <<==== So if i have 3 return values..i just replace with the return                                                               value variable names?
        outFile.WriteLine " : " & Message
      Else
        outFile.Write (", Call to function failed")
      End If
    thanks alot...all your help is very appreciated.

  • JCo's StatefulServerExample problem (returning a value from RFC call?)

    Hi,
    I'm using JCo3 and want to run StatefulServerExample sample program. I've created the ABAP-side code according to JCo's docs (2 wrappers and report ZJCO_STATEFUL_COUNTER). I'm connecting to SAP CRM. I've successfully runned all other sample programs.
    I've got a problem with receiving data from the JCo server to CRM report. The error is reported on the SAP's side:
    error:          CALL_FUNCTION_WRONG_VALUE_LENG
    description:    Incorrect field length for 'Remote Function Call'.
    error analysis:
    A data error occured when executing a Remote Function Call
    The length of one of the fields is incorrect.
    Length of source field... 1
    Length of target field .. 4
    Data type of field....... 8
    (Data type 0=C, 1=D, 2=P, 3=T, 4=X, 6=N, 7=F, 8=I)
    error is triggered by the call to 'Z_GET_COUNTER' (see code below).
    There is no problem with preceding calls to JCo server which do not return anything.
    I would appreciate any help with this problem!
    Piotr
    Problematic report code:
    *& Report  ZJCO_STATEFUL_COUNTER
    REPORT  ZJCO_STATEFUL_COUNTER.
    PARAMETER dest TYPE RFCDEST.
    DATA value TYPE I.
    DATA loops TYPE i VALUE 5.
    DO loops TIMES.
      CALL FUNCTION 'Z_INCREMENT_COUNTER' DESTINATION dest.
    ENDDO.
    CALL FUNCTION 'Z_GET_COUNTER' DESTINATION dest
      IMPORTING
        GET_VALUE = value.
    IF value <> loops.
      write: / 'Error expecting ', loops, ', but get ', value,
      ' as counter value'.
    ELSE.
      write: / 'success'.
    ENDIF.

    It seems to me that the ABAP code in the example is wrong - it should be INT1 instead of i:
    DATA value TYPE INT1.
    Now it works.

  • How to get the values from form calls in user exit?

    Hi all,
    I am not getting a specific value readily in an user exit.
    ?Can any one tell me how to find what are the fields,tables available in various form calls(visible while debugging) in an user exit.
    For example sapxkl is one ofthe callls...(sapxkl)<table>[] will hold some data.how to find what r the values available for <table>.
    Thanks.
    Edited by: sanjay_ask on Apr 16, 2010 10:43 PM

    HI ,
    Use this line of code
      field-symbols: <l_fs> type any.
      data: l_value type char20.
    Get Plant
      l_value =  '(SAPLCEI0)GV_WERKS'. " Here give the program name and variable name
      assign (l_value) to <l_fs>.
      v_werks = <l_fs>.         " Instead of V_werks use you internal table
    Thanks
    Subhankar

  • Get PDF data from RFC and send in email.

    Hello,
    I need to get PO spool PDF from R/3 server into SRM server and send email from SRM.
    Code for sending PDF in email is working fine if executed from R/3 .But in SRM server PDF
    in email is not opening in SOST  transaction. Its showing error "Adobe reader cannot open document because either its not a supported file type or the file has ben damaged(for example,it was sent as an email attachment and wasnt correctly decoded).
    Is this due to some server specific settings? Any help is appreciated!

    Hi Kanchan,
    If the generated PDF file is opened properly in R/3 & not in SRM, then it should be a version issue.
    Please check for any relevant note wrt SRM/PDF.
    Best regards,
    Prashant

  • Prob. exec. print job from RFC which im calling Web Dynpro java in Portal

    Hi,
    Ive got a problem executing a print job from an RFC which im calling in Java web Dynpro Application in Portal. Im using an Acess Method G: for Front End Printing but Order gets stuck with the Status "Waiting" "Front end unavailable".
    Any help would be greatly appreciated.
    Thanks in advance!!!

    HI,
    I dont think you would be able to do this. Instead, you need to get the content from RFC into WD java and print from the browser.
    Regards
    Srini
    Edited by: Sinivasan Rajamani on Jun 14, 2010 4:25 AM

  • How to progammatically get Inspection Characteristics from Inspection Plan

    How do I programmatically get Inspection Characteristics from an inspection plan? I am currently getting inspection characteristics from inspection lots via a QM-IDI RFC call (QIRF_SEND_REQUIREMENTS_GET_DAT2), but if the Inspection Characteristic is not in an inspection lot, I don't get it via the RFC call. What BAPI/RFC/IDOCS mechanism can I use from an external subsystem (VB.NET app) to get inspection characteristics (Spec Limits, Target, Operation, Activity) associated with a material in an inspection plan?
    Thanks,
    Ed

    The problem is the SAP system that my external subsystem (VB.NET application using QM-IDI) is interfacing with does not have inspection lots (and the customer is not willing to add inspection lots), so the QM-IDI RFC that I'm using (QIRF_SEND_REQUIREMENTS_GET_DAT2) does not return the inspection characteristics (spec limits, etc) that I require. My customer creates a reference (QP11) with inspection characteristics, then attaches the reference to a Material (QP01). When I try to get the inspection characteristics for the material via QIRF_SEND_REQUIREMENTS_GET_DAT2, I don't get the inspection characteristics because there is no inspection lot associated with the material and inspection characteristics.
    The design is for my external subsystem to do the Material Inspection Characteristic valuation, and then send the valuation results back to SAP. Is there a way to get Material Inspection Characteristics and then send the results back given the SAP setup I described above?
    Thanks,
    Ed

  • RFC calls are taking too many work process -- system knock out

    Hi,
    I have an interface remote function, which is going to be called by a java program.
    Data is going to be sent to the system, processed and sent back syncronous to the caller.
    The calls are working on SAP tables, so I needed to lock and unlock the tables. The java program
    is opening many parallell threads and starts them the same time.
    That means, that the sap system is getting attacked by many rfc calls on the same function, with the
    same user at the same time.
    The system has in development 15 dialog work processes set up. If I run that with up to 15 parallell rfc calls, all is working ok!
    Let me now explain the problem:
    I have programmed the table lock, that it´s trying to lock the table at the beginning of the function.
    If it´s not possible it tries it again. At first I have just inserted a one second wait and let that run maximum 3 times. If the table is still locked, it breaks down with an error.
    But because the calls come nearly to exactly the same time to the system, the first call locks all others out, and the rest ran out of the 3 seconds and ended up with an error.
    So I tried to build an endless loop, which is just ending, when the table could be locked again, or when the runtime of 5 seconds has reached. That means, it´s not waiting for a second, if the table is locked, but it´s trying again and again up to 5 seconds.
    That is all ok, because sometime the table is free again and all calls are then processed alright.
    BUT if I now run that with MORE than 15 rfc calls from the java program (15 dialog processes are set up), the system got knocked out! It is using all free work processes for the RFC calls and get stucked. I think, the first call is locking the table, and the got stopped by the system. And then all the others are running in the endless loop....
    So, shouldn´t be there a limit for dialog processes taken by RFC calls? For example here for this user? In this case it should f.e. be set to 10 free processes with 5, which are reserved for other users...
    Any advices?
    The second is, how can I change the lock mechanism, that I don´t use an endless loop? Waiting for one second and doing that 3 times, is not good enough... Because all the rfc calls wait then for one second, up to 3 times, and end with an error....
    Is it possible to wait for half seconds, or defined milli seconds?
    Thank you for all advices!

    Hi,
    What I have understood is you are trying to lock the table in a loop and just checking the duration by explicitly putting wait statement.
    Hope you are NOT locking the entire table rather a particular record in each lock.
    No need to use explicit wait statement rather its better to let SAP thinks when to lock the table T1 when its already locked by another work process. So just set the wait parameter for the Enqueue function module as 'X' and check how it behaves. Until the table is not unlocked the process will wait.
    If you see the wait parameter for the Enqueue function module is not available then create your own lock object for the table and use that. Make sure its getting dequeued else you can understand better
    Cheers
    Somnath

Maybe you are looking for

  • Partition failed with the error:  No space left on device

    I used Boot Camp Assistant (for instaling Windows XP) and there was Partition error: +*The disc cannot be partioned because some files cannot be moved.*+ +Back up the disk and use Disk Utility to format it as a single Mac OS Extended (journaled) volu

  • How to include .php file in .shtml using SSI

    Hi, I've just finished with my "Contact Us form" for my website and have some issues with running it. I have a .shtml file http://mydomain.com/contact-us.shtml in wich I'd like to include a contact us form file http://mydomain.com/includes/ContactUs.

  • My chat tabs in facebook do not close with esc.

    I have tried in other browser and it works so i think there is problem with the Mozilla Firefox. I have cleaned the cookies, cache, restarting Mozilla in safe mode, reinstalled Mozilla.

  • Database Resource Plan not working...

    DbVersion: 10.2.0.4 For some reason my resource plan is not taking effect. I've created 4 resource consumer groups. I've created a plan utilizing these consumer groups. The plan is enabled and is the top plan. The resource_manager_plan parameter is s

  • Interact with SAP

    Hi @ALL, can anyone say me, how can i call an RFC (SAP) from an PL/SQL-Block? the technic must be stable! every hint are welcome! nice day, daniel