Skip to Content

IDOC Help

HI

I am doing a IDOC to file scenario. At the output side I need to pass only those segments which have the current date and ignore the rest . Can anyone please provide some inputs on this .

Regards

Amit

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Mar 07, 2009 at 05:06 AM

    Hi , In the Mapping you can write a UDF( User Defined Function )

    Using that you can check for the condition . For those segments that satisfies the condition , map to the target

    jude.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 07, 2009 at 05:16 AM

    Hi , you can also try this condition using the Node functions. We have current Date fn . try this .

    and use the IF Without Else or IF According to ur mapping . Try this first before gng for the UDF .

    Mean while i will send the UDF

    Jude

    Add comment
    10|10000 characters needed characters exceeded

    • HI

      I first tried with the Current Date function . But the problem is there are 9 segments in IDOC and i need to check for all if the date that comes is equal to the current date. I am aware of how it is to be done, but my only problem is i need a UDF that would compare the incoming value with the current date from the UDF . If it satisfies then create the segment else dont create.

      Need your help on this.

      Regards

      Amit

  • avatar image
    Former Member
    Mar 07, 2009 at 06:51 AM

    Hi ,

    This is simple na , you can achive this using the node functions .

    Check for the current date and the segment date using an if condition . If this satisfies (true) use the CreateIf Node function .

    So if the condition satisfies , then it will create the node , else it wont. This is ur case right

    Jude.

    Add comment
    10|10000 characters needed characters exceeded