For different flows, I need to send data from ECC to PI by using different proxy names (one per flow), but I would to manage the sending (in fact the proxy call) inside only one function module in order to have the same methodology (call + catch error + etc...) but for that I need to call dynamically my proxies.
That means to precise dynamically:
1. my service interface: e.g lo_clientProxy
2. my service interface's Operation: e.g lo_method
3. my Message Type content: e.g out_msg
for operation is ok, i did it, but how can I achieve that for the two other objects? field-symbold ?
I will appreciate any help, as after searchs and tests, I have not found THE solution...
Example with one of my flow (*): for the moment, I have something like that:
lo_clientProxy TYPE REF TO ZPI_CO_SI_ECC_CUSTOMER, " Service interface
lo_method TYPE string VALUE 'SEND_DATA'. " Service interface's Operation
out_msg TYPE ZPI_MT_ECC_CUSTOMER, " Message Type
CREATE OBJECT lo_clientProxy.
CALL METHOD lo_clientProxy->(lo_method)
output = out_msg.
(*) real data exchanged is not a customer, that's just for the example.