Skip to Content
avatar image
Former Member

Route of the operator.... while creating mapping for idoc to file

Hi,

Scenario is IDOC to File but certain rules are there while creating a mapping in XI.

This is the description for my scenario :

Within XI this Idoc message needs to be translated into 2 text files:

1 file for the route of the operator

- Read the idoc data.

- When reading a new order first get the customer. This will be a new line in the file.

The customer number will be set into the filed u2018CustomerIDu2019.

- Then read the items. For every item create a new line in the file. The machine number will be mapped to the field CustomerID

- The field RouteOrder should get a sequential number. Starting at 001 and updated by 1 for every new line.

Could you please guide me how can i implement this above scenario.

Regards,

Y.Raj

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 09, 2009 at 02:46 PM

    Within XI this Idoc message needs to be translated into 2 text files:

    this can be done using multimapping i.e. defining your target messages at mapping tabs in your message mapping.

    When reading a new order first get the customer. This will be a new line in the file.

    The customer number will be set into the filed u2018CustomerIDu2019.

    If there is some condition for identifying new order then you should put condition based on input field.

    if customer no doesnot exists in order then RFC lookup can fetch customerno

    The field RouteOrder should get a sequential number. Starting at 001 and updated by 1 for every new line.

    for this declare varaible in global section and use the same or some builtin function can be used for the same.

    Rajesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks for your valuable replies..

      for your information here my scenario is IDOC to 1file (not multimapping)

      Could you please give me a more elaborative for this scenario where i need to exactly write UDF and pls. provide me the IR and ID steps to follow.

      Source :

      DA_no

      Route_ID

      machine number

      Target :

      DA no

      Route ID

      Customer ID

      Route_Order (sequential number per DA_no/Route_ID)

      Description

      When reading a new order first get the customer. This will be a new line in the file and the customer number will be set into the filed u2018Customer IDu2019.

      Then read the items. For every item create a new line in the file. The machine number will be mapped to the field Customer ID.

      The field RouteOrder should get a sequential number. Starting at 001 and updated by 1 for every new line.

      Pls. provide me the solution as how can i implement this.

      Regards,

      Y.Raj

  • avatar image
    Former Member
    Apr 09, 2009 at 03:19 PM

    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

    go through above blog for multi mapping

    If my understanding is correct One file should have order nos and second file should contain line item details

    if not post details about src and target strucutures

    Rajesh

    Add comment
    10|10000 characters needed characters exceeded