cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying XML in IDoc pass through scenario

shweta_walaskar2
Contributor
0 Kudos

Hello,

We have an IDoc-to-IDoc scenario where we receive IDoc XML and we send the same to our partner.

Hence,we don't need any mapping.

But now,our partner wants to have a comment in IDoc XML sent to them,for ex-:

<?xml version="1.0" encoding="UTF-8" ?>

*<!-- E88559-- Test partner -->*

Now the only option I can think of,is to create a java mapping which should add this comment in the XML file.

But this requires considerable development efforts.

Is there any configuration settings to achieve the same without introducing an additional level of java mapping just to include this comment?

Thanks for your help.

Regards,

Shweta

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

Do you mean that you were using Idoc adapter at both sender and receiver?

If yes, then even if you add comment, where do you think it will populate this when creating Idoc on receiver SAP system?

If no, then there is no standard way of adding such comments without efforts.

Regards,

Prateek

shweta_walaskar2
Contributor
0 Kudos

Hello,

Sorry for not explaining the scenario clearly.

There are two parts:

1) Partner sends IDoc XML which creates IDocs in our system : Here we have AS2 sender and IDoc receiver.

2) We send IDocs to partner and they receive them as IDoc XML : Here we have AS2 receiver.

In case 2) they want to have this comment.

Thanks.

Regards,

Shweta

former_member200962
Active Contributor
0 Kudos

This can help you in inserting the comment:

Regards,

Abhishek.

shweta_walaskar2
Contributor
0 Kudos

Hello,

Yes,thanks.So this means,in any case,I need to have a mapping to handle this.

I could achieve this using Java mapping.

Thanks to all for your inputs.

Regards,

Shweta

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think there 2 alternatives:

1) Add the comment to the target message type definition

2) Use a XSLT mapping step to add the comment.

Regards,

Kai