Skip to Content
0
Former Member
Jan 28, 2009 at 10:58 AM

RFC fetching data from table which is not commited

16 Views

Hi Experts,

I have a query regarding commit work.Below is the RFC that i have written

FUNCTION ZBAPI_CREATE.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  TABLES
*"      IT_ZABAP_RFC STRUCTURE  ZBAPI_RFC_STR OPTIONAL
*"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
*"----------------------------------------------------------------------

CALL FUNCTION 'ZBO_BAPI_CREATE' 
 TABLES
   IT_ZABAP_RFC       = IT_ZABAP_RFC
   RETURN             = return
          .

Break-point.

DATA lt TYPE TABLE OF ZBAPI_RFC_STR_MAIN.
CALL FUNCTION 'ZBAPI_SEARCH_RANGE'
* EXPORTING
*   IS_STR        =
 TABLES
   ET_TAB        = lt
*   RETURN        =
          .



ENDFUNCTION.

here in first RFC call i am creating a record in ZTABLE , and then at break-point

i check the ZTABLE where it does not create any record because data is not commited into ZTABLE upto this point, but just after it i have written code for fetching data from ZTABLE but i am able to get this new record in lt.

Can anybody please explain that from where this serach RFC is providing data because inside serach i am simply selecting data from ZTABLE.

Regards,

Abhishek Bajpai

Edited by: ABHISHEK BAJPAI on Jan 28, 2009 1:12 PM