cancel
Showing results for 
Search instead for 
Did you mean: 

I am not getting the proper data due to Queue's problem

Former Member
0 Kudos

Could anyone of you help me regarding below problem

My requirement is

If billing type is "ZF2" or ZG2 and order reason is not equal to "T02", then need to place the ship to number(PARTN where PARVW = u201CAGu201D ).

Else need to place the end customer number PARTN where PARVW = u201CZEu201D, If end customer is not available then need to place ship to number (PARTN where PARVW = u201CAGu201D ).

My scenario is multiple IDOCs to multiple Files

I am experiencing the problem in the Else condition when there are multiple IDOCs coming with the same Queue

Example:

In the first IDOC, different partners are coming like, (E1EDKA1 Segment is repeating based on partners.)

Partners PartnetNos

RS 0238232082

AG 0238232086

KL 0238232083

MN 0238232082

LN 0238232082

BK

In the second IDOC, different partners are coming like, (E1EDKA1 Segment is repeating based on partners).

RS 0238232082

AG 0238232088

KL 0238232082

MN 0238232082

ZE 0238232087

BK 0238232082

In the third IDOC, different partners are coming like, (E1EDKA1 Segment is repeating based on partners.)

RS 0238232082

AG 0238232089

KL 0238232082

MN 0238232082

BK 0238232082

For the above input, I am not getting the proper output.

Example:

For the first IDOC , If condition is satisfied and the output is coming well.

For the second IDOC also I am getting the correct output ( If condition fails in this case.. so enters in else block ).

For the third IDOC, I am not getting proper output, it is placing the second IDOCu2019s ZE partner number in third file.

Output:

ZE 0238232087

My analysis:

Whenever my condition is enter into the else part, it is finding for ZE value. Even though in third IDOC partner ZE is not available it is presenting ZE value (in this case AG partner is available in the third IDOC) from second IDOC value because Queue is mismatching.

Could some one validate my analysis and provide solution for this problem.

Please let me know if you need any further information.s

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member200962
Active Contributor
0 Kudos
If billing type is "ZF2" or ZG2 and order reason is not equal to "T02", then need to place the ship 
to number(PARTN where PARVW = u201CAGu201D ).
Else need to place the end customer number PARTN where PARVW = u201CZEu201D, If end customer is not 
available then need to place ship to number (PARTN where PARVW = u201CAGu201D ).
My scenario is multiple IDOCs to multiple Files
I am experiencing the problem in the Else condition when there are multiple IDOCs coming with the 
same Queue
For the third IDOC, I am not getting proper output, it is placing the second IDOCu2019s ZE partner number in 
third file.

The input to else condition seems improper....to configure the else condition you should have two different ifWithoutElse conditions configured...one each to check for ZE and AG respectively

For the Else part you can have logic as:

PARVW
             ------equalS ---- ifWithoutElse
Constant(ZE)                Then(XYZSourceNode) --------
                                                                                OR --------  Else
PARVW
             ------equalS ---- ifWithoutElse
Constant(AG)                Then(XYZSourceNode) ------

Check if this works....

Regards,

Abhishek

Former Member
0 Kudos

hey

It looks like you haven't maintained proper contexts....... check with context changes, if you still have the problem then its better to post your mapping along with context changes and display queues.