
Use the ESF command either directly or using ESF (Record LCP) to test using the Local Client Proxy (LPC). Using the ESF command directly results in a single ESF command, for which you need to maintain the command interface. The recording option has not yet been completely implemented.
Messages are handled using MESSAGE…END MESSAGE blocks. The command interfaces of MESSAGE and ENDMESSAGE have been extended for LCP.
Unlike with GCP, there is no buffering of data; each call results in a new table of data (this behavior is similar to that of function modules).
Local Client Proxy
In the command interface, the sub-nodes of LCP, LCP_FACADE and LCP contain pointers to instances of the interfaces IF_ESF_LCP_TRANSACTION and IF_ESF_LCP respectively. You do not have to concern yourself with the values of these pointers directly. Simply parameterize the main LCP node in the IMPORT or EXPORT section as appropriate to ensure that each command uses the same LCP.
Queries and Retrieving Records
The result of a query is a list of node IDs. To see the records, you can pass a table of node IDs to a retrieve service. You can get the required table-type parameter by double-clicking the EXPORT node and entering a parameter name in the NODE_IDS field. Less often, you might want to pass individual node IDs. In this case, you can double-click the NODE_IDS node itself to parameterize the fields there. You cannot use both types of parameterization in the same command interface.
You can restrict the search to values and ranges for chosen attributes. There is no F4 help for the field ATTRIBUTE_NAME so you need to know the BO. You can use transaction SE80: choose Edit Object, then Enterprise Services, enter the name of the BO and display it.
It is possible to get a list of records directly into a table parameter using a query. Under the IMPORT node, set FILL_DATA to value 'X'. The DATA field under EXPORT will be filled with the results of the query.
Reducing the Data to be Returned
Entering a value in the MAXIMUM_ROWS field restricts the number of rows returned. You can also use PAGING_OPTIONS.
Sorting the Returned Data
Double-click the SORT_OPTIONS node to edit a table of ATTRIBUTE and ASCENDING pairs. If 'X' is entered in an ASCENDING field, the records will be sorted in ascending order for that attribute.
Using ESF
Choose Pattern.
In the Group field, choose Enterprise Services.
In the Command field, choose ESF.
In the Replay Client field, choose LCP.
In the Business Object field, enter the name of the business object.
In the Business Object Node and Service fields, select the required entries. If the service requires more input (for example, a query service also requires the name of the query), an extra field with the appropriate label appears.
Accept or edit the command interface name and select the target system.
Choose Continue.