cancel
Showing results for 
Search instead for 
Did you mean: 

Condition in Interface Determination

Former Member
0 Kudos

Hi All,

I am checking for a condition in interface determination, the condition is

when ( Field1 = A and Filed2 =X) then choose mapping1

i have 4 mappings to check based on Field1 and Field2 condition but iam not able to club the conditions. if I give it in the below way

If filed1 = A and Field2 =X

then it takes these as separate conditions, I want to club these conditions together as ( when Field1 = A then check field2).

Can any please give me solution for this?

Accepted Solutions (0)

Answers (6)

Answers (6)

Shabarish_Nair
Active Contributor
0 Kudos

form the xpath statement as shown in the blog -

Former Member
0 Kudos

Hi,

When condition editor is openned (the 1st popup), have you saw and tried the button "+" which allow us to define "Field1=A" in 1st line AND "Field2=X" on 2nd line. See also the button [ ] (insert group) which allows us to group some condition.

regards

--> based on your last post, that's more complex. forget this answer.

Mickael

Edited by: Mickael Huchet on Dec 5, 2011 11:24 AM

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

I am checking for a condition in interface determination, the condition is

when ( Field1 = A and Filed2 =X) then choose mapping1

i have 4 mappings to check based on Field1 and Field2 condition but iam not able to club the conditions. if I give it in the below way

If filed1 = A and Field2 =X

then it takes these as separate conditions, I want to club these conditions together as ( when Field1 = A then check field2).

What do you mean by unable to club the conditions? In your interface determination condition editor, there are two icons. One is the Insert Expression, clicking this will club or group the conditions with the AND condition. While clicking the bracket icon or insert group creates another group with the OR condition. To double check the conditions, there look in the Preview. For more complex conditions, you should use the EX instead.

Hope this helps,

Mark

Former Member
0 Kudos

HI savithaveemaraj ,

( when Field1 = A then check field2).

you mean If first field exists, then check the second field.

might be its helpful for your requirement.

field1 ex(Operation) And field2 (ex) if you need for second field

thanks,

Former Member
0 Kudos

Hi everyone,

My condition is

If F1 = RE then check F2 = A the choose Mapping 1

If F1 = RE then check F2 = B the choose Mapping 2

...

In IDOC.. the segments are like

E1EDKA1 F1 F2 F3..

E1EDKA1 F1 F2 F3..

E1EDKA1 F1 F2 F3..

E1EDKA1 F1 F2 F3..

I want to check value of F2 based on F1=RE,

I hope its clear, Please clarify ...

Former Member
0 Kudos

Hi,

If F1 = RE then check F2 = A the choose Mapping 1
If F1 = RE then check F2 = B the choose Mapping 2
...

In IDOC.. the segments are like

E1EDKA1 F1 F2 F3..
E1EDKA1 F1 F2 F3..
E1EDKA1 F1 F2 F3..
E1EDKA1 F1 F2 F3..

according your requirement, the conditions will be right if do the following,

In the condition editior

Select

F1 as Left operand = and Right operand will be "RE" AND

F2 as Left operand = and Right operand will be "A"

which will look

(F1 = "RE" AND F2 = "A")

for this condition your required mapping.

Construct one condition for the other requirement and map it to the required mapping

regards

Ramesh

Former Member
0 Kudos

HI ,

If F1 = RE then check F2 = A the choose Mapping 1

If F1 = RE then check F2 = B the choose Mapping 2

F1 =re And f1 = EX And F2 = A mapping1 (if need to check field F1 exits) , otherwise F1 =re And F2 = A

F1 =re And F1 = Ex And f2 = B mapping2 (if need to check field F1 exits) , otherwise F1 =re And f2 = B

thanks,

Former Member
0 Kudos

Hi,

Tweak your required condition like this:

If (Field1= A | Field2 = B) the Condition!

Regards

Ramesh

Former Member
0 Kudos

HI,

please go through below blog,

http://wiki.sdn.sap.com/wiki/display/XI/ToExistOrNottoExististheQuestion

regards,

ganesh.