03-06-2006 3:42 AM
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
03-06-2006 4:28 AM
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
03-06-2006 4:28 AM
can u send ur RFC code, and also check weather u have set
up SM59 details correctly
03-06-2006 4:53 AM
Hi,
If i don't use the bapi_transaction_commit, then what will happen.
rgds
p.kp
03-06-2006 4:56 AM
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.
03-06-2006 5:36 AM
Hi ammit,
I already used the commit statement while updating the database tables.
rgds
p.kp
03-06-2006 5:42 AM
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.
03-06-2006 5:54 AM
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
03-06-2006 5:36 AM
Hi,
use COMMIT WORK AND WAIT,
after updating your table.
Hope this helps..
Regards,
Shashank