cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while merging file using BPM

Former Member
0 Kudos

Hi Experts

I am facing problem while merging two different files using BPM

I have two source files which has different STRUCTRE

Header File and Item File

In these two file I have PO no as common field

I have created

*2 outbound interfaces*

Header_out

Details Out

*1 Inbound*

Header_Item_in

*3 Abstract interfaces*

Header_abs

Details_abs

Header_item_abs

*I have create one message mapping as follows*

Header_abs

Details_abs to Header_item_abs

*I have created following steps in IP*

Fork step

Two Receiver Steps

One Transformation Step

One Send Step

*I have create following correlation*

Name -- PO

Involved Messages

-


Header_abs

-


Details_abs

*Properties*

-


PO from Header

-


PO from Item

*In Receive Step1*

-


Message - *Header*

-


User Correlation - *PO*

-


Start Process - *Check*

-


Active Correlation - *PO*

-


Interface Variable - *Header_PO*

*In Receive Step2*

-


Message - *Trailer*

-


User Correlation - *PO*

-


Start Process - *Check*

-


Active Correlation - *PO*

-


Interface Variable - *Item_PO*

In Transformation Step

-- I have specified the mapping

In Send Step---I have specified the Header_Item_Abs

In Intergration Directory

I have created

---three receiver determinations

source----


header - to - IP

source----


item - to IP

-


IP - to - header_item(target)

But when i am testing this scenario

in SXMB_MONI i can see two message from source but both are showing waiting state.

Later this I have create a mapping between

Header_out(outbound) - to - Header_abs

Item_out(outbound) - to - Item_abs

After this i have tested now in sxmb_moni One message is showing waiting and other is showing in green flag

I checked in SMQ2 it is showing "permanant error in BPE......"

I have checked even "SWF_INB_CONF" tcode it is

Delivery Mode - "Buffer Possible"

Queue Assignment - "One Queue"

Number of Queues - 1

Could you please help me to resolve this issue

I have tried in all the ways but it is not working

Regards

Sowmya

Accepted Solutions (1)

Accepted Solutions (1)

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

Input side there are 2 message so you should not copy from mapping.

To make 2 separate XML file either make manually or Just make temporary Mapping for each message(Only to make XML files) in mapping select only one input message.

Former Member
0 Kudos

Hi

I did exactly like that only. But still it didnt work.

Any suggessions

Regards

Sowmya

prateek
Active Contributor
0 Kudos

I think u have many open correlation instances. Go to SWWL and delete all the previous entries which are not in complete state. Not only for today but previous days too. Then run your scenario.

Regards,

Prateek

Answers (5)

Answers (5)

samiullah_qureshi
Active Contributor
0 Kudos

Hi,

You are creating file from test tab of a mapping which is not a 1..1. mapping.

In case of any mapping, other than 1..1 mappping, Extra tags of Messages, Message1 or Message2 are addded to the data by XI .As shown here:-

Messages

Message1

MessageType

When you use this mapping to generate xml message then it will add additional tags for <Messages> and <Message1>, which is not correct. it should only have structure of you MT.

So remove start and end tag of <Messages> and <Message1> from your data file. Mentioned below in bold.

<xml......>

<Messages>

<Message1>

<MT_...>

...

...

...

...

</MT_...>

</Message1>

</Messages>

This should solve your problem.

Regards,

Sami.

dharamveer_gaur2
Active Contributor
0 Kudos

Check Your Sender XML message is correct.

I think you are coping message from Mapping Test Tab, dont do that because you r using 2 input message.

Make XML stucture for both input file and now send again.

Former Member
0 Kudos

Hi

Then how to get the XML for two different files. Could you please explain me. Beacuse I have done another scenarion where I have copied the data from message tab and it worked fine. But this scenario is not working. Even i tried using FCC but still it is waiting at receiver step 2.

Regards

Sowmya

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

Generaly this exception occurs due to error in mapping transformation step.

To monitor BPM use Block step and check Create New Transaction option.

Now check in Moni TCode SXMB_MONI_BPE.

You will find exactly which step have error

Former Member
0 Kudos

Hi,

It is not reaching the transformation step. At receiver step2 it is showing waiting.

I have tried all possibilites but still it is stoping (waiting status) at receive step 2

Thanks & Regards

Ravi Shankar B

samiullah_qureshi
Active Contributor
0 Kudos

Hi,

Your problem may be due the availability of open receive step for your second message. Following blog may help you:-

Regards,

Sami.

Former Member
0 Kudos

HI

Your Transformation is not getting triggered.

You can collect messages and then send for transformation

Check BPM patterns to configure correctly

Thanks

Gaurav