Show TOC Start of Content Area

Procedure documentation Calling the Lock Functional Module  Locate the document in its SAP Library structure

Use

You have to call the functional module RSCAF_TABLE_LOCK before running the extraction process for DataSources created for entity service queries. There are no locking mechanisms in place for queries from application services.

You run the functional module table lock with the LOCK_FLAG=0 and I_BEI_LIST variables with values that define entity services or several services. After the extraction process is completed, you can execute the functional module with the values that define the entity service.

Procedure

 

       1.      Launch the Function Builder from the SAP GUI.

       2.      In the Function Module field, enter RSCAF_TABLE_LOCK and choose Display.

       3.      In the Function Module menu, go to Test Test Function Module.

       4.      In the Test Function Module screen, do the following:

       Mark the Upper/Lowercase checkbox

       Enter TEST_CAF_CONNECTOR for I_RFC_DESCT

This is the RFC destination created in Creating RFC Destinations in SAP BW when installing and configuring CAF for the first time.

       Enter a value for I_LOCK_FLAG:

       0 = locking

       1 = unlocking

       Click This graphic is explained in the accompanying text next to 0 Entries(I_BEI_LIST) and enter the following values:

       E_VENDOR – sap.com

       E_APPLICATION – caf.tests

       E_NAME – StudentService

       Choose This graphic is explained in the accompanying text with the quick info Back to return to the initial screen.

       Choose This graphic is explained in the accompanying text  with the quick info Execute to test the function module.

       5.      To verify that the entity service was either locked or unlocked (as per your definition), use the CAF test servlet.

       6.      Use the functional module test directory to store test data for use at a later time.

End of Content Area