multiple instances of the same process with different data
what would be a typical solution for having multiple conditions
for the same process
like for example we have a delivery process and for one customer we want to have one
type of expected event profile and for another a different one
should we create two two processes for that ?
ok if you have 100 different configurations this would be not the preferred option.
With the generate function you don’t have to create your own tables. You have to generate a function module in transaction /SAPTRX/TSC0TF. Afterwards you assign it to your EE Profile (Detail view in the viewcluster)
As import it gets during runtime the EE Profile name, the milestone data from application system and the EH data.
As export you have the expected events that you need to fill according to your scenario.
With the profile name you could read the configuration of the EE profile.
Example would be in a 5.1 or higher system function module: /SAPTRX/GENERATE_SNC_MSG_EE.
Inside they do some checks, change milestone data and afterwards they call the standard generation method for EE.
CALL METHOD /saptrx/cl_expev_generator=>generate
i_profile = profile_id
it_milestones = lt_milestones
i_guid = eh_guid
i_eh_model = eh_model
ct_expected_events = lt_expected_events.
Depending on how complex your EE generation is you maybe have to create your complete own logic for the generation. But you could use the standard one as reference how to do it and which checks are done in the standard.