IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Hide Segment

    Posted 01/06/09 06:49 PM

    Originally posted by: SystemAdmin


    Hello, would appreciate any help with the following:

    Need to hide a segment based upon certain conditions. Able to hide content within the rule, however, the segment identifier still displays in the output.
    For example, within a sement have the formula =If(input="Yes",FIELD_Input,None). This appears to work by not putting a value in the output, however, the segment identifier remains
    N4 (followed by nothing).

    Can I suppress the Segment Identifier completly ("N4")?

    Thank you very much for your help.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Hide Segment

    Posted 01/07/09 09:04 AM

    Originally posted by: repanzer


    Rather then put the rule on a field, put a functional map on the segment level (right on the record group object), then IF (field = Yes, f_map(FIELD_Input), NONE)
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: Hide Segment

    Posted 01/08/09 10:29 AM

    Originally posted by: SystemAdmin


    Hello,
    I ran into this problem recently on the EDIFACT side. What worked for me was to include the "If Present" else none in my map rule. For example, you could use something like IF(PRESENT(FIELD, FIELD_INPUT, NONE) or IF(PRESENT(field=yes, Field_input, none). It may work for you.
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange