cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in UDF

former_member207622
Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

shweta_walaskar2
Contributor
0 Kudos

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

former_member207622
Contributor
0 Kudos

Hi Shweta ,

thnx i ll let u know .. i ll work on this

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member207622
Contributor
0 Kudos

HI Satessh ,

I need to create Idocs based on that condition

Former Member
0 Kudos

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

former_member207622
Contributor
0 Kudos

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!!