on 01-12-2011 5:20 AM
Hi Experts,
Good day to all,
I am working one File to IDoc scenario, my sender structure look like this,
<Order>1..unbounded
<MaterialNumb>
<Customer>
</Order>
I want to send two different IDocu2019s to SAP based on material number value. If material number value empty means I have to send DelIVERY IDoc, else I have to ORDER IDoc.
I developed two mappings, Could you please tell me how to write a condition in Interface determination for this Logic.
I tried different ways but no luck.
Regards,
Jam
I think in your case u need not to go for the condition in interface determination. You can user I..N mapping in your interface determination as explained in following blog :
[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3115] [original link is broken] [original link is broken] [original link is broken];
This way ur condition check part will go into message mapping and there u can handle it easily.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I feel the simplest way of working on it is using the "exists function" in mapping and using the same in Receiver determination.
If Materialnumber "exists" & not equal to " " = True then send the data.
If Material number does not exists then route the data to delivery.
regards,
Sainath Chutke
Edited by: Sainath Chutke on Jan 12, 2011 8:35 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
I tried alredy with string length function , this is working for only one record present in source data, but in my case source data will have multiple records like below,
<Order>
<MaterialNumb>11123455<MaterialNumb>
<Customer>12345 </Customer>
</Order>
<Order>
<MaterialNumb/>
<Customer>12345 </Customer>
</Order>
<Order>
<MaterialNumb>23455<MaterialNumb>
<Customer>12345 </Customer>
</Order>
@Rahul:
even your logic also not working for multiple records.
Regards,
Jam
Yes exactly, but it is not working,,
for below data i am expecting one delvry and one order IDoc , but i am getting two delivery and 2 order idocs,
i have not written any logic to filter IDoc at mapping level.
<Order>
<MaterialNumb/>
<Customer>12345 </Customer>
</Order>
<Order>
<MaterialNumb>23455<MaterialNumb>
<Customer>12345 </Customer>
</Order
Regards,
Jam
> for below data i am expecting one delvry and one order IDoc , but i am getting two delivery and 2 order idocs,
>
> i have not written any logic to filter IDoc at mapping level.
Then, what do you expect when you do not have any logic in mapping?
Of course you will have two idocs each.
Edited by: Stefan Grube on Jan 12, 2011 11:22 AM
Hi ,
This can be done in Interface determination by specifying the condition to the Material number.
Say if Material is empty then used the map corresponding to DELVRY
and if it has a value use the Map Corresponding to ORDERS.
Thanks
Sampath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.