Skip to Content
author's profile photo Former Member
Former Member

Extra COMMIT for RFM Calls through JCo

I am using JCo to develop a generic connector to SAP. I am making BAPI calls to SAP by invoking the corresponding RFM. I have read in some documents that some BAPI calls require extra commit(BAPI_TRANSACTION_COMMIT) to update the SAP database. Do corresponding RFM calls also require extra commit to update the database? If that is the case, how can I find which RFM's require the extra commit?

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2004 at 03:34 PM

    Hi Vijaya,

    BAPIs should require a commit (e.g. a subsequent call of BAPI_TRANSACTION_COMMIT) <b>in general</b>, since it is <b>not</b> allowed to do a "commit work" in BAPI code at all.

    This is not necessarily the case for the other remote RFMs, although it's good practice to let the caller of the FM, regardless, whether it's remote or not, finally commit the changes.

    If you have to know, which RFM does it's own commit and which doesn't, the only reliable way to find that out, is to have a look at the documentation of the FM first. If there is no doc or no statement inside it, which tells you, whether there are "hidden" commits, then you have to take a look at the FM itself (source code) and all other FMs this FM is calling..

    Hope that helps anyway.

    Regards

    Stefan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.