Application Development 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: 

re: Iam facing stunning problem(RFC)

Former Member
0 Kudos

Hi,

Please first check it out what i have done.

I written one RFC ZTM_UPLOAD_TRAEXP1

under this rfc i am calling one more fm ZTM_UPLOAD_TRAEXP

under this fm iam calling one bdc. so after call trasnaction code, if sy-subrc = 0. I am updating one more table by using one more fm.

Problem is that if i run this rfc from sap,it is working fine. But if i run this one lotus notes, it is running fine till BDC after that the progrmaming cursor coming back with out updating table. What may be the problem. can anybody solve this.

Thanks.

rgds

p.kp

8 REPLIES 8

Former Member
0 Kudos

Hi paluri,

1. BAPI_TRANSACTION_COMMIT

Call this FM

after all your fms

so that commit work is done

and table data is actually saved in database.

2.

after that the progrmaming cursor coming back with out updating table

What is the meaning of that ?

regards,

amit m.

Message was edited by: Amit Mittal

hymavathi_oruganti
Active Contributor
0 Kudos

can u send ur RFC code, and also check weather u have set

up SM59 details correctly

0 Kudos

Hi,

If i don't use the bapi_transaction_commit, then what will happen.

rgds

p.kp

0 Kudos

Hi again,

1. If we don't use bapi_transaction_commit,

then

all the rfc FM will run fine,

BUT

the database tables won't get updated.

(This is bcos of sap LUW concept.)

2. see F1 help on this fm. bapi_transaction_commit

regards,

amit m.

0 Kudos

Hi ammit,

I already used the commit statement while updating the database tables.

rgds

p.kp

0 Kudos

Hi again,

1. simply using commit statement

will do commit in the LOCAL system,

and not the RFC system.

2. hence use,

BAPI_TRANSACTION_COMMIT

(from the calling system)

so that commit actually happens

in the CALLED system.

regards,

amit m.

0 Kudos

Hi amit,

Now it is working fine with out that fmodule

bapi_transaction_commit. I used commit work in the fm.

Thanks for ur quick response.

rgds

p.kp

Former Member
0 Kudos

Hi,

use COMMIT WORK AND WAIT,

after updating your table.

Hope this helps..

Regards,

Shashank