Skip to Content
0

message mapping based on field condition

Nov 17, 2016 at 07:02 AM

93

avatar image

Hello ALL,

I have a urgent requirement on message mapping.but i am not able to do.

I have five fields empid,department,designation,salry,experiance.

Based on Department i need to spilt the payload at message level.

This is my messages structures.

This is my file data.

Based on department i need to spilt rows data into separate files at mapping level.

ex abap rows data into one file,HR into one file,PI into one file etc....

Please it is urgent help me.

Please your posts as soon as possible.

Thanks and Best Regards,

s.k.prabhakar.

wmtun.png (20.2 kB)
amg5r.png (7.6 kB)
10 |10000 characters needed characters left characters exceeded

Hi, Prabhakar!

What's your target file type? Is it xml or plain text?

Regards, Evgeniy.

0

Hi Evgeniy,

sorry to say this you posted previously mapping successfully working. i did worng at context change.

My file is moving from sender side but receiver side it wont come.

I got error "values misssing in queue context cannot create target element at target side". for this error i used node function " map with default value". like this

but still not resolve the error. is it any useful if i change my source structure as 0.1.

post your valuable comments,

Thanks,

whg9y.png (48.3 kB)
0
* Please Login or Register to Answer, Follow or Comment.

4 Answers

prabhakar s Nov 17, 2016 at 11:27 AM
0

Hello All,

I changed my source structure is 0.1. but still it showing same error.

values missing in queue context cannot create target element at receiver side.

How can i resolve the issue. please help me.

Thanks,


sd3jf.png (18.0 kB)
Share
10 |10000 characters needed characters left characters exceeded
Srikanth E Nov 17, 2016 at 12:00 PM
0

Hello,

Please change the target structure occurence.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hello srikanth,

My scenario is based on department spilt the payload, so thats why i used targeta s 0.unbound.

how can i re solve this error.

Thanks,

0

Hello Prabhakar,

Please change the field occurrences from 1-1 to 0-1

0

Hello srikanth,

I changed as your suggested source 1.1 to target 0.1.

But still no luck.

i share my message structure with you check onece. let me understand why this error coming.

check it once Please make me understand. How can i resolve the issue.

Thanks,

s.k.prabhakar.

6n3tw.png (17.0 kB)
0
Raghuraman S Nov 17, 2016 at 01:52 PM
0

Hello Prabhakar,

Press referesh button in the mapping after changing the occurence.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello Raghuraman,

I want to know about thsi error, why this error will come.

Even i refresh the mapping also same error.

can you post abou this error detailedly.

Thanks,

s.k.prabhakar.

0

Hello Prabhakar,

Its because of multi mapping,since your changing the occurrence of messages additional node of messages with occurrence 0-unbounded will be added,Since your XML after FCC is not satisfying the condition its failing.

0
Anoop Rai Nov 19, 2016 at 09:15 AM
0

Hi,

If you want to generate multiple files based on departments that come under payload, then you have to use BPM.
Because as per my knowledge you cant generate more than one file at a time when you call Receiver File Adapter. So you have to do looping, that is only possible in BPM. If you are too good in Java and have proper knowlege SAP PI Jar Packages, then you can go for Java mapping too.

But its good, to go for BPM, as data is very less and i don't think you face any problem while doing it using BPM.

For your error, you change context of all elements that came under payload, but for what?? I didn't get your logic here. And also, share full error taht appearing to you. But in fist look, i can say, due to missmatch with records contexts you are geting this error because u removed all higher context nodes. Now its dificult for system to judge, which empid belongs to whom. But share full error that you are getting.

Regards,

Anoop Kumar Rai.

Share
10 |10000 characters needed characters left characters exceeded