Skip to Content
0
Former Member
Dec 24, 2009 at 02:51 AM

RFC question

11 Views

hi,all:

i have a question about RFC calling,please check my coding below:

loop(2 times)

CALL FUNCTION 'ZREM_RECORD_PRE_ENTER'

DESTINATION 'CMS DOC CONNECTION'

end loop.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' DESTINATION 'CMS DOC CONNECTION' or

CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK' DESTINATION 'CMS DOC CONNECTION'.

the result is:only the last one i did created successfully,and i tried change the coding the blow:

loop(2 times)

CALL FUNCTION 'ZREM_RECORD_PRE_ENTER'

DESTINATION 'CMS DOC CONNECTION'

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' DESTINATION 'CMS DOC CONNECTION'

EXPORTING

wait = 'X'.

end loop.

but when the question is how can i rollback the rollback the session(RFC),any one can give me some sugguestion,thxs in advance.