Skip to Content
avatar image
Former Member

Commit work in web dynpro


I have a RFC Function Module, which exchanges Data in Webdynpro with R3.

And I call a Non RFc function Module inside my RFC Function Module. Non RFC Function Module has to insert

data in my z-table. I also set Commit Work after insert.

But anyway there is no data in my Z-table!!!

Is something wrong? If I debug my Web Dynpro, I can insert all into z table. But without debugging No data

is filled in my Table. Please Take care, that Function is not a Bapi, just only RFC Function Module.

Thanks a lot for your Replies!!!

With my Best Regards

Beserithan Malabakan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jul 25, 2006 at 08:16 AM

    Is this Java or ABAP web dynpro?

    It should be irrelevant whether your function module is a BAPI, RFC enabled or not and it shouldn't matter if you are calling it from Web Dynpro or a portal app or just an ABAP program - if your function module has the correct logic to commit it's data then you should be able to prove it from SE37 with a single test.

    My first guess is you may need to do a commit work and wait - if you are using BAPI_TRANSACTION_COMMIT then simply set the WAIT parameter; if you are just doing a straight forward COMMIT WORK then add the AND WAIT addtion.

    I'm guessing its ABAP as you talk about debugging the Web Dynpro and it posts to your table - don't forget that the ABAP debugger creates implicit commit work steps whilst you are stepping through which is why you are probably seeing data saved.

    If you do a single test from SE37 of your RFC does it post data?

    Hope this helps,


    Add comment
    10|10000 characters needed characters exceeded

  • Jul 25, 2006 at 08:27 AM

    Hi Beserithan,

    In case you use Web Dynpro ABAP, then there is no difference between working with function modules, classes or Web Dynpro. It's all ABAP. This means that you need to perform a commit if you would like to save your data to the database.

    Best regards,


    Add comment
    10|10000 characters needed characters exceeded