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.  Single Order per file

    Posted 11/15/13 08:19 PM

    Originally posted by: Kachu


    Hi Experts,

     

    I require your help with below scenario.

     

    In the edifactToXml sample provided with the WTX EDI industry pack, I want to achieve the goal of one PO/File.

    The XML output generated  has the structure:

    -<EDIFACT>

        +<segUNA>

        -<segUNB>

                +<segUNH1>

                +<segUNH2>

                +<segUNZ>

         -</segUNB>

    </EDIFACT>

    But my requirement is one PO (UNH segement per file).

    1. File 1 as:

    -<EDIFACT>

        +<segUNA>

        -<segUNB>

                +<segUNH1>  

                +<segUNZ>

         -</segUNB>

    </EDIFACT>

     

    2. File 2 as:

    -<EDIFACT>

        +<segUNA>

        -<segUNB>

                +<segUNH2>

                +<segUNZ>

         -</segUNB>

    </EDIFACT>

     

    The output file should be generated for each occurence of the UNH segment.

     

    Please help me with the approach and logic.

     

    Best Regards | Kachu


    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 2.  Re: Single Order per file

    Posted 11/18/13 03:12 AM

    Originally posted by: Kachu


    Hi Experts,

     

    Please Reply. :(


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: Single Order per file

    Posted 11/18/13 03:49 AM

    Originally posted by: vijji_WTX


    You Have to use PUT function as follows

    you create output card with (1:s) range and give below rule

    =PUT ("FILE","singleOrder1.txt",singleOderGrp)

    syntax:

    PUT (adapter_alias , adapter_commands , data_to_send_to_adapter)
     


    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 4.  Re: Single Order per file

    Posted 12/14/13 12:17 AM

    Originally posted by: prap


    I guess, u need 2 separate output cards cards , one for generating UNB/order  with unique control numbers and another to generate a UNB/file.

    Op card1 -->  F_test1 (trasaction) separation  and then map the complete UNB to UNZ along with the filtered Transaction..This is needed as UNB should contain a new unique control number..

    Op card2 --> F_test2 (UNB ) --> and inside the functional map, you can the PUT function to generate a file/UNB. 

     

     


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender