Hello everyone,
I have a question regarding a project I’m currently working on. Let me provide some background details for better context.
Background
We have a scenario that consists of four main steps:
- A Webshop sends an order to the Process Integration (PI) system.
- The PI system receives the message via SOAP, validates its structure, and forwards it to the backend system via HTTP. A valid and working HTTP destination is already configured for this.
- In the backend system, using SPROXY, we handle the namespace of the ESR (Enterprise Service Repository) and can view all design objects. A service provider processes the message, forwards it to an ABAP class, which extracts the relevant data, fills a BAPI, and finally creates a sales document in the SAP backend using the payload data.
- This scenario has been running smoothly, and the existing functionality is working perfectly.
New Requirement
The requirements have now changed. The webshop will send two new optional fields if they are available. To address this, we made the following changes:
- The PI structure was updated to handle these two fields (this part is already completed and working).
- In the backend, the ABAP class logic was updated to:
- Map these new fields if provided.
- Pass the new data into a newly declared table. This table will handle the additional fields in parallel with the existing configuration.
With this update, the new fields will be processed as follows:
- If the fields are present in the payload, they are mapped to the new table and passed along with the original tables to the BAPI.
- If the fields are not provided, the process will continue as before, without impacting the existing functionality.
After implementing these changes, the scenario appears to function correctly. Messages sent from the PI Test Tool are successfully delivered to the backend.
-------------------------------------------------------------------------------------------------------------------------------------------------
Current Challenge
When testing through the PI Test Tool, I see that the messages are being delivered to the backend. However, I am unable to verify if the sales document is being created correctly or if the new fields are included when provided.
Request
Can you guide me on how to perform an end-to-end test to ensure the functionality works as expected? Specifically:
- Which SAP transactions can I use to check if the sales document has been created successfully and verify the inclusion of the new fields? Which data can I use for the search process?
- If debugging is needed, how can I:
- Import the payload into the ABAP code for testing?
- Check if the message sent from the PI Test Tool is properly processed in the backend?
Any help in verifying this scenario end-to-end would be greatly appreciated. Thank you in advance for your support!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.