on 07-06-2012 9:46 AM
Hello,
I've problem with mapping.
I want to filled PO_MESSAGE only the first variable that contains data. When is the first works well. If the first is not informed and if the second, the node PO_MESSAGE is not created
What am I doing wrong?
Another thing that surprises me is that when I try display the queue of the variables does nothing happens, this is so in the graphic variables?
Regards,
Silvia
I'm thinking of another way to do this and need help. Using a UDF that receives the 3 variables and return the first one you find informed, how would this UDF code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What do u mean by this:
>>I want to filled PO_MESSAGE only the first variable that contains data
If i am not wrong u are using 3 diff graphical variables and there might be a case that first variable may not exist then u have to pass the value of var2??
if yes, then use map with default in the graphical varaibles mapping.
Input---MapWithDefault--VAR1
Input---MWD----VAR2
Please correct me if i have misunderstood ur req.
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>I do not understand how I can help the MWD, I have no default.
In the mapping you are checking the length of input variable right, so if ur first variable is having valid input (for ex 1234) ur condition gets satisfy and mapping executes, now suppose when the first variable itself does not exist then how can u check its length as a result mapping is failing??
so to avoid this use MWD.
U must be doing some mapping for the graphical varaibles...so just use MWD over there..so it will ensure that the varibale exist and in the main mapping u are already checking the condition that if length is greater than 0 pass its value else go to other branch....do these changes and then share ur testing results here
I hope u get my point.
Thanks
Amit Srivastava
>> Another thing that surprises me is that when I try display the queue of the variables does nothing happens, this is so in the graphic variables?
Have a look here: http://scn.sap.com/people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-gra...
Antonello
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>
If the first is not informed and if the second, the node PO_MESSAGE is not created
have a look at this blog on how to handle contexts and you will understand how to work with message mapping contexts
Regards,
Michal Krawczyk
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.