cancel
Showing results for 
Search instead for 
Did you mean: 

Dealing with xml , EDI and JMS

Former Member
0 Kudos

Hi ,

I need some help.

1) I am pulling the data through JMS and at JMS the data is available in

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

<MessageHeader>

-


-


-


</MessageHeader>

<DELVRY05>

<IDOC>

-


-


-


</IDOC>

</DELVRY05>..

I want some configuration details as adapter level by which Either I can pick only the Idoc < Delvry05> Structure

or if any how I can get all the data in a single line . Please suggest

2) I want to know some solution to remove the character after xml <> tags . when, I am processing then its showing some space and coming in new line.

input is in format :

<DELVRY05>

<IDOC BEGIN="1">

<EDI_DC40 SEGMENT="1">

<TABNAM>

EDI_DC40</TABNAM>

<MANDT>

790</MANDT>

<DOCNUM>

0000000000016942</DOCNUM>

<DOCREL>

700</DOCREL>

<STATUS>

30</STATUS>

</EDI_DC40>

<E1EDL23 SEGMENT="1">

<LFART_BEZ>

Outbound Delivery</LFART_BEZ>

<TRAGR_BEZ>

On pallets</TRAGR_BEZ>

</E1EDL23>

</IDOC>

</DELVRY05>

And I want this to be as :

<DELVRY05><IDOC BEGIN="1"><EDI_DC40 SEGMENT="1"><TABNAM>EDI_DC40</TABNAM><MANDT>790</MANDT><DOCNUM>0000000000016942</DOCNUM><DOCREL>700</DOCREL><STATUS>30</STATUS></EDI_DC40><E1EDL23 SEGMENT="1"><LFART_BEZ>Outbound Delivery</LFART_BEZ><TRAGR_BEZ>On pallets</TRAGR_BEZ></E1EDL23></IDOC></DELVRY05>

Please help how to handle both issues.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Develop one module (Java program to remove the message header part) and deploy it in the PI system.

call the module bean in JMS adapter before it process the file........for more details how to write module....check in forum.

Regards,

Phani

Edited by: phani kumar on Mar 10, 2011 7:03 AM

Former Member
0 Kudos

Thanks but client don't want to develope adpater module.

I want help on how to handle this multitag structure in a single line and how to remove space .

and if someone can tell me how can I take whole payload as single line

thanks

ram

Former Member
0 Kudos

Hi Any help or any clue to handle this . First I am facing issue how to get the data and what format ?

regards

ram