Skip to Content


Unique IF Problem

Hello Guys,

I have a unique problem with my mapping.

There is a IF condition which checks for number of line items and maps accordingly to the target.

In the else part, if the number of line items is not matched as per a field, am calling an RFC lookup to update the error status into the table and further the mapping wont work.

But unfortunately, IDOC gets created and also the table gets updated with Error status.

Scenario 1:

Number of line items = 5

Actual Line items = 5

So this test scenario should successfuly create an IDOC.

The IDOC do gets created, but also the else parts gets executed.

Scenario 2:

Number of line items = 5

Actual line items in file = 3

So, in this scenario the idoc should not be created and only should update the error status. This scenario is working perfectly.

But am not able to understand why in scenario 1, it is acting weird by executing both the IF and the else condition.



Former Member