Skip to Content
avatar image
Former Member

Help needed in Idoc To File Scenario

Hi Experts,

My scenario is Idoc to File.

Here my job is to convert the purchase order idoc into xml file.

In this there are three conditions.

ℹ️ converting the standard PO into xml file

(ii) converting the PO with serial number into xml file

(iii) converting the PO using serial number with subcontracting into xml file

so what I feel is I need to create one scenario and based on the condition that particular PO will convert into xml file.

Conditions:

ℹ️ if no condition is specified then it is standard PO first case

(ii) if field tdline ne space then it is PO with serial number second case

(iii) if field pstyp eq 3 then it is PO using serial number with subcontracting third case.

Please guide how to do this scenario.

IR:

1) how many data types I need to create

2) how many message types I need to create

3) how many message interfaces I need to create

4) how many message mappings I need to create

5) how many message interfaces I need to create

ID:

1) how many receiver determinations I need to create

2) how many interface determinations I need create

3) how many receiver agreements I need to create

And where to write the conditions at message mapping level or at receiver determination level.

Kindly provide solution to every point.

Regards,

Venkat.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Sep 20, 2007 at 06:31 AM

    Hi Venkat,

    check this link,

    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters

    Regards,

    Samson Rodrigues.

    Add comment
    10|10000 characters needed characters exceeded

    • 1) if no condition is specified then it is standard PO first case

      2) if field tdline ne space then it is PO with serial number second case

      3) if field pstyp eq 3 then it is PO using serial number with subcontracting third case.

      you have to create

      1. outbound ( IDOC)

      2. 3 Inbound (same MT)

      create 3 mapping program each for 1 condition

      create 3 interface mappings

      ID:

      1 reveri BS.

      3 Interface determinations, so 3 receiver agrement.......

      you can put the condition on the mapping or in the condition tab of the interface determinations.

  • Sep 20, 2007 at 08:20 AM

    you can use conditional routing via xpath in your receiver determination - /people/suraj.sr/blog/2006/01/05/multiple-inbound-interfaces-within-a-service

    ref the above for an idea, in case u need more inputs let us know ..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 20, 2007 at 08:29 AM

    Hi Venkat,

    Use conditionals under graphical mapping.Try it once......

    Multi mapping question using user defined function

    Regards,

    Naresh.K

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 20, 2007 at 09:00 AM

    Hi

    IR

    Import the IDoc.No need to create any message type/data type/message interface.

    you can use the iDoc itself for these things

    Receiver side.

    Create the data type for File,Message type and Messsge interface.

    Do the message mapping and interface mapping

    Now comes the condition part.

    This is what you need now

    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 20, 2007 at 11:40 AM

    solved the problem

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2013 at 12:41 PM

    Hi friends,

    here is new document for IDOC TO FILE scenario..

    http://jskcomput.blogspot.com/2013/08/idoc-to-file-scenario.html

    Add comment
    10|10000 characters needed characters exceeded