How to test Enterprise Services via Transaction code SPROXY.
We would like, for example, to test the functionality of sending a SalesOrder to SAP CRM, which was created via a front-end (Java) portal.
Step 1: Start transaction SPROXY
Search for the Service Interface for which you want to test and load a XML file. For example the standard SAP SalesOrderCRMCreateRequest_In.
Step 2: Double-click on the SalesOrderCRMCreateRequest_In to load the details and choose Execute (F8).
Step 3: In the next pop-up screen check if ‘Generate Request Template’ is selected and choose Execute (F8).
Step 4: In the following screen you will see the ‘Test Service Provider: Display Request’ with a example request.
There are different option in this step:
1. Choose an already defined variant via the variants button to directly test with already set-up test data
2. Load a XML file from your local computer.
Step 5: Choose Execute (F8) and you will get a success message ‘Succesful with empty result – commit may be required’
Step 6: Commit work is required to save the Sales Order in the database. Choose ‘Extra > Trigger COMMIT WORK’
Step 7: You will get a success message ‘COMMIT WORK triggered’
Step 8: Check for example via CRMD_ORDER the salesorder that has been created. Please note that you will have to search for the creation date/time that was put into the XML within <CreationDateTime> to find the specific order. Or use a reference ID (put in field BuyerID for example) to find the order via this value/field.
——————————————
Remco Jansen is working as a SAP CRM professional for various clients in the Netherlands.