cancel
Showing results for 
Search instead for 
Did you mean: 

One Message Two Possibles receivers (iDoc or BAPI) in an System

former_member322289
Participant
0 Kudos

Hi All,

My Scenario is:

JDBC - > BAPI or IDOC

the legacy system sends customers to SAP XI... and those customers could be old or new...

so... in my interface... I ask with a RFC LookUp.. if the customer exists or have to create a new one.

for create we use the iDoc: DEBMAS06... but it doesn't support modify a customer.

Modifications with: BAPI: BAPI_CUSTOMER_CHANGEFROMDATA1.

which is the best way to do this???

2 messages mappings??? with 2 receivers determination???

1 message mapping whit 2 diferent messages?? and 1 receiver???

Have read about Enhanced Receivers... but doesn't work...

Help Please....

Thx, and Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>for create we use the iDoc: DEBMAS06... but it doesn't support modify a customer.

come one.... debmas always supports modifications

use debmas but just populate it correctly

you don't need any splits just use debmas for both cases

Regards,

Michal Krawczyk

http://mypigenie.com XI/PI FAQ

former_member322289
Participant
0 Kudos

Hi Michal,

Thanks for your response...

but, look... if I send a DEBMAS whit the same STCD1 for a customer that exists in Sap... it.. give me an error...

do you know why???

That's the reason.. for use iDoc and Bapi.. but if I can use only the DEBMAS that would be great

Thx.

Former Member
0 Kudos

In the Configuration Part of the Integration Builder, in the Interface Determination you can add more Inbound Interfaces, even the same one twice.

When you do that, a new column appears between the two you already had, named 'Condition'.

In here you can select all the values from your (Outbound) Interface and compare them to a fixed or dynamic value of your choosing. The interface will then use the Interface Mapping you selected only when the condition is true. This way you can let the same outbound message use multiple possible mappings/interface mappings.

Don't forget that you now need to make a Receiver Agreement for every condition you added.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>the same STCD1 for a customer that exists in Sap... it.. give me an error...

did you read the error info?

BAPI should give you exactly the same

so the answer is still - yes you can use IDOC for both

changes and creation - there is no need to use BAPI in your case

Regards,

Michal Krawczyk

http://mypigenie.com XI/PI FAQ

former_member322289
Participant
0 Kudos

Hi Michal...

ok, i will try to use Debmas for both, but, I have looked for information about modification with it, and can't find anything... do you have some info?

Thanks a lot.

Regards