on 06-15-2009 10:11 AM
Hi Folks ,
I have a requirement in which
Idoc will be seperated on the condition
IF GSA field has same value than 1 idoc(1 Order), differnt values that many no of Idocs
incase GSA is blank then if Prefix is same then 1 idoc(1 Order).
How to achieve this by UDF
please suggest
Thnx
Ninad
Hi Ninad,
You don't need a UDF for this.
Please try to follow these steps:
1) Copy the XSD from IDoc structure and for IDOC element ,add maxOccurs="unbounded"
This will allow you to create multiple IDocs.
2) In mapping :
a) Check if GSA not equals [] ,then
GSA->splitByValue (Value Change)-> collapseContext ->IDOC. This will create different IDocs for different values of GSA and if all values are same,it will create only one IDoc.
b) else
prefix-> IDOC
Kindly let me know if this works for you.
Thanks.
Regards,
Shweta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ninad,
IDOC will be separated by condition-- In this situation no need to create the UDF.
Based upon the condition we need to configure the condition in 'CONDITION EDITOR' of Receiver determination.
for If GSA field = 'Same value' or ' blank' then it assign to the first idoc
if GSA filed = '1' it assign to the particular IDOC.
...
......
....
If GSA field = 'n' it assign to the particular IDOC.
Note: If 'n' no of fields are happening then we need to use 'Extended Receiver determintaion'
Regards,
sateesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I' not really sure that I understand your issue. But normally you achieve things like these by using content-based routing in Integration directory in conjunction with proper operation mappings.
Regards,
Volker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have to achieve this in mapping let me explain you
IF GSA Field has values which are same then for all of them only 1 IDoc needs to be created
whenever there is a different value another Idoc needs to be created
If GSA Field is blank then check prefix field like above
thnx
Hope u understand!!
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.