Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LUW implementation between RFC calls

Former Member
0 Likes
565

Hi Experts,

I have a quick requirement in which i have to implement LUW explicitly during RFC call.My requirement is as below

I have 3 Rfc for a Ztable these are 1. Zcreate_entry , 2.Zupdate_entry and

3. Zdelete_entry. Now i want to create a explicit session for all the operation done by these Rfcs so that at the end of the session i can commit all the operations.

Example

User will call 1 RFC for leting me know that now start a new session.now user will insert 5 entry in Ztable by calling Zcreate_entry(Actually this data should not be saved in ZTable) , Update 4 Entry in Ztable by calling Zupdate_entry(Actually this data should not be updated in ZTable) , delete few entry same way.

Now user will call 1 Rfc for ending this session(for letting me know only that end this session) , At this point only all the data changes (inserted , updated and deleted ) should be actually reflected in database.

Regards,

Abhishek

Edited by: ABHISHEK BAJPAI on Jan 20, 2009 12:43 PM

Edited by: ABHISHEK BAJPAI on Jan 20, 2009 12:43 PM

4 REPLIES 4
Read only

Former Member
0 Likes
517

I see no question .... what is your actual problem ????

Otherwise just go ahead and do it.

Read only

ThomasZloch
Active Contributor
0 Likes
517

Process must call function BAPI_TRANSACTION_COMMIT (or similar) at end of transaction.

Thomas

Read only

0 Likes
517

Hi All,

If you have not got the problem , let me explain complete scenario.

There are three RFcs for creating , updating and deleting in database table(Ztable).

Now these Rfcs will be called from web dynpro, In WD screen user may call Create RFC 5 times for creating entry in Ztable ,then he can call Update RFC for updating in Ztable.

After doing all these operations in single session now he wants to end the session, so before closing the session WD notifies to backend that now at this point only save all the changes to the backend thus for all the operations commit will happen now only.

*Another requirement is * that from WD screen if user1 has created 5 records but he has not commited these changes to database now if User1 searches for just inserted recorded(which is not commited yet) , how to provide these records to the User1 because these records are not in Ztable at that point of time.

Regards,

Abhishek

Read only

0 Likes
517

Have anybody got an idea about the second requirement.