on 11-02-2007 9:01 AM
Hi Fiends,
I have a BPM ..where I have the steps defined like this..
Transform -> send mail..
In the transformation ..I have a simple mapping program(source & the target structures have got one field)..
message type structures are like this..
source& target
Return key ---> 1:1
field1 --->1:1
mapping is like this :
Field1--->field1(when field1 is not empty)
If field1 is empty then -> I am sending some constant to the target ...and in the mapping it is working fine...
My mail is working perfectly when there is some value in field1..and I am getting a mail..
and when there is no value in field1..I am getting mapping error.
do you have any idea..how can I solve this issue..plz help me..
Thanks..
Took some dummy payload available in the same mapping (with out taking any field value from it so as to avoid "no payload error") and sent the constant value..that solved my issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramesh ..My mapping program is like this...
1.Field1 and Constant(space) -
>Equal Function
2.If the above route returns true then I am sending another constant(value=test) to my target field1
3.In the first step if I receive false I am sending the existing field1 value to the target.
For acheiving this I am using ifelse function..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But in my mapping program when I test the mapping by w/o ant input it i s returning 'test'(teh value I mentioned in the mapping when there is no value in the source) to the target...
If I see the moni ..it only says message has error on outbound side...and if I go into workflow it is showing the error on the mapping..but no information on exact error...
Thanks,
Raju.
Hi Ramesh,
I have other steps before it reaches this particular transformation...but after clear verifiction I am sure that there is no data in my source ...
Now how can I test the message in BPM...can you please check this and let me know...
because in the wf editor it is not going to the plave where my source is getting populated ,so there is no data in the source...
Thanks,
Raju,
Try tracing the "transformation" step in BPM. Check the instance of the message in sxmb_moni and click 'PE' so you will be in 'workflow log' here you could see the data flow of your message inside BPE. Here you can trace were your message got exception. If it is in transformation step then click on 'list tech details' (left top corner) then click on 'show container' button corresponding to that 'transformation step'. Its similar to using trace area in sxmb_moni. here you will be aware of mapping error.
Hope it will be helpfull.
Regards,
Yuva
hi raju,
user <b>mapWithDefault</b> function to solve your issue!
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
regards
Ramesh P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi raju,
If i understand correctly if the you send no value to the field, you are receiving mapping errror!
Can you tell me what error you are receiving...
and what have you defined to achieve
<i>"If field1 is empty then -> I am sending some constant to the target ...and in the mapping it is working fine..."</i>
regards
Ramesh P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the node function exists to resolve it....
give it a try.
<b>Cheers,
*RAJ*</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.