cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Mapping error with Graphical Variable

Former Member
0 Likes
936

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

View Entire Topic
Former Member
0 Likes

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

Former Member
0 Likes

Hi Amit,

You're right. I'm using 3 diff graphical variables. They may have all filled or not (only some). I want to inform PO_MESSAGE with only one value, the first one that is filled.

I do not understand how I can help the MWD, I have no default.

Former Member
0 Likes

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

Former Member
0 Likes

Thanks Amit,

I did what you say and the problem continue.

When vble1 (v_message_plant) is filled the response is ok:

But if v_message_plant is initial and v_message_mov is filled the response is wrong:

Former Member
0 Likes

Hi,

Use Map with default just before the variable in the mapping shown above (after IfWithoutElse) and then try?

Thanks

Amit Srivastava

Former Member
0 Likes

Hi Amit,

I just try and the result is the same

Former Member
0 Likes

I have also tried and it does not work

Former Member
0 Likes

Hi,

U hAve to map MWD in the graphical variable mapping as shown below....

I have tested this and getting the desired result..

Thanks

Amit Srivastava