Introduction

   SAP B2B Add-on comes up with standard X12 message content for various message types .The standard message content(for e.g: 945 message of 004010) will not suit for all the customer needs. There could be cases, where the converted XML payload deviates from the expected output xml.

     In this blog, I would be explaining the step-by-step procedure required for creating and configuring the customized ANSI X12 messages.

Pre-requisites

  •   You should be on the latest patch of the   B2B TOOLKIT 1.0: “PIB2BTOOLKIT04” (SP-level #04)

Step 1:

       As mentioned in the  note #2205708 ,Change the property value of the “x12.loop.allowduplicates” to true

       /wp-content/uploads/2016/03/2_914038.png

Step 2 :


         Select the version, transaction set and click on Copy Control Key button

         /wp-content/uploads/2016/03/3_914058.png

  •   Enter the required fields

     

       /wp-content/uploads/2016/03/4_914057.png

Step 3:

  

        You need to edit the newly copied control key as per your needs.

In this particular example, i would be adding a new segment (W12) after N9 segment inside the loop L_300.


     /wp-content/uploads/2016/03/5_914059.png

    /wp-content/uploads/2016/03/6_914090.png

  •     Change the values mentioned for the field Max Occurrence and Mandatory as per your need.
  •      After the editing is done, You can compare the newly created message using the Compare Messages screen.

/wp-content/uploads/2016/03/13_914134.png

Step 4:

  You can test this message using Convert Ansi.X12 to XML tool. Make sure you select the new Control Key while converting the payload as shown below.

  /wp-content/uploads/2016/03/7_914091.png

Step 5:

   Add a new entry in the Control Key Scenario Association Table .


   Note : At least one value should be different than .* for the newly added scenario association entry. Otherwise,it will cause failures for the existing scenarios.

      /wp-content/uploads/2016/03/10_914120.png

   

       /wp-content/uploads/2016/03/9_914121.png

Step 6:

      In case if you are using TPM Agreements for the conversion,

  •       In the Partners screen, Add the new message for that particular partner as shown below

      /wp-content/uploads/2016/03/11_914122.png

  •      In Agreement screen,choose the newly added message

        /wp-content/uploads/2016/03/12_914133.png

   With these steps, You should be able to create and run scenarios for customized payloads.

  


To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply