cancel
Showing results for 
Search instead for 
Did you mean: 

Commit work in web dynpro

Former Member
0 Kudos

Hi,

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

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_szcs
Active Contributor
0 Kudos

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,

Thomas

Former Member
0 Kudos

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,

Gareth.