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

Commit Handling for Synchronous Write Scenarios

Hello gurus,

I have to use syncronous interfaces between SAP and custom UI application. SAP will both be client and server in different scenarios. I would like to know how I can achieve consistency for write operations with commit handling mechanisms, both for PI 7.0 and PI 7.1. Proxies will be used on SAP side.

All helpful hints/linkd/docs will be very much appreciated and rewarded.

Thank you for your input.

Gökhan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2009 at 08:47 AM

    Hi Gokhan,

    I believe you refer to the server proxy coding where the write operations are performed.

    If you are using ABAP server proxy, then the coding should be similar to the way you handle SAP LUW in any ABAP program. In the method of your ABAP proxy class, you can group several BAPI calls or changes to several tables into one LUW and just the do the commit at the very end.

    You need to create update FM to updae your tables and call them in update task mode.

    For example.

    LOOP AT <your incoming message table>

    CALL <BAPI> IN UPDATE TASK

    CALL <custom FM to update tables> IN UPDATE TASK

    ENDLOOP.

    CALL BAPI_TRANSACTION_COMMIT.

    Regards,

    Lim...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 26, 2009 at 05:27 AM

    Hi Gokhan,

    Please elaborate on what do you mean "consistency for write operations with commit handling mechanisms".

    Rgds

    joel

    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.