cancel
Showing results for 
Search instead for 
Did you mean: 

XML to IDOC : Condition to create new IDOC

Former Member
0 Kudos

Hi experts,

I am facing a new problem :s

I have my XML file as source message and my IDOC as target message :

for example:

<DETAIL>

<TYPE>abc</TYPE>

<TEXT>def</TEXT>

<TYPE>abc</TYPE>

<TEXT>def</TEXT>

<TYPE>ghi</TYPE>

<TEXT>def</TEXT>

</DETAIL>

As long as TYPE is the same, I put TEXT in a field of the IDOC, but if TYPE changes, I would like to create new IDOC to inject data.

Is it possible?

Thanks a lot,

Jamal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You want to create the new Idoc ? if yes not possible if you are using a graphical mapping.

If you want to populate new segment then its possible.

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks a lot, very helpful links, I'll try with those.

Does XSLT mapping means Business Process Management ?

Former Member
0 Kudos

Hi,

XSLT is not an Business Process Management.

For XSLT check

http://www.w3schools.com/xsl/xsl_for_each.asp

Simple file to file XSLT mapping

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/fileTOFile-UsingXSLTmapping%28forBeginners%29

File to multiple Idocs using XSLT mapping

Former Member
0 Kudos

Oh i see...thanks. Do you have any examples by chance ?

Best regards,

Jamal

santhosh_kumarv
Active Contributor
0 Kudos

Very sad... I don't have any...

For Java/XSLT Mapping you can refer these...

By Prasad Ulagappan

By Anish Abrahim

By Prasad Babu

Thanks

SaNv...

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Is your requirement is to create the new IDoc of same type if the type is different in the source.

If so you cant do it with the standard graphical mapping. You should either use Java/XSLT mapping

Thanks

SaNv...