cancel
Showing results for 
Search instead for 
Did you mean: 

1 Interface to be used by multiple classes

markbernabe
Active Participant
0 Kudos

Hi,

Is it possible to have 2 different classes and all of them will use just 1 client proxy (Outbound interface) in ABAP system side? The scenario is that, the sender ABAP system will send 2 different kinds of files but they are based on the same message type. So, instead of creating 2 separate interfaces/proxies, can we just build 1 and multiple classes will use that interface?

Accepted Solutions (0)

Answers (3)

Answers (3)

iaki_vila
Active Contributor
0 Kudos

Hi Mark,

As previous SCN members said, there isnt any problem. Altough, you should think about to where you send  the messages. If the two kinds of messages can be processed easly with PI or the endpoint, in the case that you are sending directly. This concerns the message treatment in the midleware system, can be done in one scenario or it's necessary two?, could the endpoint deals with the two kinds of message with only one interface?, using for example the self XML semantic.

Depending of the answers to my questions and if you are using a middleware like PI, the best option could be to use two proxies or one proxy with two communication ports.

Regards.

former_member10771
Active Participant
0 Kudos

Hi,

Yes you can create a single generic class and use it to achieve your requirement.

Former Member
0 Kudos

Hi Mark

Yes you can call a proxy strcuture from any number of classes.However try to write one generic class for both file structure based on your logic.