Can i call BAPIs with explict commit uisng xi

I have a RFC which has 3 BAPI's inside it . Each Bapi is using an explict commit. Can i call  this  RFC from XI .

Hi,
You have 2 options..
In the RFC Receiver Communication channel set the Advanced Property - "Commit Control for Individual BAPI Calls"
the description in help is as follows -
<b>Commit Control for Individual BAPI Calls</b>
If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values “”, “S”, “I”, and “W” are displayed. All other values are regarded as errors.
To change this setting, set the indicator BAPI Advanced Mode.
In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/frameset.htm
or
you can include the commit in the RFC(if it is a custom one...)
Thanks,
Renjith

Similar Messages

  • Can we call bapi from SAP or ABAP How? Pls Step by step

    Can we call bapi from SAP How? Pls Step by step
    thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi,
    Do you mean you want to access BAPI in ABAP report?
    If yes, then YES we can call,
    1.Create a report -> In pattern write your BAPI name.
    2. It is like your FM , Read correspoding BAPI documentation
    3. Fill required parametes.
    4. Test run and if successful , final run it.
    And from Outside,
    You have to establish a connection and create a wrapper and access using avaialble APIs.
    Reward if useful!

  • BAPI with out Commit

    Hi All
    after bapi calling we need to call commit
    my question is there any bapis with out transaction commit
    Regards
    Surendra

    Hi
    We have the sales order or purchase order with the older version so we need to commit use the bapi_transaction_commit.
    u can chk out in bapi transaction.
    Inside of the code there is commit work is not been used.
    All the LUW's will be commited in the database.

  • HOW can I call EJB with JSP?

    Hi, I'm working with JSP and want to include some EJB. I dont know how can I access EJB through JSP. I dont know if I use the right code in JSP for calling EJB. Did someone know how to use that? Can someone tell me if is the right code in JSP in my example?
    Thanks, Kristjan
    THIS IS THE JSP: (useejb.jsp)
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/ejbtaglib.tld" prefix="EJB" %>
    <%@ page import="mypackage1.MySessionEJB" %>
    <%@ page import="mypackage1.MySessionEJBHome" %>
    <%@ page import="mypackage1.impl.MySessionEJBBean" %>
    <HTML>
    <head><TITLE>USEBEAN</TITLE></head>
    <body>
    <EJB:useHome id="mySessionEJBHome" type="mypackage1.MySessionEJBHome" location="java:comp/env/ejb/mySessionEJB" local="false" />
    <EJB:useBean id="mySessionEJBBean" type="mypackage1.impl.MySessionEJBBean" local="false">
    <EJB:createBean instance="<%=mySessionEJBHome.create() %>" />
    </EJB:useBean>
    <%= mySessionEJBBean.calc() %>
    </body>
    </html>
    THIS IS THE EJB CODE:(MySessionEJBBean.java)
    package mypackage1.impl;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.lang.String.*;
    public class MySessionEJBBean implements SessionBean
    public void ejbCreate(){}
    public void ejbActivate(){}
    public void ejbPassivate(){}
    public void ejbRemove(){}
    public void setSessionContext(SessionContext ctx){}
    public String calc(String value)
    return value + value;
    public String zanka(String x)
    return x;
    (MySessionEJB.java)
    package mypackage1;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface MySessionEJB extends EJBObject
    public String calc(String value) throws RemoteException;
    String zanka(String x) throws RemoteException;
    (MySessionEJBHome.java)
    package mypackage1;
    import javax.ejb.EJBHome;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    public interface MySessionEJBHome extends EJBHome
    public MySessionEJB create() throws RemoteException, CreateException;
    }

    You might want to look at using a Java Bean wrapper, this can be done automically using WebSphere. It creates what is called an access bean which the JSP imports.
    HTH,
    J.Clancey

  • Calling BAPI with SAP connector

    Hello All,
    I've created an aspnet application using SAP connector and I'm calling BAPI_PO_GETDetail but I'm not sure to use it correctly because I have not all of fields in my datagrid (for example I cannot see the vendor name or code)...
    I think that I don't understand something ! 
    Thanks for your help (and sorry for my English) !
    here is my code :
        ' create proxy variable
                Dim proxy2 As New SapConnectPO.POSAPProxy
                ' get a connection
                Dim conn = SAP.Connector.SAPConnection.GetConnection(ConfigurationManager.AppSettings("connSAP"))
                conn.Open()
                proxy2.Connection = conn
                ' create structure variables
                Dim t1 As New SapConnectPO.BAPIADDRESS
                Dim t2 As New SapConnectPO.BAPIEKBE
                Dim t3 As New SapConnectPO.BAPIEKBES
                Dim t4 As New SapConnectPO.BAPIEKBESTable
                Dim t5 As New SapConnectPO.BAPIEKBETable
                Dim t6 As New SapConnectPO.BAPIEKBETable
                Dim t7 As New SapConnectPO.BAPIEKES
                Dim t8 As New SapConnectPO.BAPIEKESTable
                Dim t9 As New SapConnectPO.BAPIEKET
                Dim t10 As New SapConnectPO.BAPIEKETTable
                Dim t11 As New SapConnectPO.BAPIEKKN
                Dim t12 As New SapConnectPO.BAPIEKKNTable
                Dim t13 As New SapConnectPO.BAPIEKKOL
                Dim t14 As New SapConnectPO.BAPIEKKOTX
                Dim t15 As New SapConnectPO.BAPIEKKOTXTable
                Dim t16 As New SapConnectPO.BAPIEKPO
                Dim t17 As New SapConnectPO.BAPIEKPOTable
                Dim t18 As New SapConnectPO.BAPIEKPOTX
                Dim t19 As New SapConnectPO.BAPIEKPOTXTable
                Dim t20 As New SapConnectPO.BAPIESKL
                Dim t25 As New SapConnectPO.BAPIESKLTable
                Dim t26 As New SapConnectPO.BAPIESLL
                Dim t27 As New SapConnectPO.BAPIESLLTable
                Dim t28 As New SapConnectPO.BAPIESLLTX
                Dim t29 As New SapConnectPO.BAPIESLLTXTable
                Dim t30 As New SapConnectPO.BAPIESUC
                Dim t31 As New SapConnectPO.BAPIESUCTable
                Dim t32 As New SapConnectPO.BAPIESUH
                Dim t33 As New SapConnectPO.BAPIESUHTable
                Dim t34 As New SapConnectPO.BAPIPAREX
                Dim t35 As New SapConnectPO.BAPIPAREXTable
                Dim t36 As New SapConnectPO.BAPIRETURN
                Dim t37 As New SapConnectPO.BAPIRETURNTable
                ' Call method
                Try
                    proxy2.Bapi_Po_Getdetail(Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, "X", TextBox1.Text, Nothing, Nothing, Nothing, t1, t13, t35, t15, t12, t8, t31, t5, t4, t33, t10, t27, t25, t19, t17, t29, t37)
                Catch ex As Exception
                    Response.Write(ex)
                End Try
                ' result is bound to datagrid1
                GridView1.DataSource = t17
                GridView1.DataBind()
    conn.close()

    Hi Christine:
    Actually this is the correct forum...But don't expect to recieve an answer too soon...We all have works besides SDN...Also, at least talking about myself...I don't know the solution to your problem -:( But I'm sure that there other members that can help you out -;)
    Greetings,
    Blag.

  • I'm can't call even with subscription

    I bought a skype with love subscription. When i try to call it says i dont have skype credits in android. What should i do.
    Solved!
    Go to Solution.

    The message you are receiving is telling you that you are trying to call outside your Subscription coverage.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Calling BAPI from VB with ECC 6.0

    I have a Visual Basic 6 application that calls some standard BAPI's in a SAP R/3 system using Frontend 4.6d in order to upload data.  It also calls some custom RFC enabled ABAP to download data.
    We are upgrading to ECC 6.0 with SAP GUI 7.1.
    Can anyone tell me if I can still call BAPI's from VB6 or will I need to upgrade to VB.net?  Are there any changes to references in VB that I will need to make?
    Thanks!!
    Edited by: Jolene Roell on Feb 20, 2009 8:33 AM

    Well I could never figure out a way to call a BAPI from VB6 with ECC 6.  I ended up creating a VB.net dll using the SAP connector to call the BAPIs.  I could then call the dll from my existing VB 6 program.  That cut down on the recoding that I had to do.

  • Trial with wordwide subscription but can't call an...

    Hello,
    I recently activated my trial subscription for the free month of WorldWide unlimited calls and i simply can't call anyone with it. I also had a few cents remaining in my account, as i called someone i got taxed from that amount, as if i don't have a subscription. Same thing happens if i'm trying to call using skype on my mobile phone (android 4.4.4) 
    I have the latest version of skype installed on windows 8.1 .
    Solved!
    Go to Solution.

    black_death wrote:
    Hello,
    I recently activated my trial subscription for the free month of WorldWide unlimited calls and i simply can't call anyone with it.
    Hello
    You are attempting to call to cellphones in Romania. Only calls to landlines in Romania are covered by your Subscription. Please check your Subscription coverage.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Using the container format to call BAPIs

    I'm trying to call BAPIs with the SWO_CREATE and SWO_INVOKE RFC's, and having a difficult time getting the container marshalled correctly.  Can anyone supply or point me to information about marshaling arguments in the container?
    Thanks

    Hi Jhon,
    I have seen your question for the container format to call BAPI and could not find any replies or any kind of information regarding the container marshalling on the web. I am having a simillar problem when invoking the SWO_INVOKE, i am passing a container and it gives me a error saying "packed field with incorrect BCD format" and i am trying to find some kind of solution for this, if you  had a some kind of solution or guidance that would be great.
    Thanks,
    Praveen

  • How can i use bapi in my report program

    hi
    am new to this forum , i have doubt in bapi's how can i call bapi into my report program and what is the difference between normal function module and bapi, and bdc plz clear my doubts
    Moderator message: please search for available information/documentation.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    Edited by: Thomas Zloch on Apr 12, 2011 7:12 PM

    i have the same problem...
    anybody can help us??
    it`s urgent...
    thanks

  • Can we call sap screens from our own abap program?

    Hi... Friends...,
        I want to develop one program...
    In that program my selection screen contains transcation code and screen number as input parameters.
    so now if i give  inputs as...
    > VA41
    > 4001
    for given T'code and screen number...
    I hav to get that screen directly!
    other wise it has to give error message like...
    > NO SCREEN EXISTS FOR VA41 WITH GIVEN SCREEN NUMBER
    Is it possible???
    If possible... guide me the logic...!
    Thanks,
    Naveen.I
    Edited by: Naveen Inuganti on Jul 14, 2008 11:15 AM

    No no.. thats ok...
    we can call screen and we can update...
    But in VA01 or in VA41 .. we are having more than 10 screens... can i call them with my selection screen inputs...?
    let me tel you one situation.
    I am having billing plan in VA41 screen's 4002nd screen so now i know the screen number and t'code here.
    So if i want to know the field documnetation or technical details of billing plan field... i hav to go through va41 transaction...
    can i do that from my program with one step?
    And..., 
    one more thing here we know that there will be some mandatory inputs for screens to get the screen which we are calling!
    So this reuirement may not possible for that kind of screen!
    Even....  I want your suggetions!
    Thanks,
    Naveen.I

  • Calling BAPI's from java

    Hi ,
      Is there any way can we call BAPI's in java.   If yes, could you pls tell me the required jar files for that or any useful sites. 
    Thanks in Advance
    JM

    Hi,
    did you check:
    http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000463654&
    there's some sample code inside
    https://websmp209.sap-ag.de/~sapdownload/011000358700007640702002E/SAPJCo.pdf
    also blogs:
    /people/tarun.telang2/blog/2005/10/03/debugging-a-rfc-call-using-jco-api-part-2
    Regards,
    michal

  • Calling variables with dynamic names

    so lets say theres 5 variables,
    name1 = "james";
    name2 = "billy";
    name3 = "nilly";
    name4 = "dilly";
    name5 = "alfred";
    is there any way to enumerate through those names by doing something like this...
    for(i=1;i<6;i++){
    System.out.println(["name"+i]) // where ["name"+i] uses variable name1, name2, name3 etc...
    ending up with something like
    james
    billy
    nilly
    dilly
    alfred
    i know its possible to do it in some other programming languages, and if java can do it too, it'd be very useful to me.

    woops - noticed I was in New To Java...
    You can search for this, the question came up quite a bit some time back.
    Use an implementation of Map (like HashMap) and call the put method with the name you want as a key and the value as a value. You can then call get with the name to get the value, or you can iterate over the key set to do what you're after.
    Or, you could create a "Name" array (or List) and the you get "name0", let's say, by saying "name[0]" or nameList.get(0).
    Make sense?
    Good Luck
    Lee

  • JCA IConnection call to BAPI with table in table as import and export param

    Is it possible to call a BAPI with a table in table as import and export data?
    Please give small code example if this is possible.
    Thanks in advance.

    Inner tables can be handled with:
    IRecordSet innerTable = (IRecordSet)outerTable.getObject("INNER_TABLE");

  • Hi gurus, can any one explain me about Badi & Bapi with eg.?

    Hi gurus,
    Can any one explain me about Badi & Bapi with examples.
    Regards
    Raghu

    Hi Raghu
    1) Badis means:
    The BAdIs of the enhancement concept are not treated as standalone objects, but are integrated in the overall concept. Thus, the tools for defining BAdIs are part of the Enhancement Builder included in the ABAP Workbench.
    Transaction SE18, up to now the only entry point for defining classic BAdIs, now manages classic and new BAdIs. When an existing BAdI is displayed or changed, it analyzes whether the BAdI is a classic or a new one, and then switches to the respective tool. In the case of a new BAdI, this tool is the enhancement spot editor
    2) Bapis means:
    BAPIs can be called within the R/3 System from external application systems and other programs. BAPIs are the communication standard for business applications. BAPI interface technology forms the basis for the following developments:
    Connecting:
    New R/3 components, for example, Advanced Planner and Optimizer (APO) and Business Information Warehouse (BW).
    Non-SAP software
    Legacy systems
    Isolating components within the R/3 System in the context of Business Framework
    Distributed R/3 scenarios with asynchronous connections using Application Link Enabling (ALE)
    Connecting R/3 Systems to the Internet using Internet Application Components (IACs)
    PC programs as frontends to the R/3 System, for example, Visual Basic (Microsoft) or Visual Age for Java (IBM).
    Workflow applications that extend beyond system boundaries
    Customers' and partners' own developments
    Thanks
    Trinath

Maybe you are looking for

  • Oracle SQL developer tool vs toad

    Hi - I am trying to do a feature comparison on these 2 tools and am not very familiar with them could someone please tell me if Oracle SQL developer tool has these features: Project Manager Result Set Compare Chart Designer Toad Report Wizard Pivot &

  • SharePoint 2013 Blog Site or Discussion LIst - Comment on a Comment

    Hi, Quick question.  Is anyone aware of a plug-in or feature or new blog add-in for SP 2013 that allows "comments on comments".   From what I can tell in the blog site and discussion list, you can only comment on the original comment.  You cannot com

  • Please help with PPV Purchase.

    I moved into a new home and transferred my Verizon FiOS from the old house to new house.  Becuase I moved counties, I had to send back my old boxes and get new boxes for the new county. Fast forward..... I tried to buy a UFC PPV event like within the

  • Video across multiple slides

    hi, is there any way i can get any version of keynote to play video across multiple slides, i have a looping starfield video that i want to play behind the whole of a pretty complex award show presentation, due to each slide already having 58 builds

  • How do I save a 2 1/2hour movie?

    My movie is 2 and 1/2 hours long...How do I complete and save it.