cancel
Showing results for 
Search instead for 
Did you mean: 

Help !

Former Member
0 Kudos

Hi Experts,

Can you help me how to provide a solution for the below requirement.

Input Payload:

<Body>

<Name>abc</Name>

<Num>123</Num>

<City>NJ</City>

...

</Body>

Output Payload:

<Header>

<City>NJ</City>

<Body>

<Name>abc</Name>

<Num>123</Num>

<City>NJ</City>

...

</Body>

</Header>

Basically We have to pass the input payload with XI and based on some parameters within the input payload(ex:city) we need to build a header tag (ex:city) in the output payload. How to acheive this?

- Ramani

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

create relevant input and output datatypes....map them and your development is done:)

Former Member
0 Kudos

hi,

Basically after processing the Input payload then we need to wrap up the header part..

- Ramani

Answers (3)

Answers (3)

Former Member
0 Kudos

answered

Former Member
0 Kudos

Hi,

If you want to generate the Target Header after some checks on the input payload, can use the standard functions.

Reference:

http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm

Cheers,

Manjusha.

Former Member
0 Kudos

Hi,

Can you please let me know if we can acheive this by BPM?

- Ramani

Former Member
0 Kudos

Hi,

BPM is not required.

Simple File to File should suffice.

Ref:

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

You can make your checks inside mapping.

Cheers,

Manjusha.

Former Member
0 Kudos

hi,

Thanks for the blogs !!! But the thing is We need to apply the header(wrap up) after the mapping transformation step.

- Ramani

former_member556412
Active Participant
0 Kudos

Hi,

Create the source and target Data type as u have mentioned, map the field city with header.

Source Data Type is

<Body>

</name>

</num>

</city>

</Body>

Target Data Type

<Header>

</city>

<body>

</name>

</num>

<//city>

</body>

</Header>