Two bapi calls in the same session using PI

Hi,
I have a file to RFC scenario wherein I need to call a BAPI (L_TO_CANCEL) and then again, I need to call another bapi called
"BAPI_TRANSACTION_COMMIT" in the same session. My question is, if I use RFC adapter, do I have to call the commit bapi again?
If yes, is there anyway I can do that ?
I believe that will be the case only if I use a proxy. Is that correct ?
The requirement is to call these two BAPIs and finally include a success or error message in the response.
Thanks.

Inside the BPM you do not have a specific exception message. You can do an exception handling based on the exception, but the excpetion itself is not a real message.
If you want a real message, you could create an ABAP proxy, which has a message like this:
root
  - part1
       - rfc response
   - part2
        - error text
then you can split this inside BPM and send a the response or the error.
Of course there are other possible solutions.

Similar Messages

  • How to differentiate multiple aRFC calls into the same session.

    Hi experts,
    I have following problem:
    I start multiple aRFC calls in the same remote session by using the same task ID for each call and use
    KEEPING TASK when receiving the results.
    The calls are all of the same RFM (e.g get_status of obj), just calling parameters changes ( in the generic example, the parameter: obj).
    In the receive method, I differentiate to which obj the result is related by exporting the obj_id on success of the RFM.
    My problem is when the status call fails. I just get an error message explaining what the problem is. But I don't get the exporting parameters.
    Do you have any idea how to solve this problem?
    kind regards,
           Sahla

    This is actually the workaround I made to go on.
    Actually the underlying logic in the RFM for getting the status is based on a synchronous call, as to say when you get the exception you know of which request it comes from.
    Therefore the exception messages and their parameters are well defined and according to the error situation filled with necessary data explaining the exception situation.
    Unfortunately the excpetion class used is based on the message T100 interface and has the limitations of just four message parameters and each of 50 charcter length.
    I overwrite the last message parameter with the needed obj parameter, taking the risk to overwrite valuable system responses explaining the situation.
    I thought there could be a more elegant solution from the framework itself.
    kind regards,
         Sahla

  • How to track the same session using both jsp and servlets

    Hello, guys:
    "how to use jsp and servlet to track the same session",
    it seems to me my logoff.jsp never realize the session I established in my servlets.
    Here is how I set my session in my servlets:
    "     HttpSession session = req.getSession(true);
    session.setAttribute("userid",suserid);"
    Here is how I invalidate my session in my logoff.jsp
    " <%@ page language= "java" %>
    <%@ page import="javax.servlet.http.HttpSession" %>
    <%@ page session="false"%>
    Our Session id is : <%= session.getId() %>
    <% session.removeAttribute("userid");
    session.invalidate();
    %>
    Our Session id is : <%= session.getId() %>"
    but when I try to logoff using the logoff.jsp
    I always get following error message.
    "/home/jiao/jsp_webserver/tomcat/work/Standalone/localhost/syllabus/htmls/logoff_jsp.java:50: cannot resolve symbol
    symbol : variable session
    location: class org.apache.jsp.logoff_jsp
    out.print( session.getId() );"
    T.I.A.
    [Edited by: jiveadmin on Jun 18, 2003 10:32 AM]
    [Edited by: jiveadmin on Jun 18, 2003 10:33 AM]

    So,
    <%@ page session="false"%>
    That means the jsp never instantiates the build in session object.
    <%@ page session="true"%>
    means jsp will instantiates a session object if there are no existing ones
    how about I just delete the line,
    does that mean the jsp will find the existing session object for me?
    So I can do something like
    Our Session id is : <%= session.getId() %>
    <% session.removeAttribute("userid");
    session.invalidate();
    %>
    directly.
    T.I.A.

  • Can I have two Time Capsules in the same network, use one as Time Machine and other to expand network?

    I need to purchase a divice to expand my Wi-fi network. I was looking at the AirPort Extreme, but a friend has a brand new Time Capsule for sale. So, for the same price of the AirPort Extreme, I´m getting the Time Capsule.
    I already own one and using it as Time Machine and wireless router. If I decide to purchase another TC would it have any conflict with the one that I already have?
    Is it possible to use one as Time Machine and wireless router and the other to just expand network and storage only (not as Time Machine)?

    If I decide to purchase another TC would it have any conflict with the one that I already have?
    No
    Is it possible to use one as Time Machine and wireless router and the other to just expand network and storage only (not as Time Machine)?
    Yes. The important thing to remember is that the "extending" Time Capsule must be located where it can receive a strong wireless signal from your "main" Time Capsule.

  • How to insert into two differents tables at the same time

    Hi
    I'm newer using JDev, (version 3.1.1.2 cause the OAS seems to support just the JSP 1.0)
    and I want to insert into two differents tables at the same time using one view.
    How can I do that ?
    TIA
    Edgar

    Oracle 8i supports 'INSTEAD OF' triggers on object views so you could use a process similar to the following:
    1. Create an object view that joins your two tables. 'CREATE OR REPLACE VIEW test AS SELECT d.deptno, d.deptname, e.empname FROM DEPT d, EMP E'.
    2. Create an INSTEAD OF trigger on the view.
    3. Put code in the trigger that looks at the :NEW values being processed and determines which columns should be used to INSERT or UPDATE for each table. Crude pseudo-code might be:
    IF :NEW.deptno NOT IN (SELECT deptno FROM DEPT) THEN
    INSERT INTO dept VALUES(:NEW.deptno, :NEW.deptname);
    INSERT INTO emp VALUES (:NEW.deptno, :NEW.empname);
    ELSE
    IF :NEW.deptname IS NOT NULL THEN
    UPDATE dept SET deptname = :NEW.deptname
    WHERE deptno = :NEW.deptno;
    END IF;
    IF :NEW.empname IS NOT NULL THEN
    UPDATE emp SET empname = :NEW.empname
    WHERE deptno = :NEW.deptno;
    Try something along those lines.
    null

  • Is there any way for 2 bluetooth headsets to participate in a FaceTime call on the same device?

    From what I can tell, one cannot use two Bluetooth headsets at the same time, using the built-in reciever. However, it seems as though one can transmit audio to 2 devices using the KOKKIA i10, but the deal breaker is: can one send audio using 2 headets? Is there some obscure version of the Kokkia that will reciever audio as well?

    It sounds like you are using two independent libraries with a common media folder, whereas the plan would have been to ensure that both profiles were using the same library library database. Although you can place this within the Public folder I would normally create a shared library at the root of a drive, e.g. at X:\iTunes where X: is the drive that you want to use. See Make a split library portable for information on moving the library around back into a standard shape.
    As for duplicates, Apple's official advice on duplicates is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls such as lost ratings and playlist membership.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See thisthread for background, this post for detailed instructions, and please take note of the warning
    to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed.)
    The most recent version of the script can tidy dead links as long as there is at least one live duplicate to merge stats and playlist membership to and should cope sensibly when the same file has been added via multiple paths.
    tt2

  • Can a report use the same session as a calling form?

    Hi,
    I am using Oracle Forms and Reports 6i. I am wanting to call a report from a form and open it in the same session. The form will insert information into a number of global temporary tables that the report will use to display the query information.
    Is this possible? If so what is it I need to do to acheive this? At the moment I am using the run_product which calls the report with a parameter list. This opens the report fine but in a different session.
    Regards,
    Scott.

    Scott,
    no they don't share the same session. You can use parameter lists and pass them in a call to run_report_object (or run_product if this is the built-in you are using) to the Reports module. When creating the parameter list, you can get the data from either global variables or filed sin Forms. All you need to do is to make sure the equivalent parameter names are created as user parameters in Reports.
    Frank

  • Getting two differents UrlConnection.inputStream() over the same Session

    I need to access two diferents webservices by GET method but to access the second one the session created by the first must be alive. Till now, I got something like the following code but this code doesn�t let session keep alive. I would like to advise that I cannot use web tools like servlets to manage this =/
    DocumentBuilderFactory dbf;  
       DocumentBuilder docBuilder;  
       public ClasseXML(){  
          dbf = DocumentBuilderFactory.newInstance();  
          try {  
             docBuilder = dbf.newDocumentBuilder();  
          } catch (ParserConfigurationException e) {  
             alerta("Parsing error: "+e.getMessage());  
       public void request1(String params) {  
          try{     
             String url = myHost+"/"+params;  
             Document doc = docBuilder.parse( new URL(url).openStream() );  
       public void request2(String params) {  
          try{  
             String url = myHost+"/"+params;  
             System.out.println( url );  
             Document doc = docBuilder.parse( new URL(url).openStream() );  
    ...  

    So you are connecting to Server X, and you want to send two web service requests to that server? And you want the server to process both requests in the same session?
    If that's what you mean, then you have to do whatever the server wants you to do to maintain the session. Often servers send a cookie to the client and require it to be sent back to maintain a session, but that's not the only way. Your first step is to find out how the server is maintaining the session. If there's no published information about that, and you have nobody to ask, then you would have to reverse engineer the requests and responses in a normal session.
    Then you would have to write your code to send the same requests and handle the responses accordingly.

  • Can i use two icloud accounts on the same computer?

    can i use two icloud accounts on the same computer?

    You can have content from two iTunes Store accounts in one library, and multiple libraries on a computer.
    (98306)

  • Two users (on the same Mac) using same RAID simultaneously?

    O.K. I know you should never never ever connect two different Macs to the same RAID unless using Xsan. . .
    How about connecting two users on the same Mac simultaneously?
    In other words, can I have one user manipulating data on the RAID in the background while reading the data using a second user (on the same Mac)?
    Thanks,
    Ed

    That depends on the application in question.
    Since all the data requests are coming from the same Mac, you don't have the issues you would have if you had two different machines talking at the same time.
    However, it now depends on whether the application(s) you're using supports file locks.
    As long as the application that's manipulating the data properly locks the part of the file it's working on, and that the application you're using to read the file reads the locks and knows whether or not it's OK to use that part of the file, you should be OK.

  • Can i use ichat between two separate macs on the same mobile me account?

    Can i use ichat over two separate macs on the same mobile me account?
    I have an imac at home and may be getting a macbook for work. Can i use my mobile me account to chat between the two macs or would i need a mobile me account per mac??

    Hi,
    No.
    You need two names that can login into AIM.
    In iChat you can use the Get an iChat Account which shows after you use the Plus Button in Accounts.
    This will give you a free @mac.com Name
    AIM Names are also free.
    9:31 PM Saturday; July 4, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Using the same photos and music between two user accounts in the same Mac

    Hi,
    I think this question might have already been asked in the forum.
    1. I have one MacBook Pro and two user accounts (One for me and one for my wife)
    2. We are having two seperate iPhones with seperate AppleIDs
    3. We want to maintain the apps / calendar / mail / reminders / contacts as seperate - Through iCloud (Seperate Apple ID approach) - All this is fine
    4. All we want to have it shared is the Music files and the Photo library without duplicating
    I have tried the shared folder approach for the music and having the iTunes point to that directory for the libary location in the preferences but unfortunately if she adds a folder to the library mine does not get updated unless I do a add folder to library and vice versa.
    Whats the best way to deal with the Photos / Music sharing between two user accounts on the same mac
    Thanks
    Shas

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    To give others selective access to your iPhoto library, you have the option of using iCloud Photo Sharing, if the privacy implications don't bother you. The images will be stored temporarily on Apple servers.
    If you want to give full read/write access to more than one user, see the support articles linked below.
    iTunes: How to share music between different accounts on a single computer
    iPhoto: Sharing libraries among multiple users
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • I cant call to a mobile number since yesterday, but can receive call from the same number. I am using iphone 4s. Is there any setting error?

    I can't call to a mobile number since yesterday, but still can receive call from the same number. I am using iphone 4s. Is there any setting error?

    you have to make sure that CFWD Bridge Mode under the Line tab of the SPA9000 where the SPA400 is registered is set to ALL...include VMSP Bridge and XFER Bridge Mode as well..power cycle then check if you are still getting one-way audio
    | isolate! isolate! isolate! |

  • Hello !! Because if I talk daily to the dame Person for FaceTime and two are always in the same place, once day face time no prolem speak for another day and I have to use skype for error appearing face time ? Thanks for your answers.

    Hello !! Because if I talk daily to the same Person for FaceTime and two are always in the same place, once day face time no prolem speak for another day and I have to use skype for error appearing face time ? Thanks for your answers.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
     Cheers, Tom

  • Can I use two separate computers with the same adobe ID.  I want to update my kobo from either unit

    Can I use two separate computers with the same adobe ID.  I want to update my kobo from either unit

    I doubt it is possible to run two instances of iTunes on the computer at the same time.  To do so would require two users to be signed in and running iTunes under each user.
    The better solution would be to either clean up and merge the two libraries or have iTunes running on a second computer.

Maybe you are looking for

  • Print position and borders on custom package

    I have 2 questions related to the print module 1- I have searched the web and couldn't find any indication of precise positioning options for cells (photos). When looking at the lrtemplate file, it seems like the position is driven by "bounds" and th

  • Accrual & prepaid Issue

    Our current as is process: -     For certain type of expenses (like AMC, insurance, property taxes etc) , we pay to vendors in advance for 3 months/ 6 months/12 months as the case may be. -     In order to process the payment, user has to do receptio

  • How can we put technical questions to adobe

    Does adobe provide support (free or paid) for technical queries/problems over email or by any other medium. If so, how can we approach them?

  • Why won't Firefox always minimize/resize? Using F11 is a patchy solution that doesn't always work

    Firefox won't always minimize or resize. The upper right hand corner just pulsates. Looking through forums, I found that using f11 can help, but it doesn't always work. Often I have to reboot. == This happened == Not sure how often == A year ago, may

  • Exceptions not thrown on interrupted SocketChannel.write()

    I just noticed a behaviour of java.nio.channels.SocketChannel.write() that makes me wonder. If write() blocks(), and the channel is closed during this blocking by another thread, AsynchronousCloseException should be thrown. However, in most cases thi